/* Ashley Claudy — cinematic editorial theme (arlo-redesign)
   Mobile-first. Fraunces display + Inter UI. No frameworks. */

:root {
  --ink: #0a0a0d;
  --ink-2: #101016;
  --ink-3: #17171f;
  --paper: #f6f1e7;
  --paper-dim: rgba(246, 241, 231, 0.66);
  --paper-faint: rgba(246, 241, 231, 0.42);
  --line: rgba(246, 241, 231, 0.14);
  --blue: #5aa9ff;
  --blue-deep: #1d4ed8;
  --red: #ff5d5d;
  --gold: #e8b34b;
  --ember: #ff7a1a;
  --ok: #7ee2a8;
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

::selection { background: var(--blue); color: #06121f; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(3rem, 14vw, 7.5rem); }
h2 { font-size: clamp(2.1rem, 8vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 5vw, 1.9rem); }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; }

p { margin: 0 0 1em; }
.lead { font-size: clamp(1.02rem, 2.6vw, 1.2rem); color: var(--paper-dim); max-width: 34em; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); color: var(--ink); padding: 10px 16px; z-index: 3000; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- type utilities ---------- */
.kicker {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; opacity: 0.7; border-radius: 2px; }
.kicker.c-blue { color: var(--blue); }
.kicker.c-red { color: var(--red); }
.kicker.c-gold { color: var(--gold); }
.kicker.c-ember { color: var(--ember); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, border-color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(246, 241, 231, 0.22); }
.btn-accent { background: var(--ember); color: #1a0d02; }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 122, 26, 0.35); }
.btn-ghost { background: rgba(246, 241, 231, 0.06); color: var(--paper); border-color: var(--line); }
.btn-ghost:hover { border-color: rgba(246, 241, 231, 0.4); background: rgba(246, 241, 231, 0.1); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }

.text-link { color: var(--paper); font-weight: 600; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--paper); }

/* ---------- announcement ---------- */
.announce {
  background: linear-gradient(90deg, #1a0d02, #2b1503);
  border-bottom: 1px solid rgba(255, 122, 26, 0.25);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.announce .wrap { display: flex; justify-content: center; align-items: center; gap: 10px; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.announce a { color: var(--ember); font-weight: 700; white-space: nowrap; }
.announce .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ember); animation: pulse 2s infinite; flex-shrink: 0; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--head-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled { background: rgba(10, 10, 13, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; width: min(1240px, 100% - 40px); margin-inline: auto; }
.logo { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em; text-decoration: none; }
.logo em { font-style: italic; font-weight: 400; }
.nav { display: none; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper-dim); transition: color 0.2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--paper); }

.menu-btn {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
  width: 48px; height: 48px; background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; padding: 0 12px;
}
.menu-btn span { display: block; height: 2px; background: var(--paper); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-btn span:nth-child(2) { width: 70%; }
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 850;
  background: rgba(10, 10, 13, 0.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px 32px 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }
.menu-overlay nav { display: flex; flex-direction: column; gap: 6px; }
.menu-overlay nav a {
  font-family: var(--font-display); font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 600;
  text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(24px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
body.menu-open .menu-overlay nav a { opacity: 1; transform: none; }
body.menu-open .menu-overlay nav a:nth-child(2) { transition-delay: 0.06s; }
body.menu-open .menu-overlay nav a:nth-child(3) { transition-delay: 0.12s; }
body.menu-open .menu-overlay nav a:nth-child(4) { transition-delay: 0.18s; }
.menu-overlay .btn { margin-top: 26px; align-self: flex-start; }

@media (min-width: 860px) {
  .menu-btn { display: none; }
  .nav { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  margin-top: calc(-1 * var(--head-h));
  padding-top: var(--head-h);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 20%; transform: scale(1.06); will-change: transform; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 10, 13, 0.55) 0%, rgba(10, 10, 13, 0.15) 35%, rgba(10, 10, 13, 0.88) 78%, var(--ink) 100%),
    linear-gradient(100deg, rgba(10, 10, 13, 0.9) 0%, rgba(10, 10, 13, 0.25) 60%, rgba(10, 10, 13, 0.05) 100%);
}
.hero-inner { padding-bottom: clamp(48px, 9vh, 96px); width: 100%; }
.hero-title { margin: 6px 0 10px; text-wrap: balance; }
.hero-tag { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 4.6vw, 1.9rem); color: var(--paper); margin: 0 0 14px; }
.hero-proof { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 0.88rem; color: var(--paper-dim); flex-wrap: wrap; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.hero-cta .btn { width: 100%; }
.hero-share { margin-top: 14px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  color: var(--paper-dim); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 18px; cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.share-btn:hover { border-color: var(--paper); color: var(--paper); }
.share-btn svg { width: 15px; height: 15px; }
.scroll-cue { display: none; }

@media (min-width: 860px) {
  .hero { align-items: center; }
  .hero-bg img { object-position: 78% 15%; }
  .hero-cta { flex-direction: row; }
  .hero-cta .btn { width: auto; }
  .scroll-cue {
    display: flex; position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    flex-direction: column; align-items: center; gap: 8px;
    color: var(--paper-faint); font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  }
  .scroll-cue::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--paper-faint), transparent); animation: cue 2.2s var(--ease) infinite; }
  @keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
}

/* ---------- ticker ---------- */
.ticker { border-block: 1px solid var(--line); background: var(--ink-2); overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker span {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--paper-faint); padding: 0 26px; white-space: nowrap; display: flex; align-items: center; gap: 26px;
}
.ticker span::after { content: "✦"; color: var(--gold); font-size: 0.7rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.band { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.band-tight { padding: clamp(48px, 7vw, 84px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(30px, 5vw, 54px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }

/* ---------- preorder ---------- */
.preorder { background: radial-gradient(120% 90% at 80% 10%, rgba(255, 122, 26, 0.14), transparent 60%), var(--ink-2); border-block: 1px solid var(--line); overflow: hidden; }
.preorder-grid { display: grid; gap: 34px; align-items: center; }
.preorder-cover { width: min(240px, 58vw); margin-inline: auto; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); transform: rotate(-2deg); }
.preorder-cover img { width: 100%; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 26px 0; max-width: 480px; }
.count-cell { background: rgba(246, 241, 231, 0.05); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 6px; text-align: center; }
.count-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 7vw, 2.6rem); color: var(--ember); font-variant-numeric: tabular-nums; line-height: 1; }
.count-unit { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--paper-faint); }
@media (min-width: 860px) {
  .preorder-grid { grid-template-columns: 300px 1fr; gap: 60px; }
  .preorder-cover { width: 100%; margin: 0; }
}

/* ---------- book rail ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 26px; margin-inline: -20px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-card {
  scroll-snap-align: start; text-decoration: none; background: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.rail-card:hover { transform: translateY(-6px); border-color: rgba(246, 241, 231, 0.3); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.rail-cover { aspect-ratio: 2 / 3; overflow: hidden; background: var(--ink-3); }
.rail-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.rail-card:hover .rail-cover img { transform: scale(1.05); }
.rail-body { padding: 18px 18px 20px; }
.rail-body h3 { font-size: 1.45rem; margin: 6px 0 8px; }
.rail-body p { font-size: 0.92rem; color: var(--paper-dim); margin: 0 0 14px; }
.rail-cta { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.rail-cta.c-blue { color: var(--blue); } .rail-cta.c-red { color: var(--red); } .rail-cta.c-gold { color: var(--gold); }
.rail-hint { display: flex; align-items: center; gap: 8px; color: var(--paper-faint); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
@media (min-width: 860px) {
  .rail { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; }
  .rail-hint { display: none; }
}

/* ---------- proof stats ---------- */
.proof-band { background: var(--ink-2); border-block: 1px solid var(--line); }
.stats { display: grid; gap: 26px; }
.stat { border-top: 1px solid var(--line); padding-top: 18px; }
.stat-figure { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 10vw, 4.2rem); line-height: 1; letter-spacing: -0.02em; }
.stat-label { color: var(--paper-faint); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 8px; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- crew / newsletter ---------- */
.crew { position: relative; overflow: hidden; background: radial-gradient(100% 80% at 20% 0%, rgba(90, 169, 255, 0.12), transparent 55%), var(--ink); border-block: 1px solid var(--line); }
.crew-grid { display: grid; gap: 36px; align-items: center; }
.perks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--paper-dim); font-size: 0.96rem; }
.perks li::before { content: "✓"; color: var(--ok); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.signup-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 5vw, 40px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-faint); margin-bottom: 8px; }
.field input {
  width: 100%; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--paper); font-size: 1rem; padding: 15px 16px; font-family: var(--font-ui);
  transition: border-color 0.2s;
}
.field input:focus { outline: none; border-color: var(--blue); }
.field input::placeholder { color: var(--paper-faint); }
.signup-error { color: var(--red); font-size: 0.88rem; margin: 0 0 12px; }
.signup-note { font-size: 0.8rem; color: var(--paper-faint); margin: 12px 0 0; text-align: center; }
.signup-done .btn-row { margin-top: 18px; }
@media (min-width: 860px) { .crew-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ---------- reading order accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head {
  width: 100%; display: flex; align-items: center; gap: 18px; text-align: left;
  background: none; border: 0; color: var(--paper); padding: 22px 4px; cursor: pointer;
  font-family: var(--font-ui);
}
.acc-head h3 { margin: 0; font-size: clamp(1.4rem, 5vw, 2rem); flex: 1; }
.acc-head .acc-meta { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper-faint); display: block; margin-bottom: 6px; }
.acc-icon { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: transform 0.35s var(--ease), background 0.3s; font-size: 1.2rem; font-weight: 300; }
.acc-item.open .acc-icon { transform: rotate(45deg); background: var(--paper); color: var(--ink); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.acc-books { list-style: none; margin: 0; padding: 0 4px 26px; display: grid; gap: 4px; }
.acc-books a { display: flex; align-items: center; gap: 16px; padding: 14px 10px; border-radius: var(--radius-sm); text-decoration: none; transition: background 0.2s; }
.acc-books a:hover { background: rgba(246, 241, 231, 0.05); }
.acc-num { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--paper-faint); width: 34px; flex-shrink: 0; }
.acc-books .t { flex: 1; font-weight: 600; font-size: 1.05rem; }
.acc-books .m { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-faint); }
.acc-books .go { color: var(--paper-faint); }

/* ---------- about + socials ---------- */
.about-grid { display: grid; gap: 34px; align-items: center; }
.monogram {
  width: min(300px, 70vw); aspect-ratio: 1; margin-inline: auto;
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: clamp(4rem, 18vw, 6rem); font-weight: 600;
  background: radial-gradient(circle at 35% 30%, rgba(90, 169, 255, 0.16), transparent 65%), var(--ink-2);
}
.about-photo { width: min(320px, 72vw); aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-inline: auto; border: 1px solid var(--line); }
.socials { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.socials a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none;
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.socials a:hover { border-color: rgba(246, 241, 231, 0.35); transform: translateY(-2px); background: rgba(246, 241, 231, 0.04); }
.socials svg { width: 20px; height: 20px; flex-shrink: 0; }
.socials b { display: block; font-size: 0.9rem; }
.socials small { display: block; color: var(--paper-faint); font-size: 0.76rem; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; color: var(--paper-dim); font-size: 0.92rem; }
.copy-row code { font-family: ui-monospace, monospace; font-size: 0.85rem; background: var(--ink-2); border: 1px solid var(--line); padding: 8px 12px; border-radius: 8px; }
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 340px 1fr; gap: 64px; }
  .socials { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); background: var(--ink); }
.foot-grid { display: grid; gap: 22px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { color: var(--paper-dim); text-decoration: none; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.foot-nav a:hover { color: var(--paper); }
.fine { font-size: 0.8rem; color: var(--paper-faint); margin: 0; }

/* ---------- sticky buy bar (mobile sales weapon) ---------- */
.buybar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 800;
  display: flex; align-items: center; gap: 12px;
  background: rgba(16, 16, 22, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 18px; padding: 10px 10px 10px 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  transform: translateY(140%); transition: transform 0.45s var(--ease);
}
.buybar.show { transform: none; }
.buybar img { width: 40px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.buybar .bb-text { flex: 1; min-width: 0; }
.buybar .bb-text b { display: block; font-family: var(--font-display); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .bb-text small { color: var(--paper-faint); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.buybar .btn { min-height: 48px; padding: 12px 20px; font-size: 0.85rem; flex-shrink: 0; }
@media (min-width: 860px) { .buybar { display: none; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); z-index: 2100;
  background: var(--paper); color: var(--ink); font-weight: 600; font-size: 0.9rem;
  padding: 12px 22px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease); box-shadow: 0 12px 40px rgba(0,0,0,.4);
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- book page ---------- */
.book-hero { position: relative; padding: calc(var(--head-h) + clamp(30px, 6vw, 70px)) 0 clamp(50px, 8vw, 90px); overflow: hidden; }
.book-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 0%, var(--acc-glow, rgba(90,169,255,.14)), transparent 70%); pointer-events: none; }
.book-grid { display: grid; gap: 30px; position: relative; }
.book-cover { width: min(280px, 64vw); margin-inline: auto; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65); }
.book-cover img { width: 100%; }
.book-title { font-size: clamp(2.8rem, 13vw, 5.5rem); margin: 8px 0 6px; }
.book-tag { font-family: var(--font-display); font-style: italic; font-size: clamp(1.2rem, 4.4vw, 1.7rem); color: var(--paper); margin: 0 0 16px; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--paper-faint); margin-bottom: 26px; flex-wrap: wrap; }
.crumbs a { color: var(--paper-dim); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; padding: 0; }
.chip { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--paper-dim); }
.buybox { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 30px); margin: 24px 0; }
.buybox .btn-row { margin-bottom: 4px; }
.buy-more { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 0.9rem; }
.buy-more a { color: var(--paper-dim); }
.buy-more a:hover { color: var(--paper); }
.blurb p { color: var(--paper-dim); font-size: 1.02rem; }
.series-note { border-left: 2px solid var(--blue); padding-left: 16px; font-style: italic; }
.spec { display: grid; gap: 0; margin: 30px 0 0; border-top: 1px solid var(--line); }
.spec > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.spec dt { color: var(--paper-faint); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.spec dd { margin: 0; text-align: right; }
.note { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.note summary { padding: 15px 18px; cursor: pointer; font-weight: 600; font-size: 0.92rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.note summary::-webkit-details-marker { display: none; }
.note summary::after { content: "+"; font-size: 1.3rem; color: var(--paper-faint); }
.note[open] summary::after { content: "–"; }
.note p { padding: 0 18px 18px; margin: 0; color: var(--paper-dim); font-size: 0.92rem; }
.quotes { display: grid; gap: 14px; margin-top: 26px; }
.quotes blockquote { margin: 0; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.quotes blockquote p { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; margin: 0 0 10px; }
.quotes cite { font-style: normal; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-faint); }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 120px; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip a { text-decoration: none; font-size: 0.78rem; color: var(--paper-dim); display: grid; gap: 8px; }
.strip img { border-radius: 8px; border: 1px solid var(--line); width: 120px; aspect-ratio: 2/3; object-fit: cover; }
.strip a[aria-current="page"] img { border-color: var(--paper); }
@media (min-width: 860px) {
  .book-grid { grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
  .book-cover { width: 100%; margin: 0; position: sticky; top: calc(var(--head-h) + 24px); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- books page ---------- */
.series-block { padding: clamp(40px, 6vw, 70px) 0; border-top: 1px solid var(--line); }
.series-block:first-child { border-top: 0; }
.boxset { display: flex; gap: 20px; align-items: center; margin-top: 28px; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.boxset img { width: 110px; border-radius: 8px; flex-shrink: 0; }

/* ---------- solo pages (bonus / links) ---------- */
.solo { min-height: 100svh; display: flex; align-items: center; padding: 60px 0; background: radial-gradient(80% 50% at 50% 0%, rgba(90,169,255,.1), transparent 60%); }
.solo-inner { width: min(480px, 100%); margin-inline: auto; display: grid; gap: 22px; justify-items: center; text-align: center; }
.solo-inner .signup-card { width: 100%; text-align: left; }
.links-head .logo { font-size: 1.8rem; }
.mini-covers { display: flex; gap: 10px; justify-content: center; }
.mini-covers img { width: 64px; border-radius: 8px; border: 1px solid var(--line); }
.link-stack { display: grid; gap: 12px; width: 100%; }
.link-stack .btn { width: 100%; flex-direction: column; gap: 2px; border-radius: 16px; min-height: 66px; }
.link-stack .btn small { font-weight: 500; font-size: 0.78rem; opacity: 0.75; letter-spacing: 0.04em; }
.solo-inner .socials { width: 100%; }

/* ---------- 404 ---------- */
.e404 { min-height: 80svh; display: grid; place-items: center; text-align: center; }
.e404 h1 { font-size: clamp(4rem, 20vw, 9rem); }

/* ---------- join modal ---------- */
dialog.join-modal { background: transparent; border: 0; padding: 16px; max-width: 560px; width: calc(100% - 32px); }
dialog.join-modal::backdrop { background: rgba(5, 5, 8, 0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.join-modal .signup-card { position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--ink); color: var(--paper); font-size: 1.3rem; cursor: pointer; line-height: 1; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; } .reveal-d2 { transition-delay: 0.16s; } .reveal-d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
}
