/* ══════════════════════════════════════════
   FONTS — self-hosted woff2 (latin) + metric-matched fallbacks.
   Fallbacks are size-adjusted so the swap from system font to webfont
   doesn't move layout (prevents CLS). Lato (body) tuned precisely.
══════════════════════════════════════════ */

@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/anton-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlowcondensed-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlowcondensed-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlowcondensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/lato-300.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/lato-400.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/lato-700.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: italic; font-weight: 300; font-display: swap; src: url('fonts/lato-300italic.woff2') format('woff2'); }

/* Metric-matched fallbacks (local system font adjusted to the webfont's metrics) */
@font-face { font-family: 'Lato Fallback'; src: local('Arial'); size-adjust: 97.69%; ascent-override: 101.05%; descent-override: 21.79%; line-gap-override: 0%; }
@font-face { font-family: 'Barlow Fallback'; src: local('Arial'); size-adjust: 88%; ascent-override: 105%; descent-override: 28%; line-gap-override: 0%; }
@font-face { font-family: 'Anton Fallback'; src: local('Arial'); size-adjust: 85%; ascent-override: 100%; descent-override: 22%; line-gap-override: 0%; }
/* Narrower Anton fallback for the book title (its long line needs a tighter fit to stay 3 lines) */
@font-face { font-family: 'Anton Fallback Tight'; src: local('Arial'); size-adjust: 68%; ascent-override: 100%; descent-override: 22%; line-gap-override: 0%; }

/* ══════════════════════════════════════════
   DESIGN SYSTEM — CSS CUSTOM PROPERTIES
══════════════════════════════════════════ */

:root {
  --bg-0:        #060606;
  --bg-1:        #0b0b0a;
  --bg-2:        #141414;
  --bg-card:     #171717;
  --bg-footer:   #030303;
  --text-1:      #f2ede4;
  --text-2:      #c8c1b6;
  --text-3:      #5e5a56;
  --gold:        #d4a843;
  --gold-bright: #e8c168;
  --gold-book:   #eba104; /* matches the gold on the book cover "DREAMS" — used only for the book-title accent */
  --red:         #be3a2b;
  --red-muted:   rgba(190,58,43,0.18);
  --black:       #000000;
  --white:       #ffffff;

  /* RGB channels for transparent effects — use rgba(var(--gold-rgb), 0.25) */
  --gold-rgb:    212, 168, 67;
  --red-rgb:     190, 58, 43;
  --text-1-rgb:  242, 237, 228;
  --bg-0-rgb:    6, 6, 6;

  /* Platform brand colors */
  --ig-rgb:      225, 48, 108;
  --fb-rgb:      24, 119, 242;
  --yt-rgb:      255, 0, 0;
  --tt-rgb:      255, 0, 80;
  --ss-rgb:      255, 103, 25;
  --x-rgb:       255, 255, 255;

  --bg-card-hover: #1e1e1e;

  --nav-h:       64px;
  --pad-section: 108px;
  --max-w:       1180px;
  --transition:  0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ══════════════════════════════════════════
   BASE RESETS
══════════════════════════════════════════ */

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


html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: hidden; /* prevents horizontal scroll at the viewport level */
}

body {
  background-color: var(--bg-0);
  color: var(--text-1);
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--nav-h);
  overflow-x: hidden;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

/* ══════════════════════════════════════════
   ACCESSIBILITY — SKIP LINK
══════════════════════════════════════════ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--black);
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ══════════════════════════════════════════
   ACCESSIBILITY — FOCUS STATES
══════════════════════════════════════════ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ══════════════════════════════════════════
   LAYOUT — CONTAINER
══════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 40px;
}

@media (max-width: 580px) {
  .container {
    padding-inline: 20px;
  }

  body {
    font-size: 16px;
  }
}

/* ══════════════════════════════════════════
   TYPOGRAPHY UTILITIES
══════════════════════════════════════════ */

.label-tag {
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.rule-gold {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--gold);
}

/* ══════════════════════════════════════════
   SECTION DIVIDER
══════════════════════════════════════════ */

.divider {
  height: 36px;
  background: url('logo-quill-gold.webp') center/auto 100% no-repeat;
  opacity: 0.55;
  max-width: 360px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   SCROLL REVEAL ANIMATION
══════════════════════════════════════════ */

.nowrap { white-space: nowrap; }

.sr {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.sr.in {
  opacity: 1;
  transform: none;
}

.sr-d1 { transition-delay: 0.1s; }
.sr-d2 { transition-delay: 0.2s; }
.sr-d3 { transition-delay: 0.3s; }
.sr-d4 { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .sr {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.08);
}

/* backdrop-filter on ::before avoids making .site-nav a containing block
   for position:fixed children (which would break the mobile nav overlay) */
.site-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(var(--bg-0-rgb), 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-nav .container {
  max-width: 100%;
  padding: 0 40px;
}

@media (max-width: 580px) {
  .site-nav .container {
    padding: 0 20px;
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  width: 100%;
  gap: 0;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Nav emblem (circular wolf-in-moon). Compact size since the hero already presents
   the full wordmark — the nav just needs a brand reference. */
.nav-logo {
  display: block;
  width: 52px;
  height: 52px;
  filter: invert(1);
}

@media (max-width: 580px) {
  .nav-logo { width: 44px; height: 44px; }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  flex: 1;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--transition);
  white-space: nowrap;
}

@media (hover: hover) {
  .nav-list a:hover {
    color: var(--gold);
  }
}

.nav-list-cta {
  display: none;
}

.nav-cta-link {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--black);
  padding: 9px 22px;
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: none;
  box-shadow: 0 3px 14px rgba(var(--gold-rgb), 0.4);
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
}

@media (hover: hover) {
  .nav-cta-link:hover {
    background: var(--gold-bright);
    color: var(--black);
    box-shadow: 0 6px 22px rgba(var(--gold-rgb), 0.55);
    transform: translateY(-1px);
  }
}



/* ── Hamburger button ── */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-1);
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger → X when aria-expanded is true */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ── 940px: nav collapses (matches tablet breakpoint) ── */

@media (max-width: 940px) {
  .nav-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-right: -8px;
    position: relative;
    z-index: 101;
  }

  .nav-toggle span {
    width: 26px;
    height: 2.5px;
    flex-shrink: 0;
  }

  .nav-cta-link {
    display: none;
  }

  .nav-list {
    position: fixed;
    inset: 0;
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: var(--bg-0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .nav-list.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-list a {
    font-size: 1.5rem;
    letter-spacing: 0.22em;
    color: var(--text-1);
  }

  /* "Get the Book" hidden on desktop, shown in mobile overlay */
  .nav-list-cta {
    display: block;
    margin-top: 8px;
  }

  .nav-list-cta a {
    display: inline-block;
    color: var(--gold) !important;
    border: 1px solid var(--gold);
    padding: 12px 36px;
    font-size: 1.1rem !important;
    letter-spacing: 0.22em;
    transition: background var(--transition), color var(--transition);
  }

  .nav-list-cta a:hover {
    background: var(--gold);
    color: var(--black) !important;
  }
}

/* ══════════════════════════════════════════
   BUTTON SYSTEM
══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  outline: none; /* overridden by :focus-visible rule above */
  border-radius: 6px;
  transition: all var(--transition);
}

.btn-gold { background: var(--gold); color: var(--black); }
.btn-ghost { background: transparent; color: var(--text-1); border: 1px solid rgba(var(--text-1-rgb), 0.22); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 1px solid var(--gold); }

@media (hover: hover) {
  .btn-gold:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(var(--gold-rgb), 0.38);
  }
  .btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
  .btn-outline-gold:hover { background: var(--gold); color: var(--black); transform: translateY(-2px); }
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */

#hero {
  position: relative;
  background: var(--bg-0);
  padding: 56px 0 var(--pad-section);
  overflow: hidden;
}

/* ── Atmospheric radial gradients ── */

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-atmosphere::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 65%;
  height: 90%;
  background: radial-gradient(ellipse, rgba(var(--red-rgb), 0.18) 0%, transparent 65%);
}

.hero-atmosphere::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(var(--gold-rgb), 0.13) 0%, transparent 65%);
}

/* ── Grain texture overlay ── */

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: overlay;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* ── Two-column grid ── */

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

.hero-copy {
  max-width: 600px;
  position: relative;
}

/* ── Eyebrow: gold rule + label side by side ── */

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-eyebrow .label-tag {
  margin-bottom: 0;
  -webkit-text-stroke: 0.6px var(--gold);
}

/* ── Heading ── */

.hero-heading {
  margin-bottom: 28px;
  line-height: 0;
}

/* Hero brand mark — wordmark split into 2 colorized pieces.
   logo-weezy-gold.png:    "WEEZY" + wolf head, pre-colored gold
   logo-lonewolf-white.png: "LONEWOLF" wordmark, pre-colored warm white
   No CSS filters needed — colors are baked into the PNGs. */
.hero-name-top {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  aspect-ratio: 1446 / 388; /* reserve space from first paint — prevents CLS */
  margin-bottom: 6px;
}

.hero-name-bot {
  display: block;
  width: 86.4%; /* matches the LONEWOLF/WEEZY width ratio in the original wordmark */
  max-width: 363px;
  height: auto;
  aspect-ratio: 1249 / 146; /* reserve space from first paint — prevents CLS */
  margin-left: 6.8%; /* centers LONEWOLF under WEEZY, preserving the wordmark's original composition */
}

/* ── Tagline ── */

.hero-tagline {
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 600;
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 28px;
}

.hero-tagline b {
  color: var(--text-1);
  font-weight: 700;
}

/* ── Description ── */

.hero-desc {
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 44px;
}

/* ── CTAs ── */

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── Book cover column ── */

.hero-book {
  display: flex;
  justify-content: center;
}

.hero-book-wrap {
  position: relative;
  display: inline-block;
}

.hero-book-link {
  display: block;
  cursor: pointer;
}

/* Gold glow behind cover */
.hero-book-wrap::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(ellipse at center, rgba(var(--gold-rgb), 0.18) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-book-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 3; /* reserve space from first paint (720×1080) — prevents CLS */
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

@media (hover: hover) {
  .hero-book-img:hover {
    transform: rotate(-1.5deg) scale(1.025);
    box-shadow: 0 48px 100px rgba(0, 0, 0, 0.7), 0 16px 40px rgba(var(--gold-rgb), 0.12);
  }
}

/* ── Available Now circular badge ── */

.hero-badge-circle {
  position: absolute;
  top: -20px;
  right: -36px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(var(--gold-rgb), 0.4);
}

/* ── Decorative vertical label ── */

.hero-vertical-label {
  position: absolute;
  left: -36px;
  /* Anchored from the bottom so the label lines up with the paragraph's last
     visible line, regardless of wordmark/hero height (was top: 8.5%, which drifted). */
  bottom: 107px;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  /* Sized to span exactly from the top of the W to the paragraph's last visible
     line (PURPOSE↔W top, DIRECTION's D↔last line). Paired with bottom: 107px. */
  font-size: 0.805rem;
  letter-spacing: 0.525em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Decorative side label: only show on wide screens (≥1100px) where the hero
   buttons stay on one row, so its alignment to the wordmark/paragraph holds.
   Below this (e.g. iPad portrait) the buttons stack and it can't align cleanly. */
@media (max-width: 1099px) {
  .hero-vertical-label { display: none; }
}

/* ── 940px: tablet — keep 2-column, scale book column with viewport ── */

@media (max-width: 940px) {
  #hero {
    padding: 52px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr 42%;
    gap: 24px;
    align-items: start;
  }

  .hero-vertical-label {
    display: none;
  }

  .hero-eyebrow {
    margin-bottom: 10px;
    width: fit-content;
  }

  .hero-eyebrow .label-tag {
    letter-spacing: 0.16em;
  }

  .hero-eyebrow .rule-gold {
    width: 32px;
  }

  .hero-heading {
    font-size: clamp(3rem, 8vw, 4.5rem);
    margin-bottom: 16px;
  }

  .hero-tagline {
    margin-bottom: 24px;
  }

  .hero-badge-circle {
    top: -20px;
    right: -20px;
    width: 68px;
    height: 68px;
    font-size: 0.72rem;
  }
}

/* ── 680px: phone — single column, book above copy ── */

@media (max-width: 680px) {
  #hero {
    padding: 28px 0 52px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-book {
    order: -1;
  }

  .hero-book-img {
    max-width: 240px;
  }

  .hero-heading {
    font-size: clamp(4.2rem, 13vw, 5rem);
    margin-bottom: 12px;
  }

  .hero-tagline {
    margin-bottom: 18px;
  }

  /* Reorder so description appears after CTAs and below initial fold */
  .hero-copy {
    display: flex;
    flex-direction: column;
  }

  .hero-ctas {
    order: 1;
  }

  .hero-desc {
    order: 2;
    margin-top: 48px;
    margin-bottom: 0;
  }

  .hero-badge-circle {
    top: -14px;
    bottom: auto;
    right: -28px;
    width: 56px;
    height: 56px;
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }
}

/* ── 580px: phone — stack CTAs, shrink cover ── */

@media (max-width: 580px) {
  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .hero-heading {
    font-size: clamp(3.8rem, 13vw, 4.2rem);
  }

  .hero-book-img {
    max-width: 220px;
  }
}

/* ── Short small phones only (SE, S8+) — max-height keeps tall narrow phones unaffected ── */
@media (max-width: 390px) and (max-height: 780px) {
  #hero {
    padding-top: 28px;
  }

  .hero-inner {
    gap: 16px;
  }

  .hero-book-img {
    max-width: 200px;
  }

  .hero-heading {
    font-size: 3rem;
    margin-bottom: 12px;
  }

  .hero-eyebrow {
    margin-bottom: 10px;
  }

  .hero-tagline {
    margin-bottom: 20px;
  }
}

/* ── Medium-height desktop screens (Nest Hub Max 1280×800) ── */
@media (min-width: 941px) and (min-height: 681px) and (max-height: 820px) {
  #hero {
    padding: 52px 0;
  }

  .hero-inner {
    grid-template-columns: 1fr 44%;
    align-items: start;
  }

  .hero-vertical-label {
    display: none;
  }

  .hero-book-img {
    max-width: 100%;
    max-height: calc(100vh - 180px);
    width: auto;
  }
}

/* ── Short desktop screens (Nest Hub 1024×600) ── */
@media (min-width: 941px) and (max-height: 680px) {
  #hero {
    padding: 36px 0 52px;
  }

  .hero-vertical-label {
    display: none;
  }

  .hero-heading {
    font-size: clamp(3rem, 6.5vw, 5rem);
    margin-bottom: 16px;
  }

  .hero-desc {
    margin-bottom: 32px;
  }

  .hero-book-img {
    max-height: 460px;
    width: auto;
    max-width: 100%;
  }
}

/* ══════════════════════════════════════════
   CREDIBILITY STRIP
══════════════════════════════════════════ */

#cred-strip {
  padding: 28px 0;
  background: var(--bg-2);
  border-bottom: 1px solid rgba(var(--gold-rgb), 0.12);
}

#cred-strip .container {
  max-width: 100%;
  padding: 0 40px;
}

@media (max-width: 580px) {
  #cred-strip .container {
    padding: 0 20px;
  }
}

.cred-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  width: 100%;
}

.cred-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  flex: 1;
  justify-content: center;
}

.cred-icon {
  width: 30px;
  height: 30px;
  color: var(--gold);
  flex-shrink: 0;
}

.cred-label {
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}

.cred-divider {
  width: 1px;
  height: 28px;
  background: rgba(var(--gold-rgb), 0.25);
  flex-shrink: 0;
}

/* ── 1100px: tighten labels so strip fits on iPad Pro landscape ── */
@media (max-width: 1100px) and (min-width: 941px) {
  .cred-item { gap: 10px; }
  .cred-icon { width: 22px; height: 22px; }
  .cred-label { font-size: 0.8rem; letter-spacing: 0.14em; }
}

@media (max-width: 940px) {
  .cred-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
  }

  .cred-divider { display: none; }

  .cred-item {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 8px;
    gap: 8px;
  }

  .cred-label {
    white-space: normal;
    text-align: center;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    line-height: 1.3;
  }
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */

#about {
  padding: var(--pad-section) 0;
  background: var(--bg-1);
}

.about-inner {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 80px;
  align-items: start;
}

/* ── Photo column ── */

.about-photo-col {
  /* right + bottom padding creates room for the ::after frame offset */
  padding-right: 18px;
  padding-bottom: 18px;
  height: 100%;
}

.about-photo-wrap {
  position: relative;
  display: block;
  height: 100%;
}

/* Gold border frame, offset 18px down-right */
.about-photo-wrap::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  right: -18px;
  bottom: -18px;
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  pointer-events: none;
  z-index: 0;
}

.about-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: grayscale(15%);
  transition: filter var(--transition);
}

.about-photo:hover {
  filter: grayscale(0%);
}

/* ── Copy column ── */

.about-heading {
  font-family: 'Anton', 'Anton Fallback', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.025em;
  color: var(--text-1);
  margin-bottom: 28px;
}

.about-body {
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-2);
  margin-bottom: 20px;
}

.about-body em {
  color: var(--text-1);
  font-style: italic;
}

.about-body:last-of-type {
  margin-bottom: 36px;
}

/* ── Chips ── */

.about-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.about-chip {
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid rgba(var(--gold-rgb), 0.5);
  border-radius: 4px;
  padding: 8px 12px;
  text-align: center;
}

/* ── 1100px: reduce photo column so text col stays readable on small laptops ── */

@media (max-width: 1100px) {
  .about-inner {
    grid-template-columns: 360px 1fr;
    gap: 60px;
  }
}

/* ── 940px: single column ── */

@media (max-width: 940px) {
  #about {
    padding: 80px 0;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .about-photo-col {
    max-width: 520px;
    margin-inline: auto;
  }

  .about-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .about-chip {
    min-width: 0;
    white-space: normal;
    text-align: center;
  }
}

/* ══════════════════════════════════════════
   BOOK
══════════════════════════════════════════ */

/* Colour utilities used in book title */
.c-red  { color: var(--red); }
.c-gold { color: var(--gold); }
.c-gold-book { color: var(--gold-book); } /* book-cover-matched gold, book title only */

#book {
  padding: var(--pad-section) 0;
  background: var(--bg-0);
}

/* align-items: start is required for position: sticky to work in a grid */
.book-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}

/* ── Sticky cover column ── */

.book-cover-col {
  position: sticky;
  top: calc(var(--nav-h) + 36px);
}

.book-cover-wrap {
  position: relative;
  display: block;
}

.book-cover-link {
  display: block;
  cursor: pointer;
}

/* Gold glow behind cover */
.book-cover-wrap::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(ellipse at center, rgba(var(--gold-rgb), 0.18) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.book-cover-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

@media (hover: hover) {
  .book-cover-img:hover {
    transform: rotate(-1.5deg) scale(1.025);
    box-shadow: 0 48px 100px rgba(0, 0, 0, 0.7), 0 16px 40px rgba(var(--gold-rgb), 0.12);
  }
}

.book-cover-amazon-cta {
  display: block;
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-top: 18px;
  opacity: 1;
  transition: color var(--transition);
}

@media (hover: hover) {
  .book-cover-link:hover .book-cover-amazon-cta {
    color: var(--gold-bright);
  }
}

/* ── Copy column ── */

.book-title {
  font-family: 'Anton', 'Anton Fallback Tight', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.025em;
  color: var(--text-1);
  margin-bottom: 20px;
}

.book-subtitle {
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-2);
  margin-bottom: 32px;
}

.book-desc {
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-2);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 32px;
}

.book-format {
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 36px;
}

.book-format strong {
  color: var(--text-1);
  font-weight: 700;
}

.book-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── 940px: single column, cover static ── */

@media (max-width: 940px) {
  #book {
    padding: 80px 0;
  }

  .book-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .book-cover-col {
    position: static;
    display: flex;
    justify-content: center;
  }

  .book-cover-img {
    max-width: 260px;
  }
}

@media (max-width: 580px) {
  .book-ctas {
    flex-direction: column;
  }

  .book-ctas .btn {
    justify-content: center;
  }
}

/* ══════════════════════════════════════════
   SOCIAL PROOF
══════════════════════════════════════════ */

#social-proof {
  padding: 80px 0;
  background: var(--bg-0);
}

#social-proof .container {
  max-width: 100%;
  padding: 0 40px;
}

@media (max-width: 580px) {
  #social-proof .container {
    padding: 0 20px;
  }
}

.sp-header {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 52px;
}

.sp-heading {
  font-family: 'Anton', 'Anton Fallback', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-1);
}

a.sp-marquee-card::after,
a.social-card::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 14px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a843' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'/%3E%3Cpolyline points='7 7 17 7 17 17'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.55;
  transition: opacity var(--transition);
}

@media (hover: hover) {
  a.sp-marquee-card:hover::after,
  a.social-card:hover::after {
    opacity: 1;
  }
}

.sp-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.sp-quote {
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-size: 1rem;
  color: var(--text-1);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  margin: 0;
}

.sp-attr {
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ── Marquee ── */

.sp-marquee-wrapper {
  width: 100%;
  overflow: clip; /* clip (not hidden) prevents scrollIntoView() from shifting the track on focus */
  position: relative;
  margin-top: 52px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.sp-marquee-wrapper::before,
.sp-marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.sp-marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-0), transparent);
}

.sp-marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-0), transparent);
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.sp-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (min-width: 681px) {
  .sp-marquee-track {
    animation: marquee-scroll 35s linear infinite;
  }

  .sp-marquee-wrapper:hover .sp-marquee-track,
  .sp-marquee-wrapper:focus-within .sp-marquee-track {
    animation-play-state: paused;
  }
}

.sp-marquee-card {
  position: relative;
  background: var(--bg-card);
  border-top: 2px solid var(--gold);
  border-radius: 4px;
  padding: 32px 28px;
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text-1);
  text-decoration: none;
  transition: border-top-color 0.2s ease, background 0.2s ease;
}

@media (hover: hover) {
  a.sp-marquee-card:hover {
    border-top-color: var(--gold-bright);
    background: var(--bg-card-hover);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
  }
}

/* ── Phone only (≤680px): infinite transform carousel ── */

@media (max-width: 680px) {
  .sp-marquee-wrapper {
    overflow: hidden;
  }

  .sp-marquee-wrapper::before,
  .sp-marquee-wrapper::after {
    width: 40px;
  }

  /* Hide desktop duplicate cards before JS rebuilds the track */
  .sp-marquee-card:nth-child(n+8) {
    display: none;
  }
}

/* Dot indicators — JS inserts .sp-carousel-dots on carousel screens */
.sp-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
}

.sp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(var(--text-1-rgb), 0.2);
  cursor: pointer;
  padding: 0;
  position: relative;
  touch-action: manipulation;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sp-dot::before {
  content: '';
  position: absolute;
  inset: -10px;
}

.sp-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ══════════════════════════════════════════
   SOCIAL LINKS
══════════════════════════════════════════ */

#social {
  padding: var(--pad-section) 0;
  background: var(--bg-1);
}

.social-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 52px;
}

.social-heading {
  font-family: 'Anton', 'Anton Fallback', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.025em;
  color: var(--text-1);
  margin-bottom: 16px;
}

.social-sub {
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-2);
}

/* ── Grid ── */

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ── Cards ── */

.social-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 24px;
  background: var(--bg-card);
  color: var(--text-1);
  border-radius: 4px;
  transition: transform var(--transition);
}

/* Gold bottom border that slides in left→right on hover */
.social-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

@media (hover: hover) {
  .social-card:hover {
    transform: translateY(-3px);
  }

  .social-card:hover::before {
    transform: scaleX(1);
  }
}

/* ── Icon wrap ── */

.social-icon-wrap {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.social-icon-wrap svg {
  width: 28px;
  height: 28px;
}

/* ── Card text ── */

.social-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.social-platform {
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-1);
  transition: color var(--transition);
}

@media (hover: hover) {
  .social-card:hover .social-platform {
    color: var(--gold);
  }
}

.social-handle {
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-size: 0.82rem;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Platform icon colors — applied directly on SVG via sc-icon-* class ── */
.sc-icon-instagram { color: #E1306C; }
.sc-icon-facebook  { color: #1877F2; }
.sc-icon-youtube   { color: #FF0000; }
.sc-icon-tiktok    { color: #FF0050; }
.sc-icon-twitter   { color: #ffffff; }
.sc-icon-substack  { color: #FF6719; }

/* ── Platform card bottom-border colors (always set, scaleX controlled by hover) ── */
.social-card--instagram::before { background: rgba(var(--ig-rgb), 1); }
.social-card--facebook::before  { background: rgba(var(--fb-rgb), 1); }
.social-card--youtube::before   { background: rgba(var(--yt-rgb), 1); }
.social-card--tiktok::before    { background: rgba(var(--tt-rgb), 1); }
.social-card--x::before         { background: rgba(var(--x-rgb), 0.6); }
.social-card--substack::before  { background: rgba(var(--ss-rgb), 1); }

/* ── Platform card hover accents — pointer devices only ── */
@media (hover: hover) {
  .social-card--instagram:hover { background: rgba(var(--ig-rgb), 0.07); }
  .social-card--instagram:hover .social-platform { color: rgba(var(--ig-rgb), 1); }

  .social-card--facebook:hover { background: rgba(var(--fb-rgb), 0.07); }
  .social-card--facebook:hover .social-platform { color: rgba(var(--fb-rgb), 1); }

  .social-card--youtube:hover { background: rgba(var(--yt-rgb), 0.07); }
  .social-card--youtube:hover .social-platform { color: rgba(var(--yt-rgb), 1); }

  .social-card--tiktok:hover { background: rgba(var(--tt-rgb), 0.07); }
  .social-card--tiktok:hover .social-platform { color: rgba(var(--tt-rgb), 1); }

  .social-card--x:hover { background: rgba(var(--text-1-rgb), 0.04); }
  .social-card--x:hover .social-platform { color: rgba(var(--x-rgb), 0.6); }

  .social-card--substack:hover { background: rgba(var(--ss-rgb), 0.07); }
  .social-card--substack:hover .social-platform { color: rgba(var(--ss-rgb), 1); }
}

/* ── Touch-device active states (equivalent of hover for mobile) ── */

@media (hover: none) {
  /* Book covers — scale + tilt on tap */
  .hero-book-img:active {
    transform: rotate(-1.5deg) scale(1.025);
    box-shadow: 0 48px 100px rgba(0, 0, 0, 0.7), 0 16px 40px rgba(var(--gold-rgb), 0.12);
  }

  .book-cover-img:active {
    transform: rotate(-1.5deg) scale(1.025);
    box-shadow: 0 48px 100px rgba(0, 0, 0, 0.7), 0 16px 40px rgba(var(--gold-rgb), 0.12);
  }

  /* Social cards — lift + gold underline on tap */
  .social-card:active {
    transform: translateY(-3px);
  }

  .social-card:active::before {
    transform: scaleX(1);
  }

  .social-card:active .social-platform {
    color: var(--gold);
  }

  /* Buttons — lift on tap */
  .btn-gold:active {
    background: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(var(--gold-rgb), 0.38);
  }

  .btn-ghost:active {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
  }

  .btn-outline-gold:active {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
  }
}

/* ── Hashtag ── */

.social-hashtag {
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-align: center;
  margin-top: 48px;
}

/* ── 940px: 2-column ── */

@media (max-width: 940px) {
  #social {
    padding: 80px 0;
  }

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

/* ── 480px: 1-column ── */

@media (max-width: 480px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════
   NEWSLETTER
══════════════════════════════════════════ */

#newsletter {
  padding: 96px 0;
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}

#newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(var(--gold-rgb), 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#newsletter .container {
  position: relative;
  z-index: 1;
}

/* ── Two-column layout ── */

.nl-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: stretch;
}

.nl-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ── Heading ── */

.newsletter-heading {
  font-family: 'Anton', 'Anton Fallback', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.15;
  letter-spacing: 0.025em;
  color: var(--text-1);
  margin-bottom: 20px;
}

.nl-rule {
  margin-bottom: 28px;
}

/* ── Benefit list ── */

.nl-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nl-benefit-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}

.nl-benefit-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* ── Description ── */

.newsletter-description {
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-2);
  margin-bottom: 0;
}

/* ── Card ── */

.nl-card {
  background: var(--bg-card);
  border: 1px solid rgba(var(--gold-rgb), 0.22);
  border-radius: 4px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  /* Distribute the three blocks (heading / form group / tagline) so the form
     sits centered and the tagline anchors to the bottom — keeps the card
     balanced no matter how short the Beehiiv form collapses to. */
  justify-content: space-between;
  gap: 28px;
}

/* Reserve the Beehiiv form's height up front so lazy-loading it injects
   without shifting layout (prevents CLS). Matches the rendered form (47px). */
.nl-form-slot {
  min-height: 47px;
}

/* Form + privacy travel together as the centered middle block.
   Capped width so the input doesn't stretch awkwardly wide when the card
   spans full width (tablet / single-column layouts). */
.nl-form-group {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
}

/* Beehiiv embed iframe — keep it flush in the card so the form, once styled
   transparent in the Beehiiv dashboard, reads as part of the card. */
.nl-card iframe {
  display: block;
  width: 100% !important;
  margin: 0;
  border: 0;
}

/* ── Card heading ── */

.nl-card-heading {
  font-family: 'Anton', 'Anton Fallback', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.025em;
  color: var(--text-1);
  text-align: center;
}

/* ── Tagline pull quote ── */

.nl-tagline-block {
  margin-top: 0; /* card uses justify-content: space-between to anchor this to the bottom */
  padding-top: 28px;
  border-top: 1px solid rgba(var(--gold-rgb), 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.nl-tagline {
  font-family: 'Anton', 'Anton Fallback', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0;
}

.nl-tagline strong {
  color: var(--gold);
}

/* ── Privacy text ── */

.newsletter-privacy {
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.6;
  text-align: center;
}

/* ── 940px: stack to single column ── */

@media (max-width: 940px) {
  #newsletter {
    padding: 80px 0;
  }

  .nl-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .nl-copy {
    align-items: center;
    text-align: center;
  }

  .nl-benefit-list li {
    justify-content: center;
  }
}

/* ── 580px: form stacks ── */

@media (max-width: 580px) {
  .nl-card {
    padding: 32px 24px;
  }
}

/* ══════════════════════════════════════════
   SUBSTACK POSTS
══════════════════════════════════════════ */

#substack-section {
  padding: var(--pad-section) 0;
  background: var(--bg-1);
}

.substack-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 52px;
}

.substack-heading {
  font-family: 'Anton', 'Anton Fallback', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0.025em;
  color: var(--text-1);
}

/* Grid container — JS renders children into this, and adds --1/--2/--3 modifier */
.substack-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  min-height: 180px;
}

.substack-posts--1 {
  grid-template-columns: minmax(280px, 480px);
  justify-content: center;
}

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

/* ── Post cards (JS-rendered) ── */

.substack-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  color: var(--text-1);
  overflow: hidden;
  border: 1px solid rgba(var(--gold-rgb), 0.1);
  border-radius: 4px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

@media (hover: hover) {
  .substack-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--gold-rgb), 0.35);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  }
}

/* ── Cover image ── */

.substack-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
  flex-shrink: 0;
}

.substack-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .substack-card:hover .substack-card-img img {
    transform: scale(1.04);
  }
}

/* Fallback when post has no image — subtle gold gradient placeholder */
.substack-card-img--empty {
  background: linear-gradient(135deg, var(--bg-2) 0%, rgba(var(--gold-rgb), 0.06) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.substack-card-img--empty::after {
  content: 'W';
  font-family: 'Anton', 'Anton Fallback', sans-serif;
  font-size: 3rem;
  color: rgba(var(--gold-rgb), 0.15);
  letter-spacing: 0.05em;
}

/* ── Card body ── */

.substack-card-body {
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.sp-date {
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
}

.sp-title {
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text-1);
  transition: color var(--transition);
}

@media (hover: hover) {
  .substack-card:hover .sp-title {
    color: var(--gold);
  }
}

.sp-excerpt {
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-2);
  flex: 1;
}

.sp-read-more {
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
  transition: color var(--transition);
}

@media (hover: hover) {
  .substack-card:hover .sp-read-more {
    color: var(--gold-bright);
  }
}

/* ── Fallback (JS-rendered on fetch error) ── */

.substack-fallback {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 20px;
  text-align: center;
}

.substack-fallback-rule {
  margin: 0 auto;
}

.substack-fallback-heading {
  font-family: 'Anton', 'Anton Fallback', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-1);
}

.substack-fallback-desc {
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-2);
  max-width: 480px;
}

.substack-fallback-topics {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px;
  justify-content: center;
}

.substack-fallback-topics span {
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid rgba(var(--gold-rgb), 0.4);
  padding: 6px 14px;
}

.substack-more {
  text-align: center;
  margin-top: 40px;
}

/* ── 940px: single column ── */

@media (max-width: 940px) {
  #substack-section {
    padding: 80px 0;
  }

  .substack-posts,
  .substack-posts--1,
  .substack-posts--2 {
    grid-template-columns: 1fr;
    justify-content: stretch;
    max-width: 560px;
    margin-inline: auto;
  }
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */

.site-footer {
  background: var(--bg-footer);
  padding: 44px 0;
  border-top: 1px solid rgba(var(--text-1-rgb), 0.05);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* ── Brand + copyright ── */

/* Footer brand mark — same 2 pre-colored pieces as the hero so the
   colors match: WEEZY (gold) over LONEWOLF (warm white). Colors are
   baked into the PNGs, so no CSS filters are needed. */
.footer-logo-mark {
  display: block;
  width: 200px;
  margin-bottom: 14px;
}

.footer-logo-top {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1446 / 388;
  margin-bottom: 4px;
}

.footer-logo-bot {
  display: block;
  width: 86.4%; /* matches the LONEWOLF/WEEZY width ratio in the wordmark */
  height: auto;
  aspect-ratio: 1249 / 146;
  margin-left: 6.8%; /* centers LONEWOLF under WEEZY, as in the hero */
}

.footer-brand {
  font-family: 'Anton', 'Anton Fallback', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-1);
  margin-bottom: 8px;
}

.footer-brand em {
  font-style: normal;
  color: var(--gold);
}

.footer-copy {
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.5;
}

/* ── Footer nav links ── */

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  font-family: 'Barlow Condensed', 'Barlow Fallback', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color var(--transition);
}

@media (hover: hover) {
  .footer-nav a:hover {
    color: var(--gold);
  }
}

/* ── Contact ── */

.footer-contact p {
  font-family: 'Lato', 'Lato Fallback', sans-serif;
  font-size: 0.95rem;
  color: var(--text-1);
}

.footer-contact a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--gold-rgb), 0.5);
  transition: color var(--transition), text-decoration-color var(--transition);
}

@media (hover: hover) {
  .footer-contact a:hover {
    color: var(--gold-bright);
    text-decoration-color: var(--gold-bright);
  }
}

/* ── 580px: stack and centre ── */

@media (max-width: 580px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }
}
