/* Our Creative Commune
   Headings: Caprasimo (stand-in until the Glamour Absolute web licence is sorted;
   to switch, add its @font-face below and change --display).
   Body: Mulish. */

@font-face { font-family: "Caprasimo"; src: url("/fonts/caprasimo.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("/fonts/mulish.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --rust: #B74B1B;
  --rust-deep: #8E3510;
  --paper: #F4ECDF;
  --paper-2: #EBDFCB;
  --ink: #231A14;
  --ink-soft: #5B4C40;
  --sand: #D8BF96;
  --line: #D9C9AE;
  --display: "Caprasimo", "Cooper Black", Georgia, serif;
  --body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; border-radius: 2px; }
.band-ink :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--sand); }
.band-rust :focus-visible { outline-color: var(--paper); }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 40rem; }

/* Type */
h1, h2, h3 { margin: 0 0 .5em; }
.display, .display-xl, .ep-title, .latest-title, .ep-num, .latest-num, .year-title, .stat-num, .price {
  font-family: var(--display); font-weight: 400; letter-spacing: -.005em; }
h1, h2, h3, .ep-title { text-wrap: balance; }
.display { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.08; }
.display-xl { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; max-width: 38em; }
.small { font-size: .875rem; color: var(--ink-soft); }
.kicker { font-weight: 700; color: var(--sand); margin: 0 0 .5rem; }
p { margin: 0 0 1em; }
.text-link { font-weight: 700; color: var(--rust); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--rust-deep); }

/* Buttons */
.btn { display: inline-block; font: 700 1rem/1 var(--body); padding: .95rem 1.35rem; border-radius: 999px;
  text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s; cursor: pointer; }
.btn-rust { background: var(--rust); color: #fff; }
.btn-rust:hover { background: var(--rust-deep); }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-sand:hover { background: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-ghost { border-color: rgba(244,236,223,.5); color: var(--paper); }
.btn-ghost:hover { border-color: var(--paper); }
.btn-listen { background: rgba(244,236,223,.14); color: #fff; border-color: rgba(244,236,223,.45); padding: .75rem 1.1rem; }
.btn-listen:hover { background: var(--paper); color: var(--ink); }

/* Header */
.site-header { position: relative; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem var(--gutter); background: var(--ink); color: var(--paper); }
.page-home .site-header { position: absolute; inset: 0 0 auto 0; background: transparent; }
.brand img { width: 7.5rem; }
.page-home .brand { visibility: hidden; }
.nav-wide { display: flex; gap: 1.75rem; }
.site-header nav a { text-decoration: none; font-weight: 700; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current] { border-bottom-color: var(--sand); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: .5rem .9rem; border: 2px solid rgba(244,236,223,.5); border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: calc(100% + .5rem); background: var(--ink); padding: 1rem 1.25rem;
  display: grid; gap: .5rem; min-width: 13rem; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
@media (max-width: 760px) {
  .nav-wide { display: none; }
  .menu { display: block; }
  .brand img { width: 6rem; }
}

/* Hero */
.hero { position: relative; background: var(--ink); color: #fff; min-height: min(92vh, 62rem); display: flex; align-items: flex-end; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 50% 20%; }
.hero-text { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 8rem var(--gutter) clamp(2.5rem, 6vw, 4.5rem); }
.hero-logo { margin: 0 0 1.25rem; }
.hero-logo img { width: clamp(16rem, 44vw, 34rem); filter: drop-shadow(0 2px 18px rgba(35,26,20,.35)); }
.hero-line { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.45; max-width: 30em; margin-bottom: 1.5rem; }
@media (max-width: 759px) {
  .hero { display: block; min-height: 0; }
  .hero picture { position: relative; display: block; aspect-ratio: 1; }
  .hero picture img { position: absolute; }
  .hero-text { padding-top: 0; margin-top: -7.5rem; }
}
.listen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }

/* Bands */
.band-ink { background: var(--ink); color: var(--paper); }
.band-rust { background: var(--rust); color: #fff; }

/* Latest episode */
.latest { padding: var(--space) 0; }
.latest-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.latest-num { font-size: clamp(6rem, 17vw, 14rem); line-height: .8; color: var(--rust); }
.latest-title { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.04; margin-bottom: .6rem; }
.latest-title a { text-decoration: none; }
.latest-title a:hover { color: var(--sand); }
.latest-summary { color: rgba(244,236,223,.85); max-width: 40em; }
@media (max-width: 760px) {
  .latest-grid { grid-template-columns: 1fr; gap: .5rem; }
  .latest-num { font-size: 5.5rem; }
}

.ep-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .9375rem; color: inherit; opacity: .8; margin: 0 0 1.25rem; }
.player { margin: 0 0 1.5rem; }
.player audio { width: 100%; max-width: 44rem; display: block; }
.player-dark audio { color-scheme: dark; }

/* About */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-top: var(--space); padding-bottom: var(--space); }
.about-img { border-radius: 4px; }
.about .lede { font-weight: 600; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Episode lists */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 1rem; }
.section-head .display { margin: 0; }
.recent { padding-bottom: var(--space); }
.ep-list { list-style: none; margin: 0; padding: 0; }
.ep-row { border-bottom: 1px solid var(--line); }
.ep-row a { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.25rem; padding: 1.4rem 0; text-decoration: none; align-items: baseline; }
.ep-num { font-size: 2.6rem; line-height: 1; color: var(--rust); }
.ep-title { display: block; font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.15; margin-bottom: .35rem; }
.ep-row a:hover .ep-title { color: var(--rust); }
.ep-row .ep-meta { margin: 0; color: var(--ink-soft); opacity: 1; }
.row-summary { margin: .5rem 0 0; color: var(--ink-soft); max-width: 46em; }
.ep-row[hidden] { display: none; }
@media (max-width: 600px) {
  .ep-row a { grid-template-columns: 3.4rem minmax(0, 1fr); gap: .9rem; }
  .ep-num { font-size: 1.8rem; }
}

/* Hosts teaser */
.hosts-strip { padding-bottom: var(--space); }
.host-teasers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); margin: 1.5rem 0 1.5rem; }
.host-teaser { margin: 0; }
.host-teaser img { border-radius: 4px; }
.host-teaser figcaption { display: flex; flex-direction: column; padding-top: .8rem; color: var(--ink-soft); }
.host-names { font-family: var(--display); font-size: 1.5rem; color: var(--ink); }
@media (max-width: 560px) { .host-teasers { grid-template-columns: 1fr; } }

/* Ask band */
.ask-band { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.ask-inner > * { max-width: 40rem; }
.ask-band p { font-size: 1.15rem; max-width: 34em; }

/* Page heads */
.page-head { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-head.tall { min-height: 60vh; display: flex; align-items: center; }
.page-head .lede { color: rgba(244,236,223,.88); }
.head-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* Archive */
.search { margin-top: 2rem; max-width: 32rem; }
.search label { display: block; font-weight: 700; margin-bottom: .4rem; }
.search input { width: 100%; font: inherit; padding: .85rem 1.1rem; border-radius: 999px; border: 2px solid var(--sand); background: var(--paper); color: var(--ink); }
.search-status { margin: .6rem 0 0; font-size: .9375rem; min-height: 1.5em; }
.archive { padding-bottom: var(--space); }
.year { margin-top: clamp(2.5rem, 6vw, 4rem); }
.year[hidden] { display: none; }
.year-title { font-size: clamp(2.4rem, 5vw, 3.5rem); color: var(--ink); border-bottom: 2px solid var(--ink); padding-bottom: .5rem; margin-bottom: 0; }

/* Episode page */
.ep-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.ep-label { font-family: var(--display); color: var(--rust); font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: .5rem; }
.ep-h1 { max-width: 15em; }
.listen-small { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9375rem; }
.listen-small::before { content: "Also on"; opacity: .7; }
.listen-small a { font-weight: 700; color: var(--sand); }
.ep-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.ep-content.has-chapters { grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); }
.prose { max-width: 38em; font-size: 1.125rem; }
.prose a { color: var(--rust); font-weight: 600; }
.chapters { align-self: start; position: sticky; top: 1.5rem; border-top: 2px solid var(--ink); padding-top: 1rem; }
.chapters h2 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin-bottom: .2rem; }
.ch-hint { font-size: .875rem; color: var(--ink-soft); }
.chapters ol { list-style: none; margin: 0; padding: 0; }
.chapters li { border-bottom: 1px solid var(--line); }
.chapters a { display: grid; grid-template-columns: 4.2rem 1fr; gap: .5rem; padding: .6rem 0; text-decoration: none; line-height: 1.35; }
.chapters a:hover span:last-child, .chapters a.is-current span:last-child { color: var(--rust); }
.ch-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--rust); }
@media (max-width: 860px) {
  .ep-content.has-chapters { grid-template-columns: 1fr; }
  .chapters { position: static; order: -1; }
}
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: var(--space); }
.pn { display: block; text-decoration: none; border-top: 2px solid var(--ink); padding-top: 1rem; font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.pn span { display: block; font: 700 .9375rem var(--body); color: var(--ink-soft); margin-bottom: .3rem; }
.pn:hover { color: var(--rust); }
.pn-prev { grid-column: 2; text-align: right; }
@media (max-width: 600px) { .prev-next { grid-template-columns: 1fr; } .pn-prev { grid-column: 1; text-align: left; } }

/* Hosts page */
.hosts { padding-top: var(--space); }
.host { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; margin-bottom: var(--space); }
.host img { border-radius: 4px; }
.host-flip img { order: 2; }
.host-business { font-weight: 700; color: var(--rust); margin-top: -.3rem; }
.credits { padding-left: 1.1rem; margin: 1.25rem 0; }
.credits li { margin-bottom: .4rem; }
.host-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.host-links a { font-weight: 700; color: var(--rust); }
@media (max-width: 760px) { .host { grid-template-columns: 1fr; } .host-flip img { order: 0; } }
.wide-photo { margin: 0; }
.wide-photo img { width: 100%; max-height: 80vh; object-fit: cover; }

/* Partner page */
.audience, .stats-sec, .packages-sec, .how, .current-partners { padding-top: var(--space); }
.current-partners { padding-bottom: var(--space); }
.how { padding-bottom: var(--space); }
.stats { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.stats li { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.stat-num { font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--rust); }
.stat-label { font-weight: 800; margin: .5rem 0 .25rem; }
.stat-note { color: var(--ink-soft); font-size: .9375rem; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin: 2rem 0 1rem; }
.package { border-top: 6px solid var(--rust); background: var(--paper-2); padding: 1.75rem clamp(1.25rem, 3vw, 2.25rem) 2rem; border-radius: 0 0 6px 6px; }
.package:nth-child(2) { border-top-color: var(--ink); }
.prices { list-style: none; margin: 1rem 0 1.25rem; padding: 0; }
.prices li { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.price { font-size: 2.2rem; line-height: 1; grid-row: span 2; }
.per { color: var(--ink-soft); font-size: .9375rem; }
.inc-intro { font-weight: 800; margin-bottom: .5rem; }
.includes { padding-left: 1.1rem; margin: 0; }
.includes li { margin-bottom: .55rem; }
@media (max-width: 760px) { .packages { grid-template-columns: 1fr; } }
.steps { list-style: none; counter-reset: s; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 1rem; }
.steps li::before { content: counter(s); font-family: var(--display); font-size: 2.4rem; color: var(--rust); line-height: 1; display: block; margin-bottom: .5rem; }
.steps h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: .4rem; }
.steps p { color: var(--ink-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.current-partners ul { list-style: none; padding: 0; margin: 1rem 0 0; border-top: 2px solid var(--ink); }
.current-partners li { display: grid; grid-template-columns: 12rem 10rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.current-partners a { font-family: var(--display); font-size: 1.6rem; color: var(--rust); text-decoration: none; }
.current-partners .role { font-weight: 700; }
@media (max-width: 760px) { .current-partners li { grid-template-columns: 1fr; gap: .2rem; } }

/* Ask form */
.ask-form { padding: clamp(2.5rem, 6vw, 4rem) 0 var(--space); }
.field { margin-bottom: 1.4rem; }
.field label { display: block; font-weight: 800; margin-bottom: .4rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input[type=text], .field input[type=email], .field textarea { width: 100%; font: inherit; color: var(--ink); background: #FBF7F0; border: 2px solid var(--line); border-radius: 8px; padding: .8rem 1rem; }
.field input:focus, .field textarea:focus { border-color: var(--rust); outline: none; }
.field.check { display: flex; gap: .7rem; align-items: center; }
.field.check label { margin: 0; font-weight: 600; }
.field.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--rust); }
.hp { position: absolute; left: -5000px; }
.ask-form .btn { margin: .5rem 0 1rem; font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: clamp(3rem, 7vw, 5rem) var(--gutter) 2rem; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.footer-brand img { width: 12rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--sand); max-width: 20em; }
.footer-cols { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-cols a { text-decoration: none; font-weight: 600; }
.footer-cols a:hover { color: var(--sand); text-decoration: underline; }
.footer-partners, .footer-small { max-width: var(--wrap); margin: 2.5rem auto 0; font-size: .875rem; color: rgba(244,236,223,.7); }
.footer-small { margin-top: .75rem; }
.footer-partners a { color: var(--sand); font-weight: 700; }

/* Partner interest form */
.interest { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.interest-form { padding: 0; }
.interest-form .field label { color: #fff; }
.interest-form .opt { color: rgba(255,255,255,.8); }
.interest-form .small { color: rgba(255,255,255,.85); }
.interest-form .field input, .interest-form .field textarea { border-color: transparent; }
.prices.no-prices li { display: block; font-weight: 700; padding: .5rem 0; }
@media (max-width: 760px) { .interest { grid-template-columns: 1fr; } }
