/* ==========================================================================
   Home page: the morning radio booth (docs/art-direction.md).
   The stage is the console. The chapter list is the program log, typed. The
   scrub bar is the tuning dial with a needle. One lamp says today's show is
   on air. The dial's scale returns as the page's rules (echoes).
   ========================================================================== */

/* Headline: heavy, a little narrow, two lines at every width (h1 in landing.css). */
.hero h1 {
  line-height: 0.98;
}

/* The player keeps its full width; the headline fits the 360 px column. */
@media (min-width: 900px) {
  .hero h1 {
    font-size: 54px;
  }
}

/* Desktop: the headline shares the console's top edge. */
@media (min-width: 1100px) {
  .hero-grid {
    align-items: start;
  }
}

/* ----------------------------- the on-air lamp ---------------------------- */
/* Lit for today's edition, brighter while it plays. Off for the sample. */
.today-onair {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--cream-2);
}

.today-onair i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--banana);
  box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.14), 0 0 12px rgba(255, 210, 63, 0.5);
  transition: box-shadow 400ms var(--ease-out);
}

.today[data-state="playing"] .today-onair {
  color: var(--cream);
}

.today[data-state="playing"] .today-onair i {
  box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.22), 0 0 20px rgba(255, 210, 63, 0.85);
}

.today[data-kind="sample"] .today-onair {
  display: none;
}

/* Mono is for times only: the log's times, the dial, the clock. */
.today-time {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.today-onair {
  font-size: 13px;
  font-weight: 600;
}

.today:not([data-kind="sample"]) .today-date {
  font-weight: 500;
  color: var(--cream-2);
}

/* ----------------------------- the program log ---------------------------- */
/* Time first, typed, one rule per line, a lamp on the line on air. */
.t-row {
  justify-content: flex-start;
  gap: 16px;
  border-radius: 0;
  box-shadow: inset 0 -1px 0 rgba(245, 235, 221, 0.08);
}

.t-row-time {
  order: -1;
  width: 3.4em;
  font: 500 12px/1.2 var(--mono);
  color: var(--cream-3);
}

.t-row[aria-current="true"] {
  background: none;
  font-weight: 600;
}

.t-row[aria-current="true"] .t-row-time {
  color: var(--banana);
}

.t-row[aria-current="true"]::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--banana);
  box-shadow: 0 0 10px rgba(255, 210, 63, 0.7);
}

.t-row[aria-current="true"]::after {
  bottom: 0;
  height: 1px;
  border-radius: 0;
}

/* ------------------------------ the tuning dial --------------------------- */
/* A printed scale, a mark and start time for each chapter, a needle for the
   playhead. Same input, same keys; only the drawing changed. */
.today-scrub {
  height: 56px;
  align-items: flex-start;
}

.today-scrub::before {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  top: 15px;
  height: 10px;
  pointer-events: none;
  background: repeating-linear-gradient(to right, rgba(245, 235, 221, 0.26) 0 1px, transparent 1px 8px);
}

.today-scrub-input {
  height: 40px;
}

.today-scrub-input::-webkit-slider-runnable-track {
  height: 1px;
  border-radius: 0;
  background: linear-gradient(to right, var(--banana) var(--p), rgba(245, 235, 221, 0.3) var(--p));
}

.today-scrub-input::-moz-range-track {
  height: 1px;
  border-radius: 0;
}

.today-scrub-input::-moz-range-progress {
  height: 1px;
  border-radius: 0;
}

.today-scrub-input::-webkit-slider-thumb {
  width: 3px;
  height: 30px;
  margin-top: -15px;
  border-radius: 1px;
  background: var(--banana);
  box-shadow: 0 0 10px rgba(255, 210, 63, 0.55);
}

.today-scrub-input::-moz-range-thumb {
  width: 3px;
  height: 30px;
  border-radius: 1px;
  background: var(--banana);
}

.today-ticks {
  top: 20px;
  margin: 0;
}

.today-ticks span {
  top: -8px;
  width: 1px;
  height: 18px;
  border-radius: 0;
  background: rgba(245, 235, 221, 0.75);
}

@media (min-width: 900px) {
  .today-ticks span[data-t]::after {
    content: attr(data-t);
    position: absolute;
    top: 22px;
    left: 0;
    transform: translateX(-50%);
    font: 500 10px/1 var(--mono);
    letter-spacing: 0.04em;
    color: var(--cream-3);
  }
}

/* ------------------------------- the rate card ----------------------------- */
/* Plan names step down from the headline, so only the h1 is heavy. */
#pricing-heading {
  font-weight: 600;
}

.plan-name {
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .today-onair i {
    transition: none;
  }
}
