/* ── Variables ──────────────────────────────────────── */
:root {
  --red:        #CC2828;
  --red-hover:  #b52222;
  --dark:       #181614;
  --dark-2:     #1e1c19;
  --off-white:  #F4F0EA;
  --white:      #ffffff;
  --muted-on-dark: rgba(255, 255, 255, 0.5);
  --muted-on-light: #6B6460;
  --border-light: #E0DCD5;
  --font-display: "Momo Trust Display", "Neue Haas Grotesk Display Pro", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Playfair Display", "Georgia", serif;
  --max-width: 1120px;
  --pad-section: 7rem 6%;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
section { min-height: 100vh; scroll-margin-top: 62px; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-synthesis: none;
  background: transparent;
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
strong, b { font-weight: 400; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Utilities ──────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 3rem;
}

.empty-note {
  font-style: italic;
  opacity: 0.45;
  font-size: 0.95rem;
}

/* ── Nav ────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  position: fixed;
  top: 0;
  right: 2rem;
  height: 62px;
  z-index: 100;
}

.nav-links a {
  font-family: var(--font-body);
  color: var(--dark);
  font-size: 1.15rem;
  font-weight: 400;
  transition: color 0.15s;
}

.nav-links a:hover { color: #444; }

.nav-links a.nav-preorder {
  color: var(--red);
  font-style: normal;
  font-weight: 700;
  text-decoration: underline;
}

/* ── Hero ───────────────────────────────────────────── */
.hero-viewport {
  display: flex;
  flex-direction: column;
}

#hero {
  background: transparent;
  color: var(--dark);
  min-height: 0;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 5%;
  padding: var(--pad-section);
}

.hero-desc {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.75rem);
  color: #333;
  max-width: 480px;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.hero-blurb {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--dark);
  max-width: 520px;
  margin-bottom: 1.25rem;
}

.hero-blurb em { font-style: italic; }

.hero-actions { display: flex; }

.hero-pubdate {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.hero-preorder {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.75rem);
  color: var(--red);
  font-style: italic;
  text-decoration: none;
  border: 2px solid var(--red);
  background: transparent;
  padding: 0.5rem 1.5rem;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}
.hero-preorder:hover {
  background: var(--red);
  color: var(--white);
}

.hero-cover img {
  width: clamp(270px, 33vw, 510px);
  border-radius: 1px;
}

/* ── Inline Signup ──────────────────────────────────── */
.inline-signup-wrap {
  padding: 2.5rem 6%;
  display: flex;
  justify-content: center;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.12);
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

body.dark-mode .inline-signup-wrap {
  background: var(--dark-2);
  border-color: rgba(255,255,255,0.12);
}

.inline-signup {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.inline-signup-label {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  white-space: nowrap;
  padding-bottom: 0.4rem;
}

.inline-signup-dash {
  color: var(--dark);
  padding-bottom: 0.4rem;
  opacity: 0.4;
}

.inline-signup-field {
  border-bottom: 1px solid rgba(0,0,0,0.25);
  min-width: 100px;
}

.inline-signup-input {
  width: 100%;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
  background: transparent;
  color: var(--dark);
  border: none;
  outline: none;
}
.inline-signup-input::placeholder { color: rgba(0,0,0,0.35); }

.inline-signup-btn {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--red);
  font-style: italic;
  background: transparent;
  border: 2px solid var(--red);
  border-radius: 2px;
  padding: 0.35rem 1.1rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.inline-signup-btn:hover { background: var(--red); color: var(--white); }

body.dark-mode .inline-signup-label { color: var(--off-white); }
body.dark-mode .inline-signup-dash { color: var(--off-white); }
body.dark-mode .inline-signup-field { border-color: rgba(244,240,234,0.25); }
body.dark-mode .inline-signup-input { color: var(--off-white); }
body.dark-mode .inline-signup-input::placeholder { color: rgba(244,240,234,0.35); }

/* ── About ──────────────────────────────────────────── */
#about {
  background: transparent;
  padding: var(--pad-section);
}

#about .section-title {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.about-body {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  font-size: 1.35rem;
  line-height: 1.75;
  color: #2A2520;
}

.about-body em { font-style: italic; }

/* ── Praise ─────────────────────────────────────────── */
#praise {
  background: transparent;
  padding: var(--pad-section);
  color: var(--dark);
}

#praise .section-title { color: var(--dark); }

.praise-grid {
  display: flex;
  flex-direction: column;
}

.praise-card {
  background: transparent;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.praise-quote {
  font-size: 1.55rem;
  line-height: 1.8;
  color: #333;
}

.praise-author {
  margin-top: 0.75rem;
  font-size: 1.55rem;
  text-align: center;
}

.praise-name {
  font-weight: 700;
}

/* ── Authors ────────────────────────────────────────── */
#authors {
  background: transparent;
  padding: var(--pad-section);
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
}

.author-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.author-photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--dark);
  color: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 4rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--red);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.author-bio {
  font-size: 1.5rem;
  line-height: 1.8;
  color: #3A3530;
  max-width: 440px;
}

.author-bio em { font-style: italic; }
.author-link { color: var(--red); text-decoration: underline; }

/* ── Press ──────────────────────────────────────────── */
#press {
  background: transparent;
  padding: var(--pad-section);
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.press-card {
  background: transparent;
  padding: 1.25rem 1.4rem;
  border-radius: 2px;
  border-top: 3px solid var(--red);
}

.press-outlet {
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.press-outlet a { color: var(--dark); transition: color 0.15s; }
.press-outlet a:hover { color: var(--red); }

.press-quote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--muted-on-light);
  line-height: 1.65;
}

/* ── Tour ───────────────────────────────────────────── */
#tour {
  background: transparent;
  padding: var(--pad-section);
  color: var(--dark);
}

#tour .section-title { color: var(--dark); text-align: center; }

.tour-note {
  font-size: 1.2rem;
  color: var(--red);
  margin-top: -2rem;
  margin-bottom: 2rem;
  font-style: italic;
  text-align: center;
}

.tour-list {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1fr auto;
  column-gap: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tour-row {
  display: contents;
}

.tour-row > * {
  padding: 2rem 0;
  align-self: start;
}

.tour-sep {
  grid-column: 1 / -1;
  height: 0;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tour-row.past > * { opacity: 0.5; }

.tour-date-val {
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--dark);
  text-transform: uppercase;
}

.tour-city {
  font-weight: 700;
  color: var(--dark);
  font-size: 1.35rem;
}

.tour-venue {
  color: var(--dark);
  font-size: 1.35rem;
  font-weight: 700;
}

.tour-venue-asterisk {
  font-family: var(--font-display);
  color: var(--red);
  font-weight: 400;
  margin-left: 0.1em;
}

.tour-guest {
  color: var(--dark);
  font-size: 1.35rem;
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tour-link {
  font-family: var(--font-display);
  color: var(--red);
  font-size: 1.1rem;
  font-weight: 400;
  white-space: nowrap;
  text-decoration: underline;
  transition: opacity 0.15s;
}
.tour-link:hover { opacity: 0.75; }
.tour-link-pending { opacity: 0.4; cursor: default; }

.tour-tbd { opacity: 0.45; font-style: italic; }

.tour-footer {
  padding-top: 2.5rem;
  text-align: center;
}

.see-all-link {
  color: var(--red);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15em;
  transition: opacity 0.15s;
}
.see-all-link:hover { opacity: 0.45; }

.events-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 1.5rem;
}

.events-page section { min-height: 0; }
.events-page #upcoming { padding: var(--pad-section); }
.events-page #upcoming .section-title { text-align: center; }
.events-page #past { padding: 0 6% 7rem; }

/* ── Pre-order ──────────────────────────────────────── */
#preorder {
  background: transparent;
  padding: var(--pad-section);
  color: var(--dark);
}

#preorder .section-title { color: var(--red); }

.preorder-tagline {
  color: #555;
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.65;
}

.buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.buy-btn {
  display: inline-block;
  font-family: var(--font-display);
  background: var(--red);
  border: 1px solid var(--red);
  color: var(--white);
  padding: 0.85rem 2rem;
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.15s;
}
.buy-btn:hover { background: var(--red-hover); border-color: var(--red-hover); }

.buy-coming-soon {
  font-size: 1.5rem;
  color: #666;
  font-style: italic;
}


/* ── Footer ─────────────────────────────────────────── */
footer {
  background: transparent;
  padding: 2.5rem 6%;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

footer .container {
  font-size: 0.82rem;
  color: #999;
}

footer a { color: #777; transition: color 0.15s; }
footer a:hover { color: var(--dark); }

/* ── Scroll Nav ─────────────────────────────────────── */
#scroll-nav {
  position: fixed;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 50;
  background: transparent;
}

.scroll-dot {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.scroll-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--red);
  opacity: var(--fill, 0);
  transition: opacity 0.15s;
}

.scroll-dot::after {
  content: attr(data-label);
  position: absolute;
  left: 1.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 1.25rem;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 1;
}

.scroll-dot:hover::after {
  opacity: 1;
}

/* ── Nav logo ───────────────────────────────────────── */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.nav-logo:hover { opacity: 0.7; }

/* ── Hamburger toggle (hidden by default) ──────────── */
.nav-toggle {
  display: none;
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: space-between;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  transition: transform 0.25s, opacity 0.2s;
  transform-origin: center;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

body.dark-mode .nav-toggle span { background: var(--off-white); }

/* Pin signup bar to bottom only when viewport is tall enough */
@media (min-width: 961px) and (min-height: 1050px) {
  .hero-viewport { height: calc(100vh - 62px); }
  #hero { flex: 1; min-height: 0; }
}

@media (max-width: 1100px) {
  #scroll-nav { display: none; }
}

/* ── Responsive: tablet ─────────────────────────────── */
@media (max-width: 960px) {
  section { min-height: 0; }

  .hero-viewport { min-height: calc(100vh - 62px); }

  #hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 6% 3rem;
    gap: 2rem;
  }
  .hero-cover { margin: 0 auto; }
  .hero-cover img { width: clamp(220px, 60vw, 360px); }
  .hero-actions { justify-content: center; }

  .authors-grid { grid-template-columns: 1fr; gap: 3rem; }
  .press-grid { grid-template-columns: repeat(2, 1fr); }

  .tour-list { display: block; }
  .tour-row { display: grid; grid-template-columns: 1fr; gap: 0.3rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.1); }
  .tour-row > * { padding: 0; border-bottom: none; }
  .tour-row.past > * { opacity: 1; }
  .tour-row.past { opacity: 0.5; }

  .inline-signup-wrap { padding: 1.5rem 6%; }
  .inline-signup { flex-direction: column; align-items: stretch; gap: 1rem; width: 100%; max-width: 360px; }
  .inline-signup-field { width: 100%; }
  .inline-signup-btn { align-self: center; }

  /* Hamburger nav */
  nav { justify-content: space-between; }
  .nav-toggle { display: flex; position: static; transform: none; }
  .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    height: auto;
    transform: translateY(-100%);
    visibility: hidden;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem 2.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: transform 0.3s ease, visibility 0s ease 0.3s;
    z-index: 99;
  }
  body.nav-open .nav-links {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s ease 0s;
  }
  body.dark-mode .nav-links { background: var(--dark-2); border-bottom-color: rgba(255,255,255,0.08); }
  .nav-links a { font-size: 1.4rem; }
}

/* ── Responsive: phone ──────────────────────────────── */
@media (max-width: 600px) {
  :root { --pad-section: 3.5rem 5%; }

  body { line-height: 1.55; }

  .section-title { font-size: 1.8rem; margin-bottom: 1.75rem; }

  .hero-desc { font-size: 1.1rem; }
  .hero-blurb { font-size: 1.15rem; }
  .hero-preorder { font-size: 1.1rem; padding: 0.4rem 1.1rem; }

  .about-body p { font-size: 1rem; }

  .praise-quote { font-size: 1.1rem; line-height: 1.55; }
  .praise-author { font-size: 1.1rem; }
  .praise-grid { gap: 2rem; }

  .tour-row { grid-template-columns: 1fr; gap: 0.3rem; text-align: center; }
  .tour-date-val { font-size: 0.85rem; letter-spacing: 0.08em; }
  .tour-city { font-size: 1.35rem; }
  .tour-venue { font-size: 1.1rem; }
  .tour-guest { font-size: 0.95rem; justify-content: center; }
  .tour-link { justify-self: center; font-size: 1.3rem; margin-top: 0.25rem; }
  .tour-note { font-size: 1rem; margin-top: -1.25rem; }

  .author-bio { font-size: 1rem; }
  .author-name { font-size: 1.4rem; }

  .press-grid { grid-template-columns: 1fr; }

  .see-all-link { font-size: 1.25rem; }

  .inline-signup-input { font-size: 1rem; }
  .inline-signup-btn { font-size: 1rem; }
}

/* ── Dark Mode ──────────────────────────────────────── */
body.dark-transitioning,
body.dark-transitioning nav,
body.dark-transitioning .nav-logo,
body.dark-transitioning .nav-links a,
body.dark-transitioning .section-title,
body.dark-transitioning .hero-desc,
body.dark-transitioning .hero-blurb,
body.dark-transitioning .about-body,
body.dark-transitioning .praise-quote,
body.dark-transitioning .tour-city,
body.dark-transitioning .tour-date-val,
body.dark-transitioning .tour-guest,
body.dark-transitioning .author-bio {
  transition: color 0.7s ease, background-color 0.7s ease;
}

body.dark-mode {
  color: var(--off-white);
}

body.dark-mode nav {
  background: var(--dark-2);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .nav-links a { color: var(--off-white); }
body.dark-mode .nav-links a:hover { color: rgba(244,240,234,0.6); }
body.dark-mode .nav-links a.nav-preorder { color: var(--red); }
body.dark-mode .nav-links a.nav-preorder:hover { color: var(--off-white); }

body.dark-mode .section-title,
body.dark-mode #praise .section-title,
body.dark-mode #tour .section-title { color: var(--off-white); }
body.dark-mode .hero-pubdate { color: var(--off-white); }
body.dark-mode .hero-desc { color: rgba(244,240,234,0.8); }
body.dark-mode .hero-blurb { color: var(--off-white); }
body.dark-mode .about-body { color: rgba(244,240,234,0.85); }
body.dark-mode .praise-quote { color: rgba(244,240,234,0.85); }
body.dark-mode .praise-author { color: rgba(244,240,234,0.85); }
body.dark-mode .tour-city { color: var(--off-white); }
body.dark-mode .tour-venue { color: var(--off-white); }
body.dark-mode .tour-date-val { color: rgba(244,240,234,0.4); }
body.dark-mode .tour-guest { color: rgba(244,240,234,0.6); }
body.dark-mode .author-bio { color: rgba(244,240,234,0.75); }
body.dark-mode .tour-list,
body.dark-mode .tour-sep { border-color: rgba(255,255,255,0.15); }
body.dark-mode .tour-note { color: var(--red); }
body.dark-mode .hero-preorder { border-color: var(--red); color: var(--red); }
body.dark-mode .scroll-dot::after {
  color: var(--off-white);
}
