/* The small print: typed like paperwork (Courier Prime, the letters of the site's labels), titled in the caption
   letters of the videos. Colours from the storyboard page. */
:root {
  --bg: #ecedee;
  --paper: #fbfaf7;
  --fg: #1a1d21;
  --muted: #5b636d;
  --rule: #d2d7dd;
  --then: #b93c0a;
  --mark: #ffd84d;
  --focus: var(--fg);   /* yellow is too faint on the light paper (1.3:1); dark ink there, yellow on the dark page */
  --todo-bg: #fff1b8;
  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --type: "Courier Prime", "Courier New", Courier, monospace;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111316; --paper: #1a1d21; --fg: #e8eaec; --muted: #9aa3ad; --rule: #2c3238; --then: #f2834a;
    --focus: var(--mark); --todo-bg: #4a3d10; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--fg); font: 400 1.1rem/1.6 var(--body); }

.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  max-width: 50rem; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-left, 0px)) 0; }
.home { font: 600 1rem/1 var(--body); color: var(--fg); text-decoration: none; }
.home:hover { text-decoration: underline; text-underline-offset: 4px; }
.top nav { display: flex; gap: 20px; font: 500 .95rem/1 var(--body); }
.top nav a { color: var(--muted); text-underline-offset: 4px; }
.home, .top nav a { display: inline-block; padding-block: 14px; margin-block: -14px; }   /* 44 px to tap, same look */
.top nav a[aria-current="page"] { color: var(--fg); text-decoration: none; font-weight: 600; }

main { max-width: 50rem; margin: 24px auto 0; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 64px; }
.sheet { padding-top: clamp(16px, 4vw, 40px); }
.sheet > * { max-width: 64ch; }

h1 { margin: 0; font: 800 clamp(2.6rem, 7vw, 4rem)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.thal { margin: .6rem 0 0; font: 800 clamp(1.25rem, 3vw, 1.6rem)/1.15 var(--display); text-transform: uppercase; }
.thal mark { background: none; color: var(--then); }
.meta { margin: 1.2rem 0 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: .95rem; }

h2 { margin: 2.2rem 0 .5rem; font: 800 1.55rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
p, li { margin: 0 0 .9rem; }
ul { padding-left: 1.3rem; margin: 0 0 .9rem; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
strong { font-weight: 700; }
.todo { background: var(--todo-bg); color: inherit; padding: 0 .2em; border-radius: 2px; }

.end { max-width: 50rem; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)) 40px;
  color: var(--muted); font: 400 .9rem/1.5 var(--body); }
