:root {
  color-scheme: dark;
  --ink: #f3eee4;
  --muted: #b9b0a2;
  --gold: #d2b977;
  --gold-2: #8d7440;
  --panel: rgba(24, 24, 30, 0.88);
  --line: rgba(210, 185, 119, 0.24);
  --danger: #d98378;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% -10%, rgba(81, 62, 124, .28), transparent 36rem),
    radial-gradient(circle at -10% 45%, rgba(115, 80, 34, .17), transparent 34rem),
    #08080c;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ead497; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 12, .86);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: .08em;
  white-space: nowrap;
}
.brand span { color: var(--gold); }

nav { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: flex-end; }
nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
nav a[aria-current="page"], nav a:hover { color: var(--ink); }

main { width: min(940px, calc(100% - 2rem)); margin: 0 auto; }
.hero { padding: clamp(4.5rem, 11vw, 8rem) 0 3.5rem; }
.eyebrow { color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: .76rem; font-weight: 700; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.15; }
h1 { margin: .6rem 0 1rem; font-size: clamp(2.8rem, 8vw, 5.8rem); max-width: 12ch; }
h2 { margin-top: 2.6rem; font-size: clamp(1.65rem, 4vw, 2.35rem); }
h3 { margin-top: 1.8rem; font-size: 1.28rem; }
.lead { max-width: 62ch; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }

.rings { display: flex; gap: .7rem; margin: 2rem 0 0; }
.ring { width: clamp(38px, 8vw, 58px); aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--gold-2); box-shadow: inset 0 0 0 7px #111118; }
.ring:nth-child(2) { border-color: #4f87a8; }
.ring:nth-child(3) { border-color: #a45d37; }
.ring:nth-child(4) { border-color: #a9b4b8; }
.ring:nth-child(5) { border-color: #7762a4; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 5rem; }
.card {
  display: block;
  min-height: 190px;
  padding: 1.4rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(32, 31, 39, .92), rgba(17, 17, 23, .92));
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(210, 185, 119, .58); }
.card p { color: var(--muted); margin-bottom: 0; }
.arrow { display: inline-block; margin-top: 1rem; color: var(--gold); }

.document { padding: 3.5rem 0 6rem; }
.document h1 { font-size: clamp(2.3rem, 7vw, 4.3rem); max-width: 17ch; }
.document section, .callout {
  padding: .2rem 1.5rem 1.4rem;
  margin: 1.2rem 0;
  border-left: 2px solid var(--line);
}
.document p, .document li { color: #d4cec4; }
.document strong { color: var(--ink); }
.updated { color: var(--muted); font-size: .9rem; }
.callout {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.callout.danger { border-color: rgba(217, 131, 120, .42); }
.button {
  display: inline-block;
  margin: .6rem .5rem .3rem 0;
  padding: .8rem 1.1rem;
  border-radius: 999px;
  background: var(--gold);
  color: #111015;
  font-weight: 750;
  text-decoration: none;
}
.button.secondary { background: transparent; color: var(--gold); border: 1px solid var(--gold-2); }

footer {
  border-top: 1px solid var(--line);
  padding: 2rem max(1rem, calc((100vw - 940px) / 2));
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .65rem; }
  nav { justify-content: flex-start; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
