@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-mono-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-700.woff2") format("woff2"); }

/* The small-site stylesheet for footnote.sh and fno.dev. The two copies stay
   byte-identical (test/static-sites.test.js holds them equal). Tokens, type and
   the mark follow the fno-books design system, as fno-sh/public/styles.css does.
   No script: the page follows the system scheme. */

:root {
  color-scheme: dark light;
  --bg: #000000; --fg: #ffffff; --muted: #9a9a9a; --line: #2e2e2e; --surface: #2e2e2e;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 60rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}
@media (prefers-color-scheme: light) {
  :root { --bg: #ffffff; --fg: #000000; --muted: #6b6b6b; --line: #e2e2e2; --surface: #e2e2e2; }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font: 1.0625rem/1.6 var(--sans);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fg); text-underline-offset: 0.2em; }
h1, h2, h3 { font-family: var(--mono); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.02rem; }
p { margin: 0; max-width: 62ch; }
code, pre { font-family: var(--mono); font-size: 0.9em; }
p code, li code { overflow-wrap: anywhere; }
pre { margin: 0; padding: 0.85rem 1rem; background: var(--surface); overflow-x: auto; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* The mark: a large F (Foot on footnote.sh), then the fno-books [no] ([note]) box raised like a superscript.
   The margin puts the box top on the cap line (Plex Sans 700 at 30px, line-height 1). It inverts with the theme. */
.wordmark { display: inline-flex; align-items: flex-start; gap: 3px; color: var(--fg); text-decoration: none; }
.brand-f { font-family: var(--sans); font-weight: 700; font-size: 30px; line-height: 1; }
.brand-no { font-family: var(--mono); font-weight: 500; font-size: 12px; line-height: 1; padding: 4px 5px; margin-top: 5.5px; background: var(--fg); color: var(--bg); }

.site-header, .site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding-block: 1.1rem; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 0 1.25rem; margin-left: auto; }
.site-header nav a, .site-footer nav a { font-family: var(--mono); color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--fg); }
.site-footer { border-top: 1px solid var(--line); }
footer.wrap { margin-top: 4rem; }

.hero { padding-block: clamp(3rem, 9vw, 6rem) 2rem; display: grid; gap: 1.25rem; }
.lede { font-size: 1.15rem; color: var(--muted); }

.band { padding-block: 2.5rem; border-top: 1px solid var(--line); display: grid; gap: 1.25rem; }
.band > p { color: var(--muted); }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card { display: grid; gap: 0.6rem; align-content: start; padding: 1.1rem; border: 1px solid var(--line); }
.card p { color: var(--muted); font-size: 0.97rem; }
.card pre { font-size: 0.82rem; }
a.card { text-decoration: none; }
a.card:hover { border-color: var(--fg); }
.kicker { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }

ul.plain { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; max-width: 62ch; }
ul.plain li { color: var(--muted); }
