/* Cove / Sunlit groove. CORE owns navigation, controller and measured player reserve. */
:root {
  color-scheme: light;
  --bg: #f6efdf; --surface: #eee3ce; --surface-2: #e5d7bc;
  --text: #123f35; --muted: #526153; --accent: #123f35; --on-accent: #fff4df;
  --line: #c5b99e; --control-line: #697967; --link: #275844; --focus: #9b3f13; --error: #9b321d;
  --hero-text: #123f35; --hero-muted: #526153; --hero-shade: none;
  --display: Manrope, sans-serif; --body: Manrope, sans-serif;
  --max: 1360px; --radius: 20px; --button-radius: 100px;
  --player-bg: #123f35; --player-text: #fff4df; --player-error: #ffc6a8;
  --brand-logo-size: 48px; --shadow: 0 20px 50px #123f3510;
  --gutter: clamp(20px, 4vw, 64px); --space: clamp(64px, 7vw, 112px);
}
body { font-size: 16px; line-height: 1.8; }
html { scroll-padding-top: 24px; scroll-behavior: auto; }
a, button, input { scroll-margin-block: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.06em; }
.site-header { min-height: 100px; padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); border-bottom-color: var(--line); }
.brand strong { font-size: 2.1rem; font-weight: 700; letter-spacing: -.075em; }
.brand small { font-size: .6rem; letter-spacing: .025em; }
.brand-mark, .brand-mark img { width: 48px; height: 48px; }
.site-nav { gap: clamp(14px, 1.7vw, 28px); }
.site-nav a { font-weight: 600; }
.header-listen, .menu-toggle { min-height: 44px; border-radius: 100px; }
.menu-toggle { border-color: var(--control-line); }
.section, .site-footer { width: min(var(--max), calc(100% - 2 * var(--gutter))); }
.section { padding-block: var(--space); }
.section-head { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px 60px; align-items: start; }
.section-head h2 { max-width: 13ch; font-size: clamp(2.5rem, 4.8vw, 4.5rem); line-height: 1.08; }
.section-head p { font-size: .97rem; line-height: 1.85; }
.section-head > a { grid-column: 2; justify-self: start; white-space: normal; }
.button { min-height: 54px; padding-inline: 24px; }
.button.secondary { border-color: var(--control-line); }
.button:hover, .button:active { transform: none; }
.text-link { font-size: .84rem; }
/* An open courtyard: text beside a tall, arched image, never laid over it. */
.hero.genre-world-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 0 clamp(28px, 5vw, 80px); width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding-top: 56px; min-height: 0; overflow: visible; }
.hero .hero-layout { grid-column: 1; grid-row: 1; position: relative; width: 100%; margin: 0; display: block; min-width: 0; padding: 52px 0 60px; align-self: center; }
.hero-copy { max-width: none; }
.pulse-eyebrow { color: var(--link); margin: 0 0 30px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3.7rem, 6.4vw, 6.3rem); line-height: 1.015; letter-spacing: -.075em; max-width: 10ch; }
.hero .lead { color: var(--hero-muted); max-width: 40ch; font-size: 1rem; line-height: 1.85; margin-top: 28px; }
.hero-actions { gap: 12px 24px; margin-top: 30px; align-items: flex-start; }
.hero-actions .button { white-space: normal; text-align: left; }
.pulse-current-name { display: block; margin-top: 16px; color: var(--muted); font-size: .76rem; }
.hero .hero-media { grid-column: 2; grid-row: 1; position: relative; z-index: 0; inset: auto; width: 100%; height: auto; aspect-ratio: 1 / 1.14; min-height: 1px; overflow: hidden; border-radius: 50% 50% 8px 8px; background: #dfb778; align-self: center; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
.hero-media::before, .hero-media::after { content: none; }
/* Numbered source slips form a shallow shelf beneath the courtyard. */
.world-station-rail { grid-column: 1 / -1; position: relative; min-width: 0; margin-top: 42px; padding-block: 10px 24px; border-top: 1px solid var(--line); }
.world-station-list.pulse-channel-list { counter-reset: cove-source; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 8px; margin-inline: -8px; overflow: visible; scroll-snap-type: none; }
.world-station { counter-increment: cove-source; width: auto; min-width: 0; max-width: 100%; padding: 4px 16px; background: transparent; border-right: 1px solid var(--line); }
.world-station:last-child { border-right: 0; }
.world-station.is-current { background: transparent; box-shadow: none; }
.pulse-channel-select { display: grid; align-items: start; justify-items: start; gap: 13px; padding: 12px 0; min-height: 115px; border: 0; background: transparent; color: var(--text); text-decoration: none; }
.pulse-channel-select::before { content: counter(cove-source, decimal-leading-zero); display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--control-line); border-radius: 50%; font-size: .65rem; font-weight: 700; }
.pulse-channel-art { display: none; }
.pulse-channel-meta { gap: 5px; }
.pulse-channel-meta strong { font-size: .94rem; letter-spacing: -.025em; }
.pulse-channel-meta > span { font-size: .72rem; color: var(--muted); }
.pulse-channel-status { font-size: .7rem; line-height: 1.65; color: var(--muted); }
.pulse-channel-request { justify-content: flex-start; gap: 6px; max-width: 100%; min-height: 44px; padding: 8px 0; background: none; color: var(--link); font-size: .72rem; text-decoration: underline; text-underline-offset: 4px; }
.pulse-channel-request > span { min-width: 0; overflow-wrap: anywhere; }
.pulse-channel-select:hover strong { text-decoration: underline; text-underline-offset: 4px; }
/* The first essay is a round record on an amber spread, before the directory. */
.cove-first-rotation { background: #edbd6e; --text: #123f35; --muted: #36503d; --link: #123f35; --focus: #733012; }
.editorial-feature { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 8vw, 128px); align-items: center; }
.editorial-media { width: 100%; aspect-ratio: 1; min-height: 1px; border-radius: 50%; background: #dab27b; }
.editorial-media img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.editorial-copy h2 { max-width: 14ch; font-size: clamp(2.7rem, 4.7vw, 4.7rem); line-height: 1.08; }
.editorial-copy p { max-width: 40ch; font-size: 1rem; line-height: 1.85; }
/* A crate of record sleeves: large first entry, then paired smaller entries. */
.pulse-filterbar { gap: 8px; }
.pulse-filter { min-width: 44px; min-height: 44px; padding: 9px 18px; border: 1px solid var(--control-line); border-radius: 100px; color: var(--text); background: transparent; font-size: .8rem; }
.pulse-filter[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.pulse-filter-status { margin-block: 20px; font-size: .8rem; color: var(--muted); }
.station-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; border-top: 0; }
.station-card { position: relative; grid-template-columns: 64px minmax(0, 1fr); gap: 0 22px; border: 1px solid var(--line); border-radius: 18px; padding: 32px; background: #faf5e9; }
.station-card:first-child { grid-column: 1 / -1; background: var(--surface); }
.station-identity { width: 64px; height: 64px; border-radius: 50%; background: #123f35; border: 1px solid #123f35; color: #edbd6e; }
.station-identity .icon { display: none; }
.station-initials { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; font-size: .6rem; font-weight: 700; }
.station-card h2, .station-card h3 { font-size: clamp(1.8rem, 2.5vw, 2.6rem); line-height: 1.15; letter-spacing: -.05em; }
.station-card p { font-size: .93rem; line-height: 1.85; max-width: 55ch; margin-top: 16px; }
.station-meta { gap: 6px 14px; margin-top: 18px; font-size: .72rem; }
.station-actions { gap: 8px 24px; margin-top: 16px; }
.station-action, .station-detail { min-height: 44px; font-size: .8rem; }
.station-card.is-current .station-identity { color: #edbd6e; background: #123f35; }
.station-card:first-child .station-content { max-width: 70ch; }
.cove-reading { background: #123f35; color: #fff4df; --text: #fff4df; --muted: #d1dac9; --line: #688778; --link: #f4c576; --focus: #ffd28b; }
.journal-section .section-head { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.journal-card { border-top: 0; padding-block: 16px 28px; border-bottom: 1px solid var(--line); }
.journal-card:nth-child(2) { padding-top: 64px; }
.journal-card:nth-child(3) { padding-top: 112px; }
.journal-card h2, .journal-card h3 { font-size: clamp(1.8rem, 2.7vw, 2.8rem); line-height: 1.14; }
.journal-card p { font-size: .93rem; line-height: 1.85; }
.journal-card > a { font-size: .8rem; }
.article-category { letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; }
.journal-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 64px; }
.journal-index .journal-card { padding-top: 28px; border-top: 1px solid var(--line); }
.cove-inlet { background: #e7dec8; }
.discover-section { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 24px 80px; align-items: start; }
.discover-section h2 { grid-row: 1 / 3; font-size: clamp(4rem, 8vw, 7.5rem); letter-spacing: -.08em; }
.discover-section p { font-size: 1.12rem; max-width: 43ch; line-height: 1.85; }
.discover-actions { grid-column: 2; gap: 14px 28px; }
.prose { max-width: 70ch; }
.prose h1 { font-size: clamp(2.7rem, 5.3vw, 4.9rem); line-height: 1.09; }
.prose p, .prose li { color: var(--text); line-height: 1.95; font-size: 1rem; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.breadcrumbs { flex-wrap: wrap; gap: 8px 14px; font-size: .8rem; }
.notice { border-radius: 18px; border: 1px solid var(--line); }
.site-footer { margin-top: 0; gap: 30px 70px; }
.site-footer strong { font-size: 3.4rem; font-weight: 700; letter-spacing: -.075em; }
.site-footer p { max-width: 47ch; font-size: .88rem; }
.site-footer nav a { min-height: 44px; padding-block: 9px; font-size: .82rem; }
.copyright { padding-top: 24px; border-top: 1px solid var(--line); }
.external-dialog { border-color: var(--control-line); border-radius: 24px; }
.player-shell { background: var(--player-bg); border-color: #688778; --muted: #d1dac9; --link: #f4c576; --focus: #ffd28b; --accent: #edbd6e; --on-accent: #123f35; }
.player-shell :focus-visible { outline-color: #ffd28b; }
.live-dot, .is-playing .live-dot { animation: none; }
@media (max-width: 1100px) {
  .hero.genre-world-hero { gap: 0 32px; }
  .hero h1 { font-size: clamp(3.4rem, 6.5vw, 5.2rem); }
  .hero .hero-layout { padding-block: 32px 44px; }
  .hero .hero-media { aspect-ratio: 1 / 1.4; }
  .world-station-list.pulse-channel-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 0; }
  .world-station:nth-child(3) { border-right: 0; }
  .station-card { grid-template-columns: 48px minmax(0, 1fr); padding: 24px; gap: 0 18px; }
  .station-identity { width: 48px; height: 48px; }
  .station-meta, .station-actions { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .hero.genre-world-hero { padding-top: 32px; grid-template-columns: minmax(0, 1fr); }
  .hero .hero-layout { grid-column: 1; grid-row: 1; padding: 12px 0 36px; }
  .hero h1 { max-width: 12ch; font-size: clamp(3.5rem, 9.5vw, 5.8rem); }
  .hero .lead { max-width: 50ch; }
  .hero .hero-media { grid-column: 1; grid-row: 2; width: 83%; margin-left: auto; aspect-ratio: 1.35; border-radius: 50% 50% 8px 8px; }
  .hero-media img { object-position: 62% 50%; }
  .world-station-rail { grid-row: 3; margin-top: 32px; }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .section-head > a { grid-column: 1; }
  .editorial-feature { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 32px; }
  .editorial-copy h2 { font-size: 2.5rem; }
  .station-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .station-card { grid-template-columns: 56px minmax(0, 1fr); padding: 28px; }
  .station-identity { width: 56px; height: 56px; }
  .station-meta, .station-actions { grid-column: 2; }
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .journal-card, .journal-card:nth-child(2), .journal-card:nth-child(3) { padding-block: 24px; }
  .journal-card h3 { max-width: 24ch; font-size: 2.2rem; }
  .journal-card p { max-width: 52ch; }
  .discover-section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .discover-section h2 { grid-row: auto; }
  .discover-actions { grid-column: 1; }
}
@media (max-width: 560px) {
  .site-header { min-height: 88px; padding-block: 14px; flex-wrap: wrap; gap: 12px; }
  .brand strong { font-size: 1.8rem; }
  .brand small { font-size: .55rem; }
  .brand-mark, .brand-mark img { width: 38px; height: 38px; }
  .menu-toggle { font-size: .75rem; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .pulse-eyebrow { font-size: .65rem; margin-bottom: 24px; }
  .hero .lead { font-size: .95rem; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .button { max-width: 100%; font-size: .78rem; }
  .hero .hero-media { width: 100%; aspect-ratio: 1.15; }
  .world-station-list.pulse-channel-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .world-station { border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .pulse-channel-select { display: flex; align-items: center; gap: 16px; min-height: 80px; }
  .pulse-channel-select::before { flex-shrink: 0; }
  .pulse-channel-meta strong { font-size: 1rem; }
  .pulse-channel-request { margin-left: 46px; max-width: calc(100% - 46px); }
  .editorial-feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .editorial-media { max-width: 340px; }
  .editorial-copy h2, .section-head h2 { font-size: 2.6rem; }
  .station-card { padding: 22px; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; }
  .station-identity { width: 40px; height: 40px; }
  .station-initials { width: 24px; height: 24px; font-size: .5rem; }
  .station-card h2, .station-card h3 { font-size: 1.8rem; overflow-wrap: anywhere; }
  .station-card p { font-size: .9rem; }
  .station-meta, .station-actions { grid-column: 1 / -1; }
  .station-actions { flex-direction: column; align-items: flex-start; gap: 4px; }
  .station-action { font-size: .78rem; }
  .journal-index { grid-template-columns: minmax(0, 1fr); }
  .prose h1 { font-size: 2.7rem; overflow-wrap: anywhere; }
  .site-footer { gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
