:root {
  --bg: #120c22;
  --card: rgba(28, 16, 48, 0.92);
  --card-edge: rgba(243, 211, 107, 0.38);
  --gold: #f6d56a;
  --ink: #f8f1e6;
  --muted: #d2c4e4;
  --purple: #a43ad4;
  --purple-deep: #6d228f;
  --line: rgba(210, 196, 228, 0.2);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --sidebar: 280px;
  --font: "Segoe UI", "Trebuchet MS", sans-serif;
  --display: "Arial Black", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  background:
    radial-gradient(820px 420px at 80% -8%, rgba(232, 140, 42, 0.28), transparent 58%),
    radial-gradient(720px 460px at 0% 12%, rgba(164, 58, 212, 0.32), transparent 60%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 220, 140, 0.16) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  opacity: 0.35;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: #2a1604;
  padding: 8px 12px;
  z-index: 5;
}

.skip:focus { top: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(18, 12, 34, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand strong {
  display: block;
  font-family: var(--display);
  letter-spacing: 0.08em;
  color: var(--gold);
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.spoon {
  width: 18px;
  height: 36px;
  margin: 0 8px;
  border-radius: 12px 12px 4px 4px;
  background:
    radial-gradient(circle at 50% 10px, #f7fbff 0 9px, transparent 10px),
    linear-gradient(#d5dee8, #d5dee8) center 16px / 4px 18px no-repeat;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}

.tagline {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.menu-btn {
  display: none;
  margin-left: auto;
  border: 1px solid var(--card-edge);
  background: transparent;
  color: var(--gold);
  border-radius: 999px;
  padding: 8px 14px;
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 760px);
  gap: 36px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 80px;
}

.sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  padding: 18px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  box-shadow: var(--shadow);
}

.finder label {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.finder input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.finder input:focus {
  outline: 2px solid var(--purple);
  border-color: transparent;
}

#toc-list {
  list-style: none;
  margin: 16px 0;
  padding: 0;
}

#toc-list a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
}

#toc-list a.active,
#toc-list a:hover {
  color: #fff8ee;
  background: linear-gradient(180deg, #c45ae8, var(--purple-deep));
}

.side-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero,
main section {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 24px;
  padding: 28px 32px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}

.hero { position: relative; overflow: hidden; }

.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -50px;
  top: -70px;
  background: radial-gradient(circle, rgba(232, 150, 48, 0.35), transparent 68%);
}

.kicker {
  margin: 0 0 6px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow: 0 3px 0 #6a3a08, 3px 0 0 rgba(80, 180, 220, 0.35);
}

.lede {
  position: relative;
  max-width: 64ch;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
}

.facts span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 12px;
  font-size: 28px;
  color: var(--gold);
}

h3 {
  margin: 18px 0 8px;
  color: #ffe7bf;
}

p, li { line-height: 1.6; }

ul { padding-left: 18px; }

a { color: var(--gold); }

main section.is-hidden { display: none; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#copy-email,
.to-top {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #d15cf0, var(--purple-deep));
  color: #fff8ee;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  cursor: pointer;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  box-shadow: var(--shadow);
}

.colophon {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.colophon p { margin: 6px 0; }

.empty {
  display: none;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--gold);
}

.empty.show { display: block; }

@media (max-width: 860px) {
  .tagline { display: none; }

  .menu-btn { display: inline-block; }

  .layout {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 760px);
  }

  .sidebar {
    position: static;
    display: none;
  }

  .sidebar.open { display: block; }

  .facts { grid-template-columns: 1fr 1fr; }

  .hero, main section { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
