/* ============================================================
   DarrylSanchez.com — shared styles
   Colors and fonts live in :root. Change them here and every
   page updates.
   ============================================================ */

:root {
  --cream: #ebe9dc;        /* page background */
  --paper: #f6f5ee;        /* light panels (signup) */
  --ink: #111111;          /* text, dark sections */
  --ink-soft: #3f3e39;     /* body text */
  --muted: #6e6c62;        /* small print */
  --blood: #660701;        /* accent red: buttons, "SLAYER" */
  --blood-bright: #b3261b; /* second button */
  --line: #cfccbd;         /* borders on cream */

  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --nav-h: 60px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-soft);
  font: 17px/1.65 var(--body);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blood); text-underline-offset: 3px; }
a:hover { color: var(--blood-bright); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- sticky nav ---------- */
.nav-bar {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(235, 233, 220, .94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--ink);
}
.nav-bar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand {
  font: 700 20px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--blood); }

.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font: 600 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blood); border-bottom-color: var(--blood); }

.menu-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 2px solid var(--ink);
    padding: 8px 22px 18px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .menu-open .nav-links { visibility: visible; opacity: 1; transform: none; }
  .nav-links a { display: block; padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
}

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--display); font-weight: 700; text-transform: uppercase;
  color: var(--ink); line-height: .98; margin: 0 0 .35em; letter-spacing: .01em;
}
h2 { font-size: clamp(34px, 5vw, 44px); }
.kicker {
  font: 600 14px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blood); margin: 0 0 14px;
}
.lede { font-weight: 700; color: var(--ink); font-size: 18px; max-width: 560px; }
.red { color: var(--blood); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 16px 28px; border: 0; cursor: pointer;
  background: var(--blood); color: var(--cream);
  font: 700 19px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border-radius: 2px;
}
.btn:hover { background: #82110a; color: var(--cream); }
.btn.bright { background: var(--blood-bright); color: #fff; }
.btn.bright:hover { background: #cc3324; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(64px, 13vw, 150px); margin: 0 0 18px; }
.hero h1 span { display: block; }
.hero .subtitle {
  font: 600 clamp(16px, 2.2vw, 22px)/1.3 var(--display); letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink); margin: 0 0 22px;
}
.hero .lede { margin: 0 auto; }
.hero .actions { justify-content: center; }
.release { font: 400 14px/1 var(--display); letter-spacing: .12em; color: var(--blood); margin: 18px 0 0; text-transform: uppercase; }

/* ---------- split hero (cover beside text) ---------- */
.hero-split { text-align: left; }
.hero-split .wrap { display: grid; grid-template-columns: 1fr minmax(0, 400px); gap: 56px; align-items: center; }
.hero-split .lede { margin: 0; }
.hero-split h1 { font-size: clamp(56px, 8vw, 112px); }
.hero-split .actions { justify-content: flex-start; }
.hero-cover { width: 100%; box-shadow: 0 30px 50px -18px rgba(0, 0, 0, .45); }
.pink { color: #d6247f; }   /* Le Jungle Cat accent, from its cover */
.jc .kicker { color: #b01d68; }
.btn.pink-btn { background: #d6247f; color: #fff; }
.btn.pink-btn:hover { background: #b01d68; color: #fff; }
.get-book { text-align: center; }
.get-book img { width: 160px; margin: 0 auto 24px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .28)); }
.get-book .actions { justify-content: center; margin-top: 8px; }
@media (max-width: 760px) {
  .hero-split { text-align: center; }
  .hero-split .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-split .lede { margin: 0 auto; }
  .hero-split .actions { justify-content: center; }
  .hero-cover { max-width: 280px; margin: 0 auto; order: -1; }
}

/* ---------- home hero: text left, cover right (desktop) ---------- */
.hero-desktop-cover { display: none; }
@media (min-width: 761px) {
  .hero:has(.hero-main) { padding-top: 40px; }
  .hero-main {
    display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
    text-align: left; max-width: 980px; margin: 0 auto;
  }
  .hero-main h1 { font-size: clamp(64px, 8.5vw, 116px); }
  .hero-main .lede { margin: 0; }
  .hero-desktop-cover {
    display: block; width: auto; max-width: none;
    height: clamp(320px, calc(100vh - var(--nav-h) - 260px), 560px);
    filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .3));
  }
  .hero:has(.hero-main) .actions { margin-top: 28px; }
}

/* ---------- mobile-only cover in the home hero ---------- */
.hero-mobile-cover { display: none; }
@media (max-width: 760px) {
  /* Sized so cover → CTA button fits on the first screen of a phone */
  .hero-mobile-cover {
    display: block; width: auto; margin: 0 auto 14px;
    height: clamp(120px, calc(100svh - var(--nav-h) - 470px), 300px);
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .25));
  }
  .hero:has(.hero-mobile-cover) { padding-top: 16px; }
  .hero:has(.hero-mobile-cover) .kicker { margin-bottom: 8px; }
  .hero:has(.hero-mobile-cover) h1 { font-size: 54px; margin-bottom: 10px; }
  .hero:has(.hero-mobile-cover) .subtitle { font-size: 14px; margin-bottom: 12px; }
  .hero:has(.hero-mobile-cover) .lede { font-size: 15px; line-height: 1.5; }
  .hero:has(.hero-mobile-cover) .actions { margin-top: 16px; }
}

/* ---------- countdown ---------- */
.countdown { display: flex; justify-content: center; align-items: flex-start; gap: 10px; margin-top: 22px; }
.countdown .unit { min-width: 64px; }
.countdown b { display: block; font: 700 44px/1 var(--display); color: var(--ink); }
.countdown small { font: 600 12px/1 var(--display); letter-spacing: .14em; color: var(--muted); }
.countdown .sep { font: 700 36px/1.1 var(--display); color: var(--line); }

/* ---------- trope reveal (scroll-linked) ---------- */
.reveal { position: relative; height: 320vh; margin-top: 40px; }
.reveal-stage {
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h));
  display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: auto 1fr; align-items: center;
  gap: 8px 24px; max-width: var(--wrap); margin: 0 auto; padding: 24px 22px;
  overflow: hidden;
}
.reveal-heading { grid-column: 1 / -1; text-align: center; margin: 0; font-size: clamp(32px, 4.5vw, 52px); }
.reveal-cta { padding: 8px 0 72px; }
.reveal-cta .actions { justify-content: center; margin-top: 0; }
.reveal-cover {
  height: min(66vh, 600px); width: auto; max-width: none;
  opacity: calc(var(--c, 0));
  transform: translateY(calc((1 - var(--c, 0)) * 40px)) scale(calc(.9 + var(--c, 0) * .1));
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .28));
  will-change: opacity, transform;
}
.tropes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-around; height: 80%; }
.tropes.left { align-items: flex-end; }
.tropes.right { align-items: flex-start; }
.trope { display: flex; align-items: center; gap: 10px; --t: 0; }
.tropes.right .trope { flex-direction: row-reverse; }
.trope-label {
  font: 700 clamp(20px, 2.4vw, 30px)/1.05 var(--display); text-transform: uppercase; color: var(--ink);
  opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 14px));
}
.tropes.left .trope-label { text-align: right; }
.trope:nth-child(2) .trope-label { color: var(--blood); }
.trope-arrow { width: 96px; height: 48px; flex: none; overflow: visible; }
.tropes.right .trope-arrow { transform: scaleX(-1); }
.trope-arrow path {
  fill: none; stroke: var(--blood); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--a, 0));
}

@media (max-width: 760px) {
  .reveal { height: 300vh; }
  .reveal-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto 1fr; gap: 6px; padding: 12px 14px; }
  .reveal-heading { font-size: 32px; }
  .reveal-cover { height: min(46svh, 420px); justify-self: center; }
  .reveal-cta { padding: 0 0 56px; }
  .tropes { flex-direction: row; height: auto; justify-content: space-between; align-items: flex-end !important; gap: 6px; }
  .tropes.left { align-self: end; }
  .tropes.right { align-self: start; }
  .tropes.right { align-items: flex-start !important; }
  .trope, .tropes.right .trope { flex: 1 1 0; flex-direction: column; gap: 4px; }
  .tropes.right .trope { flex-direction: column-reverse; }
  .trope-label, .tropes.left .trope-label { font-size: 18px; text-align: center; }
  .trope-arrow { width: 50px; height: 32px; transform: rotate(90deg); }
  .tropes.right .trope-arrow { transform: rotate(-90deg); }
  /* Angle the outer arrows in toward the book */
  .tropes.left .trope:nth-child(1) .trope-arrow { transform: rotate(50deg); }
  .tropes.left .trope:nth-child(3) .trope-arrow { transform: rotate(130deg) scaleY(-1); }
  .tropes.right .trope:nth-child(1) .trope-arrow { transform: rotate(-50deg) scaleY(-1); }
  .tropes.right .trope:nth-child(3) .trope-arrow { transform: rotate(-130deg); }
}

/* Readers who turn off motion see everything in place */
.no-motion .reveal { height: auto; }
.no-motion .reveal-stage { position: static; height: auto; padding-top: 48px; padding-bottom: 48px; }
.no-motion .reveal-cover, .no-motion .trope { --c: 1; --t: 1; --a: 1; }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.dark { background: var(--ink); color: #e2e0d6; }
.dark h2 { color: var(--cream); }
.dark .kicker { color: #f06a5c; }
.prose { max-width: 680px; }
.prose p { margin: 0 0 1.15em; }

.fans { text-align: center; background: var(--blood); color: var(--cream); padding: 64px 0; }
.fans .kicker { color: #f3b2a8; }
.fans .actions { justify-content: center; margin-top: 26px; }
.btn.cream { background: var(--ink); color: var(--cream); }
.btn.cream:hover { background: var(--cream); color: var(--ink); }
.fans .names { font: 700 clamp(28px, 4vw, 40px)/1.1 var(--display); text-transform: uppercase; color: var(--cream); margin: 0 auto 18px; }
.fans .names span { display: block; }
.fans .names .and { font-size: .55em; font-weight: 400; letter-spacing: .14em; color: #f3b2a8; margin: 6px 0; }
.fans p { max-width: 560px; margin: 0 auto; }

/* ---------- signup ---------- */
.signup-section { background: var(--paper); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.signup { max-width: 620px; margin: 0 auto; text-align: center; }
.signup form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.signup input[type="email"], .signup input[type="text"] {
  flex: 1 1 200px; padding: 15px 16px; font: 16px var(--body);
  background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 2px;
}
.signup input:focus { outline: 3px solid var(--blood-bright); outline-offset: 1px; }
.fineprint { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- about ---------- */
.author { text-align: left; }
.author .wrap { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 56px; align-items: center; }
.author h1 { font-size: clamp(52px, 8vw, 96px); }
.author-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--blood); }
.book-row { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; max-width: 820px; }
.book-row img { filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
@media (max-width: 760px) {
  .author .wrap, .book-row { grid-template-columns: 1fr; gap: 28px; }
  .author-photo { max-width: 300px; }
  .book-row img { width: 180px; }
}

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 64px 0 8px; }
.page-head h1 { font-size: clamp(48px, 9vw, 92px); }

/* ---------- footer ---------- */
.site-footer { padding: 32px 0 44px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 60px 0; }
  .countdown b { font-size: 36px; }
  .countdown .unit { min-width: 52px; }
}

/* ---------- signup success / error messages ---------- */
.form-success { margin-top: 20px; padding: 22px 24px; background: #fff; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--blood); text-align: center; outline: none; }
.jc .form-success, .signup-section.jc-signup .form-success { box-shadow: 6px 6px 0 #d6247f; }
.form-success p { margin: 0; }
.form-success-title { font: 700 26px/1.1 var(--display); text-transform: uppercase; color: var(--ink); margin-bottom: 8px !important; }
.form-status { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
.form-status.is-error { color: var(--blood-bright); font-weight: 600; }
