/* Treetop — site styles ("Newsprint": warm paper, serif headlines, press red) */
:root {
  --bg: #faf6ef;
  --panel: #ffffff;
  --panel-2: #f3ede1;
  --text: #1c1917;
  --muted: #57534e;
  --accent: #b42318;
  --accent-dark: #8a1c12;
  --line: #e6ddcb;
  --radius: 12px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; font-family: Newsreader, Georgia, "Times New Roman", serif; }

/* Accessibility: visible keyboard focus on every control (incl. the reset .facade) */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 10;
  background: var(--accent); color: #ffffff; font-weight: 700;
  padding: .5rem 1rem; border-radius: 0 0 8px 8px; transition: top .15s ease;
}
.skip-link:focus { top: 0; text-decoration: none; }

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

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 1.3rem; font-weight: 800; color: var(--text); letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: Newsreader, Georgia, serif;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.brand-mark { width: 1.2em; height: 1.2em; color: var(--accent); }
.site-header nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.site-header nav a {
  color: var(--muted); padding: .4rem .7rem; border-radius: 999px; font-size: .95rem;
}
.site-header nav a:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.site-header nav a[aria-current="page"] { color: #ffffff; background: var(--accent); font-weight: 700; }

main { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }

/* Hero */
.hero { padding: 2.5rem 0 1.5rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: -.02em; }
.tagline { color: var(--accent); font-weight: 700; font-size: 1.15rem; margin: .25rem 0 .75rem; }
.hero-text { color: var(--muted); max-width: 46rem; margin: 0; font-size: 1.05rem; }

/* Live banner */
.live-banner {
  margin: 1rem 0 2rem; padding: 1rem 1.25rem;
  background: #fdf1ef;
  border: 1px solid #efb6ae; border-radius: var(--radius);
}
.live-banner > p { margin: 0 0 .75rem; font-weight: 800; color: #b42318; letter-spacing: .03em; }
.live-dot {
  display: inline-block; width: .65em; height: .65em; border-radius: 50%;
  background: #ff4d5e; margin-right: .4em;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

/* Lanes on home */
.lane { margin: 2.25rem 0; }
.lane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.lane-head h2 { font-size: 1.5rem; }
.more { font-size: .95rem; white-space: nowrap; padding: .35rem .5rem; margin: -.35rem -.5rem; }
.card-row {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Cards */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 0 0 1.25rem;
  box-shadow: 0 1px 4px rgba(28, 25, 23, .07);
}
.card-row .card { margin: 0; }
.card-body { padding: 1rem 1.1rem 1.1rem; }
.card h3 { font-size: 1.15rem; }
.card.compact h3 { font-size: 1.02rem; }
.card p { color: var(--muted); margin: .5rem 0 0; }
.teaser { font-size: .92rem; }
.kicker { font-size: .8rem; color: var(--muted); margin: 0 0 .35rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.pill {
  background: var(--bg); border: 1px solid var(--line); color: var(--accent);
  padding: .1rem .55rem; border-radius: 999px; font-weight: 700; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.pill-topic { color: var(--muted); }

/* Feed pages */
.feed h1 { font-size: 2rem; margin-top: 1rem; }
.lede { color: var(--muted); max-width: 44rem; margin: 0 0 1.75rem; }
.feed .card { max-width: 760px; }
.empty { color: var(--muted); }

/* Player / click-to-play facade */
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player iframe, .player-open iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.player iframe.tiktok { aspect-ratio: 9 / 16; max-height: 580px; margin: 0 auto; width: auto; min-width: 325px; }
.player:has(iframe.tiktok) { aspect-ratio: auto; display: flex; justify-content: center; }
.player audio { width: 100%; margin-top: 40%; }
iframe.audio-embed { height: 150px; aspect-ratio: auto; background: var(--panel-2); }
.player:has(iframe.audio-embed), .player-open:has(iframe.audio-embed) { aspect-ratio: auto; background: transparent; }
.facade {
  all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative;
}
.facade img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(140deg, #f3ede1, #e7dfcd);
  color: #8a8578; font-weight: 800; font-size: 1.4rem; letter-spacing: .06em;
  text-transform: uppercase;
}
.play-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(20, 14, 12, .82); color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .35);
  padding: .5rem 1rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: background .15s ease, transform .18s ease;
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
}
.play-badge svg { width: 1em; height: 1em; }
.facade:hover .play-badge, .facade:focus-visible .play-badge { background: var(--accent-dark); }
.player-open { aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.live-player { max-width: 760px; }

/* Podcast mini player (home only) */
.pod-player {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; margin-bottom: 1rem;
}
.pod-player .kicker { color: var(--accent); font-weight: 700; }
.pod-player details { margin-top: .9rem; color: var(--muted); }
.pod-player summary { cursor: pointer; font-weight: 600; }
.ep-list { list-style: none; padding: .5rem 0 0; margin: 0; max-height: 12rem; overflow-y: auto; }
.ep-list li { padding: .35rem 0; border-top: 1px solid var(--line); }
.ep-date { color: var(--accent); font-size: .82rem; margin-right: .5rem; }

/* Photo galleries */
.gallery {
  display: grid; gap: 4px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Email signup */
.signup {
  margin: 3rem 0 1rem; padding: 2rem 1.5rem;
  background: linear-gradient(140deg, #f7f1e4, #ffffff);
  border: 1px solid #d9cdb4; border-radius: var(--radius);
  text-align: center;
}
.signup h2 { font-size: 1.5rem; }
.signup p { color: var(--muted); max-width: 38rem; margin: .25rem auto 1.1rem; }
.signup-form {
  display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap;
}
.signup-form input {
  background: #ffffff; color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .65rem 1.1rem; font-size: 1rem; min-width: min(20rem, 80vw);
}
.signup-form input:focus { outline: 2px solid var(--accent-dark); }
.signup-form button {
  background: var(--accent); color: #ffffff; font-weight: 800; font-size: 1rem;
  border: 0; border-radius: 999px; padding: .65rem 1.4rem; cursor: pointer;
}
.signup-form button:hover { background: #d02b1e; }
.signup-note { color: var(--accent) !important; font-weight: 600; margin-top: .9rem !important; }

/* Motion: scroll-reveal (player.js tags <html> with .js-anim and elements with .reveal) */
.js-anim .reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s cubic-bezier(.22,.9,.35,1), transform .55s cubic-bezier(.22,.9,.35,1);
}
.js-anim .reveal.in { opacity: 1; transform: none; }
.card { transition: transform .2s ease, box-shadow .2s ease; }
.js-anim .card.reveal { transition: opacity .55s cubic-bezier(.22,.9,.35,1), transform .55s cubic-bezier(.22,.9,.35,1), box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.facade:hover .play-badge, .facade:focus-visible .play-badge { transform: translate(-50%, -50%) scale(1.06); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  max-width: var(--max); margin: 0 auto; padding: 1.25rem;
  color: var(--muted); font-size: .9rem;
}

@media (max-width: 640px) {
  .site-header { justify-content: center; text-align: center; }
  .hero { padding-top: 1.25rem; }
}
