/* =========================================================
   HOW TO HANDLE ANYTHING — design tokens
   Ink navy background, marigold + sky + coral accents.
   Type pairing mirrors the book cover: Archivo Black for the
   bold title treatment, Poppins for the subtitle/kicker line,
   Inter for body copy, IBM Plex Mono for utility labels.
   ========================================================= */
:root {
  --ink:        #12355B; /* deep navy */
  --ink-soft:   #1B4573; /* lighter navy, for dark section variation */
  --paper:      #FFFBF5; /* warm off-white */
  --yellow:     #F4C430; /* marigold */
  --sky:        #9DD1F1; /* light sky blue */
  --coral:      #FF5A5F;
  --slate:      #A9B8C9;
  --slate-dark: #5B6B80;

  --display: 'Archivo Black', system-ui, sans-serif;
  --subhead: 'Poppins', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', 'Courier New', monospace;

  --max: 1180px;
  --edge: clamp(24px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }

img, svg { display: block; max-width: 100%; }

/* ---------- layout helpers ---------- */
section { padding: clamp(64px, 10vw, 120px) var(--edge); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
  font-weight: 500;
}
.section-lede { margin-top: 14px; color: var(--slate-dark); font-size: 17px; }
h2 { font-size: clamp(28px, 4vw, 42px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { box-shadow: 0 8px 24px rgba(255,200,87,0.45); }
.btn-coral { background: var(--coral); color: var(--paper); }
.btn-coral:hover { box-shadow: 0 8px 24px rgba(255,90,95,0.4); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-navy { background: var(--ink-soft); color: var(--paper); }
.btn-navy:hover { box-shadow: 0 8px 24px rgba(157,209,241,0.3); }
.btn-ghost { background: transparent; color: var(--ink); padding-left: 4px; }
.btn-ghost:hover { color: var(--coral); }
.btn-small { padding: 10px 20px; font-size: 14px; }

.text-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  color: var(--coral);
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.15s ease;
}
.text-link:hover { border-color: var(--coral); }

.inline-link {
  color: var(--coral);
  border-bottom: 1px solid rgba(255,90,95,0.4);
  transition: border-color 0.15s ease;
}
.inline-link:hover { border-color: var(--coral); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,251,245,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(18,53,91,0.08);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-mark { font-family: var(--display); font-weight: 400; font-size: 18px; }
.nav-links { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; }
.nav-links a { opacity: 0.75; transition: opacity 0.15s ease; }
.nav-links a:hover { opacity: 1; color: var(--coral); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding-top: clamp(72px, 12vw, 140px);
  padding-bottom: clamp(72px, 12vw, 140px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}
.curveball-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.9;
}
.curveball-path path {
  fill: none;
  stroke: var(--sky);
  stroke-width: 2;
  stroke-dasharray: 6 10;
  opacity: 0.55;
}
.curveball-path #curveball {
  fill: var(--coral);
  offset-path: path('M -20 60 C 300 60, 250 260, 520 300 C 780 335, 700 520, 1020 560 C 1150 578, 1180 600, 1230 640');
  animation: pitch 5.5s ease-in-out infinite;
}
@keyframes pitch {
  0%   { offset-distance: 0%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.hero-inner { position: relative; z-index: 2; }
.eyebrow.mono { color: var(--yellow); }
.hero-title {
  font-size: clamp(48px, 8vw, 92px);
  text-transform: uppercase;
}
.hero-title-outline {
  -webkit-text-stroke: 2px var(--yellow);
  color: transparent;
}
.hero-subtitle {
  margin-top: 20px;
  font-family: var(--subhead);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 22px);
  max-width: 30ch;
  color: var(--paper);
  opacity: 0.92;
}
.hero-byline {
  margin-top: 14px;
  font-size: 15px;
  color: var(--slate);
}
.hero-byline strong { color: var(--paper); }
.hero-countdown {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(157,209,241,0.12);
  border: 1px solid rgba(157,209,241,0.3);
  color: var(--sky);
  font-size: 12.5px;
}
.countdown-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  animation: countdown-pulse 2s ease-in-out infinite;
}
@keyframes countdown-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; align-items: center; }
.hero-actions .btn-ghost { color: var(--paper); }
.hero-actions .btn-ghost:hover { color: var(--yellow); }

.hero-cover {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cover-image {
  width: min(320px, 78vw);
  aspect-ratio: 1594 / 2625;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
  transform: rotate(3deg);
  transition: transform 0.3s ease;
}
.cover-image:hover { transform: rotate(0deg) scale(1.02); }

/* ---------- premise ---------- */
.premise {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.premise-eyebrow { color: var(--coral); }
.premise-statement {
  font-family: var(--subhead);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
  margin: 10px 0 28px;
}
.premise-body { color: var(--slate-dark); font-size: 17.5px; max-width: 640px; margin: 0 auto; }
.premise-body + .premise-body { margin-top: 18px; }

/* ---------- principles ---------- */
.principles { background: var(--ink-soft); color: var(--paper); }
.principles .eyebrow { color: var(--yellow); }
.principles h2 { color: var(--paper); }
.principles .section-lede { color: var(--slate); }
.principles .section-lede em { color: var(--yellow); font-style: normal; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.p-card {
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 30px 28px;
  transform: rotate(var(--r, 0deg));
}
.p-card:nth-child(1) { --r: -0.6deg; }
.p-card:nth-child(2) { --r: 0.5deg; }
.p-card:nth-child(3) { --r: 0.4deg; }
.p-card:nth-child(4) { --r: -0.5deg; }
.p-number { display: block; color: var(--coral); font-size: 12.5px; margin-bottom: 14px; }
.p-card h3 { font-size: 22px; color: var(--paper); margin-bottom: 10px; }
.p-card p { color: var(--slate); font-size: 15px; }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 56px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
}
.about-photo { display: flex; flex-direction: column; align-items: center; gap: 12px; position: sticky; top: 100px; }
.author-photo {
  width: min(220px, 60vw);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 50%;
  border: 3px solid var(--ink);
}
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--slate-dark); font-size: 17px; margin-bottom: 18px; }
.about-copy em { color: var(--ink); font-style: normal; font-weight: 600; }

/* ---------- press ---------- */
.press { padding-top: 0; padding-bottom: 0; }
.press-label { text-align: center; color: var(--slate-dark); margin-bottom: 20px; }
.press-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  font-family: var(--subhead);
  font-weight: 700;
  font-size: 18px;
  color: var(--slate-dark);
  opacity: 0.75;
  padding-bottom: 20px;
}

/* ---------- listen & read ---------- */
.listen-read { background: var(--sky); }
.listen-read .eyebrow { color: var(--ink); }
.listen-read h2 { color: var(--ink); }
.listen-read .section-lede { color: var(--ink); opacity: 0.75; }
.lr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lr-card {
  display: block;
  background: var(--paper);
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 28px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.lr-card:hover { border-color: var(--coral); transform: translateY(-3px); }
.lr-kicker { color: var(--coral); font-size: 12px; }
.lr-card h3 { font-size: 20px; margin: 10px 0; color: var(--ink); }
.lr-card p { color: var(--slate-dark); font-size: 15px; margin-bottom: 6px; }

/* ---------- praise ---------- */
.praise { background: var(--paper); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote-card {
  margin: 0;
  background: #fff;
  border-radius: 10px;
  padding: 30px 26px;
  box-shadow: 0 1px 0 rgba(18,53,91,0.06);
  border: 1px solid rgba(18,53,91,0.08);
}
.quote-card p { font-size: 17px; font-family: var(--subhead); font-weight: 600; line-height: 1.4; }
.quote-card cite { display: block; margin-top: 16px; font-style: normal; color: var(--slate-dark); font-size: 14px; }

/* ---------- preorder ---------- */
.preorder {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.preorder .eyebrow { color: var(--yellow); }
.preorder h2 { color: var(--paper); margin-bottom: 10px; }
.preorder .section-lede { color: var(--slate); margin-bottom: 36px; }
.retailer-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- newsletter ---------- */
.newsletter { background: var(--yellow); }
.newsletter-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.newsletter h2 { font-size: clamp(24px, 3vw, 32px); }
.newsletter p { margin-top: 8px; max-width: 46ch; color: var(--ink); opacity: 0.85; }
.newsletter .btn-coral:hover { box-shadow: 0 8px 24px rgba(18,53,91,0.25); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--slate); padding: 40px var(--edge); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer-inner .nav-mark { color: var(--paper); }
.footer-links { display: flex; gap: 22px; font-size: 14px; }
.footer-links a:hover { color: var(--yellow); }
.footer-copy { font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-cover { align-items: flex-start; }
  .about { grid-template-columns: 1fr; }
  .about-photo { position: static; flex-direction: row; justify-content: flex-start; }
  .card-grid { grid-template-columns: 1fr; }
  .lr-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
}
