/* fork & footnote's public site, in lock step with the app: the lab notebook palette and type (docs/DESIGN.md), ink on
   paper, Newsreader for headings, IBM Plex Mono for labels and Hanken Grotesk for reading, all served from this site
   (SIL Open Font License), so a visit asks no other server for anything. large text for older readers */
@font-face { font-family: "Hanken Grotesk"; src: url("HankenGrotesk.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("Newsreader.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --bg: #f6f3ec;
  --plane: #fffdf8;
  --line: #d9d3c7;
  --ink: #1b1a17;
  --mute: #5b574f;
  --ice2: #8a3b12;
  --good: #2f6b3a;
  --warn: #8a5a00;
  --crit: #9b2c2c;
}

* { box-sizing: border-box; }

html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  font-size: 1.1875rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}

a { color: var(--ice2); text-underline-offset: 0.18em; }
a:focus-visible { outline: 3px solid var(--ice2); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--plane); padding: 0.5rem 1rem; }

header, main, footer { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

header { padding-top: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.mark { font-family: "Newsreader", Georgia, serif; font-size: 1.6rem; font-weight: 700; color: var(--ink); text-decoration: none; }
nav ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
nav a { display: inline-block; padding: 0.4rem 0; font-weight: 600; }
nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }

main { padding-top: 2rem; padding-bottom: 3rem; }
h1, h2, h3 { font-family: "Newsreader", Georgia, serif; font-weight: 600; }
h1 { font-size: 2.6rem; line-height: 1.1; margin: 0 0 1rem; }
h2 { font-size: 1.7rem; line-height: 1.2; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.3rem; margin: 1.75rem 0 0.5rem; }
.label { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); margin: 0 0 0.75rem; }
.ruled { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.ruled li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
p, li { max-width: 40rem; }
.lead { font-size: 1.35rem; color: var(--ink); }
.muted { color: var(--mute); }

.card { background: var(--plane); border: 1px solid var(--line); border-radius: 6px; padding: 1.25rem 1.4rem; margin: 1.5rem 0; }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.dots { display: flex; gap: 1.5rem; flex-wrap: wrap; padding: 0; list-style: none; }
.dots li { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.dot { width: 0.9rem; height: 0.9rem; border-radius: 50%; display: inline-block; }

.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
table { border-collapse: collapse; width: 100%; font-size: 1.05rem; }
th, td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); }
th { color: var(--mute); font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 500; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }

ol.refs { padding-left: 2.4rem; }
ul.refs { padding-left: 1.2rem; }
.refs li { margin: 0 0 1rem; overflow-wrap: anywhere; }
.refs .coi { display: block; color: var(--mute); font-size: 1rem; margin-top: 0.25rem; }
.rule-list { padding-left: 1.2rem; }

footer { border-top: 1px solid var(--ink); padding-top: 1.25rem; padding-bottom: 2.5rem; color: var(--mute); font-size: 1rem; }
footer p { margin: 0.35rem 0; }
