:root {
  --ink: #f7f7f4;
  --muted: #b8b8b2;
  --paper: #050505;
  --surface: #10100f;
  --surface-soft: #171714;
  --olive: #9dbc36;
  --olive-dark: #71901e;
  --wine: #71302e;
  --white: #ffffff;
  --gray: #8c8c89;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.36);
  --serif: Athelas, "Iowan Old Style", Georgia, serif;
  --sans: "CMG Sans", "Avenir Next", Avenir, Montserrat, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(113, 48, 46, 0.25), transparent 24rem),
    radial-gradient(circle at 82% 12%, rgba(157, 188, 54, 0.14), transparent 18rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(157, 188, 54, 0.16);
  background: rgba(5, 5, 5, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid rgba(157, 188, 54, 0.55);
  border-radius: 50%;
  background: rgba(157, 188, 54, 0.08);
  box-shadow: 0 10px 24px rgba(157, 188, 54, 0.12);
}

.brand-mark svg {
  width: 1.95rem;
  fill: none;
}

.brand-mark path:first-child {
  fill: var(--olive);
}

.brand-mark path:not(:first-child) {
  stroke: #050505;
  stroke-linecap: round;
  stroke-width: 2.8;
}

.nav-links {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 4.2rem);
  display: grid;
  align-items: end;
  padding: 1.1rem 1rem 2rem;
}

.hero-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.62) 52%, rgba(5, 5, 5, 0.86) 100%),
    url("data:image/svg+xml,%3Csvg width='1200' height='760' viewBox='0 0 1200 760' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1200' height='760' fill='%23050505'/%3E%3Cg opacity='.38' stroke='%239dbc36' stroke-width='2' fill='none'%3E%3Cpath d='M780 129c-19 77-66 124-142 143 19-77 66-124 142-143Z'/%3E%3Cpath d='M873 426c-19 77-66 124-142 143 19-77 66-124 142-143Z'/%3E%3Cpath d='M1006 200c-13 53-45 85-98 98 13-53 45-85 98-98Z'/%3E%3C/g%3E%3Cg stroke='%2371302e' stroke-width='2' fill='none' opacity='.48'%3E%3Cpath d='M-80 520c160-95 314-101 462-18 129 72 271 82 427 30 116-38 237-37 363 4'/%3E%3Cpath d='M-60 600c153-58 287-61 401-10 150 67 300 62 451-16 126-65 260-73 402-22'/%3E%3C/g%3E%3Cg fill='%23ffffff' opacity='.08'%3E%3Cpath d='M932 604h48v48h-48zM988 604h48v48h-48zM1044 604h48v48h-48zM1100 604h48v48h-48z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.08), #050505 98%);
}

.sun {
  display: none;
}

.path {
  position: absolute;
  width: 14rem;
  height: 14rem;
  border: 2px dashed rgba(255, 250, 240, 0.45);
  border-radius: 50%;
}

.path-one {
  top: 8.5rem;
  left: -4rem;
}

.path-two {
  right: -5rem;
  bottom: 9rem;
}

.pin {
  position: absolute;
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border: 1px solid rgba(157, 188, 54, 0.82);
  border-radius: 50% 50% 50% 0;
  color: var(--olive);
  background: rgba(5, 5, 5, 0.58);
  font-weight: 800;
  transform: rotate(-45deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.pin::after {
  content: attr(data-label);
  transform: rotate(45deg);
}

.pin-one {
  top: 10rem;
  left: 2rem;
}

.pin-two {
  top: 6rem;
  left: 48%;
}

.pin-three {
  right: 1.5rem;
  bottom: 12rem;
}

.pin-four {
  left: 18%;
  bottom: 9rem;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.36);
}

.section-kicker {
  margin: 0 0 0.55rem;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1,
.intro-section h2,
.share-section h2,
.country-card h2 {
  font-family: var(--serif);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.25rem, 15vw, 6.5rem);
}

.hero h1::after {
  content: "";
  display: block;
  width: min(12rem, 42vw);
  height: 0.35rem;
  margin-top: 1rem;
  background: var(--olive);
}

.hero-copy {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.04rem;
}

.hero-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button,
.commit-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
  padding: 0.85rem 1.15rem;
}

.button:hover,
.commit-button:hover {
  transform: translateY(-2px);
}

.primary {
  color: #050505;
  background: var(--olive);
  box-shadow: 0 12px 28px rgba(157, 188, 54, 0.22);
}

.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.stats-panel,
.intro-section,
.countries-section,
.share-section {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

.stats-panel {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.stats-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-color: var(--line);
  border-radius: 0.5rem;
  background: rgba(16, 16, 15, 0.84);
  box-shadow: var(--shadow);
}

.stat-number {
  color: var(--olive);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
}

.intro-section {
  padding: 4rem 0 1.5rem;
}

.intro-section h2,
.share-section h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.15rem, 9vw, 4rem);
}

.intro-section p:last-child,
.share-section p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.countries-section {
  display: grid;
  gap: 1rem;
  padding: 1rem 0 4rem;
}

.country-card {
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background:
    linear-gradient(145deg, rgba(16, 16, 15, 0.96), rgba(16, 16, 15, 0.82)),
    var(--accent);
  box-shadow: var(--shadow);
}

.country-card.nicaragua {
  --accent: linear-gradient(130deg, rgba(41, 173, 219, 0.22), transparent 44%);
}

.country-card.mexico {
  --accent: linear-gradient(130deg, rgba(157, 188, 54, 0.2), transparent 44%);
}

.country-card.colombia {
  --accent: linear-gradient(130deg, rgba(255, 183, 59, 0.19), transparent 44%);
}

.country-card.venezuela {
  --accent: linear-gradient(130deg, rgba(210, 35, 42, 0.17), transparent 44%);
}

.country-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.country-code {
  display: grid;
  flex: 0 0 auto;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 50%;
  color: #050505;
  background: var(--olive);
  font-weight: 900;
}

.country-card h2 {
  margin: 0;
  font-size: 2rem;
}

.prayer-title {
  margin: 1rem 0 0.45rem;
  color: var(--olive);
  font-weight: 900;
}

.prayer-list {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prayer-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
}

.prayer-list li::before {
  content: "";
  position: absolute;
  top: 0.68rem;
  left: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--olive);
}

blockquote {
  margin: 1.25rem 0;
  padding: 1rem;
  border-left: 4px solid var(--olive);
  border-radius: 0 0.45rem 0.45rem 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--serif);
  font-size: 1.03rem;
}

cite {
  display: block;
  margin-top: 0.55rem;
  color: var(--olive);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 800;
}

.commit-button {
  width: 100%;
  padding: 0.9rem 1rem;
  color: #050505;
  background: var(--olive);
}

.commit-button.is-committed {
  color: var(--white);
  background: var(--wine);
}

.share-section {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 3rem 0 4.5rem;
  border-top: 1px solid var(--line);
}

.share-section .ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.copy-feedback {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  color: var(--olive);
  font-weight: 800;
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
  width: min(13rem, 74vw);
  aspect-ratio: 1;
  padding: 0.8rem;
  border-radius: 0.45rem;
  background: var(--white);
}

.qr-grid span {
  border-radius: 0.2rem;
  background: #050505;
}

.qr-grid span:nth-child(2n),
.qr-grid span:nth-child(7),
.qr-grid span:nth-child(13),
.qr-grid span:nth-child(19),
.qr-grid span:nth-child(23) {
  background: transparent;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1.25rem 1rem;
  color: var(--white);
  background: #050505;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  font-weight: 800;
}

.site-footer a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  max-width: calc(100vw - 2rem);
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  color: var(--white);
  background: rgba(113, 48, 46, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 640px) {
  .site-header {
    padding-inline: 1.5rem;
  }

  .hero {
    padding-inline: 1.5rem;
  }

  .stats-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-panel > div {
    display: grid;
    justify-items: start;
  }

  .stat-label {
    text-align: left;
  }

  .countries-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .site-header {
    padding-inline: 2rem;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .nav-links a {
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 800;
  }

  .nav-links a:hover {
    color: var(--olive);
    background: rgba(157, 188, 54, 0.09);
  }

  .hero {
    min-height: 42rem;
    align-items: center;
    padding: 6rem 2rem 5rem;
  }

  .hero-content {
    margin-left: max(0rem, calc((100vw - 70rem) / 2));
  }

  .hero h1 {
    max-width: 12ch;
  }

  .sun {
    top: 7rem;
    right: 13vw;
    width: 13rem;
  }

  .pin-one {
    left: 47%;
  }

  .pin-two {
    left: 66%;
  }

  .pin-three {
    right: 12%;
  }

  .pin-four {
    left: 58%;
  }

  .intro-section {
    padding-top: 5.5rem;
  }

  .intro-section,
  .share-section {
    grid-template-columns: 1fr 1fr;
  }

  .share-section {
    padding-block: 5rem;
  }

  .country-card {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
