/* Hallmark · shape: Cover-and-index, a terracotta masthead over a cream episode index · genre: editorial · theme: custom (by request: cream, serif and terracotta to match simpleflock.com) · job: listen · idea: "The show page where anyone can press play, with Spotify first and a feed link for everything else." · vibe: "warm, plain, public radio, sheep" */
/* * paper: oklch(97% 0.015 80) · accent: oklch(52% 0.13 40) · display: Young Serif · body: system-ui · hero: cover beside headline, two actions, on the site's terracotta with a hill band · nav: none, the wordmark sits in the hero · footer: one quiet line with credit and contact · imagery: the show cover · signature: the sheep in its box, large, on the SimpleFlock terracotta
 * axes: cream/young-serif/terracotta · posture: split masthead · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E3 S4 R3 V4 · weakest: E, the page is short by design; the episode rows carry the weight */
/* Hallmark · waive 65 · the prompt pins it: the user asked for colours cohesive with the main SimpleFlock website, which is cream, serif and terracotta · the show page must look like simpleflock.com */
/* Hallmark · answered F4 · the cream button on the terracotta masthead and the terracotta button on cream are one primary recipe inverted for its surface */
:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: oklch(52% 0.19 27); --color-success: oklch(50% 0.12 150);
  --container: 1120px; --gutter: 40px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 112px; --section-gap-l: 176px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: #fbf6ee; --color-paper-2: #f3e9d8; --color-paper-3: #ebdac0;
  --color-ink: #3b2a20; --color-ink-2: #5a4030; --color-muted: #6f5e52;
  --color-rule: #eadfcf;
  --color-accent: #a64a26; --color-accent-ink: #fffaf2; --color-focus: #8d3d1e;
  --color-terra: #b9532d; --color-hill: #94401f; --color-hill-2: #a64a26; --color-hill-3: #c0603a; --color-cream: #fffaf2; --color-honey: #efc255;
  --font-display: "Young Serif", ui-serif, Georgia, serif; --font-body: system-ui, -apple-system, "Segoe UI", ui-sans-serif, sans-serif; --font-outlier: var(--font-body);
  --radius-card: 20px; --radius-pill: 999px; --rule-hair: 1px; --shadow-card: none;
  --tracking-display: -0.02em;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-synthesis: none; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

html, body { background: var(--color-paper); }
.hero { background: var(--color-terra); color: var(--color-cream); position: relative; padding-top: var(--space-lg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-2xl); align-items: center; padding-bottom: var(--space-3xl); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding-bottom: var(--space-xl); }
.wordmark { min-width: 0; white-space: nowrap; display: flex; align-items: center; gap: var(--space-sm); font-family: var(--font-display); font-size: var(--text-xl); text-decoration: none; }
.btn-small { white-space: nowrap; flex-shrink: 0; min-height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }
.wordmark img { width: 44px; height: 44px; border-radius: 12px; }
.hero h1 { font-size: var(--text-display); line-height: 1.02; letter-spacing: var(--tracking-display); margin-bottom: var(--space-lg); }
.hero .lede { font-size: var(--text-lead); max-width: 32ch; margin-bottom: var(--space-xl); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--space-lg); border-radius: var(--radius-pill); font-weight: 650; font-size: var(--text-md); text-decoration: none; border: 2px solid var(--color-cream); cursor: pointer; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.btn-primary { background: var(--color-cream); color: var(--color-hill); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--color-cream); }
.btn-ghost:hover { background: var(--color-cream); color: var(--color-hill); }
.hero :focus-visible { outline-color: var(--color-cream); }
.cover { border-radius: 28px; overflow: hidden; border: 6px solid var(--color-cream); box-shadow: 0 18px 40px color-mix(in oklab, var(--color-hill) 55%, transparent); justify-self: end; width: 100%; max-width: 460px; aspect-ratio: 1; background: var(--color-hill-3); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.hills { display: block; width: 100%; height: clamp(48px, 8vw, 110px); }
.hills .h1 { fill: var(--color-hill-3); } .hills .h2 { fill: var(--color-hill-2); } .hills .h3 { fill: var(--color-hill); } .hills .h4 { fill: var(--color-paper); }
.section { padding-block: var(--section-gap-s); }
.section h2 { font-size: var(--text-section); line-height: 1.05; margin-bottom: var(--space-sm); letter-spacing: var(--tracking-display); }
.section .sub { color: var(--color-muted); font-size: var(--text-lead); margin-bottom: var(--space-2xl); max-width: 44ch; }
.episodes { list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
.episode { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: var(--gap-columns); padding-block: var(--space-xl); border-bottom: var(--rule-hair) solid var(--color-rule); }
.ep-num { font-family: var(--font-display); font-size: var(--text-display-s); line-height: 1; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.ep-body h3 { font-size: var(--text-2xl); line-height: 1.1; margin-bottom: var(--space-xs); }
.ep-meta { color: var(--color-muted); font-size: var(--text-sm); margin-bottom: var(--space-sm); }
.ep-body p { margin-bottom: var(--space-md); color: var(--color-ink-2); }
audio { width: 100%; max-width: 640px; height: 48px; accent-color: var(--color-accent); }
.ways { background: var(--color-paper-2); }
.ways-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-xl); }
.way { background: var(--color-paper); border-radius: var(--radius-card); padding: var(--space-xl); }
.way h3 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
.way p { color: var(--color-ink-2); margin-bottom: var(--space-md); }
.feedrow { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: stretch; }
.feedrow input { flex: 1 1 14rem; min-width: 0; min-height: 48px; padding: 0 var(--space-md); border: 2px solid var(--color-rule); border-radius: var(--radius-pill); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-sm); }
.feedrow input:hover { border-color: var(--color-muted); }
.btn-solid { background: transparent; color: var(--color-hill); border-color: var(--color-hill); min-height: 48px; }
.btn-solid:hover { background: var(--color-hill); color: var(--color-cream); }
.btn-solid:active { transform: translateY(1px); }
.way .btn[aria-disabled="true"] { opacity: 0.6; cursor: default; }
.way .link { color: var(--color-accent); font-weight: 650; }
.foot { padding-block: var(--space-2xl); color: var(--color-muted); font-size: var(--text-sm); }
.foot p { max-width: 70ch; margin-bottom: var(--space-xs); }
.foot a { color: var(--color-accent); }
@media (max-width: 60rem) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .cover { justify-self: start; max-width: 320px; } .ways-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) { .episode { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); } .way { padding: var(--space-lg); } .hero { padding-top: var(--space-xl); } }
@font-face { font-family: "Young Serif"; src: url("/young-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }

.btn .short { display: none; }
@media (max-width: 40rem) { .btn .long { display: none; } .btn .short { display: inline; } .wordmark { font-size: var(--text-lg); } .wordmark img { width: 36px; height: 36px; } .feedrow .btn { width: 100%; } }

/* round two: phone-first fixes from the Hallmark and Impeccable reviews */
.wordmark img { border-radius: 12px; border: 2px solid var(--color-cream); }
.btn-small { min-height: 44px; }
.btn-ghost:active { transform: translateY(1px); }
.btn-fill { background: var(--color-accent); color: var(--color-accent-ink); border-color: var(--color-accent); min-height: 48px; }
.btn-fill:hover { background: var(--color-hill); border-color: var(--color-hill); }
.btn-fill:active { transform: translateY(1px); }
.feedrow input { font-size: var(--text-md); border-color: var(--color-muted); text-overflow: ellipsis; }
.ep-head { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.ep-head h3 { margin-bottom: var(--space-3xs); }
.ep-head .ep-meta { margin-bottom: 0; }
.play { flex: none; width: 56px; height: 56px; border-radius: var(--radius-pill); border: 0; background: var(--color-accent); color: var(--color-accent-ink); display: grid; place-items: center; cursor: pointer; transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.play:hover { background: var(--color-hill); }
.play:active { transform: scale(0.96); }
.play svg { width: 26px; height: 26px; fill: currentColor; }
.play .i-pause { display: none; }
.playing .play .i-play { display: none; }
.playing .play .i-pause { display: block; }
.episode.failed .ep-meta::after { content: " Could not load this audio. Try Spotify above."; color: var(--color-error); }
.js .episode audio { display: none; }
.js .episode.started audio { display: block; }
.more { background: none; border: 0; padding: 0; min-height: 44px; display: block; color: var(--color-accent); font-weight: 650; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.more:active { opacity: 0.7; }
.ways-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.credit { font-size: var(--text-xs); }
audio { background: var(--color-paper-2); border-radius: var(--radius-pill); }
@media (max-width: 60rem) { .ways-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 40rem) {
  .hero { padding-top: var(--space-md); }
  .topbar { padding-bottom: var(--space-lg); }
  .hero-grid { gap: var(--space-lg); padding-bottom: var(--space-xl); }
  .cover { order: -1; justify-self: center; max-width: 220px; border-width: 4px; border-radius: 24px; }
  .hero-grid > div:first-child { text-align: center; }
  .hero h1 { font-size: 2.5rem; margin-bottom: var(--space-sm); }
  .hero .lede { margin-inline: auto; margin-bottom: var(--space-lg); }
  .actions { flex-direction: column; gap: var(--space-sm); }
  .actions .btn { width: 100%; }
  .hills { height: 64px; }
  .section { padding-block: var(--space-2xl); }
  .section h2 { font-size: 2.25rem; }
  .section .sub { margin-bottom: var(--space-lg); font-size: var(--text-md); }
  .ways-grid { margin-top: 0; }
  .episode { padding-block: var(--space-lg); }
  .ep-num { display: none; }
  .ep-body h3 { font-size: var(--text-xl); }
  .ep-desc { margin-bottom: var(--space-xs); }
  audio { margin-top: var(--space-sm); }
  .way { padding: var(--space-lg); border: 1px solid var(--color-rule); }
}
.ep-desc { max-width: 60ch; }
.episode { padding-block: var(--space-2xl); }
.cover { max-width: 520px; }
.hero-grid { padding-bottom: var(--space-2xl); }
.section { padding-block: var(--space-3xl); }
@media (max-width: 40rem) { .episode { padding-block: var(--space-lg); } .cover { max-width: 220px; } .hero-grid { padding-bottom: var(--space-xl); } .section { padding-block: var(--space-2xl); } }
@media (min-width: 60.01rem) { .hero-grid { min-height: calc(100dvh - 190px); } audio { max-width: none; } .ep-body { max-width: none; } }

.js .ep-desc:not(.open) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ep-desc { margin-bottom: 0; }
.more { display: inline-block; min-height: 0; padding-block: var(--space-xs); margin-bottom: var(--space-sm); }
.more[hidden] { display: none; }
.ep-body .ep-desc { margin-bottom: 0; }
.more { display: block; line-height: 1.2; padding-block: 10px; margin-top: -4px; margin-bottom: var(--space-sm); }
@media (max-width: 40rem) { .ep-desc { margin-bottom: 0; } }
