/* Ridham Radio — candlelit night */
:root {
  --ink: #120E0A;
  --ink-2: #1B1510;
  --ink-3: #251C15;
  --line: rgba(237, 227, 204, 0.12);
  --parchment: #EDE3CC;
  --parchment-dim: #BFB29A;
  --saffron: #E0A84B;
  --saffron-deep: #C98E2E;
  --maroon: #8C2F39;

  --font-display: 'Boska', 'Iowan Old Style', serif;
  --font-body: 'Switzer', 'Segoe UI', sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --text-xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-2xl: clamp(2rem, 1.6rem + 2vw, 3rem);
  --text-hero: clamp(2.5rem, 1.6rem + 4.4vw, 5.25rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-12: 3rem; --space-16: 4rem; --space-24: 6rem;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 14px;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--saffron); color: var(--ink); padding: var(--space-2) var(--space-4); z-index: 100; }
.skip:focus { left: var(--space-4); top: var(--space-4); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.eyebrow { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--saffron); font-weight: 600; }
.muted { color: var(--parchment-dim); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 14, 10, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 68px; }
.brand { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.brand span { color: var(--saffron); }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav ul { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: var(--text-sm); color: var(--parchment-dim); transition: color .2s var(--ease); padding-block: var(--space-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--parchment); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--saffron); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--parchment); border-radius: var(--radius-sm); width: 44px; height: 44px; cursor: pointer; }
.menu-btn svg { margin: auto; }

@media (max-width: 900px) {
  .menu-btn { display: grid; place-items: center; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: var(--space-4) 1.25rem var(--space-6); display: none; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: var(--space-3) 0; font-size: var(--text-lg); border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: var(--space-4); justify-content: center; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 46px; padding: 0 var(--space-6); border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600; text-decoration: none; letter-spacing: 0.01em; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); border: 1px solid transparent; }
.btn-primary { background: var(--saffron); color: var(--ink); }
.btn-primary:hover { background: #EBB862; }
.btn-ghost { border-color: rgba(237, 227, 204, 0.32); color: var(--parchment); }
.btn-ghost:hover { border-color: var(--saffron); color: var(--saffron); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18,14,10,0.15) 0%, rgba(18,14,10,0.35) 45%, rgba(18,14,10,0.96) 100%), linear-gradient(90deg, rgba(18,14,10,0.7) 0%, rgba(18,14,10,0) 65%); }
.hero .wrap { padding-block: var(--space-24) var(--space-16); }
.hero h1 { font-size: var(--text-hero); max-width: 14ch; }
.hero h1 em { font-style: italic; color: var(--saffron); font-weight: 400; }
.hero .lede { font-size: var(--text-lg); color: var(--parchment); opacity: .88; max-width: 46ch; margin-block: var(--space-6) var(--space-8); }

/* Page head (inner pages) */
.page-head { padding-block: var(--space-24) var(--space-12); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: var(--text-2xl); max-width: 18ch; margin-top: var(--space-3); }
.page-head p { font-size: var(--text-lg); color: var(--parchment-dim); max-width: 56ch; margin-top: var(--space-4); }

section { padding-block: var(--space-16); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-8); flex-wrap: wrap; }
.section-title h2 { font-size: var(--text-xl); }
.link-arrow { color: var(--saffron); text-decoration: none; font-size: var(--text-sm); font-weight: 600; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Latest */
.latest { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-12); align-items: center; }
.latest h2 { font-size: var(--text-2xl); margin-block: var(--space-3) var(--space-4); }
@media (max-width: 860px) { .latest { grid-template-columns: 1fr; gap: var(--space-8); } }

.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: var(--ink-3); border: 1px solid var(--line); }
.yt button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.yt button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.yt button:hover img { transform: scale(1.03); }
.yt .play { position: relative; width: 72px; height: 72px; border-radius: 50%; background: rgba(18,14,10,0.72); border: 1px solid rgba(224,168,75,0.7); display: grid; place-items: center; transition: background .2s; }
.yt button:hover .play { background: var(--saffron); }
.yt button:hover .play svg { color: var(--ink); }
.yt .play svg { color: var(--saffron); margin-left: 4px; }
.yt button:focus-visible { outline: 2px solid var(--saffron); outline-offset: -4px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Releases */
.releases { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-6); }
.release { grid-column: span 4; text-decoration: none; display: flex; flex-direction: column; gap: var(--space-3); }
.release.wide { grid-column: span 6; }
.release figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-md); background: var(--ink-3); border: 1px solid var(--line); }
.release img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.release:hover img { transform: scale(1.04); }
.release h3 { font-size: var(--text-lg); line-height: 1.25; }
.release:hover h3 { color: var(--saffron); }
.release .meta { font-size: var(--text-xs); color: var(--parchment-dim); letter-spacing: 0.04em; }
@media (max-width: 900px) { .release, .release.wide { grid-column: span 6; } }
@media (max-width: 560px) { .release, .release.wide { grid-column: span 12; } }

/* Quote band */
.quote-band { background: var(--ink-2); border-block: 1px solid var(--line); text-align: center; padding-block: var(--space-24); }
.quote-band blockquote { margin: 0 auto; font-family: var(--font-display); font-style: italic; font-size: var(--text-2xl); max-width: 22ch; line-height: 1.2; }
.quote-band cite { display: block; margin-top: var(--space-6); font-style: normal; font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--saffron); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.split figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.split h2 { font-size: var(--text-2xl); margin-block: var(--space-3) var(--space-6); }
.split p + p { margin-top: var(--space-4); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--space-8); } }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.platform { background: var(--ink); padding: var(--space-6); text-decoration: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 88px; transition: background .2s; }
.platform:hover { background: var(--ink-2); }
.platform strong { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; display: block; }
.platform span { font-size: var(--text-xs); color: var(--parchment-dim); }
.platform svg { color: var(--saffron); flex: none; }

/* Themes (about) */
.themes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--space-8); }
.theme { padding-top: var(--space-6); border-top: 1px solid var(--saffron); }
.theme h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.theme p { color: var(--parchment-dim); }
@media (max-width: 860px) { .themes { grid-template-columns: 1fr; } }

.tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); list-style: none; padding: 0; }
.tags li { font-size: var(--text-xs); letter-spacing: 0.06em; padding: var(--space-1) var(--space-3); border: 1px solid rgba(224,168,75,0.4); border-radius: 999px; color: var(--saffron); }

.lang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.lang div { background: var(--ink); padding: var(--space-6); }
.lang b { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); margin-block: var(--space-2); }
.lang p { color: var(--parchment-dim); font-size: var(--text-sm); }
@media (max-width: 700px) { .lang { grid-template-columns: 1fr; } }

/* Cards (support / contact) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); }
.card h2, .card h3 { font-size: var(--text-xl); }
.card p { color: var(--parchment-dim); flex: 1; }
.card .btn { align-self: flex-start; margin-top: var(--space-3); }
a.card { text-decoration: none; transition: border-color .2s, background .2s; }
a.card:hover { border-color: rgba(224,168,75,0.6); background: var(--ink-3); }

/* Link in bio */
.bio { max-width: 520px; margin-inline: auto; padding-block: var(--space-16) var(--space-24); text-align: center; }
.bio img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius-md); border: 1px solid var(--line); margin-bottom: var(--space-8); }
.bio h1 { font-size: var(--text-2xl); }
.bio > p { color: var(--parchment-dim); margin-block: var(--space-2) var(--space-8); }
.bio ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.bio ul a { display: flex; align-items: center; justify-content: center; min-height: 54px; border: 1px solid rgba(237,227,204,0.24); border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; transition: border-color .2s, color .2s, background .2s; }
.bio ul a:hover { border-color: var(--saffron); color: var(--saffron); }
.bio ul a.primary { background: var(--saffron); color: var(--ink); border-color: var(--saffron); }
.bio ul a.primary:hover { background: #EBB862; color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--space-16) var(--space-8); background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-12); }
.footer-grid h2 { font-size: var(--text-lg); }
.footer-grid h3 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--parchment-dim); font-weight: 600; margin-bottom: var(--space-4); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.footer-grid a { text-decoration: none; color: var(--parchment-dim); font-size: var(--text-sm); }
.footer-grid a:hover { color: var(--saffron); }
.footer-base { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-xs); color: var(--parchment-dim); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* polish pass */
.nav a.btn-primary, .nav .btn-primary { color: var(--ink); }
.nav a.btn-primary:hover { color: var(--ink); }
.hero picture img, .hero img { top: auto; bottom: 0; height: 122%; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 30%; z-index: -1; background: linear-gradient(180deg, rgba(18,14,10,0.85), rgba(18,14,10,0)); }
