/* ==========================================================================
   TPN Explorer / Darren Carter — shared design system
   Warm fireside edition: deep espresso base, ivory text, gold and copper
   accents. Each persona keeps its own (warm) accent via [data-theme] on
   <body>. Legacy --navy-* names are kept as aliases so the jukebox and any
   inline styles keep working unchanged.
   ========================================================================== */

:root {
  /* Warm ivory paper base: a premium printed memoir in daylight */
  --paper: #f7f1e5;
  --paper-2: #efe7d5;
  --card: #fdfaf3;
  --ink: #241b10;
  --ink-strong: #17110a;

  /* Dark tokens kept for the jukebox cabinet, lightbox and dark bands */
  --warm-950: #0f0c08;
  --warm-900: #16110b;
  --warm-850: #1c160e;
  --warm-800: #251d12;
  --warm-700: #342917;
  --warm-600: #4a3a21;
  --navy-950: var(--warm-950);
  --navy-900: var(--warm-900);
  --navy-850: var(--warm-850);
  --navy-800: var(--warm-800);
  --navy-700: var(--warm-700);
  --navy-600: var(--warm-600);

  --line: rgba(58, 42, 24, 0.14);
  --line-strong: rgba(58, 42, 24, 0.26);
  --text: #241b10;
  --text-muted: #6d5c46;
  --text-faint: #a08b70;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

::selection { background: rgba(176, 124, 34, 0.28); color: var(--ink-strong); }

/* Persona themes — one warm family, four distinct voices, tuned for paper --- */
body[data-theme="hub"] {
  --accent: #a8721d;      /* bronze gold */
  --accent-2: #b95632;    /* copper */
  --accent-3: #b34368;    /* warm rose */
  --accent-glow: rgba(168, 114, 29, 0.25);
  --accent-rgb: 168, 114, 29;
}
body[data-theme="teal"] {
  --accent: #b95632;      /* terracotta (About Me) */
  --accent-2: #a8721d;
  --accent-glow: rgba(185, 86, 50, 0.25);
  --accent-rgb: 185, 86, 50;
}
body[data-theme="amber"] {
  --accent: #a8721d;      /* amber bronze (TPN Explorer) */
  --accent-2: #b95632;
  --accent-glow: rgba(168, 114, 29, 0.25);
  --accent-rgb: 168, 114, 29;
}
body[data-theme="disco"] {
  --accent: #b34368;      /* warm rose (Dr-Disco) */
  --accent-2: #8a5bb8;
  --accent-glow: rgba(179, 67, 104, 0.25);
  --accent-rgb: 179, 67, 104;
}

/* Dark band: a full-bleed espresso section (home of the jukebox) ------------ */
.band-dark {
  --text: #f4ecdf;
  --text-muted: #c2b29b;
  --text-faint: #8d7d66;
  --line: rgba(255, 235, 205, 0.1);
  --line-strong: rgba(255, 235, 205, 0.18);
  background:
    radial-gradient(90vw 60vh at 50% 0%, rgba(226, 163, 85, 0.08), transparent 60%),
    var(--warm-900);
  color: var(--text);
}
body[data-theme="disco"] .band-dark { --accent: #e0618c; --accent-rgb: 224, 97, 140; --accent-glow: rgba(224, 97, 140, 0.3); }

/* Reset -------------------------------------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
/* overflow-x:hidden alone stops real horizontal scrolling, but not the elastic
   "rubber-band" bounce iOS Safari shows on a touch-drag when a horizontal swipe has
   nowhere real to go (e.g. dragging across the jukebox cover-stack, which intentionally
   blocks native horizontal panning via touch-action so its own JS can handle the swipe) —
   that bounce is what reads as "you can move the site left and right". */
html, body { overscroll-behavior-x: none; }
body {
  background:
    radial-gradient(110vw 70vh at 15% -10vh, rgba(217, 160, 76, 0.12), transparent 55%),
    radial-gradient(90vw 60vh at 95% 20vh, rgba(185, 86, 50, 0.07), transparent 55%),
    var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  animation: page-in 0.7s var(--ease) both;
}
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }

/* Inline text links get a sliding warm underline */
p a, .legal a, .footer-links a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size 0.35s var(--ease);
  padding-bottom: 1px;
}
p a:hover, .legal a:hover, .footer-links a:hover { background-size: 100% 1px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.75rem; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.75rem; }

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

/* Ambient background layer ------------------------------------------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.aurora .b1 { width: 42vw; height: 42vw; left: -10vw; top: -10vw; background: var(--accent); animation: drift1 26s ease-in-out infinite; opacity: 0.1; }
.aurora .b2 { width: 32vw; height: 32vw; right: -8vw; top: 10vh; background: var(--accent-2, var(--accent)); animation: drift2 30s ease-in-out infinite; opacity: 0.08; }
.aurora .b3 { width: 36vw; height: 36vw; left: 20vw; bottom: -18vw; background: var(--accent); animation: drift3 34s ease-in-out infinite; opacity: 0.07; }

/* Reading progress — a fine gold thread along the very top */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2, var(--accent)));
  z-index: 60; pointer-events: none;
  box-shadow: 0 0 10px var(--accent-glow);
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw, 8vh) scale(1.15); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-5vw, 6vh) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw, -6vh) scale(1.12); } }

.cursor-glow {
  position: fixed;
  width: 420px; height: 420px;
  margin-left: -210px; margin-top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transition: opacity 0.4s ease;
}

main, header, footer { position: relative; z-index: 2; }

/* Nav ----------------------------------------------------------------------*/
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.1rem 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(247, 241, 229, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--line);
  padding: 0.75rem 0;
}
.site-nav .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--text);
}
.brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.brand:hover { color: var(--text); }

.persona-pills {
  display: flex; gap: 0.3rem;
  background: rgba(58,42,24,0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem;
}
.persona-pills a {
  display: block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}
.persona-pills a:hover { color: var(--text); background: rgba(58,42,24,0.07); }
.persona-pills a.active { color: #fdf8ee; background: var(--accent); font-weight: 600; }

.nav-toggle { display: none; }

@media (max-width: 720px) {
  /* A 5-item pill row (Home / About Me / TPN Explorer / Dr-Disco / Blog) never
     fits one line on a phone, and wrapping it onto a second row (the previous
     approach) still felt too big/cluttered up top. Replaced with a small
     hamburger button that drops a compact menu panel from the top-right
     corner instead — same links, collapsed until asked for. */
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
    background: rgba(58,42,24,0.06); border: 1px solid var(--line-strong);
    color: var(--text); cursor: pointer;
  }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle.is-open .icon-burger { display: none; }
  .nav-toggle.is-open .icon-close { display: block; }

  .persona-pills {
    position: absolute; top: calc(100% + 0.6rem); right: 0; left: auto;
    flex-direction: column; width: max-content; min-width: 170px;
    background: rgba(250, 245, 236, 0.97); backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--line-strong); border-radius: 16px; padding: 0.45rem;
    gap: 0.1rem; box-shadow: 0 20px 45px -18px rgba(40,25,10,0.35);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .persona-pills.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .persona-pills a { width: 100%; text-align: left; padding: 0.65rem 0.9rem; font-size: 0.85rem; }
}

/* Buttons ------------------------------------------------------------------*/
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(58, 42, 24, 0.04);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { border-color: var(--accent); box-shadow: 0 0 24px -6px var(--accent-glow); }
.btn-solid {
  background: var(--accent);
  color: #fdf8ee;
  border-color: transparent;
}
.btn-solid:hover { filter: brightness(1.08); box-shadow: 0 8px 30px -6px var(--accent-glow); }
/* A soft light sweep crosses every button on hover */
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,252,244,0.45) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}
.btn:hover::after { transform: translateX(120%); }

/* Hero entrance — headline, lead and buttons rise softly in turn ------------*/
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
main > header .eyebrow,
main > header h1,
main > header p,
main > header .hero-cta,
main > header div[style*="display:flex"] {
  animation: hero-rise 0.9s var(--ease) both;
}
main > header .eyebrow { animation-delay: 0.05s; }
main > header h1 { animation-delay: 0.16s; }
main > header p { animation-delay: 0.3s; }
main > header .hero-cta,
main > header div[style*="display:flex"] { animation-delay: 0.44s; }

/* The lead line under each hero heading reads like the opening of a memoir */
main > header h1 + p, .about-hero-text h1 + p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.18rem !important;
  line-height: 1.7;
}

/* Reveal on scroll ----------------------------------------------------------*/
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(0.94); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }

/* Eyebrow / kicker -----------------------------------------------------------*/
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
  /* The 22px rule that used to sit before every eyebrow read as an em-dash ("— WELCOME")
     and made the site look AI-written. Daz's standing rule is no dashes; this broke it on
     every page at once. Removed 2026-07-15. */

/* Section rhythm -------------------------------------------------------------*/
section { padding: 6.5rem 0; }
section.tight { padding: 3.5rem 0; }

/* Cards ----------------------------------------------------------------------*/
.card {
  position: relative;
  background: var(--card);
  box-shadow: 0 2px 14px -8px rgba(60,40,15,0.18);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 26px 55px -26px rgba(60,40,15,0.38), 0 0 0 1px rgba(var(--accent-rgb), 0.15);
}
/* A warm hairline glows along the top edge of a card on hover */
.card::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.75), transparent);
  opacity: 0; transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover::before { opacity: 1; }

/* Tilt door cards (hub) -------------------------------------------------------*/
.tilt { transform-style: preserve-3d; will-change: transform; }

/* Footer -----------------------------------------------------------------------*/
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  color: var(--text-faint);
  font-size: 0.88rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* Chips (hobbies / tags) --------------------------------------------------------*/
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(58, 42, 24, 0.04);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease), background 0.3s;
}
.chip:hover {
  border-color: var(--accent); color: var(--text); transform: translateY(-2px);
  background: rgba(var(--accent-rgb), 0.1);
}

/* Long-form prose: the publisher's touch -------------------------------------------*/
/* An oversized warm initial letter opens the story, the way a printed memoir would. */
.prose > p:first-of-type::first-letter,
p.prose::first-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--accent);
}
.prose p { margin-bottom: 1.1rem; }

/* Placeholder / draft note callouts ----------------------------------------------*/
.draft-note {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  background: rgba(58,42,24,0.03);
}
.draft-note strong { color: var(--text-muted); }

/* Divider dot pattern ----------------------------------------------------------*/
.divider { display: flex; align-items: center; gap: 0.5rem; opacity: 0.5; margin: 0 auto; width: fit-content; }
.divider span { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }

/* Page featured image ----------------------------------------------------------------*/
/* Show photos at their natural shape, never cropped. The frame hugs each photo
   so there are no grey side panels: a portrait shot gets a neat tall frame, a
   landscape a wide one, both centred, with a soft bespoke shadow. */
.page-image {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  width: -moz-fit-content; width: fit-content; max-width: 100%;
  margin: 0 auto 3rem;
  box-shadow: 0 30px 70px -34px rgba(60, 40, 15, 0.5);
}
.page-image img {
  max-width: 100%; max-height: 640px; width: auto; height: auto; display: block;
}
@media (max-width: 640px) { .page-image img { max-height: 480px; } }
.page-image.section-image { margin: 1.75rem auto 0; }
.page-image.section-image img { max-height: 560px; }
@media (max-width: 640px) { .page-image.section-image img { max-height: 400px; } }

/* Bespoke masonry gallery + lightbox ------------------------------------------------*/
/* Magazine-style columns: photos keep their natural shape, never cropped. */
.gallery-masonry { column-count: 3; column-gap: 1rem; }
@media (max-width: 900px) { .gallery-masonry { column-count: 2; } }
@media (max-width: 520px)  { .gallery-masonry { column-count: 1; } }

.gallery-item {
  position: relative; break-inside: avoid; margin: 0 0 1rem; padding: 0;
  border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: rgba(58,42,24,0.03);
  transform: translateZ(0);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.6s var(--ease); }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), transparent 45%);
  transition: opacity 0.4s var(--ease); pointer-events: none;
}
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 22px 50px -22px rgba(60,40,15,0.4),
              0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }

.gallery-caption {
  position: absolute; inset: auto 0 0 0; padding: 2rem 0.85rem 0.7rem; margin: 0;
  background: linear-gradient(to top, rgba(18,13,8,0.92), rgba(18,13,8,0.55) 55%, transparent);
  color: #fff; font-size: 0.82rem; line-height: 1.35; letter-spacing: 0.01em;
  transform: translateY(0.4rem); opacity: 0.85;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); opacity: 1; }

.lightbox {
  position: fixed; inset: 0; background: rgba(14,10,7,0.94); z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-figure {
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  max-width: 92vw; transition: opacity 0.2s ease;
}
.lightbox-figure.is-changing { opacity: 0; }
.lightbox img {
  max-width: 92vw; max-height: 80vh; width: auto; height: auto; border-radius: 14px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.75);
}
.lightbox-caption { color: var(--text); font-size: 0.98rem; max-width: 70vw; text-align: center; }
.lightbox-count { color: var(--text-faint); font-size: 0.82rem; letter-spacing: 0.08em; }
.lightbox-close {
  position: absolute; top: 1.25rem; right: 1.5rem; width: 2.6rem; height: 2.6rem;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 50%;
  color: var(--text); font-size: 1.5rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.14); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 3rem; height: 3rem; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line);
  color: var(--text); font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.16); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
@media (max-width: 560px) {
  .lightbox-nav { width: 2.4rem; height: 2.4rem; font-size: 1.3rem; }
  .lightbox-prev { left: 0.5rem; } .lightbox-next { right: 0.5rem; }
}

/* Blog list card with cover thumbnail ----------------------------------------------*/
.blog-card { display: flex; gap: 0; align-items: stretch; padding: 0; overflow: hidden; }
.blog-thumb { flex: 0 0 220px; overflow: hidden; background: #000; }
.blog-thumb img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.blog-card:hover .blog-thumb img { transform: scale(1.05); }
.blog-card-body { padding: 1.4rem 1.6rem; }
@media (max-width: 620px) {
  .blog-card { flex-direction: column; }
  .blog-thumb { flex: none; width: 100%; aspect-ratio: 16 / 9; }
  .blog-thumb img { min-height: 0; }
}

/* Challenge card photo -------------------------------------------------------------*/
.challenge-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.challenge-photo { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.challenge-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); }
.challenge-card:hover .challenge-photo img { transform: scale(1.05); }
.challenge-card .eyebrow { margin-top: 1.25rem; padding: 0 1.5rem; }
.challenge-card h3 { padding: 0 1.5rem; }
.challenge-card p { padding: 0 1.5rem 1.5rem; }
/* Challenge cards with no photo keep the normal card padding */
.challenge-card:not(:has(.challenge-photo)) { padding: 1.5rem; }
.challenge-card:not(:has(.challenge-photo)) .eyebrow,
.challenge-card:not(:has(.challenge-photo)) h3,
.challenge-card:not(:has(.challenge-photo)) p { padding-left: 0; padding-right: 0; }
.challenge-card:not(:has(.challenge-photo)) .eyebrow { margin-top: 0; }

/* Videos ---------------------------------------------------------------------------*/
.featured-video {
  margin: 0 auto 3rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #000;
  box-shadow: 0 30px 70px -30px rgba(60,40,15,0.45);
}
.featured-video video { width: 100%; height: auto; display: block; max-height: 70vh; background: #000; }
.featured-video figcaption {
  padding: 0.8rem 1rem; font-size: 0.9rem; color: var(--text-muted);
  background: rgba(58,42,24,0.03); border-top: 1px solid var(--line);
}
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.video-item {
  margin: 0; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); background: #000;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.video-item:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.7);
}
.video-item video { width: 100%; height: auto; display: block; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.video-item figcaption { padding: 0.65rem 0.8rem; font-size: 0.82rem; color: var(--text-muted); }

/* Weekly series tags ----------------------------------------------------------------*/
.mm-tag {
  display: inline-block; background: var(--accent); color: #fdf8ee;
  font-weight: 700; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.18rem 0.5rem; border-radius: 999px; margin-right: 0.5rem; vertical-align: middle;
}
.mm-tag.mm-wellbeing-wednesday { background: #c96f4a; color: #fff4e6; }

/* Legal pages ----------------------------------------------------------------------*/
.legal h2 { color: var(--text); font-size: 1.2rem; margin: 2.25rem 0 0.6rem; }
.legal p { margin-bottom: 1rem; line-height: 1.7; }
.legal a { color: var(--accent); }

/* ==========================================================================
   Modern editorial layout system
   ========================================================================== */

/* Chapter heads: an oversized ghosted number beside the section title, the
   way a printed memoir numbers its chapters. */
.chapter { display: flex; align-items: baseline; gap: 1.1rem; margin-bottom: 1.5rem; }
.chapter .num {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 3rem; line-height: 1; color: rgba(var(--accent-rgb), 0.35);
  letter-spacing: -0.02em; flex-shrink: 0;
}
.chapter h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.chapter::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
  align-self: center; margin-left: 0.5rem;
}

/* Editorial index rows (the home page's three doors) */
.doors { border-top: 1px solid var(--line-strong); }
.door {
  display: grid; grid-template-columns: 4.5rem 1fr auto; align-items: center;
  gap: 1.5rem; padding: 2.2rem 0.75rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text); text-decoration: none;
  position: relative; overflow: hidden;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease);
}
.door:hover { background: rgba(var(--door-rgb, var(--accent-rgb)), 0.055); padding-left: 1.4rem; }
.door .door-num {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 1.5rem; color: rgba(var(--door-rgb, var(--accent-rgb)), 0.55);
}
.door .door-body h3 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 600;
  transition: color 0.3s var(--ease);
}
.door:hover .door-body h3 { color: rgb(var(--door-rgb, var(--accent-rgb))); }
.door .door-body p { color: var(--text-muted); font-size: 0.97rem; margin-top: 0.35rem; max-width: 40rem; }
.door .door-arrow {
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--text-muted);
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.door:hover .door-arrow {
  transform: translateX(6px);
  background: rgb(var(--door-rgb, var(--accent-rgb)));
  border-color: transparent; color: #fdf8ee;
}
@media (max-width: 640px) {
  .door { grid-template-columns: 1fr auto; }
  .door .door-num { display: none; }
}

/* Marquee: a slow ribbon of words, separated by fine gold marks */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 0.9rem 0; position: relative;
}
.marquee-track { display: inline-block; animation: marquee 38s linear infinite; }
.marquee span {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.05rem; color: var(--text-muted); padding: 0 1.6rem; position: relative;
}
.marquee span::after {
  content: ""; position: absolute; right: -3px; top: 50%; width: 5px; height: 5px;
  border-radius: 50%; background: rgba(var(--accent-rgb), 0.5); transform: translateY(-50%);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Pull quote: the mission, set like an epigraph */
.pullquote {
  border-left: 3px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1.6rem; margin: 2.5rem 0;
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem); line-height: 1.5; color: var(--text);
}

/* Split: asymmetric editorial two-column */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 3.5rem; align-items: start; }
.split.rev { grid-template-columns: 7fr 5fr; }
.split .split-side { position: sticky; top: 7rem; }
@media (max-width: 860px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: 1.75rem; }
  .split .split-side { position: static; }
}

/* Big editorial hero type */
.hero-title {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  letter-spacing: -0.02em; line-height: 1.04;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--accent); }

/* Utility ------------------------------------------------------------------------*/
.center { text-align: center; }
.grad-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2, var(--accent)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
