/* Lorelei — shared styles for the landing page and legal pages */

:root {
  --bg: oklch(0.12 0.008 60);
  --bg-raised: oklch(0.15 0.01 60);
  --bg-feature: oklch(0.17 0.012 70);
  --rule: oklch(0.24 0.01 60);

  --ivory: oklch(0.94 0.012 80);
  --text-soft: oklch(0.82 0.012 80);
  --text-body: oklch(0.78 0.012 80);
  --text-dim: oklch(0.74 0.015 70);
  --muted: oklch(0.65 0.015 70);
  --muted-2: oklch(0.6 0.015 70);

  --gold: oklch(0.86 0.06 80);
  --gold-label: oklch(0.8 0.07 80);
  --gold-hover: oklch(0.88 0.06 80);
  --gold-line: oklch(0.8 0.07 80 / 0.35);
  --gold-line-soft: oklch(0.8 0.07 80 / 0.2);
  --gold-border: oklch(0.8 0.07 80 / 0.6);
  --on-gold: oklch(0.14 0.01 60);

  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", system-ui, sans-serif;

  --pad-x: clamp(20px, 6vw, 88px);
  --pad-y: clamp(80px, 12vw, 180px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--gold-label); text-decoration: none; }
a:hover { color: var(--gold-hover); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-wrap: balance; }
em { font-style: italic; color: var(--gold); }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--on-gold);
}
.skip:focus { left: 16px; }

/* Shared pieces */

.label {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-label);
}

.btn {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 18px 32px;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-gold { background: var(--gold); color: var(--on-gold); font-weight: 500; }
.btn-gold:hover { background: var(--gold-hover); color: var(--on-gold); }
.btn-line { border: 1px solid var(--gold-border); color: var(--ivory); }
.btn-line:hover { border-color: var(--gold); color: var(--ivory); }

.photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

/* Header */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 32px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.site-nav a { color: oklch(0.86 0.012 80); }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--gold); }

.wordmark {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 0.32em;
  padding-left: 0.32em;
  text-transform: uppercase;
  color: var(--ivory);
}
.wordmark:hover { color: var(--ivory); }

.header-cta { display: flex; justify-content: flex-end; }
.header-cta a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--gold-border);
  color: var(--ivory);
}
.header-cta a:hover { border-color: var(--gold); color: var(--ivory); }

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px var(--pad-x) 120px;
}
.hero .photo { filter: grayscale(0.5) contrast(1.05); }
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, oklch(0.12 0.008 60 / 0.55), oklch(0.12 0.008 60 / 0.92) 75%),
    linear-gradient(oklch(0.12 0.008 60 / 0) 70%, var(--bg));
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  max-width: 980px;
}
.ruled {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ruled::before,
.ruled::after {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
}
.hero h1 {
  font-size: clamp(54px, 9vw, 138px);
  line-height: 0.95;
  letter-spacing: -0.015em;
}
.hero-lede {
  max-width: 520px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.8;
  color: var(--text-soft);
  text-wrap: pretty;
}
.hero .btn { margin-top: 6px; padding: 20px 40px; letter-spacing: 0.28em; }
.hero-foot {
  position: absolute;
  bottom: 40px;
  left: var(--pad-x);
  right: var(--pad-x);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Sections */

.section { padding: var(--pad-y) var(--pad-x); }
.section-ruled { border-top: 1px solid var(--rule); }
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.section h2 { font-size: clamp(40px, 5.5vw, 80px); line-height: 1; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
}

/* I · Excerpt */

.excerpt { display: flex; flex-direction: column; gap: 30px; max-width: 560px; }
.excerpt-line {
  font-family: var(--display);
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.5;
  color: oklch(0.92 0.012 80);
}
.excerpt-aside {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.5;
  color: var(--text-dim);
}
.excerpt-source {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.choices {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  width: 100%;
  justify-self: center;
  border-top: 1px solid var(--gold-line);
}
.choice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 26px 4px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--gold-line);
  color: var(--ivory);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.choice:hover,
.choice[aria-pressed="true"] { color: var(--gold); }
.choice-text { display: flex; gap: 18px; align-items: baseline; }
.numeral {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--gold-label);
}
.choice-label { font-size: 18px; line-height: 1.45; }
.tag {
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 6px 10px;
  border: 1px solid var(--gold-border);
  color: var(--gold);
}
.choice-result {
  min-height: 40px;
  padding-top: 22px;
  font-family: var(--display);
  font-style: italic;
  font-size: 19px;
  color: var(--gold);
}

/* II · The craft */

.craft { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 100px); }
.craft h2 { max-width: 900px; }
.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(32px, 4vw, 56px);
}
.craft-item { display: flex; flex-direction: column; gap: 24px; }
.craft-item:nth-child(2) { padding-top: clamp(0px, 6vw, 80px); }
.craft-photo {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
  filter: grayscale(0.35);
}
.craft-item:nth-child(3) .craft-photo { filter: grayscale(0.2); }
.craft-copy { display: flex; flex-direction: column; gap: 12px; }
.craft-copy .numeral { font-size: 16px; }
.craft-title { font-family: var(--display); font-size: 30px; }
.craft-text { font-size: 16px; line-height: 1.75; color: oklch(0.76 0.012 80); }

/* III · Correspondence */

.correspondence { background: var(--bg-raised); }
.corr-intro { display: flex; flex-direction: column; gap: 26px; max-width: 520px; }
.correspondence h2 { font-size: clamp(40px, 5vw, 72px); }
.body-copy { font-size: 17px; line-height: 1.8; color: var(--text-body); text-wrap: pretty; }

.letter {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 460px;
  width: 100%;
  justify-self: center;
  margin: 0;
  padding: 44px 40px;
  border: 1px solid var(--gold-line);
}
.letter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gold-line-soft);
}
.letter-name { font-family: var(--display); font-size: 22px; }
.letter-title {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.letter-them { font-family: var(--display); font-size: 19px; line-height: 1.6; }
.letter-you {
  align-self: flex-end;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gold);
  text-align: right;
}

/* IV · The Realm Decides */

.realm {
  position: relative;
  padding: clamp(100px, 14vw, 200px) var(--pad-x);
  overflow: hidden;
}
.realm .photo { filter: grayscale(0.6); }
.realm-veil { position: absolute; inset: 0; background: oklch(0.12 0.008 60 / 0.86); }
.realm-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
}
.realm h2 { font-size: clamp(42px, 6vw, 92px); max-width: 1000px; }
.realm .body-copy { max-width: 560px; color: oklch(0.8 0.012 80); }
.countdown {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
}
.countdown-time {
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 72px);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.votes {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  border-top: 1px solid var(--gold-line);
}
.vote {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 22px 6px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--gold-line);
  color: var(--ivory);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.vote:hover,
.vote[aria-pressed="true"] { color: var(--gold); }
.vote-fill {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.6s ease;
}
.vote-label { font-size: 18px; transition: color 0.2s ease; }
.vote-pct { font-family: var(--display); font-size: 20px; color: var(--gold); }
.vote-note { font-size: 13px; letter-spacing: 0.06em; color: var(--muted); }

/* V · Membership */

.membership { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border: 1px solid var(--gold-line);
}
.tier {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 48px 40px;
  border-right: 1px solid var(--gold-line);
}
.tier:last-child { border-right: 0; }
.tier-featured { background: var(--bg-feature); }
.tier-name {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: oklch(0.7 0.015 70);
}
.tier-featured .tier-name { color: var(--gold); }
.tier-price { font-family: var(--display); font-size: 48px; line-height: 1.1; }
.tier-period {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: oklch(0.7 0.015 70);
}
.tier-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-body);
}
.tier-featured .tier-list { color: var(--text-soft); }
.tier-note { color: var(--muted); }
.tier .btn { margin-top: auto; padding: 18px 24px; letter-spacing: 0.26em; }

/* Answer the call */

.call {
  position: relative;
  padding: clamp(120px, 16vw, 240px) var(--pad-x);
  overflow: hidden;
  text-align: center;
}
.call-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, oklch(0.12 0.008 60 / 0.5), oklch(0.12 0.008 60 / 0.92) 70%);
}
.call-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}
.call h2 { font-size: clamp(50px, 8vw, 124px); line-height: 0.95; }
.call .body-copy { max-width: 440px; color: var(--text-soft); }
.store-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 40px var(--pad-x);
  border-top: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.site-footer .wordmark { font-size: 18px; color: oklch(0.9 0.012 80); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a { color: var(--muted-2); }
.footer-links a:hover { color: var(--gold); }

/* Legal pages */

.legal-page .site-header { position: relative; border-bottom: 1px solid var(--rule); }
.legal {
  max-width: calc(46rem + 2 * var(--pad-x));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--pad-x) clamp(80px, 11vw, 140px);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-body);
}
.legal .label { display: block; margin-bottom: 22px; }
.legal h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1;
  color: var(--ivory);
}
.legal .updated {
  margin: 18px 0 40px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.legal h2 {
  margin: 2.6em 0 0.7em;
  padding-top: 1.6em;
  border-top: 1px solid var(--rule);
  font-size: 28px;
  line-height: 1.2;
  color: var(--ivory);
}
.legal h3 {
  margin: 1.8em 0 0.4em;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--gold);
}
.legal p, .legal ul, .legal ol { margin: 0 0 1.1em; }
.legal ul, .legal ol { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal li::marker { color: var(--gold-label); }
.legal strong { font-weight: 500; color: var(--ivory); }
.legal a { text-decoration: underline; text-decoration-color: var(--gold-line); text-underline-offset: 3px; }
.toc {
  margin: 0 0 1em;
  padding: 28px 32px;
  border: 1px solid var(--gold-line);
}
.toc p {
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-label);
}
.toc ol { margin: 0; columns: 2; column-gap: 2.5rem; font-size: 15px; }
.toc li { break-inside: avoid; }
.toc a { text-decoration: none; color: var(--text-soft); }
.toc a:hover { color: var(--gold); }

/* Responsive */

@media (max-width: 720px) {
  .site-header { grid-template-columns: auto 1fr; padding-block: 24px; }
  .site-nav { display: none; }
  .wordmark { font-size: 20px; padding-left: 0; }
  .header-cta a { padding: 10px 16px; font-size: 11px; }
  .hero { padding-top: 140px; }
  .tier { border-right: 0; border-bottom: 1px solid var(--gold-line); }
  .tier:last-child { border-bottom: 0; }
  .letter { padding: 32px 24px; }
  .toc ol { columns: 1; }
}

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