/* Kallas / Shorelines. CORE owns navigation, transport and player reserve. */
:root {
  color-scheme: dark;
  --bg: #102c3c; --surface: #173a49; --surface-2: #214957;
  --text: #ece9dd; --muted: #bdcecc; --accent: #b7dfd5;
  --on-accent: #102c3c; --line: #476470; --control-line: #8eaaa9;
  --link: #b7dfd5; --focus: #f6d395; --error: #ffb8a9;
  --hero-text: var(--text); --hero-muted: var(--muted); --hero-shade: none;
  --display: Georgia, 'Times New Roman', serif; --body: Manrope, sans-serif;
  --max: 1380px; --radius: 0; --button-radius: 0;
  --player-bg: #173a49; --player-text: #ece9dd; --player-error: #ffb8a9;
  --gutter: clamp(20px, 4.5vw, 72px); --space: clamp(60px, 7vw, 112px);
  --shadow: 0 20px 50px #061b2433; --brand-logo-size: 44px;
}
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: 400; letter-spacing: -.045em; }
.site-header { min-height: 100px; padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); gap: 24px; }
.brand strong { font-family: var(--display); font-size: 2.1rem; font-weight: 400; letter-spacing: -.065em; }
.brand small { max-width: 29ch; font-size: .6rem; letter-spacing: .035em; }
.brand-mark, .brand-mark img, .brand-mark svg { width: 44px; height: 44px; }
.site-nav { gap: clamp(12px, 1.7vw, 28px); }
.site-nav a { min-width: 44px; justify-content: center; font-size: .8rem; }
.header-listen, .menu-toggle { min-height: 44px; border-radius: 0; font-size: .78rem; }
.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.1fr) minmax(0, 1fr); gap: 20px 70px; align-items: start; }
.section-head h2 { font-size: clamp(2.5rem, 4.5vw, 4.4rem); line-height: 1.08; max-width: 15ch; }
.section-head p { font-size: 1rem; line-height: 1.85; }
.section-head > a { grid-column: 2; justify-self: start; white-space: normal; }
.button { min-height: 54px; padding-inline: 22px; font-size: .85rem; }
.button.secondary { border-color: var(--control-line); }
.button:hover, .button:active { transform: none; }
/* A masthead above a separate panorama: no text sits on artwork. */
.hero.genre-world-hero { display: grid; grid-template-columns: minmax(0, 1fr); width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; min-height: 0; padding-top: 36px; overflow: visible; }
.hero .hero-layout { grid-row: 1; position: relative; display: block; width: 100%; margin: 0; padding: 12px 0 44px; min-width: 0; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: clamp(32px, 6vw, 96px); max-width: none; }
.pulse-eyebrow { grid-column: 1 / -1; color: var(--accent); margin: 0 0 26px; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { grid-column: 1; grid-row: 2 / 5; max-width: 11ch; font-size: clamp(4rem, 7.8vw, 7.2rem); line-height: .99; font-weight: 400; letter-spacing: -.065em; }
.hero .lead { grid-column: 2; color: var(--text); max-width: 43ch; font-size: 1.025rem; line-height: 1.9; margin: 0; padding-top: 8px; }
.hero-actions { grid-column: 2; gap: 12px 24px; margin-top: 22px; }
.pulse-current-name { grid-column: 2; color: var(--muted); font-size: .8rem; margin-top: 14px; }
.hero .hero-media { grid-row: 2; position: relative; inset: auto; z-index: 0; width: 100%; height: auto; aspect-ratio: 2.5 / 1; min-height: 240px; overflow: hidden; background: var(--surface); border-block: 1px solid var(--line); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: translate(var(--pulse-shift-x, 0px), var(--pulse-shift-y, 0px)) scale(1.035); }
.hero-media::before, .hero-media::after { content: none; }
/* Wrapping chart key: every native link stays wholly visible during Tab. */
.world-station-rail { grid-row: 3; position: relative; min-width: 0; background: var(--bg); padding-top: 12px; border-bottom: 1px solid var(--line); }
.world-station-list.pulse-channel-list { counter-reset: shore-source; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 244px), 1fr)); gap: 8px 0; width: 100%; max-width: 100%; min-width: 0; overflow: visible; scroll-snap-type: none; padding: 8px 8px 18px; margin: 0; }
.world-station { counter-increment: shore-source; width: auto; max-width: 100%; min-width: 0; min-height: 158px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; }
.world-station.is-current { background: var(--surface); box-shadow: inset 0 3px var(--accent); }
.pulse-channel-select { position: relative; display: flex; width: 100%; max-width: 100%; min-width: 0; min-height: 100px; padding: 22px 18px; gap: 12px; background: transparent; color: var(--text); border: 0; border-radius: 0; text-decoration: none; }
.pulse-channel-select::before { content: counter(shore-source, decimal-leading-zero); color: var(--accent); font-size: .72rem; align-self: start; flex-shrink: 0; padding-top: 3px; }
.pulse-channel-art { display: none; }
.pulse-channel-meta { gap: 4px; line-height: 1.5; }
.pulse-channel-meta strong { font-size: .95rem; }
.pulse-channel-meta > span, .pulse-channel-status { color: var(--muted); font-size: .73rem; }
.pulse-channel-request { position: relative; display: flex; align-items: center; gap: 8px; width: auto; max-width: calc(100% - 36px); min-width: 44px; min-height: 44px; margin: 0 18px 12px; padding: 8px 0; color: var(--link); background: transparent; border: 0; font-size: .75rem; text-decoration: underline; text-underline-offset: 4px; }
.pulse-channel-request > span { min-width: 0; overflow-wrap: anywhere; }
.pulse-channel-select:hover { background: var(--surface-2); }
/* The station directory is an editorial index, with generous numbered rows. */
.live-section { display: block; }
.pulse-filterbar { gap: 8px; flex-wrap: wrap; }
.pulse-filter { min-width: 44px; min-height: 44px; border: 1px solid var(--control-line); border-radius: 0; padding: 8px 16px; color: var(--text); background: transparent; font-size: .8rem; }
.pulse-filter[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.pulse-filter:hover { border-color: var(--accent); }
.pulse-filter-status { color: var(--muted); font-size: .8rem; margin-block: 20px; }
.station-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
.station-card { position: relative; grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, .8fr); gap: 0 30px; padding: 34px 0; border-color: var(--line); }
.station-identity { grid-column: 1; grid-row: 1 / 4; width: 58px; height: 58px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.station-identity .icon, .station-initials { display: none; }
.station-card::before { content: attr(data-order); position: absolute; width: 58px; top: 44px; text-align: center; color: var(--accent); font-size: 1.1rem; }
.station-content { grid-column: 2; grid-row: 1 / 3; }
.station-card h2, .station-card h3 { font-size: clamp(1.9rem, 2.8vw, 2.7rem); letter-spacing: -.04em; line-height: 1.15; }
.station-card p { font-size: .95rem; line-height: 1.8; max-width: 51ch; margin-top: 14px; }
.station-meta { grid-column: 3; margin-top: 0; font-size: .75rem; align-self: start; }
.station-actions { grid-column: 3; gap: 4px 22px; align-self: start; }
.station-action, .station-detail { min-height: 44px; font-size: .8rem; }
.station-card.is-current { background: var(--surface); box-shadow: inset 3px 0 var(--accent); }
/* Chalk editorial spread interrupts the dark directory. */
.kallas-fieldnotes { background: #ece9dd; color: #102c3c; --text: #102c3c; --muted: #385660; --link: #17575a; --focus: #8c3e1b; }
.editorial-feature { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 7vw, 112px); align-items: center; }
.editorial-media { aspect-ratio: 1 / 1; min-height: 1px; background: #d2dbd4; }
.editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.editorial-copy h2 { font-size: clamp(2.5rem, 4.6vw, 4.5rem); line-height: 1.08; max-width: 15ch; }
.editorial-copy p { max-width: 42ch; font-size: 1rem; line-height: 1.9; }
.journal-section .section-head { border-bottom: 1px solid var(--line); padding-bottom: 30px; }
.content-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.journal-card { border-top: 0; border-bottom: 1px solid var(--line); padding: 16px 0 26px; }
.journal-card h2, .journal-card h3 { font-size: clamp(1.8rem, 2.7vw, 2.6rem); line-height: 1.15; }
.journal-card p { font-size: .95rem; line-height: 1.85; }
.article-category { font-size: .72rem; letter-spacing: .07em; }
.journal-card > a { font-size: .82rem; min-height: 44px; }
.journal-index { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 70px; }
.kallas-colophon { border-block: 1px solid var(--line); background: var(--surface); }
.discover-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 70px; align-items: start; }
.discover-section h2 { grid-row: 1 / 3; font-size: clamp(5rem, 11vw, 10rem); letter-spacing: -.07em; }
.discover-section p { max-width: 36ch; font-size: 1.2rem; line-height: 1.8; }
.discover-actions { grid-column: 2; gap: 16px 28px; }
.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 1.1; }
.prose p, .prose li { color: var(--text); line-height: 1.95; font-size: 1rem; }
.prose h2 { margin-top: 44px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.breadcrumbs { flex-wrap: wrap; font-size: .8rem; gap: 8px 14px; }
.notice { border-color: var(--control-line); border-radius: 0; }
.site-footer { gap: 28px 70px; margin-top: 0; }
.site-footer strong { font-family: var(--display); font-size: 3.5rem; font-weight: 400; letter-spacing: -.06em; }
.site-footer p { max-width: 43ch; font-size: .9rem; }
.site-footer nav a { min-height: 44px; padding-block: 10px; font-size: .85rem; }
.copyright { padding-top: 24px; border-top: 1px solid var(--line); font-size: .75rem !important; }
.external-dialog { border-color: var(--control-line); border-radius: 0; }
.external-dialog::backdrop { background: #061b24bb; }
.player-shell { background: var(--surface); border-color: var(--control-line); }
.play-button { background: var(--accent); color: var(--on-accent); }
.live-dot, .is-playing .live-dot { animation: none; }
@media (max-width: 1100px) {
  .site-header { gap: 16px; }
  .hero h1 { font-size: clamp(3.7rem, 7.5vw, 6rem); }
  .hero-copy { column-gap: 36px; }
  .station-card { grid-template-columns: 58px minmax(0, 1fr); gap: 0 22px; }
  .station-content { grid-row: 1; }
  .station-meta, .station-actions { grid-column: 2; margin-top: 14px; }
}
@media (max-width: 800px) {
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .pulse-eyebrow, .hero h1, .hero .lead, .hero-actions, .pulse-current-name { grid-column: 1; grid-row: auto; }
  .hero h1 { max-width: 12ch; font-size: clamp(3.5rem, 10vw, 5.8rem); }
  .hero .lead { margin-top: 28px; max-width: 55ch; }
  .hero .hero-media { aspect-ratio: 1.75 / 1; min-height: 220px; }
  .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: 30px; }
  .editorial-copy h2 { font-size: 2.4rem; }
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .journal-card { padding-block: 20px; }
  .journal-card h3, .journal-card h2 { max-width: 24ch; font-size: 2rem; }
  .journal-card p { max-width: 54ch; }
  .discover-section { grid-template-columns: minmax(0, 1fr); }
  .discover-section h2 { grid-row: auto; }
  .discover-actions { grid-column: 1; }
}
@media (max-width: 560px) {
  .site-header { min-height: 88px; padding-block: 14px; gap: 10px; flex-wrap: wrap; }
  .brand strong { font-size: 1.8rem; }
  .brand small { max-width: 27ch; font-size: .55rem; }
  .brand-mark, .brand-mark img { width: 36px; height: 36px; }
  .brand { gap: 8px; }
  .header-listen { padding-inline: 12px; font-size: .7rem; }
  .hero.genre-world-hero { padding-top: 24px; }
  .hero .hero-layout { padding-bottom: 30px; }
  .pulse-eyebrow { font-size: .65rem; letter-spacing: .1em; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.8rem); }
  .hero .lead { font-size: .95rem; line-height: 1.85; }
  .hero-actions { align-items: flex-start; }
  .hero-actions .button { max-width: 100%; white-space: normal; text-align: left; }
  .hero .hero-media { aspect-ratio: 1.4 / 1; min-height: 0; }
  .section-head h2 { font-size: 2.6rem; }
  .station-card { grid-template-columns: 36px minmax(0, 1fr); gap: 0 14px; padding-block: 28px; }
  .station-identity { width: 34px; height: 34px; }
  .station-card::before { width: 34px; top: 30px; font-size: .85rem; }
  .station-card h2, .station-card h3 { font-size: 1.9rem; overflow-wrap: anywhere; }
  .station-card p { font-size: .9rem; }
  .station-actions { flex-direction: column; align-items: flex-start; gap: 4px; }
  .station-action { font-size: .76rem; }
  .editorial-feature { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .editorial-media { max-width: 440px; }
  .editorial-copy h2 { font-size: 2.6rem; }
  .discover-section h2 { font-size: 5.5rem; }
  .site-footer { gap: 26px; }
  .prose h1 { font-size: 2.7rem; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-media img { transform: none; }
}
