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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Headings: Anton, condensed and heavy, in capitals (h1/h2); h3 is the UI face in bold capitals. */
h1, h2, h3 { font-weight: 400; line-height: 1; margin: 0 0 var(--space-3); }
h1, h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.005em; }
h1 { font-size: var(--text-xxl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.2; }
p { margin: 0 0 var(--space-3); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: color-mix(in srgb, var(--brand-fg) 60%, transparent); }
a:hover { color: var(--brand-fg); }
/* The wordmark’s "!" is always red, wherever "Oh Shoots!" shows (founder, 2026-10-17). */
.bang { color: var(--accent); }
small, .muted { color: var(--muted); font-size: var(--text-sm); }
hr { border: 0; border-top: var(--bw) solid var(--line); margin: var(--space-5) 0; }

/* Buttons: square, framed in ink, small bold capitals; hover inverts. */
button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
  background: var(--surface);
  border: var(--bw) solid var(--line);
  border-radius: 0;
  min-height: var(--tap);
  padding: 0 var(--space-3);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
button:hover:not(.story-scene) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
button[aria-pressed='true'] { border-color: var(--line); background: var(--brand); color: var(--brand-ink); }

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

.wrap { max-width: 1040px; margin: 0 auto; padding: var(--space-3) var(--space-3); }

/* Small caps label over a heading ("DESIGN WITH PURPOSE"). */
.eyebrow { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-fg); margin: 0 0 var(--space-1); }

/* Status dot */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); vertical-align: middle; margin-right: var(--space-2); }
.dot[data-state='ok'] { background: var(--ok); }
.dot[data-state='down'] { background: var(--accent); }

/* Screenplay text — always Courier Prime, industry layout. */
.script {
  font-family: var(--font-script);
  font-size: 12pt;
  line-height: 1.25;
  max-width: 60ch;
}
.script p { margin: 0; white-space: pre-wrap; }
.script .slug { text-transform: uppercase; font-weight: 700; margin: 1.25em 0 0.75em; }
.script .action { margin: 0 0 1em; }
.script .character { text-transform: uppercase; margin: 1em 0 0 22ch; }
.script .parenthetical { margin: 0 0 0 16ch; }
.script .dialogue { margin: 0 0 1em 10ch; max-width: 35ch; }

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .script { font-size: 11pt; }
  .script .character { margin-left: 12ch; }
  .script .parenthetical { margin-left: 8ch; }
  .script .dialogue { margin-left: 4ch; }
}

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