/* ── as.if.radio — SEO Landing Pages ── */

:root,
html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #09090b;
  --bg-subtle: #0f0f13;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(20, 21, 30, 0.88);
  --text: #f4f4f5;
  --text-secondary: #a1a1aa;
  --muted: #71717a;
  --accent: #facc15;
  --accent-hover: #fde047;
  --accent-glow: rgba(250, 204, 21, 0.15);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --header-bg: rgba(9, 9, 11, 0.85);
  --hero-tint-1: rgba(250, 204, 21, 0.08);
  --hero-tint-2: rgba(255, 255, 255, 0.04);
  --hero-bg: linear-gradient(145deg, #1a1a2e, #0f172a);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Roboto Mono', 'SF Mono', monospace;
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f3ec;
  --bg-subtle: #faf8f3;
  --panel: rgba(26, 25, 22, 0.03);
  --panel-hover: rgba(26, 25, 22, 0.06);
  --panel-strong: rgba(250, 248, 243, 0.94);
  --text: #1a1916;
  --text-secondary: #3a3833;
  --muted: #6b6862;
  --accent: #8b6914;        /* deep amber — editorial link */
  --accent-hover: #6b510f;
  --accent-glow: rgba(139, 105, 20, 0.10);
  --border: rgba(26, 25, 22, 0.08);
  --border-hover: rgba(26, 25, 22, 0.15);
  --shadow: 0 24px 48px rgba(40, 30, 10, 0.08);
  --shadow-card: 0 8px 32px rgba(40, 30, 10, 0.06);
  --header-bg: rgba(250, 248, 243, 0.88);
  --hero-tint-1: rgba(139, 105, 20, 0.06);
  --hero-tint-2: rgba(26, 25, 22, 0.03);
  --hero-bg: linear-gradient(145deg, #faf8f3, #efeadb);
}

body {
  transition: background-color 220ms ease, color 220ms ease;
}

/* ── Reset ── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Site Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo img {
  height: 22px;
  width: auto;
  opacity: 0.9;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--panel-hover);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── Breadcrumbs ── */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .sep {
  opacity: 0.4;
  font-size: 10px;
}

/* ── Container ── */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* ── Hero ── */

.hero {
  position: relative;
  border-radius: 20px;
  padding: 40px 36px;
  border: 1px solid var(--border);
  background: var(--hero-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, var(--hero-tint-1), transparent),
    radial-gradient(ellipse 50% 60% at 10% 80%, var(--hero-tint-2), transparent);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px;
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* ── Badges & Eyebrow ── */

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(250, 204, 21, 0.12);
  color: var(--accent);
  border: 1px solid rgba(250, 204, 21, 0.2);
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ── Typography ── */

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}

h2 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 48px 0 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}

h3 {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--text);
}

p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  /* Cap reading width on long-form to keep line length within 45–75ch.
     Hero / feature copy opts back into a wider/narrower max via its own rule. */
  max-width: 68ch;
}

.hero p {
  max-width: 540px;
  color: var(--text-secondary);
  opacity: 0.95;
}

/* ── CTA Buttons ── */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  background: #facc15;
  color: #09090b;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 4px 16px rgba(250, 204, 21, 0.25);
}

.cta:hover {
  transform: translateY(-1px);
  background: #fde047;
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.35);
  color: #09090b;
}

.cta:active {
  transform: scale(0.97);
}

.cta.secondary {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: none;
}

.cta.secondary:hover {
  background: var(--panel-hover);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-1px);
}

/* ── Grid ── */

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 20px;
}

/* ── Cards ── */

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--panel-hover);
  transform: translateY(-2px);
}

.card-header p {
  color: var(--muted);
  font-size: 13px;
}

.card h3 {
  margin: 0;
}

.card p {
  font-size: 13px;
  margin: 0;
  color: var(--text-secondary);
}

.card .cta {
  margin-top: auto;
  align-self: flex-start;
}

.card .cta-row {
  margin-top: auto;
}

/* ── Pills ── */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
}

/* ── Lists ── */

ul {
  padding-left: 20px;
  margin: 0;
}

li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

li::marker {
  color: var(--accent);
}

/* ── FAQ Details/Summary ── */

.faq-item {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item summary {
  padding: 18px 22px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background 0.2s ease;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.faq-item[open] summary::after {
  content: '\2212';
  color: var(--accent);
}

.faq-item summary:hover {
  background: var(--panel);
}

.faq-answer {
  padding: 0 22px 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 72ch;
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer ul {
  margin: 8px 0 0;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

/* ── Section Divider ── */

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Platform Grid (Listen page) ── */

.platform-card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.platform-card:hover {
  border-color: var(--border-hover);
  background: var(--panel-hover);
  transform: translateY(-2px);
  color: var(--text);
}

.platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.platform-info {
  min-width: 0;
}

.platform-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.platform-desc {
  font-size: 12px;
  color: var(--muted);
}

/* ── Now Playing Widget ── */

[data-nowplaying] {
  border-color: var(--border);
  transition: border-color 0.3s ease;
}

[data-nowplaying].is-ready {
  border-color: rgba(250, 204, 21, 0.35);
  background: var(--accent-glow);
}

/* Light-mode tint for the brand yellow badge background */
html[data-theme='light'] .badge {
  background: rgba(139, 105, 20, 0.08);
  color: var(--accent);
  border-color: rgba(139, 105, 20, 0.18);
}

/* ── Site Footer ── */

.site-footer {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-col {
  min-width: 140px;
}

.footer-col h4 {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 3px 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--accent);
}

/* ── Stats Row ── */

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .container {
    padding: 24px 16px 64px;
  }

  .hero {
    padding: 28px 22px;
    border-radius: 16px;
  }

  h1 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cta {
    text-align: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    height: 48px;
    padding: 0 16px;
  }

  .site-nav a {
    padding: 4px 8px;
    font-size: 11px;
  }

  .site-footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .stats-row {
    gap: 16px;
  }

  .stat-value {
    font-size: 22px;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Now Playing Wall (Mastodon) ── */

.now-playing-wall {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.now-playing-wall h2 {
  margin-bottom: 8px;
}

.now-playing-wall > p {
  color: #a1a1aa;
  margin-bottom: 24px;
  max-width: 640px;
}

.now-playing-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.now-playing-card {
  display: flex;
  flex-direction: column;
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.now-playing-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.now-playing-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #09090b;
}

.now-playing-text {
  padding: 14px 16px 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #e4e4e7;
  word-break: break-word;
}

.now-playing-text p {
  margin: 0 0 8px;
}

.now-playing-text p:last-child {
  margin-bottom: 0;
}

.now-playing-text a {
  color: #fef08a;
  text-decoration: none;
}

.now-playing-text a:hover {
  text-decoration: underline;
}

.now-playing-link {
  display: block;
  padding: 8px 16px 14px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #71717a;
  text-decoration: none;
  margin-top: auto;
}

.now-playing-link:hover {
  color: #d4d4d8;
}

.now-playing-card.now-playing-fallback {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: #a1a1aa;
}

.now-playing-card.now-playing-fallback p {
  margin: 0;
}

.now-playing-follow {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fef08a;
  border: 1px solid rgba(254, 240, 138, 0.4);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.now-playing-follow:hover {
  background: rgba(254, 240, 138, 0.08);
  border-color: rgba(254, 240, 138, 0.7);
}

[data-theme='light'] .now-playing-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme='light'] .now-playing-text {
  color: #18181b;
}

[data-theme='light'] .now-playing-follow {
  color: #854d0e;
  border-color: rgba(133, 77, 14, 0.4);
}

/* ── Print ── */

@media print {
  .site-header,
  .site-footer,
  .cta-row {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    background: #f5f5f5 !important;
    border: 1px solid #ddd;
  }
}
