/* Dreamtime Sports */

@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #15173D;
  --ink-soft: #5B6091;
  --paper: #F4F4F9;
  --white: #FFFFFF;
  --night: #161946;
  --night-2: #23277A;
  --gold: #F6D545;

  --peri: #BCCBF9;
  --pink: #F2B9E7;
  --butter: #EDEFA2;
  --mint: #BFE7D4;
  --apricot: #F7CDA8;
  --lilac: #D8D0F7;
  --ice: #CFE5F4;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --inset: clamp(8px, 1.2vw, 16px);
  --pad: clamp(22px, 4vw, 64px);
  --radius-lg: clamp(22px, 2.4vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }

body {
  margin: 0;
  padding: var(--inset);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }

h1 span, h2 span, .signoff span { display: block; }
.soft { color: var(--ink-soft); }

/* Quotes and spoken lines use the italic serif, like the show's cover art */
.quote, .tagline, blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

:focus-visible {
  outline: 3px solid #6F7FE8;
  outline-offset: 3px;
  border-radius: 6px;
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 24px; top: 24px; z-index: 20; background: var(--white); padding: 8px 14px; }

/* Nav: logo and links on the hero */

.nav-wrap {
  position: absolute;
  top: var(--inset);
  left: var(--inset);
  right: var(--inset);
  z-index: 10;
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 30px var(--pad) 0;
}
.logo { display: block; line-height: 0; }
.logo img { height: 46px; width: auto; }
.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--white);
  opacity: 0.75;
}
.nav-links a:hover { opacity: 1; }

/* Buttons */

.btn {
  display: inline-block;
  padding: 15px 26px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--night-2); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--peri); }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(21, 23, 61, 0.25); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Panels */

.panel {
  border-radius: var(--radius-lg);
  padding: var(--pad);
  overflow: hidden;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: end;
  gap: 48px;
  min-height: min(880px, calc(100vh - 2 * var(--inset)));
  padding-top: 170px;
  color: var(--white);
  background:
    radial-gradient(55% 70% at 88% 12%, rgba(142, 162, 245, 0.55), transparent 62%),
    radial-gradient(45% 55% at 72% 100%, rgba(242, 185, 231, 0.42), transparent 62%),
    var(--night);
}
.hero h1 {
  font-size: clamp(3rem, 7.4vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.hero .soft { color: var(--peri); }
.tagline {
  margin-top: 30px;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  max-width: 24ch;
}
.footnote {
  margin-top: 12px;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.7);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.cover {
  justify-self: end;
  display: block;
  width: min(100%, 400px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(5, 6, 30, 0.45);
}

/* Sections */

.section {
  padding: clamp(64px, 9vw, 120px) var(--pad);
}
.section h2 {
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.section .h-mid { font-size: clamp(2rem, 3.6vw, 3rem); }
.section .h-small {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  font-weight: 500;
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 64px;
}
.intro { color: var(--ink-soft); max-width: 44ch; }

/* How an episode goes */

.steps-section { padding-bottom: 0; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
}
.steps li { padding: 28px 40px 0 0; }
.steps h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}
.steps p { color: var(--ink-soft); max-width: 32ch; }

/* The Golden Rule */

.rule blockquote { margin: 0; }
.rule blockquote p {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.rule-label {
  margin-top: 24px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* Episodes */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 24px;
}
.chip {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(21, 23, 61, 0.12);
}
.chip:hover { box-shadow: inset 0 0 0 1px rgba(21, 23, 61, 0.4); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: none; }

.episodes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ep {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 280px;
  padding: 26px;
  border-radius: 22px;
  background: var(--lilac);
}
.ep[data-group="soccer"] { background: var(--mint); }
.ep[data-group="basketball"] { background: var(--apricot); }
.ep[data-group="baseball"] { background: var(--peri); }
.ep[data-group="golf"] { background: var(--butter); }
.ep[data-group="track"] { background: var(--pink); }
.ep[data-group="ice"] { background: var(--ice); }
.ep[data-group="football"] { background: #EAD9C2; }

.ep-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}
.pill-varsity { background: var(--ink); color: var(--white); }
.ep h3 {
  font-size: 1.6rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-top: 18px;
}
.ep-meta {
  margin: 10px 0 22px;
  font-size: 0.95rem;
  color: rgba(21, 23, 61, 0.7);
}
.ep-meta span { display: block; }
.ep-meta .date { margin-top: 4px; color: rgba(21, 23, 61, 0.55); }
.ep-links {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.listen {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 9px 15px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
}
.listen:hover { background: var(--night-2); }
.listen-alt { background: rgba(255, 255, 255, 0.55); color: var(--ink); }
.listen-alt:hover { background: var(--white); }
.varsity-link { font-size: 0.9rem; font-weight: 600; text-underline-offset: 3px; }

.more { margin-top: 28px; }

/* Varsity */

.varsity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 64px;
  padding-top: clamp(64px, 8vw, 110px);
  padding-bottom: clamp(64px, 8vw, 110px);
  color: var(--white);
  background:
    radial-gradient(50% 80% at 0% 100%, rgba(142, 162, 245, 0.45), transparent 62%),
    radial-gradient(40% 60% at 100% 0%, rgba(242, 185, 231, 0.35), transparent 62%),
    var(--night);
}
.varsity h2 {
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
}
.varsity .soft { color: var(--peri); }
.perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-self: end;
}
.perks li {
  padding: 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}
.perks h3 { font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.perks p { color: rgba(255, 255, 255, 0.74); font-size: 0.98rem; }

/* Maplewood: guides and Dream Players */

.group-title {
  margin: 56px 0 16px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.guides {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.guide {
  padding: 34px;
  border-radius: 22px;
  background: var(--night);
  color: var(--white);
}
.guide .role { color: var(--peri); font-weight: 500; font-size: 0.95rem; }
.guide h4 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
  margin: 6px 0 14px;
}
.guide p { color: rgba(255, 255, 255, 0.78); max-width: 52ch; }
.guide .quote {
  margin-top: 22px;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--white);
}

.players {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.player {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: 22px;
  background: var(--white);
  min-height: 260px;
}
.player .role { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.player h4 {
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  margin: 4px 0 12px;
}
.player .quote { font-size: 1.3rem; line-height: 1.22; }
.player .start {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.player .start em { font-style: normal; font-weight: 600; color: var(--ink); }

/* Shoutout */

.shoutout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 var(--pad);
  padding: clamp(36px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--pink);
}
.shoutout p { margin-top: 12px; max-width: 54ch; color: rgba(21, 23, 61, 0.75); }

/* FAQ */

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 32px 64px;
  align-items: start;
}
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid rgba(21, 23, 61, 0.15); }
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 22px 44px 22px 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.7rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-soft); max-width: 58ch; }

/* Footer */

.footer {
  color: var(--white);
  background:
    radial-gradient(50% 90% at 100% 100%, rgba(142, 162, 245, 0.4), transparent 62%),
    var(--night);
  padding-top: clamp(64px, 9vw, 120px);
}
.signoff {
  font-size: clamp(3rem, 9vw, 8rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.05em;
}
.signoff .soft { color: var(--peri); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-row a { color: var(--white); }

/* Smaller screens */

@media (max-width: 1100px) {
  .players { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .episodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .varsity { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav { padding-top: 22px; gap: 16px; }
  .nav-links { display: none; }
  .logo img { height: 34px; }

  .hero { grid-template-columns: 1fr; padding-top: 120px; min-height: 0; }
  .cover { justify-self: start; width: min(100%, 320px); }

  .section-head, .faq-section { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 22px 0; border-bottom: 1px solid rgba(21, 23, 61, 0.15); }

  .episodes { grid-template-columns: 1fr; }
  .ep { min-height: 0; }

  .perks { grid-template-columns: 1fr; }
  .guides { grid-template-columns: 1fr; }
  .players { grid-template-columns: 1fr; }
  .player { min-height: 0; }

  .shoutout { flex-direction: column; align-items: flex-start; margin: 0; }
}

/* Latest episode spotlight */

.latest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 56px;
  margin-top: 40px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(60% 90% at 100% 0%, rgba(242, 185, 231, 0.3), transparent 62%),
    var(--night);
}
.latest-label { color: var(--peri); font-weight: 500; font-size: 0.95rem; }
.latest h3 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 10px 0 18px;
}
.latest-hook {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1.2;
  max-width: 30ch;
  margin-bottom: 30px;
}
.latest .ep-links { gap: 10px; }
.latest-body p { color: rgba(255, 255, 255, 0.78); max-width: 56ch; }
.latest-body p + p { margin-top: 14px; }
.inside {
  margin: 22px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.inside li {
  position: relative;
  padding: 5px 0 5px 22px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
}
.inside li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.85em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.latest + .filters { margin-top: 48px; }

@media (max-width: 820px) {
  .latest { grid-template-columns: 1fr; }
}

/* Story idea form */

.story-form {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 40px 64px;
  align-items: start;
  margin: 0 var(--pad);
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--pink);
}
.form-intro p { margin-top: 14px; max-width: 40ch; color: rgba(21, 23, 61, 0.78); }
.form-intro .fine { font-size: 0.93rem; color: rgba(21, 23, 61, 0.62); }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  width: 100%;
  padding: 13px 14px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(21, 23, 61, 0.1);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(21, 23, 61, 0.42); }
.field input:focus, .field textarea:focus {
  outline: none;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.97rem;
  margin-top: 4px;
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.form-status { font-weight: 600; }
.form-status.error { color: #9C2A2A; }
.form button[disabled] { opacity: 0.6; cursor: default; }

@media (max-width: 900px) {
  .story-form { grid-template-columns: 1fr; margin: 0; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
}
