:root {
  --bg: #050505;
  --bg-2: #0a0a0c;
  --card: #0c0b10;
  --secondary: #141318;
  --fg: #f8fafc;
  --muted: #b6c0ce;
  --dim: #6b7280;
  --primary: #895af6;
  --primary-ink: #0a0a0a;
  --primary-soft: rgba(137, 90, 246, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --border-primary: rgba(137, 90, 246, 0.35);
  --serif: "Instrument Serif", "Big Caslon", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --wrap: 1104px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; }
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.3em; font-size: 12px; color: var(--primary); margin: 0 0 16px; }
.eyebrow.line { display: flex; gap: 14px; align-items: flex-start; }
.eyebrow.line::before { content: ""; width: 28px; height: 1px; background: var(--primary); margin-top: 8px; flex: none; }
.serif { font-family: var(--serif); font-weight: 400; }
em.accent, .accent { color: var(--primary); font-style: italic; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.02; }
h1 { font-size: clamp(48px, 7.5vw, 82px); letter-spacing: -0.025em; }
h2 { font-size: clamp(38px, 5vw, 53px); letter-spacing: -0.025em; }
h3 { font-size: 26px; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.55; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--primary); color: var(--primary-ink); border: 0; cursor: pointer;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.2em; font-size: 13px; font-weight: 500;
  padding: 15px 26px; border-radius: 999px; text-decoration: none;
  transition: filter .15s, transform .15s, box-shadow .2s;
  box-shadow: 0 0 0 0 rgba(137, 90, 246, 0);
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 0 28px rgba(137, 90, 246, 0.35); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
.btn.small { padding: 10px 20px; font-size: 12px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  background: rgba(5, 5, 5, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--serif); font-size: 21px; text-decoration: none; letter-spacing: -0.02em; white-space: nowrap; }
.logo span { color: var(--primary); margin-left: 6px; }
.nav { display: none; gap: 34px; }
.nav a { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; color: var(--muted); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--fg); }
@media (min-width: 860px) { .nav { display: flex; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 128px 0 80px; }
@media (min-width: 640px) { .hero { padding: 160px 0 112px; } }
.hero::before {
  content: ""; position: absolute; right: -10%; top: 0; width: 60%; height: 100%;
  background: radial-gradient(closest-side, rgba(137, 90, 246, 0.22), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.hero h1 { margin: 6px 0 28px; }
.hero .lead { max-width: 520px; }
.signup { margin-top: 36px; max-width: 560px; }
.signup label .mono { display: block; color: var(--muted); margin-bottom: 8px; }
.signup-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 560px) { .signup-row { flex-direction: row; align-items: stretch; } }
.input {
  width: 100%; background: var(--secondary); color: var(--fg); font: inherit; font-size: 17px;
  border: 1px solid rgba(137, 90, 246, 0.25); border-radius: 6px; padding: 12px 16px; outline: none;
  transition: border-color .15s, background .15s;
}
.input::placeholder { color: rgba(182, 192, 206, 0.6); }
.input:hover { border-color: rgba(137, 90, 246, 0.45); }
.input:focus { border-color: var(--primary); background: #1a1820; }
.signup .fine { margin-top: 18px; color: var(--muted); font-size: 11px; }
.signup .msg { margin-top: 14px; font-size: 15px; min-height: 1em; }
.msg.ok { color: #c4b0ff; }
.msg.err { color: #ff9aa8; }
.hero-cta { margin-top: 26px; color: var(--muted); font-size: 15px; }
.hero-cta a { color: var(--primary); text-underline-offset: 3px; }

.issue-card {
  position: relative; border-radius: 18px; overflow: hidden; background: #0a090d;
  border: 1px solid var(--border);
  box-shadow: 0 30px 120px -20px rgba(137, 90, 246, 0.35);
}
.issue-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.issue-card .foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: 0 24px; padding: 18px 0 22px; border-top: 1px solid var(--border);
}
.issue-card .foot .mono { color: var(--muted); font-size: 11px; }
.issue-card .foot .serif { font-style: italic; font-size: 19px; }

/* Sections */
.section { position: relative; border-top: 1px solid var(--border); padding: 80px 0; scroll-margin-top: 68px; }
@media (min-width: 640px) { .section { padding: 112px 0; } }

.features { display: grid; border: 1px solid var(--border); margin-top: 56px; }
@media (min-width: 800px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 32px; border-bottom: 1px solid var(--border); }
.feature:last-child { border-bottom: 0; }
@media (min-width: 800px) { .feature { border-bottom: 0; border-right: 1px solid var(--border); } .feature:last-child { border-right: 0; } }
.feature .num { font-family: var(--mono); color: var(--primary); letter-spacing: 0.25em; font-size: 12px; }
.feature h3 { margin: 28px 0 14px; font-size: 25px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.6; }

.quote-card { display: grid; border: 1px solid var(--border); margin-top: 64px; }
@media (min-width: 860px) { .quote-card { grid-template-columns: 1.2fr 1fr; } }
.quote-card .pic { position: relative; min-height: 300px; }
.quote-card .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote-card .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,5,5,.55), transparent 50%); }
.quote-card .body { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--border); }
@media (min-width: 860px) { .quote-card .body { border-top: 0; border-left: 1px solid var(--border); } }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 33px); line-height: 1.15; letter-spacing: -0.01em; }
.quote-card .stat { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; color: var(--muted); }
.quote-card .stat .accent { font-style: normal; }

/* Advertise */
.divider-pill { display: flex; align-items: center; gap: 20px; margin-bottom: 64px; }
.divider-pill::before, .divider-pill::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border-primary)); }
.divider-pill::after { background: linear-gradient(90deg, var(--border-primary), transparent); }
.divider-pill span { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.3em; font-size: 12px; color: #c4b0ff; border: 1px solid var(--border-primary); background: var(--primary-soft); border-radius: 999px; padding: 10px 18px; }
.author-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .author-grid { grid-template-columns: 1fr 1.28fr; gap: 64px; align-items: start; } }
.author-grid h2 { margin-bottom: 22px; }
.reach { margin-top: 32px; border: 1px solid var(--border-primary); background: var(--primary-soft); border-radius: 4px; padding: 16px 20px; font-family: var(--serif); font-size: 24px; }
.price-card { margin-top: 32px; border: 1px solid var(--border); background: var(--bg-2); border-radius: 6px; padding: 26px 24px 22px; }
.price-card .row { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.price-card .row h3 { font-size: 34px; margin-top: 6px; }
.price-card .price { font-family: var(--mono); color: var(--primary); font-size: 30px; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 12px; }
.price-card li { display: flex; gap: 14px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.price-card li::before { content: "✓"; color: var(--primary); font-size: 13px; }
.price-card .fine { text-align: center; margin-top: 18px; color: var(--muted); font-size: 11px; }

/* Calendar */
.cal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.cal-head h3 { font-size: 28px; }
.cal-head .mono { color: var(--muted); font-size: 11px; }
.cal { border: 1px solid var(--border); background: var(--bg-2); border-radius: 8px; padding: 22px; }
@media (max-width: 480px) { .cal { padding: 14px; } }
.cal-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.cal-bar .month { font-family: var(--serif); font-size: 21px; }
.cal-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--fg); cursor: pointer; display: grid; place-items: center; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-nav:not(:disabled):hover { border-color: var(--primary); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-family: var(--mono); font-size: 11px; color: var(--muted); padding-bottom: 10px; }
.day {
  aspect-ratio: 1; border-radius: 4px; border: 1px solid transparent; font: inherit; font-size: 15px;
  background: rgba(255, 255, 255, 0.025); color: rgba(182, 192, 206, 0.3); display: grid; place-items: center; padding: 0;
}
.day.open {
  color: var(--fg); background: rgba(137, 90, 246, 0.05); border-color: rgba(137, 90, 246, 0.5); cursor: pointer;
  box-shadow: 0 0 18px -6px rgba(137, 90, 246, 0.55); transition: background .15s, border-color .15s;
}
.day.open:hover { background: rgba(137, 90, 246, 0.2); border-color: var(--primary); }
.day.booked { color: rgba(182, 192, 206, 0.35); text-decoration: line-through; background: rgba(255,255,255,0.04); }
.day.selected { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.day.blank { background: transparent; }
.legend { display: flex; gap: 26px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.legend span { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.2em; font-size: 11px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend .l-open { border: 1px solid var(--primary); }
.legend .l-booked { background: rgba(255,255,255,0.08); }
.legend .l-sel { background: var(--primary); }
.cal-msg { margin-top: 14px; color: var(--muted); font-size: 14px; min-height: 1em; }

/* Booking drawer */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(3px); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 61;
  background: #0b0a0f; border-left: 1px solid var(--border); overflow-y: auto;
  transform: translateX(100%); transition: transform .25s ease;
}
.drawer::before { content: ""; position: sticky; top: 0; display: block; height: 2px; width: 30%; background: var(--primary); }
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }
body.drawer-open .drawer { transform: none; }
body.drawer-open { overflow: hidden; }
.drawer-inner { padding: 22px 24px 32px; }
.drawer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.drawer-top h3 { font-size: 24px; margin-top: 4px; }
.close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--fg); cursor: pointer; font-size: 16px; }
.field { margin-bottom: 18px; }
.field > .mono { display: block; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.field .hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.drawer .input { font-size: 15px; padding: 11px 14px; }
.drop {
  border: 1px dashed rgba(137, 90, 246, 0.4); border-radius: 6px; padding: 18px; text-align: center; cursor: pointer;
  color: var(--muted); font-size: 13px; min-height: 96px; display: grid; place-items: center; position: relative; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.drag { border-color: var(--primary); background: var(--primary-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .icon { color: var(--primary); font-size: 18px; display: block; margin-bottom: 6px; }
.drop.has-file { padding: 12px; }
.drop .preview { display: flex; gap: 14px; align-items: center; text-align: left; }
.drop .preview img { width: 56px; height: 84px; object-fit: cover; border-radius: 3px; }
.drawer .total { display: flex; justify-content: space-between; margin: 6px 0 18px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); }
.drawer .total strong { color: var(--fg); font-family: var(--mono); font-weight: 500; }
.form-msg { color: #ff9aa8; font-size: 14px; min-height: 1em; margin-bottom: 12px; }

/* Footer */
.site-footer { position: relative; border-top: 1px solid var(--border); padding-top: 56px; background: linear-gradient(to bottom, transparent, rgba(137, 90, 246, 0.09)); overflow: hidden; }
.goodnight { font-family: var(--serif); text-align: center; font-size: clamp(90px, 18vw, 200px); line-height: 1; color: rgba(255, 255, 255, 0.1); letter-spacing: -0.03em; user-select: none; }
.foot-row { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; align-items: center; padding: 30px 0 34px; border-top: 1px solid var(--border); margin-top: 18px; }
.foot-row .mono { color: var(--muted); font-size: 12px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.foot-links a { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--fg); }

/* Legal pages */
.legal { padding: 140px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 22px; }
.legal .updated { color: var(--muted); margin: 26px 0 40px; font-size: 11px; }
.legal h2 { font-size: 30px; margin: 44px 0 14px; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 20px; display: grid; gap: 10px; margin: 12px 0; }
.legal .back { margin-top: 56px; display: inline-block; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; color: var(--primary); text-decoration: none; }

.center-page { min-height: 100vh; display: grid; place-items: center; padding: 120px 16px 60px; text-align: center; }
.center-page .box { max-width: 560px; }
.center-page h1 { font-size: clamp(42px, 7vw, 66px); margin: 10px 0 20px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
