:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --ink: #000000;
  --muted: #6c6c70;
  --rule: rgba(0, 0, 0, .12);
  --accent: #0066cc;
}

@media (prefers-color-scheme: dark) {
  :root { --paper: #000000; --ink: #f5f5f7; --muted: #a1a1a6; --rule: rgba(255, 255, 255, .14); --accent: #4da3ff; }
}

body {
  /* The page's edges; phones use the header's narrower 16 px, so the column still starts under "Reprise". */
  --page-top: 22px; --page-bottom: 48px; --page-side: 24px;
  /* A column at least the window's height, so the footer sits at the bottom of a short page. */
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; box-sizing: border-box;
  margin: 0; padding: calc(var(--page-top) + env(safe-area-inset-top)) var(--page-side) var(--page-bottom); background: var(--paper); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The shared header (site-chrome.css) runs edge to edge above the page's column, out past the body's padding. */
.site-header { margin: calc(-1 * var(--page-top) - env(safe-area-inset-top)) calc(-1 * max(var(--page-side), env(safe-area-inset-right))) 22px calc(-1 * max(var(--page-side), env(safe-area-inset-left))); padding-top: env(safe-area-inset-top); }
/* The shared footer runs edge to edge under the page's column, out past the body's side and bottom padding. */
.site-footer { margin: 48px calc(-1 * max(var(--page-side), env(safe-area-inset-right))) calc(-1 * var(--page-bottom)) calc(-1 * max(var(--page-side), env(safe-area-inset-left))); }
/* The column starts under the header's "Reprise" (its 1180 px less 24 px padding each side); the text
   keeps a 680 px line. */
main { flex: 1 0 auto; width: 100%; max-width: 1132px; margin: 0 auto; display: flex; flex-direction: column; gap: 26px; }
main > * { max-width: 680px; }
h1 { margin: 0; font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.07; font-weight: 700; letter-spacing: -.022em; text-wrap: balance; overflow-wrap: anywhere; }
section { padding-top: 26px; border-top: 1px solid var(--rule); }
h2 { margin: 0 0 10px; display: flex; align-items: center; gap: 10px; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.012em; }
p { margin: 0 0 10px; font-size: 17px; line-height: 1.5; }
.links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; }
.links a { color: var(--accent); }
/* The marks stay exactly as Creative Commons supplies them. */
.cc-mark { display: inline-flex; gap: 4px; }
/* The licence note above the page footer. */
.licence-note { padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 600px) {
  body { --page-side: 16px; }
}
