:root {
  --cream-50: #fdfbf5;
  --cream: #f8f4e3;
  --cream-200: #f0e6c8;
  --gold: #d4af37;
  --gold-soft: #e8c547;
  --gold-dark: #b8941f;
  --ink: #1a1a2e;
  --body: #2d3748;
  --muted: #5a6577;
  --surface: #fffdf8;
  --red: #c75b5b;
  --green: #3d6b45;
  --shadow: 0 10px 30px rgba(26, 26, 46, 0.08);
  --radius: 16px;
  --max: 1080px;
  --text: 41rem;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--body);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(232, 197, 71, 0.22), transparent 55%),
    radial-gradient(700px 360px at 110% 8%, rgba(212, 175, 55, 0.14), transparent 50%),
    var(--cream);
  font-family: "Figtree", "Segoe UI", sans-serif;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

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

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

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(248, 244, 227, 0.86);
  border-bottom: 1px solid rgba(184, 148, 31, 0.18);
}

.site-header .wrap,
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header .wrap { height: 72px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand img { height: 36px; width: auto; }

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-word {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-style: italic;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--gold-dark);
  line-height: 1;
}

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

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

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

.hero {
  padding: 72px 0 40px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3 {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.08;
}

.lede {
  max-width: 38rem;
  margin: 0 0 28px;
  font-size: 1.15rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  color: var(--cream-50);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: #11111d; color: var(--gold-soft); }

.btn-ghost {
  color: var(--ink);
  border: 1.5px solid rgba(26, 26, 46, 0.18);
  background: rgba(255, 253, 248, 0.7);
}

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

.card, .legal {
  background: var(--surface);
  border: 1px solid rgba(184, 148, 31, 0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card { padding: 22px; }

.step {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 50%;
  color: var(--ink);
  background: linear-gradient(145deg, var(--gold-soft), var(--gold));
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

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

.legal-page { padding: 40px 0 80px; }

.legal {
  width: min(var(--text), 100%);
  padding: 36px 32px 48px;
}

.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }

.legal h2 {
  margin: 32px 0 10px;
  font-size: 1.35rem;
}

.legal p, .legal li { font-size: 1.02rem; line-height: 1.7; }

.legal ul { padding-left: 1.15rem; }

.legal .toc {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  columns: 2;
  gap: 8px 24px;
}

.legal .toc a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 20px;
  font-size: 0.95rem;
}

.legal th, .legal td {
  border: 1px solid rgba(184, 148, 31, 0.22);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal th { background: rgba(212, 175, 55, 0.14); color: var(--ink); }

.legal h2 { scroll-margin-top: 88px; }

@media (max-width: 700px) {
  .legal .toc { columns: 1; }
}

.updated, .fine {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  padding: 28px 0 36px;
  color: var(--cream);
  background: var(--ink);
}

.site-footer a { color: var(--gold-soft); text-decoration: none; }

.site-footer small { color: rgba(245, 245, 220, 0.68); }

.plate {
  width: min(220px, 42vw);
  aspect-ratio: 1;
  margin: 28px 0 0 auto;
  border-radius: 50%;
  border: 14px solid rgba(212, 175, 55, 0.28);
  background:
    radial-gradient(circle at 50% 50%, #fffdf8 0 42%, transparent 43%),
    repeating-conic-gradient(from 0deg, rgba(212, 175, 55, 0.18) 0 8deg, transparent 8deg 16deg);
  box-shadow: inset 0 0 0 8px #fffdf8, 0 16px 40px rgba(26, 26, 46, 0.12);
}

.hero-split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 800px) {
  .grid, .hero-split { grid-template-columns: 1fr; }
  .plate { margin: 8px auto 0; }
  .site-header .wrap { height: auto; padding: 12px 0; flex-direction: column; align-items: flex-start; }
  nav { justify-content: flex-start; }
}

@media (prefers-color-scheme: dark) {
  body {
    color: #ece7d4;
    background:
      radial-gradient(800px 380px at 0% 0%, rgba(232, 197, 71, 0.12), transparent 50%),
      #1e1e24;
  }
  .site-header { background: rgba(30, 30, 36, 0.88); border-bottom-color: rgba(232, 197, 71, 0.16); }
  h1, h2, h3, nav a[aria-current="page"], nav a:hover { color: #f5f5dc; }
  nav a, .lede, .card p, .updated, .fine { color: #c7c9d1; }
  .brand-word { color: var(--gold-soft); }
  .card, .legal, .btn-ghost {
    background: #252530;
    border-color: rgba(232, 197, 71, 0.18);
    color: #ece7d4;
  }
  .legal th { background: rgba(232, 197, 71, 0.12); color: #f5f5dc; }
  .legal th, .legal td { border-color: rgba(232, 197, 71, 0.2); }
  .btn-ghost { color: #f5f5dc; }
  a { color: var(--gold-soft); }
}
