:root {
  color-scheme: dark;
  --ink: #eef6f7;
  --muted: #a9bdc1;
  --cave: #0d1b20;
  --cave-raised: #14282e;
  --edge: #2a464d;
  --gold: #e2a94d;
  --gold-pale: #f1d28b;
  --moss: #70b85b;
  --violet: #8e69c4;
  --max-width: 760px;
  font-family: Inter, ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(112, 184, 91, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 184, 91, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% -10%, #23434b 0, var(--cave) 46%);
  background-size: 48px 48px, 48px 48px, auto;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--gold-pale);
  text-underline-offset: 0.2em;
}

a:hover { color: #fff0c6; }

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

.site-header {
  border-bottom: 1px solid var(--edge);
  background: rgba(13, 27, 32, 0.92);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

nav a[aria-current="page"] { color: var(--gold-pale); }

main { padding-block: 64px 80px; }

.hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  margin-bottom: 46px;
}

.hero img {
  width: clamp(88px, 18vw, 132px);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--moss);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  color: var(--gold-pale);
  font-size: clamp(2.15rem, 7vw, 4rem);
  letter-spacing: -0.045em;
}

.intro {
  max-width: 58ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-heading {
  margin-bottom: 42px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--edge);
}

.page-heading h1 { font-size: clamp(2.1rem, 7vw, 3.5rem); }

.updated {
  margin: 12px 0 0;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card,
.policy-section {
  border: 1px solid var(--edge);
  background: rgba(20, 40, 46, 0.9);
  border-radius: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 214px;
  padding: 24px;
  text-decoration: none;
}

.card:hover {
  border-color: #4c6b72;
  transform: translateY(-2px);
}

.card h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
}

.card p {
  margin: 12px 0 24px;
  color: var(--muted);
}

.card span {
  margin-top: auto;
  color: var(--gold-pale);
  font-weight: 800;
}

.policy-section {
  margin-block: 16px;
  padding: clamp(22px, 5vw, 34px);
}

.policy-section h2 {
  margin: 0 0 12px;
  color: var(--gold-pale);
  font-size: 1.35rem;
}

.policy-section h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
}

.policy-section p,
.policy-section ul {
  margin-top: 0;
  color: #d4e0e2;
}

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

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

.callout { border-left: 4px solid var(--violet); }

.button-link {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--gold);
  color: #172329;
  font-weight: 850;
  text-decoration: none;
}

.button-link:hover {
  color: #172329;
  background: #efbd68;
}

footer {
  border-top: 1px solid var(--edge);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 24px 36px;
  font-size: 0.9rem;
}

.footer-inner p { margin: 0; }

@media (max-width: 680px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 16px;
  }

  nav { justify-content: flex-start; }
  main { padding-block: 42px 60px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform 160ms ease, border-color 160ms ease; }
}
