:root {
  --bg: #070b14;
  --bg-soft: #0e1524;
  --surface: rgba(18, 28, 48, 0.72);
  --surface-solid: #121c30;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e8edf5;
  --text-soft: #94a3b8;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --coral: #fb7185;
  --glow: 0 0 80px rgba(34, 211, 238, 0.15);
  --radius: 20px;
  --radius-sm: 12px;
  --shell: min(1200px, calc(100% - 2rem));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: rgba(34, 211, 238, 0.35);
  color: #fff;
}

.site-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(34, 211, 238, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 95% 20%, rgba(251, 113, 133, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(251, 191, 36, 0.06), transparent 45%),
    var(--bg);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h60M30 0v60' stroke='%23fff' stroke-width='0.5'/%3E%3C/svg%3E");
}

.shell { width: var(--shell); margin-inline: auto; position: relative; z-index: 1; }

/* legacy alias */
.wrap { width: var(--shell); margin-inline: auto; position: relative; z-index: 1; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 0;
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

.logo__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--cyan), #6366f1);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #070b14;
  box-shadow: var(--glow);
}

.logo__text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.logo__sub {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 0.2rem;
}

.header-cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}

.header-cta:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.menu-btn {
  display: none;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  align-items: center;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-group__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-right: 0.25rem;
}

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a.is-active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
}

/* hide old masthead if still present */
.masthead { display: none !important; }
.blaze, .grain, .contours { display: none !important; }

/* ── TYPOGRAPHY ── */
.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

h1, h2, h3, .cover-title, .display {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #fff;
}

.cover-title {
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
}

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-soft);
  line-height: 1.55;
  font-weight: 400;
}

.drop::first-letter {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  float: left;
  font-size: 3.8rem;
  line-height: 0.78;
  padding: 0.15rem 0.5rem 0 0;
  color: var(--cyan);
}

.pull {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.25;
  color: #fff;
  border-left: 3px solid var(--gold);
  padding: 0.5rem 0 0.5rem 1.1rem;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), transparent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.link-stripe {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.4);
  transition: border-color 0.2s;
}

.link-stripe:hover { border-bottom-color: var(--cyan); }

.issue-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  color: var(--cyan);
}

/* ── IMAGES ── */
.plate {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), var(--glow);
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

.plate figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: var(--surface-solid);
  font-size: 0.72rem;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
}

/* ── CALLOUTS ── */
.note {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--text-soft);
}

.note strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

/* ── TOC ── */
.toc-item {
  display: grid;
  grid-template-columns: 2.8rem 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 1rem 1.1rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, transform 0.2s;
}

.toc-item:hover {
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateX(4px);
}

.toc-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan);
}

.toc-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
}

/* ── SECTION BANDS ── */
.band-dark {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  padding: 3.5rem 0;
}

.band-glow {
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.06) 0%, transparent 100%);
}

/* ── LEGAL ── */
.legal {
  font-size: 0.98rem;
  max-width: 72ch;
}

.legal h2 {
  font-size: 1.5rem;
  margin: 2rem 0 0.65rem;
  color: #fff;
}

.legal p, .legal li { color: var(--text-soft); }

/* ── FORM ── */
.form input, .form textarea {
  width: 100%;
  background: rgba(7, 11, 20, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
}

.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--cyan);
}

.form label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0.9rem 0 0.35rem;
}

.btn {
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, var(--cyan), #6366f1);
  color: #070b14;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── FOOTER ── */
.site-footer, .colophon {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  padding: 3rem 0 2.5rem;
  background: #050810;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
}

.site-footer a, .colophon a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover, .colophon a:hover { color: var(--cyan); }

.footer-brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
}

.footer-tag {
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-top: 0.25rem;
}

.footer-muted {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  opacity: 0.7;
}

/* ── COOKIE ── */
#cookie-zettel {
  position: fixed;
  z-index: 90;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.25rem;
  width: min(540px, calc(100% - 2rem));
  background: var(--surface-solid);
  backdrop-filter: blur(20px);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow);
  padding: 1.25rem 1.35rem;
}

#cookie-zettel[hidden] { display: none !important; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

/* ── HERO BLOCK ── */
.hero-split {
  display: grid;
  gap: 2rem;
  align-items: end;
  padding: 2.5rem 0 1.5rem;
}

@media (min-width: 768px) {
  .hero-split { grid-template-columns: 1.2fr 0.8fr; }
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.stat-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.stat-chip span { color: var(--cyan); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .menu-btn { display: inline-block; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .nav-group { flex-direction: column; align-items: flex-start; }
  .header-cta { display: none; }
}

/* tailwind utility overrides for dark theme */
.text-ink-soft { color: var(--text-soft) !important; }
.bg-\[\#e4d4b8\] { background: var(--bg-soft) !important; border-block: 1px solid var(--line); }

main { position: relative; z-index: 1; }

article p { color: var(--text-soft); }
article strong { color: var(--text); }
