/* ============================================================
   MOTORCYCLES & LEGENDS — Design Tokens + Component Styles
   ============================================================ */

/* ---- Fonts ---- */
/* Clash Display (Fontshare) — bold, condensed-feeling display font for racing-poster energy */
/* Satoshi (Fontshare) — clean geometric sans for body/UI */

:root {
  --font-display: 'Clash Display', 'Arial Narrow', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;

  /* ---- Fluid type scale ---- */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 0.5rem + 6.5vw, 7rem);

  /* ---- 4px spacing system ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ---- Radius ---- */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* ---- Transitions ---- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ---- Content widths ---- */
  --content-narrow: 640px;
  --content-default: 1000px;
  --content-wide: 1240px;
  --content-full: 100%;
}

/* ============================================================
   COLOR SYSTEM — "Adventure Poster" palette
   Bold & energetic: deep navy/charcoal base, orange + gold accents
   ============================================================ */

:root,
[data-theme='light'] {
  /* Surfaces — warm map-paper cream */
  --color-bg: #f3ede0;
  --color-surface: #fbf7ee;
  --color-surface-2: #ffffff;
  --color-surface-offset: #ece3d1;
  --color-surface-offset-2: #e3d8c1;
  --color-divider: #d8caa9;
  --color-border: #c9b992;

  /* Text — deep navy ink */
  --color-text: #171c2b;
  --color-text-muted: #55596c;
  --color-text-faint: #93917f;
  --color-text-inverse: #fbf7ee;

  /* Primary accent — signal orange */
  --color-primary: #d9550f;
  --color-primary-hover: #b6440a;
  --color-primary-active: #8f3608;
  --color-primary-highlight: #f4d9bf;

  /* Secondary accent — gold */
  --color-gold: #b9800a;
  --color-gold-hover: #986a06;
  --color-gold-active: #785305;
  --color-gold-highlight: #f0dfaf;

  /* Navy accent (for tags, links) */
  --color-navy: #232d4d;
  --color-navy-hover: #1a2138;

  --color-success: #3f7a3a;
  --color-warning: #b9800a;
  --color-error: #b03636;

  --shadow-sm: 0 1px 2px oklch(0.2 0.03 60 / 0.1);
  --shadow-md: 0 6px 18px oklch(0.2 0.03 60 / 0.14);
  --shadow-lg: 0 16px 40px oklch(0.2 0.03 60 / 0.2);

  --grain-opacity: 0.05;
}

[data-theme='dark'] {
  /* Surfaces — deep navy/charcoal, "night ride" base */
  --color-bg: #0e121d;
  --color-surface: #151b29;
  --color-surface-2: #1b2233;
  --color-surface-offset: #202940;
  --color-surface-offset-2: #29334c;
  --color-divider: #2a3146;
  --color-border: #3a4360;

  /* Text — warm cream */
  --color-text: #f3eee1;
  --color-text-muted: #9aa1bb;
  --color-text-faint: #656d8c;
  --color-text-inverse: #14182a;

  /* Primary accent — signal orange (brighter for dark bg) */
  --color-primary: #ff7a29;
  --color-primary-hover: #ff9450;
  --color-primary-active: #ffab73;
  --color-primary-highlight: #3d2b1e;

  /* Secondary accent — gold */
  --color-gold: #f0b429;
  --color-gold-hover: #f7c65a;
  --color-gold-active: #fad685;
  --color-gold-highlight: #3a2f16;

  --color-navy: #aab4d8;
  --color-navy-hover: #ccd3ea;

  --color-success: #7cbb6e;
  --color-warning: #f0b429;
  --color-error: #e07a7a;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);

  --grain-opacity: 0.08;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --color-bg: #0e121d;
    --color-surface: #151b29;
    --color-surface-2: #1b2233;
    --color-surface-offset: #202940;
    --color-surface-offset-2: #29334c;
    --color-divider: #2a3146;
    --color-border: #3a4360;
    --color-text: #f3eee1;
    --color-text-muted: #9aa1bb;
    --color-text-faint: #656d8c;
    --color-text-inverse: #14182a;
    --color-primary: #ff7a29;
    --color-primary-hover: #ff9450;
    --color-primary-active: #ffab73;
    --color-primary-highlight: #3d2b1e;
    --color-gold: #f0b429;
    --color-gold-hover: #f7c65a;
    --color-gold-active: #fad685;
    --color-gold-highlight: #3a2f16;
    --color-navy: #aab4d8;
    --color-navy-hover: #ccd3ea;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
    --shadow-md: 0 8px 24px oklch(0 0 0 / 0.45);
    --shadow-lg: 0 20px 48px oklch(0 0 0 / 0.55);
    --grain-opacity: 0.08;
  }
}

/* ============================================================
   GLOBAL TEXTURE — subtle paper grain overlay
   ============================================================ */
body {
  position: relative;
  background-color: var(--color-bg);
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

p {
  max-width: 65ch;
}

.prose p,
.prose li {
  max-width: 68ch;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.1);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--hidden {
  transform: translateY(-100%);
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.brand svg {
  width: 38px;
  height: 38px;
  color: var(--color-primary);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.05;
  font-weight: 600;
}
.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav-links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-interactive);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--color-text);
}
.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-primary);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    inset: 64px var(--space-4) auto var(--space-4);
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    gap: var(--space-1);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform var(--transition-interactive),
      opacity var(--transition-interactive);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: var(--space-3) var(--space-3);
    border-radius: var(--radius-md);
    display: block;
  }
  .nav-links a:hover {
    background: var(--color-surface-offset);
  }
  .nav-toggle {
    display: flex;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding-inline: var(--space-2);
}
.btn-ghost:hover {
  color: var(--color-primary);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(var(--space-10), 8vw, var(--space-16));
  padding-bottom: clamp(var(--space-16), 10vw, var(--space-32));
  overflow: hidden;
}
.hero-grid {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-5);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-12);
  align-items: center;
}
.hero-copy h1 {
  font-size: var(--text-hero);
  margin-block: var(--space-4) var(--space-5);
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--color-primary);
}
.hero-copy p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3.1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, oklch(from var(--color-bg) l c h / 0.55), transparent 55%);
}
.hero-tag {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  z-index: 2;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy p {
    max-width: 100%;
  }
}

/* Decorative route-line divider between sections */
.route-divider {
  position: relative;
  height: 64px;
  margin-block: calc(var(--space-8) * -1) 0;
  z-index: 3;
  pointer-events: none;
}
.route-divider svg {
  width: 100%;
  height: 100%;
  color: var(--color-primary);
  opacity: 0.55;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-2);
}
.section-head p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
}

/* ============================================================
   CARDS — News / Bike / Route grids
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-8);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-primary);
}
.card-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card-media img {
  transform: scale(1.05);
}
.card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.card-meta {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.card-body h3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0;
}
.card-body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  flex: 1;
}
.card-foot {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.card-foot svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition-interactive);
}
.card:hover .card-foot svg {
  transform: translateX(3px);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.badge--gold {
  background: var(--color-gold-highlight);
  color: var(--color-gold);
}

/* ============================================================
   FEATURE / SPOTLIGHT PANEL (Bike of the Week / Route of the Week)
   ============================================================ */
.spotlight {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-md);
}
.spotlight-media {
  position: relative;
}
.spotlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}
.spotlight-body {
  padding: clamp(var(--space-8), 5vw, var(--space-12));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.spotlight-body h3 {
  font-size: var(--text-xl);
}
.spotlight-body p {
  color: var(--color-text-muted);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-block: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.stat-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  font-weight: 700;
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
}
.spotlight-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

@media (max-width: 780px) {
  .spotlight {
    grid-template-columns: 1fr;
  }
  .spotlight-media img {
    min-height: 240px;
  }
}

/* Rider mini-profile embedded in Route of the Week */
.rider-strip {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-surface-offset);
  border-radius: var(--radius-lg);
  margin-top: var(--space-2);
}
.rider-strip img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-primary);
}
.rider-strip .rider-name {
  font-weight: 700;
  font-size: var(--text-sm);
}
.rider-strip .rider-tag {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   PULL QUOTE
   ============================================================ */
.pull-quote {
  max-width: var(--content-narrow);
  margin: var(--space-16) auto;
  text-align: center;
  padding-inline: var(--space-5);
}
.pull-quote p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  max-width: 100%;
}
.pull-quote cite {
  display: block;
  margin-top: var(--space-4);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 700;
}

/* ============================================================
   LINKS PAGE
   ============================================================ */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-5);
}
.link-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
}
.link-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.link-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.link-icon svg {
  width: 22px;
  height: 22px;
}
.link-photo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
}
.link-card h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
}
.link-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-12);
  align-items: start;
}
.about-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: var(--space-24);
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-6);
  border-left: 2px solid var(--color-divider);
  padding-left: var(--space-6);
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(var(--space-6) * -1 - 5px);
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
}
.timeline-year {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: var(--text-base);
}
.timeline-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  margin-top: var(--space-1);
}
.timeline-item p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

/* Interview Q&A (About page) */
.interview {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-6);
}
.interview-item {
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.interview-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.interview-q {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text);
  margin: 0 0 var(--space-2);
  line-height: 1.3;
}
.interview-q .interview-tag {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  padding: 0.15em 0.6em;
  line-height: 1.6;
}
.interview-a {
  color: var(--color-text-muted);
  margin: 0;
  padding-left: calc(var(--space-3) + 2.2em);
}
@media (max-width: 640px) {
  .interview-a {
    padding-left: 0;
  }
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-block: var(--space-8);
}
.stat-strip .stat-card {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface-offset);
  text-align: center;
}
.stat-strip .stat-card .num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  display: block;
}
.stat-strip .stat-card .label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 700;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-media {
    position: static;
    max-width: 420px;
  }
}

/* ============================================================
   ARTICLE / DETAIL PAGES
   ============================================================ */
.article-hero {
  padding-block: clamp(var(--space-10), 6vw, var(--space-16)) var(--space-8);
}
.article-hero .eyebrow {
  margin-bottom: var(--space-4);
}
.article-hero h1 {
  font-size: var(--text-2xl);
  max-width: 20ch;
}
.article-meta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.article-cover {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-12);
}
.article-cover img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.prose {
  max-width: var(--content-narrow);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.prose h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-6);
}
.prose h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-4);
}
.prose ul {
  list-style: disc;
  padding-left: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.prose blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-5);
  font-style: normal;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
}
.prose-link {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.prose-link:hover {
  color: var(--color-primary);
}
.prose-photo {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: var(--space-8) 0 var(--space-2);
}
.prose-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.prose-photo.is-square {
  max-width: 320px;
  margin-inline: auto;
  background: #fff;
}
.prose-photo.is-square img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
}
.prose-caption {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-8);
}

.related-grid {
  margin-top: var(--space-16);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
  padding-block: var(--space-16) var(--space-8);
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--color-divider);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--color-text);
  text-decoration: none;
}
.footer-brand svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}
.footer-brand span {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}
.footer p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  max-width: 34ch;
}
.footer h5 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
  color: var(--color-text-faint);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}
.footer-links a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-social {
  display: flex;
  gap: var(--space-3);
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}
.footer-social a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.footer-social svg {
  width: 16px;
  height: 16px;
}
.footer-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.contact-button {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  border-radius: 999px;
  background-color: #01696f;
  color: #f9f8f4;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.contact-button:hover {
  background-color: #0c4e54;
  color: #f9f8f4;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.contact-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}
.contact-panel h2 {
  margin-top: var(--space-2);
  font-size: var(--text-2xl);
}
.contact-panel p {
  margin: var(--space-4) auto var(--space-6);
  color: var(--color-text-muted);
  max-width: 32rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   PAGE HERO (interior pages: About, Links, archives)
   ============================================================ */
.page-hero {
  padding-block: clamp(var(--space-12), 8vw, var(--space-20)) var(--space-8);
  text-align: center;
}
.page-hero h1 {
  font-size: var(--text-2xl);
  margin-top: var(--space-3);
}
.page-hero p {
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-top: var(--space-3);
  font-size: var(--text-base);
}

/* Reveal-on-scroll (progressive enhancement, JS toggles .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.text-center {
  text-align: center;
}
.mt-8 {
  margin-top: var(--space-8);
}
.flex-wrap-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 600px) {
  .stat-row,
  .stat-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
  .stat-value,
  .stat-strip .num {
    font-size: var(--text-base);
  }
}
