:root {
  color-scheme: dark;
  --ink: #f5f2e8;
  --muted: #b9c6bf;
  --deep: #03100d;
  --panel: #09251f;
  --panel-soft: #0c3028;
  --line: rgba(221, 177, 70, 0.34);
  --gold: #e5bd58;
  --gold-bright: #ffe09a;
  --mint: #70d9ae;
  --danger: #ffb8a1;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", Palatino, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(19, 93, 70, 0.62), transparent 34rem),
    radial-gradient(circle at 100% 20%, rgba(108, 77, 15, 0.22), transparent 30rem),
    linear-gradient(150deg, #020a08 0%, var(--deep) 44%, #051814 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  content: "";
  pointer-events: none;
}

a {
  color: var(--gold-bright);
  text-decoration-color: rgba(255, 224, 154, 0.45);
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff3c9;
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 15px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--ink);
  color: var(--deep);
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid rgba(229, 189, 88, 0.2);
  background: rgba(3, 16, 13, 0.88);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  width: min(1160px, calc(100% - 40px));
  min-height: 70px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(229, 189, 88, 0.18), rgba(112, 217, 174, 0.08));
  color: var(--gold);
  font-size: 1rem;
  box-shadow: inset 0 0 16px rgba(229, 189, 88, 0.1);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: var(--gold-bright);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(229, 189, 88, 0.16);
}

.hero::after {
  position: absolute;
  right: -7rem;
  bottom: -12rem;
  width: 33rem;
  height: 33rem;
  border: 1px solid rgba(229, 189, 88, 0.17);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(229, 189, 88, 0.025),
    0 0 0 84px rgba(229, 189, 88, 0.018);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(74px, 11vw, 132px) 0 clamp(68px, 10vw, 112px);
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--mint);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.15;
}

h1 {
  max-width: 840px;
  margin: 0;
  color: var(--gold-bright);
  font-size: clamp(2.7rem, 8vw, 6.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 720px;
  margin: 28px 0 0;
  color: #d7e1dc;
  font-size: clamp(1.03rem, 2.1vw, 1.3rem);
}

.meta-row {
  display: flex;
  margin-top: 34px;
  padding: 0;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.meta-chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 37, 31, 0.72);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.layout {
  display: grid;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 110px;
  grid-template-columns: 250px minmax(0, 760px);
  justify-content: space-between;
  gap: 70px;
}

.toc {
  position: sticky;
  top: 104px;
  align-self: start;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.toc strong {
  display: block;
  margin-bottom: 13px;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
}

.policy-section {
  padding: 10px 0 48px;
  scroll-margin-top: 92px;
}

.policy-section + .policy-section {
  border-top: 1px solid rgba(229, 189, 88, 0.15);
  padding-top: 48px;
}

.policy-section h2 {
  margin: 0 0 19px;
  color: var(--gold-bright);
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.policy-section h3 {
  margin: 30px 0 10px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 600;
}

.policy-section p,
.policy-section li {
  color: #ccd7d1;
}

.policy-section ul,
.policy-section ol {
  padding-left: 1.25rem;
}

.policy-section li + li {
  margin-top: 8px;
}

.callout {
  margin: 28px 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(229, 189, 88, 0.08), transparent 60%),
    var(--panel);
  box-shadow: var(--shadow);
}

.callout strong {
  color: var(--gold-bright);
}

.callout p:first-child {
  margin-top: 0;
}

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

.data-grid,
.card-grid {
  display: grid;
  margin: 28px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.data-card,
.link-card {
  padding: 24px;
  border: 1px solid rgba(229, 189, 88, 0.2);
  border-radius: 15px;
  background: rgba(9, 37, 31, 0.76);
}

.data-card h3,
.link-card h2 {
  margin-top: 0;
  color: var(--gold-bright);
}

.data-card p,
.link-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.link-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 189, 88, 0.65);
  background: var(--panel-soft);
}

.action {
  display: inline-flex;
  min-height: 48px;
  margin-top: 14px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #132018;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.action:hover {
  transform: translateY(-2px);
  color: #08110d;
  box-shadow: 0 12px 28px rgba(229, 189, 88, 0.18);
}

.action.secondary {
  background: transparent;
  color: var(--gold-bright);
}

.warning {
  border-left: 3px solid var(--danger);
  padding-left: 18px;
  color: #f0cbc0;
}

.site-footer {
  border-top: 1px solid rgba(229, 189, 88, 0.18);
  background: #020b09;
}

.footer-inner {
  display: flex;
  width: min(1160px, calc(100% - 40px));
  min-height: 120px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #83968d;
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.footer-links a {
  color: #a9b9b1;
}

.compact-hero h1 {
  font-size: clamp(2.65rem, 7vw, 5.5rem);
}

.compact-layout {
  display: block;
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 110px;
}

.steps {
  margin: 34px 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 62px;
  padding: 0 0 28px 66px;
  counter-increment: steps;
}

.steps li::before {
  position: absolute;
  top: -3px;
  left: 0;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--gold-bright);
  content: counter(steps, decimal-leading-zero);
  font-family: var(--serif);
}

@media (max-width: 800px) {
  .site-header {
    position: relative;
  }

  .nav-wrap {
    min-height: auto;
    padding: 18px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .layout {
    display: block;
    padding-top: 50px;
  }

  .toc {
    position: static;
    margin-bottom: 52px;
  }

  .data-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    padding: 26px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
