/* Whatzon — /returning, the public "what is coming back" page.
 *
 * A separate stylesheet rather than a share of styles.css: that file dresses the signed-in
 * application and is loaded with its own cache-buster, and this page has none of the same
 * furniture. Keeping them apart means a change to the app cannot silently restyle the one
 * page strangers and crawlers see.
 *
 * Theme-aware like privacy.css and share.css, and for the same reason: somebody arriving
 * from a search result should get the setting their device is already in. The app itself is
 * dark-only, which is a decision about a logged-in tool, not about a public page.
 *
 * No inline styles anywhere in the markup this dresses -- Content-Security-Policy is
 * enforcing, and tests/test_inline_assets.py walks every surface this app serves.
 */
:root {
  --page-bg: #F7F5FC;
  --page-fg: #241A44;
  --page-mut: #6B6489;
  --card: #FFFFFF;
  --card-rule: #EAE5F7;
  --apricot: #FFA24C;
  --accent-ink: #C2701E;   /* apricot fails contrast on white; its print twin. See /branding */
  --art-bg: #EFEAFB;
  --body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Avenir Next", "Avenir", "Futura", "Trebuchet MS", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #120C28;
    --page-fg: #EFEAFB;
    --page-mut: #9A92BC;
    --card: #1B1338;
    --card-rule: #2E2458;
    --accent-ink: #FFA24C;
    --art-bg: #241A44;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--body);
  line-height: 1.6;
}

.top {
  width: min(62rem, 100% - 2.5rem);
  margin: 0 auto;
  padding: 1.6rem 0 0.4rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}

.wordmark .z { color: var(--apricot); }

.tagline {
  margin: 0.15rem 0 0;
  color: var(--page-mut);
  font-size: 0.9rem;
}

main {
  width: min(62rem, 100% - 2.5rem);
  margin: 0 auto;
  padding: 1.2rem 0 4rem;
}

h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 1.2rem 0 0.8rem;
}

h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 2.4rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--card-rule);
}

h3 {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.lede { max-width: 62ch; }
.lede, .note, .empty { color: var(--page-mut); }
.note { max-width: 62ch; font-size: 0.92rem; }

a { color: var(--accent-ink); text-underline-offset: 2px; }

.shows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
}

.show {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--card-rule);
  border-radius: 0.7rem;
  padding: 0.7rem;
}

/* Fixed box so a missing poster does not collapse the row. The width/height attributes on
 * the element match these, which is what stops the page reflowing as art loads in. */
.poster {
  width: 70px;
  height: 96px;
  flex: none;
  object-fit: cover;
  border-radius: 0.4rem;
  background: var(--art-bg);
}

.show-body { min-width: 0; }

.when {
  margin: 0;
  font-weight: 600;
  color: var(--accent-ink);
  font-size: 0.92rem;
}

.meta {
  margin: 0.15rem 0 0;
  color: var(--page-mut);
  font-size: 0.85rem;
}

.cta {
  margin: 2.6rem 0 0;
  padding: 1.2rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--card-rule);
  border-left: 3px solid var(--apricot);
  border-radius: 0.7rem;
}

.cta h2 { margin-top: 0; border: 0; padding: 0; }
.cta p { max-width: 62ch; }

.button {
  display: inline-block;
  background: var(--apricot);
  color: #3A2408;
  text-decoration: none;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 0.6rem;
}

footer {
  width: min(62rem, 100% - 2.5rem);
  margin: 0 auto;
  padding: 1.4rem 0 3rem;
  border-top: 1px solid var(--card-rule);
  color: var(--page-mut);
  font-size: 0.88rem;
}

/* --- the hero, and the prompt that used to be buried ------------------------------------
 *
 * The page previously opened by explaining its own sort order, to people who had never heard
 * of Whatzon, with the only call to action several screens down. Somebody arriving from a
 * search for "when is severance back" needs to be told what this is before being asked to
 * join it.
 */
.hero {
  padding: 1.6rem 0 0.6rem;
  border-bottom: 1px solid var(--card-rule);
  margin-bottom: 0.6rem;
}

.hero-lede {
  max-width: 54ch;
  font-size: 1.08rem;
  color: var(--page-fg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 1.1rem 0 0.6rem;
}

.hero-micro {
  margin: 0;
  color: var(--page-mut);
  font-size: 0.86rem;
}

.button-quiet {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 0.6rem;
  border: 1px solid var(--card-rule);
  background: var(--card);
  color: var(--page-fg);
  text-decoration: none;
  font-weight: 600;
}

.top nav a {
  float: right;
  margin-top: -1.9rem;
  font-weight: 600;
}

/* Per-card prompt. Deliberately quiet -- it repeats 36 times, and an apricot button on every
 * card would turn a list into a wall of buttons. */
.track {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.track:hover { color: var(--page-fg); }

/* Visible to a screen reader, not on screen: every card's link would otherwise read as an
 * undifferentiated "Track this show" in a list of links. */
.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;
}

.how {
  margin: 2.6rem 0 0;
  padding: 1.2rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--card-rule);
  border-left: 3px solid var(--apricot);
  border-radius: 0.7rem;
}

.how h2 { margin-top: 0; border: 0; padding: 0; }
.how ol { max-width: 62ch; padding-left: 1.2rem; }
.how li { margin-bottom: 0.5rem; }

/* The consent sentence on /sms, and the sample message, both set as quotations.
 *
 * They are quotations in the strict sense -- the first is the exact text of `p.sms-consent`
 * in the app, the second is a message a handset really receives -- so they are set apart
 * rather than blended into the prose around them. A carrier reviewer is checking wording
 * against wording, and a block they can see the edges of is easier to check than a sentence
 * running on inside a paragraph.
 */
.sms-consent-quote {
  /* The same 62ch measure as .note and .lede. Without it the quotation runs the full 62rem
   * of `main` while the prose around it wraps at 62ch, and the most important block on the
   * page -- the one a reviewer compares against the app -- reads as a different element on a
   * different grid. `font-size` matches .note for the same reason. */
  max-width: 62ch;
  font-size: 0.92rem;
  margin: 0.9rem 0 1.2rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent-ink);
  /* --card, not a white tint: this stylesheet is light by default and flips on
   * prefers-color-scheme, so a hardcoded rgba(255,255,255,...) would be invisible on the
   * light page and only work in dark. The tokens already carry both. */
  background: var(--card);
  border: 1px solid var(--card-rule);
  border-left-width: 3px;
  border-radius: 0 8px 8px 0;
  line-height: 1.5;
}
