/* Special Ed on Special Ed, specialed.fm */
:root {
  --bg: #121419;
  --bg-2: #181B22;
  --card: #1C1F27;
  --line: #2C313D;
  --line-2: #3A4050;
  --text: #EEF0F4;
  --soft: #C9CED8;
  --muted: #B8BFCC;
  --coral: #FF8A66;
  --coral-hover: #FFA285;
  --sky: #8FD3E8;
  --head: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
}
body.has-player { padding-bottom: 96px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--coral); }
a:hover { color: var(--coral-hover); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--coral); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 50; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0 0 14px; font-family: var(--head); font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn-coral { background: var(--coral); color: var(--bg); }
.btn-coral:hover { background: var(--coral-hover); color: var(--bg); }
.btn-line { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--coral); color: var(--text); }
.btn-dark { background: var(--bg); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 21px; }
.brand img { width: 48px; height: 48px; border-radius: 10px; }
.brand:hover { color: var(--text); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 17px; }
.main-nav a { color: var(--text); text-decoration: none; padding: 6px 0; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--coral); }
.main-nav .btn { padding: 10px 20px; min-height: 44px; color: var(--bg); }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.03; max-width: 980px; margin-bottom: 20px; }
.hero .lead { font-size: 20px; color: var(--soft); max-width: 700px; margin: 0; }
.wave { display: flex; align-items: center; gap: 5px; height: 90px; margin: 40px 0; }
.wave span { flex: 1; min-width: 2px; border-radius: 4px; background: var(--line-2); }
.wave span.on { background: var(--coral); }

.feature { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.feature img { width: 160px; height: 160px; border-radius: 16px; flex: none; }
.feature-body { flex: 1 1 420px; min-width: 0; }
.feature h2 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; }
.feature .meta { color: var(--muted); margin: 0 0 20px; }
.feature-play { display: flex; align-items: center; gap: 16px; }

/* Play button (round) */
.play { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--coral); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; color: var(--coral); padding: 0; }
.play:hover { background: var(--coral); color: var(--bg); }
.play.big { width: 60px; height: 60px; background: var(--coral); color: var(--bg); border: 0; }
.play.big:hover { background: var(--coral-hover); }
.play svg { width: 18px; height: 18px; }
.play .i-pause { display: none; }
.play.is-playing .i-play { display: none; }
.play.is-playing .i-pause { display: block; }

/* Sections */
.band { background: var(--bg-2); }
.section { padding: 80px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); }
.section-head p { margin: 8px 0 0; color: var(--soft); }

/* Topic pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); text-decoration: none; font: inherit; font-size: 16px; cursor: pointer; }
.pill:hover { border-color: var(--coral); color: var(--text); }
.pill[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: var(--bg); font-weight: 700; }
.pill .count { font-size: 14px; color: var(--muted); }
.pill[aria-pressed="true"] .count { color: var(--bg); }

.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.topic-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--text); text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 1.25; }
.topic-card:hover { border-color: var(--coral); color: var(--text); }
.topic-card span { flex: none; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; background: var(--bg); color: var(--sky); font-family: var(--body); font-size: 16px; display: flex; align-items: center; justify-content: center; }

/* Episode rows */
.ep-list { list-style: none; margin: 0; padding: 0; }
.ep { border-top: 1px solid var(--line); padding: 20px 4px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; }
.ep:last-child { border-bottom: 1px solid var(--line); }
.ep-main { flex: 1 1 360px; min-width: 0; }
.ep h3 { font-size: 21px; line-height: 1.3; margin: 0 0 4px; }
.ep .meta { margin: 0; color: var(--muted); font-size: 16px; }
.tag { display: inline-block; font-size: 14px; color: var(--sky); border: 1px solid #355C6A; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.ep-notes { margin-top: 8px; }
.ep-notes summary { cursor: pointer; color: var(--coral); font-weight: 700; font-size: 16px; padding: 6px 0; list-style-position: outside; }
.ep-notes p { margin: 8px 0 0; color: var(--soft); font-size: 17px; max-width: 760px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 20px; }
.search { flex: 1 1 320px; max-width: 520px; position: relative; }
.search input { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 16px 12px 46px; min-height: 48px; }
.search input::placeholder { color: #9AA2B1; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.results-note { color: var(--muted); margin: 0 0 12px; font-size: 16px; }

/* Hosts */
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin-bottom: 20px; }
.split p { color: var(--soft); margin: 0 0 16px; }
.host-photo { max-width: 480px; margin: 0 auto; }

/* Book */
.book { background: var(--coral); color: var(--bg); border-radius: 28px; padding: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.book-body { flex: 1 1 460px; min-width: 0; }
.book .label { margin: 0 0 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 15px; }
.book h2 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1.15; margin-bottom: 12px; }
.book p { margin: 0 0 24px; }
.book img { width: 200px; border-radius: 8px; box-shadow: 0 18px 40px rgba(0,0,0,0.35); flex: none; }

/* Follow */
.follow { text-align: center; max-width: 780px; margin: 0 auto; }
.follow h2 { font-size: clamp(32px, 4vw, 42px); margin-bottom: 12px; }
.follow p { color: var(--soft); margin: 0 0 28px; }
.follow .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.card h2 { font-size: 26px; margin-bottom: 8px; }
.card p { margin: 0 0 20px; color: var(--soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--text); }
.disclaimer { margin: 0 0 12px; max-width: 900px; }
.copyright { margin: 0; }

/* Sticky player */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #0B0C10; border-top: 1px solid var(--line-2); padding: 12px 0; display: none; }
.player.open { display: block; }
.player .wrap { display: flex; align-items: center; gap: 16px; }
.player img { width: 52px; height: 52px; border-radius: 8px; flex: none; }
.player-info { flex: 1 1 auto; min-width: 0; }
.player-title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.player-bar { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.player-bar input[type="range"] { flex: 1; accent-color: var(--coral); min-width: 60px; }
.player-btn { background: transparent; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; min-width: 44px; height: 44px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; padding: 0 10px; }
.player-btn:hover { border-color: var(--coral); }
.player .play { width: 48px; height: 48px; background: var(--coral); color: var(--bg); border: 0; }

@media (max-width: 700px) {
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 48px; }
  .wave { height: 60px; margin: 28px 0; }
  .feature img { width: 96px; height: 96px; }
  .book { padding: 32px 24px; }
  .book img { width: 150px; }
  .player img, .player .skip { display: none; }
  .player .wrap { gap: 10px; }
}
