/* Shared by every static content page (/how-it-works, /cinema-captions,
   /foreign-language-films). The app itself does not use this file; it has
   Tailwind. Kept in sync with DESIGN.md by hand. */

/* Self-hosted, never a CDN: the app makes no network requests once loaded
   and a cinema may have no signal. Same face and weights as app.css. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}

/* Tokens lifted from DESIGN.md so this page and the app cannot drift. */
:root {
  color-scheme: dark;
  --house-black: #000000;
  --screen-white: #ffffff;
  --reading-gray: #d5d5d5;
  --quiet-gray: #a0a0a0;
  --edge-gray: #404040;
  --well-gray: #181818;
  --ushers-amber: #e6c830;
  --font-caption: "Atkinson Hyperlegible", system-ui, sans-serif;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
  margin: 0;
  background: var(--house-black);
  color: var(--reading-gray);
  font-family: system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 5rem;
}

a { color: var(--ushers-amber); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--screen-white); }
:focus-visible { outline: 2px solid var(--ushers-amber); outline-offset: 3px; border-radius: 2px; }

/* Masthead ------------------------------------------------------------ */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 3.5rem;
}
.wordmark {
  font-family: var(--font-caption);
  font-synthesis: none;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ushers-amber);
  text-decoration: none;
}
.wordmark:hover { color: var(--ushers-amber); text-decoration: underline; }
.masthead .back { font-size: 0.875rem; }

/* Hero: one cue, drawn the way the player draws one ------------------- */
.cue {
  font-family: var(--font-caption);
  font-synthesis: none;
  font-weight: 400;
  font-size: clamp(1.75rem, 7.5vw, 2.75rem);
  line-height: 1.25;
  color: var(--screen-white);
  text-align: center;
  text-wrap: balance;
  margin: 0;
  padding: 2.5rem 0 3rem;
  animation: cue-in 400ms var(--ease-out-quart) both;
}
@keyframes cue-in { from { opacity: 0; } to { opacity: 1; } }

.lede {
  color: var(--quiet-gray);
  margin: 0 0 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--edge-gray);
}

/* Sections numbered as cue indices: the content is a sequence through a
   screening, and an .srt file numbers its cues the same way. ---------- */
section { padding-top: 3rem; }

.cue-no {
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
  color: var(--ushers-amber);
  display: block;
  margin-bottom: 0.375rem;
}

h2 {
  font-family: var(--font-caption);
  font-synthesis: none;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--screen-white);
  margin: 0 0 1rem;
}

/* FAQ questions. Smaller than h2 and set in the reading face rather than the
   caption face, so a run of six of them does not read as six new sections. */
h3 {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--screen-white);
  margin: 2rem 0 0.5rem;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 1.15rem; padding-left: 1.1rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--edge-gray); }

code {
  font-family: ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--well-gray);
  border: 1px solid var(--edge-gray);
  border-radius: 0.375rem;
  padding: 0.05em 0.35em;
  color: var(--screen-white);
}

kbd {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  background: var(--well-gray);
  border: 1px solid var(--edge-gray);
  border-radius: 0.375rem;
  padding: 0.1em 0.4em;
  color: var(--reading-gray);
}

/* Closing action ------------------------------------------------------ */
.open {
  display: block;
  margin-top: 4rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--edge-gray);
  border-radius: 0.5rem;
  text-align: center;
  color: var(--screen-white);
  text-decoration: none;
  font-weight: 500;
  transition: background-color 150ms var(--ease-out-quart);
}
.open:hover { background: var(--well-gray); color: var(--screen-white); }

footer {
  margin-top: 2.5rem;
  color: var(--quiet-gray);
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
