/* C22: the existing paper/ink/Plex reading language, not a new commercial identity. */
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/IBMPlexSans-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-display: swap;
  src: url("fonts/IBMPlexSans-SemiBold.woff2") format("woff2");
}
:root {
  color-scheme: light dark;
  --paper: #f6f5f2;
  --ink: #171717;
  --secondary: #464542;
  --line: #7a7872;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151515;
    --ink: #ecebe7;
    --secondary: #b5b3ad;
    --line: #8c8a84;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  padding: clamp(1rem, 5vw, 4rem);
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.65 "IBM Plex Sans", system-ui, sans-serif;
  overflow-wrap: anywhere;
}
header, main, footer { max-width: 70ch; margin-inline: auto; }
header { padding-bottom: 2rem; }
nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
a { color: inherit; text-underline-offset: .2em; }
a[href^="mailto:"] { display: inline-block; max-width: 100%; min-height: 48px; padding-block: .4rem; }
nav a { display: inline-flex; align-items: center; min-height: 48px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.skip { position: absolute; top: -10rem; padding: .5rem; background: var(--paper); }
.skip:focus { top: 1rem; }
h1, h2, h3 { line-height: 1.2; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2rem, 7vw, 3.5rem); margin: 1rem 0 1.5rem; }
h2 { font-size: 1.75rem; margin: 0 0 1.5rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
p { margin: 0 0 1rem; }
section { border-top: 1px solid var(--line); padding-block: 2.5rem; }
.draft { font-weight: 600; }
.pending, footer { color: var(--secondary); }
footer { border-top: 1px solid var(--line); padding-block: 1.5rem; }
