:root {
  --paper: #f7f2e8;
  --paper-soft: #fffaf0;
  --ink: #101512;
  --muted: #56625c;
  --line: #d8cdb9;
  --blue: #1f5d86;
  --green: #40a36a;
  --brass: #c4975a;
  --shadow: 0 28px 80px rgba(16, 21, 18, 0.14);
  --radius-xl: 34px;
  --radius-md: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(64, 163, 106, 0.13), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(31, 93, 134, 0.16), transparent 26rem),
    linear-gradient(90deg, rgba(16, 21, 18, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 21, 18, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 54px 54px, 54px 54px, auto;
  font-family: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(120deg, rgba(255, 255, 255, 0.25), transparent 40%),
    repeating-linear-gradient(115deg, rgba(16, 21, 18, 0.018) 0, rgba(16, 21, 18, 0.018) 1px, transparent 1px, transparent 8px);
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 0.65rem 0.85rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-140%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
main {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 16px;
  padding: 0.75rem;
  border: 1px solid rgba(16, 21, 18, 0.13);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.86);
  box-shadow: 0 16px 60px rgba(16, 21, 18, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.source-cards,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand img,
.site-footer img {
  border-radius: 14px;
}

.nav-links {
  gap: 0.3rem;
  padding: 0.25rem;
  border: 1px solid rgba(16, 21, 18, 0.08);
  border-radius: 999px;
  background: rgba(247, 242, 232, 0.72);
}

.nav-links a,
.official-link {
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 750;
}

.nav-links a {
  padding: 0.52rem 0.78rem;
  color: var(--muted);
}

.nav-links a:hover {
  background: var(--paper-soft);
  color: var(--ink);
}

.official-link {
  padding: 0.65rem 0.95rem;
  background: var(--ink);
  color: var(--paper);
}

main {
  padding: 72px 0 56px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero {
  min-height: 680px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.35rem;
  font-size: clamp(4rem, 10vw, 8.8rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 5.8vw, 5.4rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.hero-deck {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 1.1rem;
}

.button {
  min-height: 48px;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(31, 93, 134, 0.34);
  outline-offset: 4px;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 18px 40px rgba(16, 21, 18, 0.18);
}

.button.secondary {
  background: var(--paper-soft);
  color: var(--ink);
}

.notice {
  max-width: 640px;
  margin-bottom: 0;
  padding-left: 1rem;
  border-left: 4px solid var(--green);
  color: #415049;
  font-size: 0.96rem;
}

.hero-card {
  position: relative;
}

.grid-plate {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(90deg, rgba(16, 21, 18, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 21, 18, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 250, 240, 0.96), rgba(229, 218, 198, 0.8));
  background-size: 64px 64px, 64px 64px, auto;
  box-shadow: var(--shadow);
}

.plate-label {
  position: absolute;
  top: 28px;
  left: 28px;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.grid-plate svg {
  position: absolute;
  inset: 58px;
  width: calc(100% - 116px);
  height: calc(100% - 116px);
}

.grid-plate path {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-width: 18;
}

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  font-weight: 950;
}

.node.complete {
  border-color: var(--green);
  background: var(--green);
  color: var(--paper);
}

.n1 {
  left: 11%;
  bottom: 18%;
}

.n2 {
  left: 34%;
  bottom: 42%;
}

.n3 {
  right: 30%;
  top: 36%;
}

.n4 {
  right: 13%;
  top: 18%;
}

.id-slip {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  padding: 1.1rem;
  border: 1px solid rgba(16, 21, 18, 0.2);
  border-radius: 24px;
  background: rgba(255, 250, 240, 0.88);
  box-shadow: 0 18px 36px rgba(16, 21, 18, 0.1);
}

.id-slip span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.id-slip strong {
  display: block;
  margin-top: 0.28rem;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  letter-spacing: 0.02em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 12px 0 96px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-xl);
  background: var(--ink);
  box-shadow: 0 18px 50px rgba(16, 21, 18, 0.1);
}

.facts article {
  padding: 1.2rem;
  background: rgba(255, 250, 240, 0.92);
}

.facts span,
.timeline span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
  font-weight: 900;
}

.facts strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.facts p,
.timeline p,
.prose,
.section-heading p,
.success-panel p,
.checklist,
.faq-list p,
.site-footer {
  color: var(--muted);
}

.content-block,
.success-panel,
.preflight,
.faq-section,
.sources {
  margin-top: 96px;
}

.content-block {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(16, 21, 18, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 240, 0.72);
}

.prose {
  font-size: 1.08rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.timeline li {
  min-height: 250px;
  padding: 1.2rem;
  border: 1px solid rgba(16, 21, 18, 0.18);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.82);
  transition: transform 180ms ease, border-color 180ms ease;
}

.timeline li:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}

.success-panel {
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 20%, rgba(64, 163, 106, 0.2), transparent 22rem),
    var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.success-panel .eyebrow,
.success-panel p {
  color: rgba(247, 242, 232, 0.76);
}

.success-stamp {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px solid rgba(247, 242, 232, 0.18);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(247, 242, 232, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(247, 242, 232, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  text-align: center;
}

.success-stamp span {
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 4px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 5rem;
}

.success-stamp p {
  margin: -56px 0 0;
  color: var(--paper);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}

.safety-grid div {
  padding: 1rem;
  border: 1px solid rgba(247, 242, 232, 0.18);
  border-radius: 20px;
  background: rgba(247, 242, 232, 0.06);
}

.safety-grid strong,
.safety-grid span {
  display: block;
}

.safety-grid span {
  margin-top: 0.35rem;
  color: rgba(247, 242, 232, 0.68);
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 1rem 0 1rem 2.3rem;
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  position: absolute;
  left: 0;
  top: 1rem;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  content: "✓";
  font-size: 0.88rem;
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  border: 1px solid rgba(16, 21, 18, 0.16);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.78);
}

.faq-list summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 850;
}

.faq-list p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
}

.sources {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.source-cards {
  flex-direction: column;
  gap: 0.75rem;
}

.source-cards a {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(16, 21, 18, 0.16);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.76);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.source-cards a:hover {
  transform: translateX(4px);
  border-color: var(--ink);
}

.source-cards span,
.site-footer span {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.source-cards strong {
  display: block;
  margin-top: 0.25rem;
}

.site-footer {
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer p {
  max-width: 760px;
  margin: 0;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  padding: 0.85rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.reveal {
  animation: rise 720ms ease both;
}

.hero-card.reveal {
  animation-delay: 120ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: stretch;
    border-radius: 28px;
    flex-direction: column;
  }

  .nav-links {
    justify-content: space-between;
    overflow-x: auto;
  }

  .official-link.small {
    text-align: center;
  }

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

  .hero {
    min-height: auto;
  }

  .facts,
  .timeline,
  .safety-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  main {
    width: min(var(--max), calc(100% - 20px));
  }

  main {
    padding-top: 40px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  h2 {
    font-size: clamp(2.35rem, 14vw, 3.4rem);
  }

  .brand span {
    font-size: 0.95rem;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .grid-plate {
    min-height: 430px;
  }

  .grid-plate svg {
    inset: 42px;
    width: calc(100% - 84px);
    height: calc(100% - 84px);
  }

  .node {
    width: 58px;
    height: 58px;
  }

  .facts,
  .timeline,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .timeline li {
    min-height: auto;
  }

  .content-block,
  .success-panel,
  .preflight,
  .faq-section,
  .sources {
    margin-top: 64px;
  }
}

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