/*
 * Watch Tonight — the public site.
 *
 * Deliberately matches the app rather than being its own thing: black ground, white type,
 * brand red #E50914, the single fixed theme from src/theme/colors.ts. No theme switching,
 * for the same reason the app has none.
 *
 * Three pages share this file. Keep it small enough to read in one sitting.
 */

:root {
  --ground: #121212;
  --raised: #1a1a1a;
  --ink: #f2f2f2;
  --muted: #9a9aa5;
  --rule: #2a2a2a;
  --brand: #e50914;
  --measure: 34rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

/* ---- Masthead ------------------------------------------------------------ */

.masthead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  text-decoration: none;
  color: inherit;
}

.masthead svg {
  width: 42px;
  height: auto;
  flex: none;
}

.masthead span {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---- Type ---------------------------------------------------------------- */

h1 {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 2.75rem 0 0.5rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.25rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.updated {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 2.5rem;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.5rem;
}

li::marker {
  color: var(--muted);
}

strong {
  font-weight: 600;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
}

a:hover {
  color: var(--brand);
}

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Blocks -------------------------------------------------------------- */

.panel {
  background: var(--raised);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1.5rem;
}

.panel :last-child {
  margin-bottom: 0;
}

.panel h3 {
  margin-top: 0;
}

/* Wide content must scroll in its own container, never the page body. */
.scroll-x {
  overflow-x: auto;
  margin: 0 0 1.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
  min-width: 30rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---- Footer -------------------------------------------------------------- */

.foot {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.foot a {
  color: var(--muted);
  text-decoration-color: var(--rule);
}

.foot a:hover {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
