/* Shared by every theme: reset, page frame, and the legal-page content.
   Colours, fonts and the look of the landing page live in themes/<name>/theme.css. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body, 1.6);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
.wrap { width: 100%; max-width: var(--wrap, 1120px); margin: 0 auto; padding-left: var(--gutter, 20px); padding-right: var(--gutter, 20px); }
h1, h2 { text-wrap: balance; }
.lead, .brief, .caption, .places-lead { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight, 600); margin: 0; }
p, ul, ol { margin: 0; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--focus, var(--link)); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: var(--bg); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.wordmark { text-decoration: none; color: inherit; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }

/* Legal pages */
.legal-head h1 { overflow-wrap: anywhere; }
.legal-head .meta { color: var(--muted); font-size: 16px; margin-top: 12px; }
.legal-grid { display: block; padding-top: 32px; padding-bottom: 72px; }
.toc { margin: 0 0 32px; padding: 16px 20px; background: var(--panel); border-radius: var(--radius, 0); }
.toc h2 { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 4px 0; font-size: 16px; line-height: 1.4; }
.legal-text { max-width: 680px; }
.legal-text > :first-child { margin-top: 0; }
.legal-text h2 { font-size: var(--fs-h2, 28px); line-height: 1.2; margin: 2.2em 0 0.5em; }
.legal-text h3 { font-size: 20px; line-height: 1.3; margin: 1.8em 0 0.3em; }
.legal-text p, .legal-text ul, .legal-text ol { margin: 0.9em 0; }
.legal-text li { margin: 0.35em 0; }
.legal-text strong { font-weight: 700; }
.legal-text blockquote { margin: 1.4em 0; padding: 4px 18px; background: var(--panel); border-radius: var(--radius, 0); }
.legal-text code { background: var(--panel); padding: 1px 6px; border-radius: 3px; font-size: 0.9em; }
.legal-text hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.anchor { margin-left: 8px; color: var(--muted); text-decoration: none; font-weight: 400; opacity: 0; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }
@media (hover: none) { .anchor { opacity: 0.55; } }
.table-wrap { overflow-x: auto; margin: 1.4em 0; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 700; border-bottom: 2px solid var(--text); background: transparent; }
tr:last-child td { border-bottom: 0; }

@media (min-width: 1000px) {
  .legal-grid { display: grid; grid-template-columns: 250px minmax(0, 680px); column-gap: 88px; align-items: start; padding-top: 56px; }
  .toc { position: sticky; top: 24px; margin: 0; padding: 0; background: transparent; }
  .legal-text { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* INK: editorial, Swiss. White page, black type, hard rules, one marker-yellow highlight behind the corrected word.
   Font: Schibsted Grotesk (SIL Open Font License). */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/schibsted.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/fonts/schibsted-italic.woff2) format("woff2"); }

:root {
  --theme-name: "ink";
  --bg: #FFFFFF;
  --panel: #F0F0F0;
  --text: #000000;
  --muted: #4A4A4A;
  --link: #000000;
  --rule: #000000;
  --mark: #FDE047;
  --on-mark: #000000;
  --focus: #000000;
  --font-head: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-body: 18px;
  --head-weight: 800;
  --fs-h2: 30px;
  --gutter: 20px;
  --wrap: 1280px;
}
@media (min-width: 760px) { :root { --gutter: 40px; } }
a { text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { background: var(--mark); color: var(--on-mark); }

.site-header .wrap { padding-top: 20px; padding-bottom: 20px; }
.site-header { border-bottom: 2px solid var(--rule); }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }

.hero h1 { font-size: clamp(44px, 10.6vw, 160px); font-weight: 800; line-height: 0.9; letter-spacing: -0.055em; }
.hero .wrap { padding-top: 40px; padding-bottom: 40px; }
.lead { margin-top: 36px; font-size: 21px; line-height: 1.45; font-weight: 500; max-width: 28em; }
.soon { margin-top: 20px; font-weight: 800; font-size: 18px; }

.scene, .places, .contact { border-top: 2px solid var(--rule); }
.scene .wrap, .places .wrap, .contact .wrap { padding-top: 28px; padding-bottom: 48px; }
.scene h2, .places h2, .contact h2 { font-size: 28px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; }
.scene-intro { margin-bottom: 28px; }
.brief { margin-top: 10px; font-size: 18px; font-weight: 500; max-width: 26em; }
.caption { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 30em; }

.dialogue { list-style: none; padding: 0; }
.turn { display: grid; grid-template-columns: 1fr; gap: 6px 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.turn:last-child { border-bottom: 1px solid var(--rule); }
.who { font-weight: 800; font-size: 15px; }
.said { font-size: clamp(25px, 4vw, 46px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; max-width: 22em; }
.slip { background: var(--mark); color: var(--on-mark); padding: 0 0.12em; margin: 0 -0.12em; }
.note { margin-top: 6px; font-size: 18px; font-weight: 600; line-height: 1.35; }
.note-label { display: block; font-size: 15px; font-weight: 800; color: var(--muted); margin-bottom: 2px; }
.you .note { background: var(--mark); color: var(--on-mark); padding: 10px 14px; margin-top: 12px; }
.you .note-label { color: var(--on-mark); }

.places-lead { margin-top: 10px; max-width: 30em; font-weight: 500; }
.scenes { list-style: none; padding: 0; margin-top: 28px; border-bottom: 2px solid var(--rule); }
.scenes li { padding: 14px 0; border-top: 1px solid var(--rule); }
.scene-name { display: block; font-size: 28px; font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; }
.scene-line { display: block; margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.4; }
.leader { display: none; }
.contact p { max-width: 34em; margin-top: 10px; }

.site-footer { border-top: 2px solid var(--rule); }
.site-footer .wrap { padding-top: 20px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: 15px; font-weight: 600; }

/* Legal pages */
.legal-head { border-bottom: 2px solid var(--rule); }
.legal-head .wrap { padding-top: 40px; padding-bottom: 28px; }
.legal-head h1 { font-size: clamp(42px, 8.5vw, 120px); font-weight: 800; line-height: 0.92; letter-spacing: -0.05em; }
.legal-head .meta { color: var(--text); font-weight: 600; }
.legal-grid { padding-top: 28px; }
.legal-text h2 { font-weight: 800; letter-spacing: -0.03em; padding-top: 14px; border-top: 2px solid var(--rule); }
.toc { background: transparent; padding: 0; border-top: 2px solid var(--rule); padding-top: 12px; }
.toc h2 { font-weight: 800; }
.toc a { text-decoration: none; font-weight: 500; }
.toc a:hover { background: var(--mark); }
.legal-text blockquote { background: var(--panel); }
th { border-bottom-width: 2px; }

@media (min-width: 760px) {
  .hero .wrap { padding-top: 72px; padding-bottom: 64px; }
  .hero-grid { display: block; }
  .lead { font-size: 26px; }
  .scene .wrap, .places .wrap, .contact .wrap { padding-top: 32px; padding-bottom: 80px; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
  .scene-intro, .places h2, .places-lead, .contact h2 { grid-column: 1 / span 3; }
  .scene-intro { grid-row: 1 / span 2; margin-bottom: 0; }
  .dialogue, .scenes { grid-column: 4 / span 9; grid-row: 1 / span 3; margin-top: 0; }
  .places-lead { grid-row: 2; }
  .contact p { grid-column: 4 / span 9; margin-top: 4px; font-size: 22px; font-weight: 500; }
  .contact h2 { grid-row: 1; }
  .turn { grid-template-columns: 110px minmax(0, 1fr); padding: 22px 0; }
  .who { padding-top: 0.6em; }
  .you .note { grid-column: 2; }
  .scenes li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; align-items: baseline; padding: 18px 0; }
  .scene-name { font-size: 34px; }
  .scene-line { margin-top: 0; font-size: 17px; }
}
