/* Violet Glitch: shared site styles */
/* Self-hosted fonts (SIL OFL, see fonts/LICENSE.md). No requests to Google. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/cormorant-garamond.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/cormorant-garamond-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/inter.woff2") format("woff2"); }
:root {
  --ink: #0c0911;
  --ink-2: #15101d;
  --ink-3: #1e1729;
  --line: rgba(214, 190, 255, .16);
  --lilac: #d2b8ff;
  --lilac-deep: #a67cf5;
  --pink: #f3a9d6;
  --mint: #8ee6cc;
  --gold: #e2c27c;
  --paper: #f1e9dc;
  --text: #ece6f5;
  --muted: #b0a6c2;
  --serif: "Cormorant Garamond", Baskerville, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: min(100% - 48px, 1160px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* faint scanlines over everything — the "glitch" lives in the texture, not in noise */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
  z-index: 50;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.label {
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(38px, 5.4vw, 68px); }
h3 { font-size: 32px; }
p { margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lilac); color: var(--ink); border-color: var(--lilac); }
.btn-primary:hover { background: #e4d3ff; }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { border-color: var(--lilac); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(12, 9, 17, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 38px; height: 38px; }
.brand span { font: 400 22px/1 var(--serif); letter-spacing: .06em; }
.top nav { display: flex; gap: 28px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }
@media (max-width: 860px) { .top nav { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(166, 124, 245, .22), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(32px, 6vw, 80px); }
.hero h1 { font-size: clamp(54px, 8.6vw, 118px); line-height: .95; margin: 0 0 28px; }
.hero h1 .kicker { display: block; margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--lilac); }
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
}
.glitch::before { color: var(--mint); animation: split 7s infinite steps(1); }
.glitch::after  { color: var(--pink); animation: split 7s infinite steps(1) reverse; }
@keyframes split {
  0%, 93%, 100% { opacity: 0; transform: none; clip-path: inset(0); }
  94% { opacity: .8; transform: translate(-3px, 1px); clip-path: inset(10% 0 55% 0); }
  96% { opacity: .8; transform: translate(3px, -1px); clip-path: inset(60% 0 8% 0); }
  98% { opacity: .6; transform: translate(-2px, 0); clip-path: inset(30% 0 40% 0); }
}
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34em; }
.hero .lede strong { color: var(--text); font-weight: 500; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .signal {
  margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px 22px;
  font: 400 13px/1 var(--mono); color: var(--muted); letter-spacing: .06em;
}
.hero .signal span::before { content: "◇ "; color: var(--lilac-deep); }
.seal { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 1; }
.seal img { width: 100%; height: 100%; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .seal { order: -1; width: min(62vw, 280px); justify-self: start; }
}

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; }
.ticker div {
  display: flex; gap: 48px; width: max-content; padding: 16px 0;
  font: 400 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  animation: slide 40s linear infinite;
}
.ticker b { color: var(--lilac); font-weight: 400; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- manifesto ---------- */
.manifesto { padding: clamp(80px, 11vw, 150px) 0; }
.manifesto h2 {
  margin: 22px 0 0; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.12;
  max-width: 22ch;
}
.manifesto h2 em { color: var(--pink); }
.manifesto .nots { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 48px; font: 400 15px/1 var(--mono); color: var(--muted); }
.manifesto .nots s { text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.manifesto .body { margin-top: 40px; max-width: 40em; color: var(--muted); font-size: 18px; }

/* ---------- formats ---------- */
.formats { padding: clamp(72px, 9vw, 120px) 0; background: var(--ink-2); border-block: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 52px; }
.head h2 { margin-top: 14px; }
.head p { max-width: 26em; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px 28px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(210, 184, 255, .5); transform: translateY(-4px); }
.card .num { font: 400 13px/1 var(--mono); color: var(--muted); letter-spacing: .12em; display: flex; justify-content: space-between; }
.card .num b { color: var(--mint); font-weight: 400; }
.card h3 { margin: 40px 0 14px; }
.card p { color: var(--muted); font-size: 16px; }
.card .for { margin-top: auto; padding-top: 28px; font: 400 13px/1.5 var(--mono); color: var(--lilac); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- how / oracle ---------- */
.how { padding: clamp(80px, 10vw, 140px) 0; }
.how .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.how h2 { margin: 14px 0 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.steps .n { font: 400 30px/1 var(--serif); color: var(--lilac); font-style: italic; }
.steps h3 { font-size: 26px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 16px; }

.oracle {
  position: sticky; top: 100px;
  padding: 36px 32px 32px;
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(166, 124, 245, .18), transparent 60%),
    var(--ink-2);
  border: 1px solid var(--line);
  text-align: center;
}
.oracle .label { color: var(--mint); }
.oracle h3 { font-size: 34px; margin: 14px 0 10px; }
.oracle > p { color: var(--muted); font-size: 15px; max-width: 30em; margin-inline: auto; }
.envelope {
  margin: 30px auto 0; width: 100%; max-width: 380px;
  min-height: 210px; padding: 26px 24px;
  background: var(--paper); color: #2a1f33;
  border-radius: 10px;
  display: grid; place-items: center;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  position: relative;
}
.envelope .seal-dot {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b88cf0, #6a3fb0);
  display: grid; place-items: center; color: var(--paper); font-size: 20px;
  box-shadow: inset 0 -3px 6px rgba(0,0,0,.3);
}
.envelope .sealed p { font: italic 400 22px/1.3 var(--serif); margin-top: 14px; }
.envelope .reveal { display: none; text-align: left; width: 100%; }
.envelope.open .sealed { display: none; }
.envelope.open .reveal { display: block; animation: fade .5s ease; }
.reveal .k { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #7a5aa8; }
.reveal .name { font: 400 30px/1.1 var(--serif); margin: 6px 0 18px; }
.reveal .mission { font: 400 17px/1.45 var(--serif); margin-top: 6px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.oracle .btn { margin-top: 22px; }
.oracle small { display: block; margin-top: 16px; color: var(--muted); font: 400 12px/1.5 var(--mono); }
@media (max-width: 900px) { .how .wrap { grid-template-columns: 1fr; } .oracle { position: static; } }

/* ---------- venues ---------- */
.venues { padding: clamp(72px, 9vw, 120px) 0; background: var(--paper); color: #241b2c; }
.venues .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.venues .label { color: #7a5aa8; }
.venues h2 { margin: 14px 0 22px; }
.venues p { color: #4b3f56; max-width: 32em; }
.deal { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(36,27,44,.2); }
.deal li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(36,27,44,.2); }
.deal b { font: 500 12px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #7a5aa8; }
.deal span { font: 400 22px/1.3 var(--serif); }
.venues .btn { margin-top: 30px; background: #241b2c; color: var(--paper); border-color: #241b2c; }
@media (max-width: 860px) { .venues .wrap { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { padding: clamp(80px, 10vw, 130px) 0 0; }
.faq h2 { margin: 14px 0 48px; }
.qa { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.qa > div { padding: 26px 0; border-top: 1px solid var(--line); }
.qa h3 { font-size: 26px; margin-bottom: 10px; }
.qa p { color: var(--muted); font-size: 16px; max-width: 36em; }
.qa a { color: var(--lilac); }
@media (max-width: 860px) { .qa { grid-template-columns: 1fr; } }

/* ---------- signup ---------- */
.signup { padding: clamp(90px, 12vw, 160px) 0; text-align: center; position: relative; overflow: hidden; }
.signup::before {
  content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 900px; height: 900px; max-width: 160vw;
  background: radial-gradient(closest-side, rgba(243, 169, 214, .12), transparent 70%);
  pointer-events: none;
}
.signup .wrap { position: relative; }
.signup h2 { margin: 16px auto 18px; max-width: 14ch; }
.signup p { color: var(--muted); max-width: 30em; margin-inline: auto; }
.signup form { display: flex; gap: 10px; max-width: 480px; margin: 36px auto 0; }
.signup label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.signup input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 22px;
  background: var(--ink-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  font: 400 16px var(--sans);
}
.signup input::placeholder { color: #7f7590; }
.signup .btn { min-height: 52px; }
.signup .note { margin-top: 16px; font: 400 12px/1.5 var(--mono); color: #7f7590; }
.signup .ok { margin-top: 18px; color: var(--mint); min-height: 1.5em; }
@media (max-width: 520px) { .signup form { flex-direction: column; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--ink-2); }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.foot .brand { margin-bottom: 18px; }
.foot p, .foot a { color: var(--muted); font-size: 15px; }
.foot .tag { font: italic 400 22px/1.2 var(--serif); color: var(--text); margin-bottom: 12px; }
.family { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 18px; }
.family a { text-decoration: none; display: block; }
.family a:hover .n { color: var(--lilac); }
.family .n { font: 400 22px/1.2 var(--serif); color: var(--text); }
.family .m { font-size: 14px; color: var(--muted); }
.legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font: 400 12px/1.5 var(--mono); color: #7f7590; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- signup extras ---------- */
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .note { max-width: 36em; margin-inline: auto; }
.signup .note a { color: var(--muted); }
.signup button:disabled { opacity: .6; cursor: wait; }
.legal a { color: inherit; }

/* ---------- legal page ---------- */
.legal-page { padding: clamp(56px, 8vw, 100px) 0 clamp(72px, 9vw, 120px); }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: clamp(48px, 7vw, 80px); margin: 14px 0 12px; }
.legal-page .updated { font: 400 13px/1.5 var(--mono); color: var(--muted); }
.legal-page .intro { margin-top: 32px; font-size: 19px; }
.legal-page section { padding-top: 48px; }
.legal-page h2 { font-size: clamp(30px, 3.6vw, 40px); margin-bottom: 18px; }
.legal-page h3 { font-size: 24px; margin: 28px 0 12px; color: var(--lilac); }
.legal-page p, .legal-page li, .legal-page dd, .legal-page address { color: var(--muted); }
.legal-page p + p { margin-top: 14px; }
.legal-page strong { color: var(--text); font-weight: 500; }
.legal-page a:not(.btn) { color: var(--lilac); }
.legal-page ul, .legal-page ol { padding-left: 1.2em; display: grid; gap: 8px; margin: 14px 0; }
.legal-page address { font-style: normal; margin-top: 14px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.toc { margin-top: 40px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--ink-2); }
.toc h2 { font-size: 24px; margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: 150px 1fr; gap: 10px 20px; margin: 0; }
.facts dt { font: 500 12px/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.facts dd { margin: 0; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; align-items: center; }
.notfound .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- family ---------- */
.family-section { padding: clamp(80px, 10vw, 130px) 0 0; }
.family-section .card a.for { text-decoration: none; }
.family-section .card a.for::after { content: " ↗"; }
.family-section .card a.for:hover { text-decoration: underline; }
