/* The Daily Uplink — static draft. System fonts only. No trackers. */
:root {
  --bg: #07080c;
  --bg-elev: #10131a;
  --bg-card: #151924;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f5f7;
  --muted: #b0b6c3;
  --soft: #8b93a6;
  --blue: #3b9dff;
  --blue-deep: #1a6fd0;
  --orange: #ff7a3a;
  --spotify: #1ed760;
  --radius: 16px;
  --wrap: 1080px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(255, 122, 58, 0.14), transparent 55%),
    radial-gradient(800px 480px at 90% 0%, rgba(59, 157, 255, 0.16), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7ec2ff; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute;
  left: 12px; top: -40px;
  background: var(--text); color: var(--bg);
  padding: 8px 12px; border-radius: 8px; z-index: 20;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(7, 8, 12, 0.78);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.wordmark {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
}
.wordmark:hover { color: var(--text); }
nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}
nav a:hover { color: var(--text); }

.hero { padding: 48px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
}
.cover {
  width: 100%;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 30px 60px rgba(0,0,0,0.45);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 10px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
}
.lede { font-size: 1.08rem; color: var(--muted); max-width: 42em; }
.byline { color: var(--soft); font-size: 0.98rem; }
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}
.hero-app-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 44px; padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.btn-primary {
  background: var(--blue);
  border-color: transparent;
  color: #061018;
}
.btn-primary:hover { background: #6cb4ff; color: #061018; }
.btn-app { background: #111318; }
.btn-apple { border-color: rgba(153, 51, 204, 0.55); }
.btn-spotify { border-color: rgba(30, 215, 96, 0.55); }
.btn-youtube { border-color: rgba(255, 0, 0, 0.5); }
.btn-amazon { border-color: rgba(37, 209, 218, 0.55); }
.btn-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: block;
  object-fit: contain;
}
.btn-icon-round { border-radius: 5px; }

.player-section, .apps-section, .episodes-section, .about-section {
  padding: 56px 0;
}
.player-section { padding-top: 24px; }
.player-card {
  background: linear-gradient(180deg, rgba(59,157,255,0.08), transparent 40%), var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.ep-kicker { color: var(--soft); font-size: 0.85rem; margin: 0 0 6px; }
.player-card h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-bottom: 6px; }
.ep-when { color: var(--soft); margin: 0 0 14px; font-size: 0.95rem; }
.ep-desc { color: var(--muted); max-width: 48em; }

.gate {
  margin-top: 8px;
  padding: 20px;
  border: 1px dashed rgba(59,157,255,0.4);
  border-radius: 12px;
  background: rgba(7, 8, 12, 0.4);
}
.gate-title { font-weight: 700; margin: 0 0 6px; }
.gate-copy { color: var(--muted); font-size: 0.95rem; }
.email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}
.email-form input[type="email"] {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0b0d12;
  color: var(--text);
  font: inherit;
}
.email-form input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.form-status { flex-basis: 100%; margin: 0; color: var(--orange); font-size: 0.92rem; }
.form-status.ok { color: #8be28b; }
.kit-form {
  margin-top: 14px;
  max-width: 32rem;
}
.player-card .formkit-form {
  max-width: 100% !important;
}

.player-wrap { margin-top: 12px; }
audio { width: 100%; margin-top: 4px; }
.player-note { color: var(--soft); font-size: 0.85rem; margin: 10px 0 0; }

.section-lead { color: var(--muted); margin-bottom: 22px; }
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.app-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}
.app-btn:hover { background: #1b2030; color: var(--text); }
.app-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.app-btn .btn-icon { width: 22px; height: 22px; flex-basis: 22px; }

.episode-list { list-style: none; margin: 0; padding: 0; }
.episode-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.episode-item:last-child { border-bottom: 1px solid var(--line); }
.ep-num {
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.04em;
  padding-top: 4px;
}
.episode-item h3 { font-size: 1.05rem; margin: 0 0 4px; letter-spacing: -0.01em; }
.ep-sub { color: var(--soft); font-size: 0.88rem; margin: 0 0 8px; }
.episode-item p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.episode-blurb {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.play-ep {
  min-width: 72px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.play-ep:hover, .play-ep.is-current { background: var(--blue); color: #061018; border-color: transparent; }

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 36px;
  align-items: start;
}
.about-section p { color: var(--muted); }
.about-aside {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.about-aside p { margin: 0 0 12px; color: var(--text); }
.about-aside p:last-child { margin: 0; }
.about-aside strong { display: block; color: var(--soft); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 2px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--soft);
  font-size: 0.9rem;
}
.footer-inner p { margin: 0 0 6px; }

@media (max-width: 800px) {
  .hero-grid, .about-grid, .episode-item {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 28px; }
  .cover { max-width: 320px; }
  nav { font-size: 0.88rem; }
  .episode-item { gap: 8px; }
  .play-ep { justify-self: start; }
}

@media (max-width: 720px) {
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .hero-actions .btn-primary { grid-column: 1 / -1; }
  .hero-app-row { display: contents; }
  .hero-actions .btn { width: 100%; justify-content: flex-start; }
}

@media (max-width: 520px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 10px 0; min-height: 0; gap: 8px; }
  .app-btn { width: 100%; }
  .player-card { padding: 20px; }
  .btn { font-size: 0.9rem; padding: 10px 12px; }
}

/* ---- Added for episode pages, search, legal, support, contact ---- */
.coming-soon-label,
.coming-soon {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #061018;
  background: var(--orange);
  border-radius: 999px;
  padding: 3px 8px;
  line-height: 1.3;
}
p.coming-soon, .coming-soon-block {
  display: block;
  background: rgba(255, 122, 58, 0.12);
  color: var(--muted);
  border: 1px dashed rgba(255, 122, 58, 0.45);
  padding: 16px 18px;
  border-radius: 12px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
  font-weight: 500;
}
.coming-soon-block .coming-soon-label { margin-bottom: 8px; }

.draft-banner {
  background: rgba(59, 157, 255, 0.12);
  border: 1px solid rgba(59, 157, 255, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--muted);
  margin: 0 0 24px;
}
.draft-banner strong { color: var(--text); }

.footer-top, .footer-nav, .social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}
.footer-nav a, .social a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-nav a:hover, .social a:hover { color: var(--text); }
.site-footer .social { margin: 0; }

.topic-list, .filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.topic-chip, .filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
}
.topic-chip:hover, .filter-chip:hover, .filter-chip.is-on {
  background: var(--blue);
  color: #061018;
  border-color: transparent;
}
button.filter-chip { font: inherit; }

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  align-items: center;
}
.search-row input[type="search"] {
  flex: 1 1 240px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0b0d12;
  color: var(--text);
  font: inherit;
}
.search-row input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.filter-status { color: var(--soft); font-size: 0.9rem; margin: 0 0 12px; }

.episode-item a.ep-title {
  color: var(--text);
  text-decoration: none;
}
.episode-item a.ep-title:hover { color: #7ec2ff; }
.episode-item .more-link { font-size: 0.9rem; }

.crumb { color: var(--soft); font-size: 0.9rem; margin: 24px 0 8px; }
.crumb a { color: var(--muted); }
.episode-page h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 8px; }
.episode-page .player-card { margin: 20px 0 32px; }
.ep-section { margin: 0 0 36px; }
.ep-section h2 { margin-bottom: 12px; }
.source-list { margin: 0; padding-left: 1.2em; }
.source-list li { margin: 0 0 8px; color: var(--muted); }
.transcript p { color: var(--muted); margin: 0 0 1em; }
.tr-note { color: var(--soft); font-size: 0.9rem; }
.ep-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 8px 0 48px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.ep-nav-link { color: var(--muted); }

.page-hero { padding: 36px 0 12px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.prose { max-width: 42em; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 1.6em; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 20px 0 8px;
}
.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.plan-card h2 { margin: 8px 0 10px; font-size: 1.2rem; }
.plan-card p { color: var(--muted); margin: 0 0 12px; }

.reviews-section, .connect-section { padding: 56px 0; }
.rate-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

.contact-form, .email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
.contact-form { max-width: 36em; margin-top: 16px; }
.contact-form label, .contact-form .field {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}
.contact-form input, .contact-form select, .contact-form textarea {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b0d12;
  color: var(--text);
  font: inherit;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button { margin-top: 4px; }

@media (max-width: 520px) {
  .ep-pager { flex-direction: column; }
}
