/* =============================================================
   The Healing Power of Animism — site stylesheet
   Visual language derived from the book cover. Restraint first.
   See docs/healing-power-of-animism-website-spec.md
   ============================================================= */

/* ---------- Fonts ---------- */
/* Imported via <link> in each page <head> for font-display: swap.
   Fraunces (display), Spectral (body), Cormorant Garamond (italic accent). */

/* ---------- Design tokens ---------- */
:root {
  /* Structural — the calm field */
  --ink:          #0C1A33;
  --navy:         #14274D;
  --navy-panel:   #1B335F;
  --periwinkle:   #A9C2E4;
  --cream:        #F4EFE4;
  --cream-muted:  #C9CFDD;

  /* The one accent */
  --amber:        #E0821C;
  --amber-deep:   #C66E14;

  /* Emblem colors — quarantined to the medicine wheel + beaded border */
  --wheel-water:  #3C5DA8;
  --wheel-stone:  #8C9095;
  --wheel-nature: #3E8E45;
  --wheel-fire:   #BE3A2B;
  --wheel-spiral: var(--amber);

  /* Type */
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-body:    "Spectral", Georgia, serif;
  --font-italic:  "Cormorant Garamond", "Fraunces", Georgia, serif;

  /* Spacing rhythm */
  --measure: 66ch;
  --gutter:  clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(3.5rem, 9vw, 7rem);

  /* Lines / radii */
  --hairline: 1px solid rgba(169, 194, 228, 0.16);
  --radius:   6px;

  --header-h: 4.25rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--navy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  /* Faint forest/bark grain over the navy ground — felt, not seen (2%). */
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

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

ul, ol { padding: 0; list-style: none; }

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; cursor: pointer; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: var(--amber);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  z-index: 1000;
  /* Hidden by its own height — always fully off-screen until keyboard-focused. */
  transform: translateY(-250%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--periwinkle);
  font-variation-settings: "SOFT" 40, "WONK" 12, "opsz" 60;
  letter-spacing: -0.012em;
}

h1 { font-size: clamp(2.75rem, 6vw, 5rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }

p { max-width: var(--measure); }

.lead {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.4;
  color: var(--cream);
  font-weight: 500;
}

/* Tracked-out capitals — echoes the cover's author name + nav */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-block;
  margin-bottom: 1rem;
}

.caps {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
}

.prose p + p { margin-top: 1.15rem; }
.prose a { text-decoration: none; border-bottom: 1px solid transparent; }
.prose a:hover, .prose a:focus-visible {
  text-decoration: none;
  border-bottom-color: currentColor;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 52rem; }

section { padding-block: var(--section-y); position: relative; }

.section-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head p { color: var(--cream-muted); margin-top: 0.75rem; }

.panel { background: var(--navy-panel); }
.ink-bg { background: var(--ink); }

/* ---------- Beaded border (cover motif — used at top edge + above footer only) ----------
   Hand-varied brushstrokes (irregular length, width, tilt, spacing) rendered
   as an SVG tile, echoing the painted dashes on the book-cover frame. */
.beaded-border {
  height: 10px;
  width: 100%;
  background: url("/assets/img/beaded-border.svg") repeat-x left center;
  background-size: auto 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  min-height: 44px;
}
.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--amber);
  color: var(--ink);
}
.btn--primary:hover { background: var(--amber-deep); }

.btn--secondary {
  background: transparent;
  color: var(--periwinkle);
  border-color: var(--periwinkle);
}
.btn--secondary:hover { background: var(--navy-panel); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(12, 26, 51, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--periwinkle);
}
.brand:hover { text-decoration: none; }
.brand .logomark { width: 34px; height: 34px; flex: none; }
.brand-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.15;
  max-width: 13ch;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.nav-links a {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--cream-muted);
  text-decoration: none;
  padding-block: 0.4rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--periwinkle); }
.nav-links a[aria-current="page"] { color: var(--amber); }

.nav-buy { margin-left: 0.25rem; }
.btn--nav { padding: 0.55rem 1.15rem; font-size: 0.85rem; min-height: 0; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--periwinkle);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after  { transform: translateY(5px); }

/* Full-screen overlay menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transform: translateY(-100%);
  transition: transform 0.32s ease;
  overflow: hidden;
}
.nav-overlay.is-open { transform: translateY(0); }
.nav-overlay .wheel-watermark {
  position: absolute;
  width: 120vw;
  max-width: 760px;
  opacity: 0.05;
  pointer-events: none;
}
.nav-overlay a {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.4rem;
  color: var(--periwinkle);
  text-decoration: none;
  z-index: 1;
}
.nav-overlay a:hover { color: var(--amber); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(3rem, 8vw, 6rem) var(--section-y);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.hero-cover {
  justify-self: center;
  max-width: 320px;
  width: 100%;
}
.hero-cover img {
  width: 100%;
  border-radius: 3px;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 30px 60px -20px rgba(0, 0, 0, 0.65);
}
.hero-title { margin-bottom: 1.4rem; }
.hero-title .accent { color: var(--amber); display: block; }
.hero .lead { margin-bottom: 1.9rem; max-width: 30ch; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.hero-meta {
  margin-top: 2rem;
  color: var(--cream-muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* ---------- Medicine-wheel watermark ---------- */
.watermark {
  position: absolute;
  pointer-events: none;
  opacity: 0.045;
  z-index: 0;
  width: min(80vw, 720px);
}
.watermark--right { right: -14%; top: 12%; }
.watermark--left  { left: -16%; bottom: -8%; }
section > .wrap { position: relative; z-index: 1; }

/* ---------- Crocodile divider ---------- */
.croc-divider {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 30rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
}
.croc-divider::before,
.croc-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(169, 194, 228, 0.22);
}
.croc-divider .croc { width: 82px; }

/* ---------- "What you'll learn" list ---------- */
.learn-list {
  display: grid;
  gap: 0.95rem;
  margin-top: 1.6rem;
}
.learn-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  max-width: var(--measure);
}
.learn-list .croc {
  width: 36px;
  flex: none;
  margin-top: 0.1rem;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--navy-panel);
  border: var(--hairline);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
}
.card--rule { border-top: 2px solid var(--wheel-water); }
.card--rule.r-stone  { border-top-color: var(--wheel-stone); }
.card--rule.r-nature { border-top-color: var(--wheel-nature); }
.card--rule.r-fire   { border-top-color: var(--wheel-fire); }

/* ---------- Praise ---------- */
.praise-lead {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(2rem, 5vw, 3rem);
}
.praise-lead blockquote {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.4;
  color: var(--cream);
}
.quote {
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--cream);
}
.quote-attr {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
}
.quote-attr .name {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--periwinkle);
}
.quote-attr .role {
  display: block;
  font-size: 0.9rem;
  color: var(--cream-muted);
  margin-top: 0.2rem;
}

/* ---------- Table of contents ---------- */
.toc { margin-top: 1.5rem; max-width: 40rem; }
.toc li {
  display: flex;
  gap: 1.1rem;
  padding-block: 0.7rem;
  border-bottom: var(--hairline);
}
.toc li:last-child { border-bottom: 0; }
.toc .num {
  font-family: var(--font-body);
  letter-spacing: 0.14em;
  color: var(--amber);
  font-size: 0.9rem;
  min-width: 2.5rem;
  padding-top: 0.15rem;
}
.toc .title { font-family: var(--font-display); color: var(--periwinkle); }

/* ---------- Excerpt teaser ---------- */
.excerpt-teaser {
  border-left: 2px solid var(--amber);
  padding-left: 1.5rem;
  margin-top: 1.5rem;
}

/* ---------- Author ---------- */
.author-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.author-photo {
  max-width: 300px;
}
.author-photo img {
  border-radius: var(--radius);
  filter: saturate(0.82) contrast(1.02);
}
.photo-placeholder {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(160deg, var(--navy-panel), var(--ink));
  border: var(--hairline);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--cream-muted);
  text-align: center;
  padding: 1.5rem;
}
.photo-placeholder .croc { width: 116px; opacity: 0.8; }

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.4rem;
}
.social-links a {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  color: var(--periwinkle);
  border: var(--hairline);
  border-radius: 50%;
}
.social-links a:hover { color: var(--amber); border-color: var(--amber); }
.social-links svg { width: 18px; height: 18px; }

/* ---------- Events ---------- */
.event-list { display: grid; gap: 1rem; }
.event-card {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  background: var(--navy-panel);
  border: var(--hairline);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.event-date {
  text-align: center;
  flex: none;
  font-family: var(--font-display);
  line-height: 1;
}
.event-date .mon {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--amber);
}
.event-date .day { display: block; font-size: 1.9rem; color: var(--periwinkle); }
.event-info h3 { color: var(--periwinkle); }
.event-info p { color: var(--cream-muted); font-size: 0.95rem; margin-top: 0.2rem; }

/* ---------- Buy ---------- */
.buy-head {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}
.buy-head img { width: 96px; border-radius: 2px; flex: none; }
.format-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.format-toggle .chip {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.95rem;
  border: var(--hairline);
  border-radius: 999px;
  color: var(--cream-muted);
}
.format-toggle .chip[aria-current="true"] {
  border-color: var(--amber);
  color: var(--amber);
}
.retailer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}
.retailer {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--navy-panel);
  border: var(--hairline);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.retailer:hover {
  text-decoration: none;
  border-color: var(--amber);
  transform: translateY(-2px);
}
.retailer .r-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--periwinkle);
}
.retailer .r-meta { font-size: 0.85rem; color: var(--cream-muted); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--navy-panel);
  border: var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 40rem;
}
.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.signup-form input[type="email"] {
  flex: 1 1 14rem;
  font: inherit;
  font-size: 1rem;
  padding: 0.8rem 1rem;
  background: var(--ink);
  border: var(--hairline);
  border-radius: var(--radius);
  color: var(--cream);
}
.signup-form input::placeholder { color: var(--cream-muted); }
.form-note { font-size: 0.85rem; color: var(--cream-muted); margin-top: 0.85rem; }
.form-feedback {
  margin-top: 0.9rem;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--amber);
}
.form-feedback:empty { display: none; }

/* ---------- Generic forms (contact) ---------- */
.field { margin-bottom: 1.25rem; max-width: 34rem; }
.field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--periwinkle);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.95rem;
  background: var(--ink);
  border: var(--hairline);
  border-radius: var(--radius);
  color: var(--cream);
}
.field textarea { min-height: 9rem; resize: vertical; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- "Paper" treatment — long-read excerpt page ---------- */
.paper {
  background: var(--cream);
  color: var(--ink);
}
.paper h1, .paper h2, .paper h3 { color: var(--ink); }
.paper .eyebrow { color: var(--amber-deep); }
.paper a { color: var(--amber-deep); }
.paper .reader {
  max-width: 38rem;
  margin-inline: auto;
  font-size: 1.18rem;
  line-height: 1.78;
}
.paper .reader p + p { margin-top: 1.3rem; }
/* Drop cap on the first body paragraph — skip the placeholder note if present. */
.paper .reader p:first-of-type:not(.placeholder)::first-letter,
.paper .reader p.placeholder + p::first-letter {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.8;
  float: left;
  padding: 0.15rem 0.6rem 0 0;
  color: var(--amber-deep);
}
.paper .watermark { opacity: 0.06; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.footer-col h4 {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--amber);
  margin-bottom: 0.9rem;
}
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a {
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--periwinkle); }
.footer-ornament {
  display: flex;
  justify-content: center;
  margin-block: 2.25rem 1.25rem;
}
.footer-ornament .croc { width: 100px; opacity: 0.92; }
.footer-legal {
  text-align: center;
  color: var(--cream-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}
.footer-legal a { color: var(--cream-muted); }

/* ---------- Back-to-top crocodile ---------- */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--navy-panel);
  border: var(--hairline);
  border-radius: 50%;
  color: var(--wheel-nature);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, border-color 0.18s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { border-color: var(--amber); }
.to-top .croc { width: 34px; transform: rotate(-90deg); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
}
.page-hero h1 { font-size: clamp(2.25rem, 5vw, 3.6rem); }
.page-hero p { color: var(--cream-muted); margin-top: 0.9rem; }

/* ---------- Fact sheet (press) ---------- */
.fact-sheet { display: grid; gap: 0.6rem; margin-top: 1.5rem; max-width: 34rem; }
.fact-sheet div {
  display: flex;
  gap: 1rem;
  padding-block: 0.55rem;
  border-bottom: var(--hairline);
}
.fact-sheet dt {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--amber);
  min-width: 9rem;
  flex: none;
}
.fact-sheet dd { color: var(--cream); }

/* ---------- Placeholder marker ---------- */
.placeholder {
  border: 1px dashed rgba(224, 130, 28, 0.5);
  border-radius: var(--radius);
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  color: var(--amber);
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  display: inline-block;
}

/* ---------- Motif sizing ---------- */
/* Outer <svg> wrappers carry no viewBox, so give them an aspect ratio
   matching the sprite symbols they <use>. */
.croc { aspect-ratio: 620 / 210; display: block; }
.logomark,
.watermark,
.wheel-watermark { aspect-ratio: 1 / 1; }

/* ---------- Logomark entrance: one gentle full revolution (reduced-motion aware) ----------
   A full 360° lands every quadrant back home, so the spin resolves cleanly. */
.logomark { animation: emblem-in 2s cubic-bezier(0.4, 0.05, 0.25, 1) both; }
@keyframes emblem-in {
  from { opacity: 0; transform: scale(0.6) rotate(-360deg); }
  to   { opacity: 1; transform: none; }
}

/* Section fade-in (nice-to-have, tiny distance) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .hero-cover { justify-self: start; order: 2; }
  .hero-text { order: 1; }
  .author-grid { grid-template-columns: 300px 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.4fr; }
}

@media (max-width: 860px) {
  .nav-links:not(.nav-overlay) { display: none; }
  .nav-buy { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 600px) {
  .watermark { opacity: 0.03; width: 130vw; }
  .buy-head { flex-direction: column; align-items: flex-start; }
  .croc-divider { gap: 0.7rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .logomark { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
