:root {
  color-scheme: dark;
  --ink: #071b16;
  --deep: #032f25;
  --emerald: #064e3b;
  --emerald-2: #0a604a;
  --gold: #d4af37;
  --gold-soft: #eadb9c;
  --paper: #f4efe2;
  --paper-dim: #d8d4c8;
  --rule: rgba(212, 175, 55, 0.62);
  --quiet: rgba(244, 239, 226, 0.74);
  --shadow: rgba(0, 0, 0, 0.36);
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

html {
  background-color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  color: var(--paper);
  background: transparent;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

/* The gold centre rule and emerald glow sit on a fixed layer behind the page,
   so every text block reads against a solid colour. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(212, 175, 55, 0.17) 50%, transparent calc(50% + 1px)),
    radial-gradient(circle at 50% -10%, #0c6b51 0, var(--emerald) 28rem, var(--ink) 70rem);
}

a { color: var(--gold-soft); }

a:hover { color: #fff3bd; }

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #fff3bd;
  outline-offset: 4px;
}

.skip {
  position: fixed;
  z-index: 20;
  top: 0.5rem;
  left: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  color: var(--ink);
  background: var(--paper);
  transform: translateY(-150%);
}

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

.top {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--rule);
  background: rgba(3, 47, 37, 0.96);
  box-shadow: 0 12px 35px var(--shadow);
}

.bar {
  width: min(100% - 2rem, 1160px);
  min-height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  grid-column: 2;
  display: grid;
  justify-items: center;
  min-width: 160px;
  min-height: 64px;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.seal {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-soft);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  box-shadow: inset 0 0 0 4px var(--emerald), inset 0 0 0 5px rgba(212, 175, 55, 0.35);
}

.brand-copy {
  margin-top: 0.1rem;
  font-size: 1rem;
  line-height: 1.2;
}

.menu {
  position: relative;
  grid-column: 3;
  justify-self: end;
}

.menu summary {
  min-width: 154px;
  min-height: 48px;
  padding: 0.55rem 0.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  cursor: pointer;
  color: var(--paper);
  background: var(--deep);
  font-size: 1rem;
  list-style: none;
}

.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " +"; color: var(--gold); }
.menu[open] summary::after { content: " −"; }

.menu nav {
  position: absolute;
  right: 0;
  width: min(88vw, 330px);
  padding: 0.55rem;
  border: 1px solid var(--gold);
  background: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.52);
}

.menu a {
  min-height: 48px;
  padding: 0.55rem 0.7rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--paper);
  text-decoration: none;
}

.menu a:last-child { border-bottom: 0; }
.menu a[aria-current="page"] { color: var(--gold-soft); background: var(--emerald); }

.shell {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
}

.hero {
  min-height: 620px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 5.5rem 0 4rem;
  text-align: center;
}

.hero.compact {
  min-height: 430px;
  padding-bottom: 3rem;
}

.eyebrow,
.step {
  margin: 0 0 0.8rem;
  color: var(--gold-soft);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 { text-wrap: balance; }

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.compact h1 { max-width: 18ch; font-size: clamp(2.45rem, 7vw, 5.4rem); }

.lead {
  max-width: 64ch;
  margin: 1.7rem auto 0;
  color: var(--paper-dim);
  font-size: clamp(1.08rem, 2.3vw, 1.32rem);
}

.honest {
  max-width: 62ch;
  margin: 2rem auto 0;
  padding: 0.9rem 1.15rem;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  color: #fff7d6;
  background: rgba(3, 47, 37, 0.62);
}

.section {
  position: relative;
  padding: 5rem 0;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(42%, 320px);
  height: 1px;
  transform: translateX(-50%);
  background: var(--gold);
}

.section h2 {
  max-width: 22ch;
  margin: 0 auto 0.8rem;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3.45rem);
  font-weight: 500;
  line-height: 1.08;
}

.dek {
  max-width: 64ch;
  margin: 0 auto 2.2rem;
  color: var(--quiet);
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.panel {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--rule);
  background-color: #0a4f3d;
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.08),
    inset -5px -5px 18px rgba(0, 0, 0, 0.2),
    0 16px 32px rgba(0, 0, 0, 0.18);
}

.panel h3 {
  margin: 0 0 0.6rem;
  color: #fff7d6;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
}

.panel p:last-child,
.panel ul:last-child { margin-bottom: 0; }

.tag {
  margin: 0 0 0.75rem;
  color: var(--gold-soft);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare { margin: 0; }

.compare figcaption {
  max-width: 64ch;
  margin: 1rem auto 0;
  color: var(--quiet);
  text-align: center;
  font-size: 1rem;
}

.plain-list,
.check-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li,
.check-list li {
  position: relative;
  margin: 0;
  padding: 0.7rem 0 0.7rem 1.4rem;
  border-top: 1px solid rgba(212, 175, 55, 0.24);
}

.plain-list li::before,
.check-list li::before {
  content: "◇";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.plain-list a {
  min-height: 48px;
  display: flex;
  align-items: center;
}

.route {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.route .go {
  min-height: 48px;
  margin-top: auto;
  padding-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  color: #fff3bd;
}

.answer {
  max-width: 760px;
  margin: 0 auto 1rem;
  border: 1px solid var(--rule);
  background: rgba(3, 47, 37, 0.78);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.18);
}

.answer summary {
  min-height: 64px;
  padding: 1rem 3.2rem 1rem 1.2rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff7d6;
  font-size: 1.2rem;
  font-weight: 700;
}

.answer p,
.answer ul { margin: 0; padding: 0 1.2rem 1.25rem; }
.answer ul { padding-left: 2.5rem; }

.callout {
  max-width: 760px;
  margin: 2rem auto;
  padding: 1.25rem clamp(1.2rem, 4vw, 2.2rem);
  border-left: 3px solid var(--gold);
  background: rgba(244, 239, 226, 0.08);
}

.amount {
  margin: 0;
  color: #fff3bd;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.05;
}

.sources {
  max-width: 860px;
  margin: 4rem auto 0;
  padding: 1.4rem;
  border: 1px solid var(--gold);
  background: var(--deep);
}

.sources h2 {
  margin: 0 0 0.5rem;
  text-align: left;
  font-size: 1.45rem;
}

.sources p { margin-top: 0; color: var(--quiet); }
.sources ul { margin: 0; padding: 0; list-style: none; }

.sources a {
  min-height: 48px;
  padding: 0.55rem 0;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(212, 175, 55, 0.26);
}

.next {
  min-height: 86px;
  margin: 4rem auto 0;
  padding: 1rem 1.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  color: var(--paper);
  background: var(--emerald);
  text-align: center;
  text-decoration: none;
}

.next span { color: var(--gold-soft); }

.foot {
  margin-top: 5rem;
  border-top: 1px solid var(--rule);
  background: #021d17;
}

.foot-inner {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

.foot p { margin: 0; font-size: 1rem; }

.foot a {
  min-width: 80px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.not-found { min-height: calc(100vh - 90px); }

@media (max-width: 780px) {
  .bar { width: min(100% - 1rem, 1160px); grid-template-columns: 1fr auto; }
  .brand { grid-column: 1; justify-self: start; justify-items: start; }
  .seal { margin-left: 0.35rem; }
  .brand-copy { max-width: 155px; }
  .menu { grid-column: 2; }
  .menu summary { min-width: 116px; padding-inline: 0.65rem; }
  .grid,
  .grid.two,
  .grid.four { grid-template-columns: 1fr; }
  .hero { min-height: 570px; padding-top: 4rem; }
  .hero.compact { min-height: 390px; }
  .section { padding: 4rem 0; }
  .foot-inner { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 420px) {
  body { font-size: 17px; }
  .shell { width: min(100% - 1.25rem, 1120px); }
  .brand-copy { display: none; }
  .menu nav { right: -0.25rem; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.25rem); }
  .panel { padding: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
