:root {
  color-scheme: dark;
  --night: #1a0b2e;
  --night-soft: #2e0c3a;
  --panel: #291b3b;
  --gold: #e7bb41;
  --ivory: #f5f0e8;
  --muted: #c4b9ce;
  --line: rgba(231, 187, 65, .26);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ivory);
  background: radial-gradient(circle at 82% 0%, #3b1a5b 0%, transparent 34rem),
    linear-gradient(155deg, var(--night), var(--night-soft));
  min-height: 100vh;
}
a { color: var(--gold); text-underline-offset: .18em; }
a:hover { color: #ffe08a; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; padding: .5rem; background: var(--night); z-index: 10; }
.skip-link:focus { top: 1rem; }
.draft-banner { padding: .65rem 1.25rem; text-align: center; background: #5a2a21; color: #fff4ec; font-size: .9rem; }
.shell { max-width: 1100px; margin: auto; padding: 0 clamp(1.2rem, 5vw, 3rem); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.brand { color: var(--ivory); text-decoration: none; display: inline-flex; align-items: center; gap: .8rem; }
.brand-mark { display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 1.25rem; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; letter-spacing: .01em; }
.nav { display: flex; flex-wrap: wrap; gap: .5rem 1.15rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.nav a[aria-current="page"] { color: var(--gold); }
.hero { padding: clamp(3rem, 9vw, 6rem) 0 2.5rem; max-width: 780px; }
.eyebrow { color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.16; }
h1 { font-size: clamp(2.7rem, 7vw, 4.4rem); margin: .55rem 0 1.1rem; }
h2 { font-size: 1.65rem; margin: 0 0 .65rem; }
.lead { color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.18rem); max-width: 66ch; }
.meta { color: var(--muted); font-size: .88rem; margin-top: 1.5rem; }
.main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; gap: 2.5rem; padding-bottom: 5rem; }
.content { min-width: 0; }
.card { background: rgba(41, 27, 59, .86); border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.3rem, 3vw, 2rem); margin-bottom: 1.2rem; }
.card p { margin: .55rem 0 0; }
.card ul { margin: .6rem 0 0; padding-left: 1.3rem; }
.card li + li { margin-top: .45rem; }
.note { border-left: 3px solid var(--gold); padding-left: 1rem; color: var(--muted); }
.aside { align-self: start; position: sticky; top: 1.5rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.aside strong { display: block; font-size: .82rem; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; margin-bottom: .8rem; }
.aside a { display: block; color: var(--muted); text-decoration: none; margin-bottom: .7rem; font-size: .92rem; }
.site-footer { border-top: 1px solid var(--line); padding: 2.1rem 0 3rem; color: var(--muted); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--muted); }
@media (max-width: 740px) {
  .header-inner { align-items: flex-start; flex-direction: column; }
  .main-grid { display: block; }
  .aside { position: static; margin-top: 1rem; margin-bottom: 2rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
