/* ============================================================
   MISFITS OF EERIE — style.css
   ============================================================

   SEASONAL SWAP GUIDE — to change the look for any season,
   update ONLY the values marked with a season comment below.
   Everything else updates automatically.

   Halloween:  --accent: #e8763a | --accent-2: #9b59b6
   Eerie:      --accent: #fffab5 | --accent-2: #50f210
   Winter:     --accent: #4a90d9 | --accent-2: #a8d8ea
   Spring:     --accent: #7bc67e | --accent-2: #f7c59f
   Summer:     --accent: #f7c948 | --accent-2: #ff6b6b

   ============================================================ */

/* ── FONTS ────────────────────────────────────────────────────
   Creepster — self-hosted (fonts/Creepster/Creepster-Regular.ttf)
   Nunito    — Google Fonts (body text)
   ──────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Creepster';
  src: url('fonts/Creepster/Creepster-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── SEASONAL COLORS (change these 2 values per season) ── */
  --accent:          #4bc71a;   /* primary accent */
  --accent-2:        #9b59b6;   /* secondary accent */

  /* ── FIXED BRAND COLORS — true black palette ── */
  --bg:              #000000;   /* page background */
  --bg-mid:          #0a0a0a;   /* alternating section bg */
  --bg-card:         #111111;   /* card / surface bg */
  --bg-card-hover:   #1a1a1a;   /* card hover state */
  --border:          rgba(255, 255, 255, 0.1);
  --text-primary:    #f5f5f5;   /* main text */
  --text-secondary:  #999999;   /* muted text */
  --text-inverse:    #000000;   /* text on light/accent bg */
  --white:           #ffffff;

  /* ── TYPOGRAPHY ── */
  --font-display: 'Creepster', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  /* ── SPACING & SHAPE ── */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;
  --container:   1160px;
  --nav-height:  68px;

  /* ── TRANSITIONS ── */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur:  200ms;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.series .section-desc {
  color: #fff;
  max-width: 54ch;
  margin-bottom: 2.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-full);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover { opacity: 0.88; }

.btn--ghost {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: rgba(255,255,255,0.13); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn--outline:hover { background: var(--accent); color: var(--white); }

.btn--sm {
  font-size: 0.8rem;
  padding: 0.55rem 1.25rem;
}

.btn--green {
  background: var(--accent);
  color: #000000;
}
.btn--green:hover { opacity: 0.88; }

.btn--purple {
  background: var(--accent-2);
  color: var(--white);
}
.btn--purple:hover { opacity: 0.88; }

/* ============================================================
   TAGS / PILLS
   ============================================================ */
.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  color: var(--text-secondary);
}

.tag--green {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}

/* "See Inside" — purple tint matching World Intro card 2 */
.tag--inside {
  background: color-mix(in srgb, var(--accent-2) 12%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent);
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.tag--inside:hover,
.tag--inside[aria-expanded="true"] {
  background: color-mix(in srgb, var(--accent-2) 20%, var(--bg-card));
  border-color: color-mix(in srgb, var(--accent-2) 55%, transparent);
}

/* ============================================================
   SEASONAL BANNER (top of site)
   ============================================================ */
.site-banner {
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-banner--hidden {
  display: none;
}

.site-banner__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.site-banner__link:hover .site-banner__text {
  opacity: 0.92;
}

.site-banner__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: cover;
  object-position: center;
}

.site-banner__img--missing {
  display: none;
}

.site-banner__text {
  display: none;
  margin: 0;
  padding: 0.7rem 1.25rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: var(--white);
}

/* Show text bar when banner image is missing */
.site-banner:has(.site-banner__img--missing) .site-banner__text {
  display: block;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid var(--border);
}

.nav--scrolled {
  background: rgba(0, 0, 0, 0.96);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  max-width: min(220px, 55vw);
}

.nav__logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.nav__logo-text {
  display: none;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav__logo-text.logo-text--visible {
  display: inline;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.nav__links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.nav__cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem !important;
}
.nav__cta:hover { opacity: 0.88; background: var(--accent) !important; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Ambient background shapes */
.hero__bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.18;
}
.shape--1 {
  width: 600px; height: 600px;
  background: var(--accent-2);
  top: -100px; left: -150px;
}
.shape--2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: 0; right: -80px;
}
.shape--3 {
  width: 300px; height: 300px;
  background: var(--accent-2);
  bottom: 20%; left: 40%;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  padding-block: 5rem 4rem;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__sub {
  color: #fff;
  max-width: 46ch;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__note {
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

.hero__book {
  position: relative;
}

.hero__book .shop-card__link {
  width: 100%;
}

.hero__book .shop-card__image {
  aspect-ratio: 1200 / 1500;
}

/* Legacy book mockup (unused — kept for reference) */
.book-mockup {
  position: relative;
  width: min(360px, 100%);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.book-mockup__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder state (shown when image is missing) */
.book-mockup--placeholder .book-mockup__placeholder-label {
  display: flex !important;
}

.book-mockup__placeholder-label {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  text-align: center;
  padding: 1rem;
  line-height: 1.3;
}

/* Scroll hint dot */
.hero__scroll-hint {
  display: flex;
  justify-content: center;
  padding-bottom: 2rem;
}
.scroll-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%       { opacity: 1;   transform: translateY(6px); }
}

/* ============================================================
   WORLD INTRO
   ============================================================ */
.world {
  background: var(--bg-mid);
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--border);
}

.world__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.world__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.world__tap-hint {
  display: none;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* Default — cards 1 & 3 green tint, card 2 purple tint */
.world__card:nth-child(1),
.world__card:nth-child(3) {
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-card));
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}

.world__card:nth-child(2) {
  background: color-mix(in srgb, var(--accent-2) 12%, var(--bg-card));
  border-color: color-mix(in srgb, var(--accent-2) 40%, transparent);
}

/* Hover — desktop only (pointer devices); touch uses .world__card--open via JS */
@media (hover: hover) and (pointer: fine) {
  .world__card:nth-child(1):hover,
  .world__card:nth-child(3):hover {
    background: color-mix(in srgb, var(--accent) 20%, var(--bg-card));
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  }

  .world__card:nth-child(2):hover {
    background: color-mix(in srgb, var(--accent-2) 20%, var(--bg-card));
    border-color: color-mix(in srgb, var(--accent-2) 55%, transparent);
  }

  .world__card:hover {
    transform: translateY(-2px);
  }

  .world__card:hover .world__card-title {
    opacity: 0;
  }

  .world__card:hover .world__card-text {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Tap-to-reveal — mobile / coarse pointer */
.world__card--open {
  transform: translateY(-2px);
  cursor: pointer;
}

.world__card:nth-child(1).world__card--open,
.world__card:nth-child(3).world__card--open {
  background: color-mix(in srgb, var(--accent) 20%, var(--bg-card));
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.world__card:nth-child(2).world__card--open {
  background: color-mix(in srgb, var(--accent-2) 20%, var(--bg-card));
  border-color: color-mix(in srgb, var(--accent-2) 55%, transparent);
}

.world__card--open .world__card-title {
  opacity: 0;
}

.world__card--open .world__card-text {
  opacity: 1;
  pointer-events: auto;
}

.world__card-content {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.world__card-title,
.world__card-text {
  position: absolute;
  transition: opacity 0.35s var(--ease);
}

.world__card-title {
  inset: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0;
  opacity: 1;
  text-align: center;
  pointer-events: none;
}

.world__card-title img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.world__card-title-fallback {
  display: none;
  padding: 2rem 1.75rem;
}

.world__card-title--missing {
  display: flex;
  align-items: center;
  justify-content: center;
}

.world__card-title--missing .world__card-title-fallback {
  display: block;
}

.world__card-text {
  display: block;
  top: 50%;
  left: 0;
  right: 0;
  height: auto;
  max-height: calc(100% - 2rem);
  transform: translateY(-50%);
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  margin: 0;
  opacity: 0;
  padding: 0 1.75rem;
  overflow: hidden;
  pointer-events: none;
}

/* Box 1 — nudge hover copy slightly higher (adjust translateY value to taste) */
.world__card:nth-child(1) .world__card-text {
  transform: translateY(calc(-50% - 0.4rem));
}
/* Box 2 only — extra space before the “100% Human-made…” line (edit in index.html) */
.world__card-text-gap {
  display: block;
  margin-top: 1rem;
}

/* ============================================================
   BOOK SHOWCASE
   ============================================================ */
.book-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.book-section__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.book-section__visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

/* Cover frame — 1:1 square (matches Shop showcase size) */
.book-card__frame {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.book-card__image {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.book-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-card__fallback {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 1rem;
}

.book-card__fallback small {
  font-size: 0.75rem;
  line-height: 1.5;
}

.book-card__image--missing .book-card__fallback {
  display: flex;
}

.book-section__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.book-section__info {
  padding-top: 0.5rem;
  /* ── BOOK TITLE SIZES ── white title + green subtitle (~half) */
  --book-title-size: clamp(2rem, 4vw, 3rem);
  --book-subtitle-size: clamp(1rem, 2vw, 1.5rem);
  /* ── BOOK TITLE INDENTS (tweak these for optical alignment) ──
     Book 1: A under M in Misfits  → --book-indent-m
     Book 2: Night under H in THE  → --book-indent-h
     Raise rem → shifts subtitle right; lower rem → shifts left. */
  --book-indent-m: 5.2rem;
  --book-indent-h: 0.55rem;
  }

.book-section__info h2 {
  font-family: var(--font-display);
  font-size: var(--book-title-size);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

/* Book 2 — all-caps Presents line (white, display font) */
.book-section__presents {
  font-family: var(--font-display);
  font-size: var(--book-title-size);
  line-height: 1.1;
  color: var(--text-primary);
  text-transform: uppercase;
  display: block;
}

/* Green book subtitles — Book 1 & Book 2 match (Nunito, NOT Creepster) */
.book-section__info .book-section__subtitle,
.book-section__subtitle,
.book-section__subtitle--under-m,
.book-section__subtitle--under-h {
  font-family: var(--font-body);
  color: var(--accent);
  font-weight: 700;
  font-style: italic;
  font-size: var(--book-subtitle-size);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

/* Book 1 — A under M */
.book-section__subtitle--under-m {
  padding-left: var(--book-indent-m);
}

/* Book 2 — Night under H of THE */
.book-section__subtitle--under-h {
  padding-left: var(--book-indent-h);
}

.book-section__desc {
  color: #fff;
  margin-bottom: 1rem;
  max-width: 52ch;
}

.book-section__meta {
  margin-block: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.meta-row {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}
.meta-label { color: var(--text-secondary); min-width: 90px; }
.meta-value  { color: var(--text-primary); font-weight: 700; }

.book-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.book-section__divider {
  height: 1px;
  background: var(--border);
  margin-block: clamp(3rem, 6vw, 5rem);
}

.book-section__subtitle--green {
  color: var(--accent);
}

.book-section__layout--preview {
  opacity: 1;
}

/* Interior spread popout — wide landscape, toggled by "See Inside" */
body.book-popout-open {
  overflow: hidden;
}

.book-popout {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.book-popout[hidden] {
  display: none;
}

.book-popout__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(4px);
}

.book-popout__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  animation: book-popout-in 0.28s var(--ease);
}

@keyframes book-popout-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.book-popout__close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 2;
  transform: translateY(-100%);
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  opacity: 0.85;
  transition: opacity var(--dur) var(--ease);
}

.book-popout__close:hover {
  opacity: 1;
}

.book-popout__carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.book-popout__nav {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.book-popout__nav:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.75);
}

.book-popout__spread {
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.book-popout__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.book-popout__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.book-popout__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.book-popout__img--missing {
  opacity: 0;
}

.book-popout__counter {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

/* ============================================================
   AUTHORS
   ============================================================ */
.authors {
  background: var(--bg-mid);
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--border);
  text-align: center;

  /* CUSTOMIZE: Authors page only — photo rings & role labels */
  --authors-accent: #50f210; 
}

.authors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: stretch;
}

.author-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.author-card:hover {
  transform: translateY(-2px);
}

/* Cards 1 & 3 — green highlight (matches Collection available/preview books) */
.author-card:nth-child(1),
.author-card:nth-child(3) {
  border-color: var(--accent);
}

.author-card:nth-child(1):hover,
.author-card:nth-child(3):hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(75, 199, 26, 0.22);
}

.author-card:nth-child(1) .author-card__photo,
.author-card:nth-child(3) .author-card__photo {
  border-color: var(--accent);
}

.author-card:nth-child(1) .author-card__role,
.author-card:nth-child(3) .author-card__role {
  color: var(--accent);
}

/* Card 2 — purple highlight */
.author-card:nth-child(2) {
  border-color: var(--accent-2);
}

.author-card:nth-child(2):hover {
  border-color: var(--accent-2);
  box-shadow: 0 8px 28px rgba(155, 89, 182, 0.22);
}

.author-card:nth-child(2) .author-card__photo {
  border-color: var(--accent-2);
}

.author-card:nth-child(2) .author-card__role {
  color: var(--accent-2);
}

.author-card__photo {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--authors-accent);
  background: var(--bg);
  position: relative;
  transition: border-color var(--dur) var(--ease);
}

.author-card:hover .author-card__photo {
  border-color: inherit;
}

.author-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Initials fallback — shown when photo is missing */
.author-card__photo--empty .author-card__photo-init { display: flex !important; }
.author-card__photo-init {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--authors-accent);
  background: var(--bg-card);
}

.author-card__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
}

.author-card__role {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.author-card__bio {
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
  max-width: 28ch;
}

/* ============================================================
   SERIES
   ============================================================ */
.series {
  padding-block: clamp(4rem, 8vw, 7rem);
}

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

.series__book {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.series__book:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.series__book--available,
.series__book--preview {
  border-color: var(--accent);
}

.series__book--available:hover,
.series__book--preview:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(75, 199, 26, 0.22);
}

.series__cover {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.series__cover img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.series__cover--soon {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.series__cover-num {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.7);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.series__cover--soon .series__cover-num {
  position: static;
  font-size: 3rem;
  background: transparent;
  color: var(--border);
}

.series__coming-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.series__book-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.series__status {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.series__status--out     { color: var(--text-primary); }
.series__status--preview { color: var(--text-primary); }
.series__status--soon    { color: var(--text-secondary); }

.series__coming-label--fallback {
  display: none;
}

.series__cover--soon .series__coming-label--fallback {
  display: block;
}

.series__book-info h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-primary);
}

/* Book 1 & 2 — title green + italic; status line stays white above */
.series__book--available .series__book-info h3,
.series__book--preview .series__book-info h3 {
  color: var(--accent);
  font-style: italic;
}

.series__book--coming .series__book-info h3 {
  font-style: italic;
}

.series__book-info p {
  color: #fff;
  font-size: 0.875rem;
  flex: 1;
}

/* ============================================================
   SHOP
   ============================================================ */
.shop {
  background: var(--bg-mid);
  border-top: 1px solid var(--border);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.shop__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.shop__text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.shop__text p {
  color: #fff;
  margin-bottom: 1.75rem;
  max-width: 40ch;
}

/* Shop showcase — one image where the 4 feature boxes were (upload shop-showcase.jpg) */
.shop-card__link {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.shop-card__link:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.shop-card__image {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.shop-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-card__fallback {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 1rem;
}

.shop-card__fallback small {
  font-size: 0.75rem;
  line-height: 1.5;
}

.shop-card__image--missing .shop-card__fallback {
  display: flex;
}

/* ============================================================
   SOCIAL — INSTAGRAM (same two-column layout as Shop)
   ============================================================ */
.social {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.social__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.social__text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.social__text p {
  color: #fff;
  margin-bottom: 1.75rem;
  max-width: 40ch;
}

/* Instagram showcase — upload social-instagram.jpg */
.social-card__link {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.social-card__link:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-card__image {
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.social-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.social-card__fallback {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 1rem;
}

.social-card__fallback small {
  font-size: 0.75rem;
  line-height: 1.5;
}

.social-card__image--missing .social-card__fallback {
  display: flex;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: var(--accent-2);
  padding-block: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.newsletter__text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem); /* matches .section-title ("Stay in the Loop") */
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
}

.newsletter__text p { color: rgba(255,255,255,0.75); max-width: 38ch; }

.newsletter__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.newsletter__input--email {
  grid-column: 1 / -1;
}

.newsletter__input {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
  transition: border-color var(--dur) var(--ease);
}
.newsletter__input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter__input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
}

.newsletter__form .btn--primary {
  background: var(--white);
  color: var(--accent-2);
  width: 100%;
  margin-bottom: 0.75rem;
}
.newsletter__form .btn--primary:hover { opacity: 0.9; }

.newsletter__form {
  position: relative;
}

.newsletter__form-msg {
  font-size: 0.85rem;
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
}

.newsletter__privacy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
}

/* Honeypot — off-screen, not display:none (bot-accessible, human-invisible) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: 3.5rem 2rem;
}

.footer__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: 3rem;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.5rem;
  max-width: 200px;
}

.footer__logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer__logo-text {
  display: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-primary);
}

.footer__logo-text.logo-text--visible {
  display: inline;
}

.footer__brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  max-width: 24ch;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.footer__nav-col h4 {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.footer__nav-col ul { display: flex; flex-direction: column; gap: 0.5rem; }

.footer__nav-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--dur) var(--ease);
}
.footer__nav-col a:hover { color: var(--text-primary); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ============================================================
   RESPONSIVE — TABLET (max 900px)
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: 3rem 3rem;
  }

  .hero__text { order: 2; }
  .hero__book { order: 1; }

  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__note { text-align: center; }

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

  .world__tap-hint {
    display: block;
  }

  .world__card {
    cursor: pointer;
  }

  .book-section__layout {
    grid-template-columns: 1fr;
  }

  .authors__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-inline: auto;
  }
  .series__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }

  .shop__inner { grid-template-columns: 1fr; }
  .social__inner { grid-template-columns: 1fr; }

  .newsletter__inner { grid-template-columns: 1fr; }
  .newsletter__text h2 { text-align: center; }
  .newsletter__text p { margin-inline: auto; text-align: center; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__nav { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 600px)
   ============================================================ */
@media (max-width: 600px) {
  :root { --nav-height: 60px; }

  .nav__logo-img { height: 32px; }

  /* Show hamburger, hide links by default */
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__links--open { display: flex; }
  .nav__links a { padding: 0.75rem 1rem; border-radius: var(--radius-md); }
  .nav__cta { text-align: center; }

  .hero__title { font-size: clamp(2.2rem, 10vw, 3rem); }

  .newsletter__fields { grid-template-columns: 1fr; }
  .newsletter__input--email { grid-column: 1; }

  .footer__nav { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; text-align: center; }
}
