/* ==========================================================================
   Chestnut Hollow Blues — site stylesheet
   Palette drawn from the cover art: weathered teal court, cream block
   lettering, deep slate green, one muted brick accent for CTAs.
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable) ---------- */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Custom properties ---------- */

:root {
  --teal: #7e9c98;        /* dusty court teal */
  --teal-light: #b8cbc8;  /* sage — secondary text on dark */
  --slate: #2c3e3a;       /* deep slate green */
  --slate-deep: #1f2b28;  /* darkest — overlays, footer */
  --slate-raised: #3a4f4a;/* raised cards on dark */
  --cream: #efe8da;       /* cover lettering cream */
  --cream-page: #f4efe4;  /* page background */
  --cream-alt: #e9e1cd;   /* alternate section background */
  --ink: #25322f;         /* body text on cream */
  --ink-soft: #51605c;    /* secondary text on cream */
  --brick: #a04425;       /* CTA — muted basketball brick (5.2:1 w/ cream) */
  --brick-bright: #b3502e;/* CTA hover */
  --brick-deep: #8d3b1f;  /* brick-toned links on cream (6:1) */
  --font-display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --measure: 70ch;
  --space: clamp(3.5rem, 8vw, 6.5rem);
  --nav-h: 4.25rem;       /* fixed header height — used for body offset & hero bleed */
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
}

/* Cross-document page transitions (progressive enhancement, Chromium) */
@view-transition {
  navigation: auto;
}

@keyframes vt-fade-out {
  to { opacity: 0; transform: translateY(-6px); }
}

@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(10px); }
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: 200ms cubic-bezier(0.4, 0, 1, 1) both vt-fade-out;
  }
  ::view-transition-new(root) {
    animation: 360ms cubic-bezier(0, 0, 0.2, 1) 80ms both vt-fade-in;
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

body {
  margin: 0;
  padding-top: var(--nav-h); /* offset for the fixed nav bar */
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--cream-page);
  -webkit-text-size-adjust: 100%;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--slate);
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); letter-spacing: 0.05em; }

p,
ul,
ol,
blockquote {
  margin: 0 0 1.25em;
}

a {
  color: var(--brick-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.section-dark :focus-visible,
.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cream);
}

/* ---------- Utilities ---------- */

.container {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

.prose {
  max-width: var(--measure);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  background: var(--cream);
  color: var(--slate);
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  text-decoration: none;
  transition: top 120ms ease;
}

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

/* Placeholder marker — easy to spot until real content arrives */
.placeholder-note {
  display: inline-block;
  background: #f6e8c8;
  border: 1px dashed var(--brick-deep);
  color: var(--brick-deep);
  font-size: 0.9rem;
  padding: 0.15em 0.5em;
  border-radius: 3px;
}

/* ---------- Header & navigation ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--slate);
  color: var(--cream);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.22);
  transition: background 320ms ease, box-shadow 320ms ease;
}

/* Home page: nav starts transparent over the hero image */
.site-header[data-transparent] {
  background: linear-gradient(to bottom, rgba(31, 43, 40, 0.72), transparent);
  box-shadow: none;
}

/* Once scrolled, always show the solid slate bar */
.site-header.scrolled {
  background: var(--slate);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.32);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  height: 100%;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-decoration: none;
}

.brand:hover {
  color: var(--teal-light);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(239, 232, 218, 0.55);
  border-radius: 4px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: border-color 200ms ease, background 200ms ease;
}

.nav-toggle:hover {
  border-color: var(--cream);
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--cream);
  background: var(--slate-raised);
}

/* Hamburger bars — animate to × when open */
.hamburger-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 200ms ease,
              width 280ms ease;
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-decoration: none;
  padding: 0.35rem 0;
  position: relative;
  transition: color 200ms ease;
}

/* Animated underline that grows from the left */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a:hover {
  color: var(--teal-light);
}

.site-nav a[aria-current="page"] {
  color: var(--teal-light);
}

/* Mobile nav — JS enhances; without JS the links simply wrap */
@media (max-width: 47.99em) {
  .js .nav-toggle {
    display: flex;
  }

  /* Slide-down reveal using max-height + opacity so we can animate it */
  .js .site-nav {
    flex-basis: 100%;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 320ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 240ms ease,
                visibility 0ms linear 320ms;
  }

  .js .site-nav[data-open="true"] {
    max-height: 24rem;
    opacity: 1;
    visibility: visible;
    transition: max-height 320ms cubic-bezier(0.4, 0, 0.2, 1),
                opacity 240ms ease,
                visibility 0ms linear 0ms;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-block: 0.5rem 1rem;
  }

  /* Stagger each link on open */
  .js .site-nav li {
    transform: translateY(-6px);
    opacity: 0;
    transition: transform 240ms ease, opacity 200ms ease;
  }

  .js .site-nav[data-open="true"] li {
    transform: translateY(0);
    opacity: 1;
  }

  .js .site-nav[data-open="true"] li:nth-child(1) { transition-delay: 60ms; }
  .js .site-nav[data-open="true"] li:nth-child(2) { transition-delay: 100ms; }
  .js .site-nav[data-open="true"] li:nth-child(3) { transition-delay: 140ms; }
  .js .site-nav[data-open="true"] li:nth-child(4) { transition-delay: 180ms; }
  .js .site-nav[data-open="true"] li:nth-child(5) { transition-delay: 220ms; }

  .js .site-nav a {
    display: block;
    padding: 0.6rem 0;
    border-bottom: none;
  }
}

@media (max-width: 47.99em) and (prefers-reduced-motion: reduce) {
  .js .site-nav,
  .js .site-nav[data-open="true"] {
    transition: none;
  }
  .js .site-nav li,
  .js .site-nav[data-open="true"] li {
    transition: none;
    transition-delay: 0ms;
  }
  .hamburger-bar {
    transition: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--slate-deep);
  color: var(--cream);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Bleed behind the fixed nav so the backdrop fills 100% of the viewport */
  margin-top: calc(-1 * var(--nav-h));
  padding-top: var(--nav-h);
  min-height: 100svh;
}

/* Cover art as full-bleed backdrop: blurred, darkened, teal-tinted */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(7px) brightness(0.5) saturate(0.85);
  transform: scale(1.1);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(31, 43, 40, 0.92) 0%,
    rgba(31, 43, 40, 0.72) 45%,
    rgba(126, 156, 152, 0.38) 100%);
}

.hero-body {
  position: relative;
  z-index: 1;
}

.hero-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.hero-body .container {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 56em) {
  .hero-body .container {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.hero-kicker {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal-light);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(3rem, 9vw, 5.75rem);
  color: var(--cream);
  line-height: 0.95;
  margin-bottom: 0.35em;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  text-transform: none;
  letter-spacing: 0;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
}

.hero-author {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.hero .hook {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 44ch;
  color: #e3ddd0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------- 3D book mockup ---------- */

.book3d {
  --book-w: clamp(13rem, 26vw, 19rem);
  --book-th: 2.2rem;
  perspective: 1100px;
  justify-self: center;
  padding-bottom: 2.5rem; /* room for the floor shadow */
}

.book3d-inner {
  position: relative;
  width: var(--book-w);
  transform-style: preserve-3d;
  /* positive angle exposes the left face = spine */
  transform: rotateY(24deg) rotateX(2deg);
  animation: book-float 6s ease-in-out infinite;
  background: var(--slate-deep); /* back board */
  border-radius: 2px;
}

.book3d-front {
  transform: translateZ(var(--book-th));
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  box-shadow: inset 4px 0 8px rgba(0, 0, 0, 0.25);
}

.book3d-front img {
  width: 100%;
}

/* generated spine — darkened strip of court teal */
.book3d-spine {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--book-th);
  transform-origin: left center;
  transform: rotateY(-90deg);
  background: linear-gradient(180deg, #46605b 0%, #31453f 55%, #25342f 100%);
  box-shadow: inset -6px 0 10px rgba(0, 0, 0, 0.35);
}

/* floor shadow */
.book3d::after {
  content: "";
  display: block;
  width: 85%;
  height: 1.4rem;
  margin: 1.6rem auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse closest-side, rgba(0, 0, 0, 0.5), transparent);
  animation: shadow-float 6s ease-in-out infinite;
}

@keyframes book-float {
  0%, 100% { transform: rotateY(24deg) rotateX(2deg) translateY(0); }
  50%      { transform: rotateY(24deg) rotateX(2deg) translateY(-0.8rem); }
}

@keyframes shadow-float {
  0%, 100% { opacity: 1; transform: scaleX(1); }
  50%      { opacity: 0.65; transform: scaleX(0.92); }
}

@media (max-width: 55.99em) {
  .book3d {
    order: -1; /* mockup above text when stacked */
    padding-top: 1rem;
  }

  .book3d-inner {
    transform: rotateY(12deg);
  }

  @keyframes book-float {
    0%, 100% { transform: rotateY(12deg) translateY(0); }
    50%      { transform: rotateY(12deg) translateY(-0.6rem); }
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 0.8rem 2rem;
  border-radius: 3px;
  border: 2px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease,
    color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(31, 43, 40, 0.28);
  }
}

.btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn-primary {
  background: var(--brick);
  color: var(--cream);
  border-color: var(--brick);
}

.btn-primary:hover {
  background: var(--brick-bright);
  border-color: var(--brick-bright);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-secondary:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
}

/* secondary button on light backgrounds */
.btn-outline-dark {
  background: transparent;
  color: var(--slate);
  border-color: var(--slate);
}

.btn-outline-dark:hover {
  background: var(--slate);
  color: var(--cream);
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--space);
}

.section-alt {
  background: var(--cream-alt);
}

.section-dark {
  background: var(--slate);
  color: var(--cream);
}

.section-dark h2,
.section-dark h3 {
  color: var(--cream);
}

.section-dark a {
  color: var(--teal-light);
}

/* court-line heading rule */
.section-title {
  position: relative;
  padding-bottom: 0.55rem;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4.5rem;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
}

/* ---------- Page entrance (every page: fade + subtle drift up) ---------- */

@media (prefers-reduced-motion: no-preference) {
  body {
    animation: page-in 480ms cubic-bezier(0, 0, 0.2, 1) both;
  }
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Hero entrance (staggered fade-up on load) ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Start after the body page-in (480ms) so transforms don't compound */
  .hero-text > * {
    animation: rise-in 560ms cubic-bezier(0, 0, 0.2, 1) both;
  }

  .hero-text > :nth-child(1) { animation-delay: 380ms; }
  .hero-text > :nth-child(2) { animation-delay: 460ms; }
  .hero-text > :nth-child(3) { animation-delay: 540ms; }
  .hero-text > :nth-child(4) { animation-delay: 620ms; }
  .hero-text > :nth-child(5) { animation-delay: 700ms; }
  .hero-text > :nth-child(6) { animation-delay: 780ms; }

  .book3d {
    animation: rise-in 660ms 580ms cubic-bezier(0, 0, 0.2, 1) both;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
  }
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(1.8rem);
    transition: opacity 550ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 550ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .js .reveal.revealed {
    opacity: 1;
    transform: none;
  }

  /* stagger siblings when they share a grid/flex parent */
  .js .reveal.revealed ~ .reveal.revealed { transition-delay: 120ms; }
  .js .reveal.revealed ~ .reveal.revealed ~ .reveal.revealed { transition-delay: 240ms; }
}

/* ---------- Pull quotes ---------- */

.quote-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 48em) {
  .quote-grid {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }
}

.pull-quote {
  background: var(--slate-raised);
  border-radius: 6px;
  padding: 1.75rem 1.5rem 1.5rem;
  margin: 0;
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .pull-quote:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(16, 24, 22, 0.3);
  }
}

.pull-quote::before {
  content: "\201C";
  font-family: var(--font-body);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--teal);
  display: block;
  margin-bottom: 0.25rem;
}

.pull-quote p {
  font-style: italic;
  margin-bottom: 1rem;
}

.pull-quote footer {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--teal-light);
  font-style: normal;
}

.pull-quote footer a {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: rgba(239, 232, 218, 0.35);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 180ms ease;
}

.pull-quote footer a:hover {
  text-decoration-color: var(--cream);
}

/* ---------- Home: intro split with stats ---------- */

.intro-split {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 48em) {
  .intro-split {
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

/* Stats sidebar */
.book-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (min-width: 48em) {
  .book-stats {
    grid-template-columns: 1fr;
    align-self: center;
  }
}

.book-stats li {
  padding: 1.25rem 1rem;
  border-top: 1px solid var(--cream-alt);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.book-stats li:first-child {
  border-top: none;
}

@media (max-width: 47.99em) {
  .book-stats li:nth-child(2) { border-top: none; }
  .book-stats li:nth-child(odd) { border-right: 1px solid var(--cream-alt); }
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  color: var(--slate);
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}

/* ---------- Court photo background (Praise + Interview wrapper) ---------- */

/* Single wrapper owns the photo — both sections share one image render */
.court-duo {
  position: relative;
  overflow: hidden; /* clips the blur bleed from ::after */
  background-color: var(--slate);
}

/* Blurred image layer — isolated in ::after so only the photo is blurred */
.court-duo::after {
  content: "";
  position: absolute;
  inset: -30px; /* extend beyond edges to hide blur-edge softness */
  background-image: url("/images/court-hoop.jpg");
  background-size: cover;
  background-position: center 55%;
  filter: blur(7px);
  z-index: 0;
}

.webp .court-duo::after {
  background-image: url("/images/court-hoop.webp");
}

/* Dark slate-teal overlay sits above the blurred photo */
.court-duo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(31, 43, 40, 0.90) 0%,
    rgba(44, 62, 58, 0.82) 50%,
    rgba(31, 43, 40, 0.88) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Content sits above both the image and the overlay */
.court-duo > * {
  position: relative;
  z-index: 2;
}

.court-duo .section-dark {
  background: transparent;
}

/* ---------- Home: interview split ---------- */

.interview-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 56em) {
  .interview-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 4rem;
  }
}

/* ---------- Home: articles grid ---------- */

.articles-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 48em) {
  .articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  }
}

.article-card {
  background: #fff;
  border: 1px solid #ddd3bc;
  border-top: 3px solid var(--teal);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(31, 43, 40, 0.12);
  }
}

.article-source {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin: 0;
}

.article-card h3 {
  font-size: 1.1rem;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
}

.article-link {
  color: var(--ink);
  text-decoration: none;
}

.article-link:hover {
  color: var(--brick-deep);
  text-decoration: underline;
}

.article-date {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

.article-card p:last-child {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-soft);
  flex: 1;
}

/* ---------- Home: grid alias (legacy) ---------- */

.intro-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 48em) {
  .intro-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

/* ---------- Book page ---------- */

.book-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48em) {
  .book-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
  }
}

.book-cover-frame {
  position: sticky;
  top: 8rem;
  max-width: 18rem;
}

.book-cover-frame img {
  box-shadow: 0 14px 35px rgba(31, 43, 40, 0.4);
  border-radius: 3px;
}

.theme-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.theme-list li {
  padding-left: 1.5rem;
  position: relative;
}

.theme-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--teal);
}

.excerpt {
  border-left: 4px solid var(--teal);
  background: var(--cream-alt);
  padding: 1.5rem 1.75rem;
  font-style: italic;
}

.book-details {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.book-details th,
.book-details td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #d4cab4;
  vertical-align: top;
}

.book-details th {
  font-weight: 600;
  white-space: nowrap;
}

.retailer-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.retailer-list .btn {
  width: 100%;
  max-width: 26rem;
  text-align: center;
}

.retailer-pending {
  max-width: 26rem;
  text-align: center;
  padding: 0.75rem 1.75rem;
  border: 2px dashed var(--ink-soft);
  border-radius: 4px;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------- About grid (shared by about.html and homepage #about) ---------- */

.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48em) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
    align-items: start;
  }
}

.headshot-frame {
  max-width: 18rem;
  margin: 0;
}

.headshot-frame img {
  border-radius: 6px;
  box-shadow: 0 14px 35px rgba(31, 43, 40, 0.35);
}

.headshot-frame figcaption {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

/* Homepage #about: image fills the full height of the right column */
@media (min-width: 48em) {
  #about .about-grid {
    align-items: stretch;
  }

  #about .headshot-frame {
    max-width: none;
    display: flex;
    flex-direction: column;
  }

  #about .headshot-frame picture {
    flex: 1;
    display: flex;
  }

  #about .headshot-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }
}

/* ---------- Video embed ---------- */

.video-embed {
  max-width: 46rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(31, 43, 40, 0.3);
  background: var(--slate-deep);
}

.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.interview-yt-link {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.9rem;
}

.interview-yt-link a {
  color: var(--teal-light);
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  transition: color 180ms ease;
}

.interview-yt-link a:hover {
  color: var(--cream);
}

/* ---------- Media card row (About page: secondary videos) ---------- */

.media-card-row {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (min-width: 44em) {
  .media-card-row {
    grid-template-columns: 1fr 1fr;
  }
}

.media-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(184, 203, 200, 0.14);
  border-radius: 8px;
  padding: 1.25rem;
}

.media-card .video-embed {
  max-width: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.media-card-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--teal-light);
  margin: 0 0 0.35rem;
}

.media-card-title {
  font-size: 1rem;
  color: var(--cream);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.65rem 0 0.25rem;
  line-height: 1.25;
}

.media-card-link {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-light);
  text-decoration: none;
  margin-top: 0.5rem;
  transition: color 180ms ease;
}

.media-card-link:hover {
  color: var(--cream);
}

/* theme-list on dark section backgrounds */
.section-dark .theme-list li {
  color: var(--cream);
}

.section-dark .theme-list li::before {
  background: var(--teal);
}

/* ---------- Articles & Press page ---------- */

.press-header {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.press-header .section-title::after {
  background: var(--teal);
}

/* Wider minimum so cards aren't too narrow on large screens */
.press-grid {
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
}

/* article-card h2 (not h3 like on homepage) size match */
.press-grid .article-card h2 {
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
}

/* ---------- News page (legacy list — kept for reference) ---------- */

.news-list {
  display: grid;
  gap: 1.75rem;
  max-width: var(--measure);
}

.news-item {
  background: #faf6ec;
  border: 1px solid #ddd3bc;
  border-left: 4px solid var(--teal);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(31, 43, 40, 0.12);
  }
}

.news-item h2 {
  font-size: 1.3rem;
  margin-bottom: 0.35rem;
}

.news-item time {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brick-deep);
  margin-bottom: 0.75rem;
}

.news-item :last-child {
  margin-bottom: 0;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48em) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: start;
  }
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  max-width: 34rem;
}

.contact-form label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #faf6ec;
  border: 1px solid #a99e85;
  border-radius: 4px;
  padding: 0.65rem 0.85rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--brick-bright);
  outline-offset: 1px;
  border-color: var(--brick-deep);
}

.contact-form button {
  justify-self: start;
  cursor: pointer;
}

.contact-aside {
  background: var(--cream-alt);
  border-radius: 6px;
  padding: 1.75rem;
}

.contact-aside :last-child {
  margin-bottom: 0;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  color: var(--cream);
  text-align: center;
  padding-block: calc(var(--space) * 1.1);
  overflow: hidden;
  /* JPG fallback for browsers without WebP CSS support */
  background-image: url("/images/cta-bg.jpg");
  background-size: cover;
  background-position: center 40%;
  background-color: var(--slate);
}

/* WebP override where supported */
.webp .cta-band {
  background-image: url("/images/cta-bg.webp");
}

/* dark slate-teal gradient over the court photo */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(31, 43, 40, 0.88) 0%,
    rgba(44, 62, 58, 0.80) 50%,
    rgba(126, 156, 152, 0.65) 100%
  );
  pointer-events: none;
}

/* very subtle parallax-like scale on the bg (GPU-composited, no jank) */
@media (prefers-reduced-motion: no-preference) {
  .cta-band {
    background-attachment: fixed;
  }
}

.cta-band .container {
  position: relative;
}

.cta-band h2 {
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.cta-band p {
  max-width: 50ch;
  margin-inline: auto;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.cta-band .btn {
  margin-top: 0.75rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--slate-deep);
  color: var(--cream);
  padding-block: 2.5rem;
  font-size: 0.95rem;
}

.site-footer .container {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48em) {
  .site-footer .container {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

.site-footer a {
  color: var(--cream);
}

.site-footer a:hover {
  color: var(--teal-light);
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
}

.footer-meta {
  color: var(--teal-light);
  margin: 0;
}

/* ---------- 404 ---------- */

.error-page {
  text-align: center;
  padding-block: calc(var(--space) * 1.5);
}

/* ---------- Motion preferences ---------- */

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