:root {
  color-scheme: dark;
  --bg: #0d0b08;
  --surface: #17130e;
  --surface-raised: #201a12;
  --text: #f5f0e8;
  --muted: #b9ae9d;
  --quiet: #8f8576;
  --gold: #f0bd57;
  --gold-bright: #ffd983;
  --line: rgba(240, 189, 87, 0.2);
  --max: 780px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font: 16px/1.7 ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -8rem, rgba(240, 189, 87, 0.15), transparent 34rem),
    var(--bg);
}

a {
  color: var(--gold-bright);
  text-underline-offset: 3px;
}

a:hover {
  color: #ffebbd;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  transform: translateY(-180%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gold);
  color: #241807;
  font-weight: 800;
}

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

.shell {
  width: min(calc(100% - 32px), var(--max));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  padding: 24px 0 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

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

.nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

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

main {
  flex: 1;
  padding: 56px 0 72px;
}

.page-head {
  margin-bottom: 44px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  max-width: 730px;
  margin: 0 0 20px;
  font-size: clamp(38px, 9vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 13px;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

h3 {
  margin: 26px 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

p {
  margin: 0 0 16px;
}

.lede {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(18px, 4vw, 22px);
  line-height: 1.55;
}

.meta {
  margin-top: 18px;
  color: var(--quiet);
  font-size: 14px;
}

.panel {
  margin-bottom: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.panel p,
.panel li {
  color: var(--muted);
}

.panel strong {
  color: var(--text);
}

ul {
  margin: 0;
  padding-left: 22px;
}

li + li {
  margin-top: 8px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  margin-top: 10px;
  padding: 10px 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--gold);
  color: #241807;
  font-weight: 850;
  text-decoration: none;
}

.button:hover {
  background: var(--gold-bright);
  color: #241807;
}

details {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

details:first-of-type {
  border-top: 0;
}

summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

details p {
  margin: 10px 0 0;
}

.footer {
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 20px;
}

.footer p {
  margin: 0;
}

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

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
  }

  .nav {
    gap: 8px 12px;
  }

  main {
    padding-top: 40px;
  }

  .panel {
    padding: 20px;
  }

  h1 {
    font-size: 42px;
  }
}

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

@media print {
  :root {
    color-scheme: light;
  }

  body {
    color: #111;
    background: #fff;
  }

  .topbar,
  .button,
  .footer-links,
  .skip-link {
    display: none;
  }

  .panel {
    break-inside: avoid;
    border-color: #ccc;
    background: transparent;
  }

  .panel p,
  .panel li,
  .lede,
  .meta,
  .footer {
    color: #333;
  }
}
