/* F0Store pages (axi0.tech/f0store): the site's type and tokens, dark like the rest of axi0.tech plus a light
   theme for people who ask for one. No script. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 100.45%;
  ascent-override: 96.57%;
  descent-override: 24.89%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark light;
  --bg: oklch(0.17 0.006 258);
  --bg-raise: oklch(0.21 0.007 258);
  --ink: oklch(0.955 0.005 258);
  --muted: oklch(0.78 0.012 258);
  --line-dim: oklch(0.955 0.005 258 / 0.17);
  --accent: oklch(0.78 0.15 60);
  --accent-ink: oklch(0.78 0.15 60);
  --sans: "Instrument Sans", "Instrument Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --pad: clamp(1.25rem, 0.6rem + 3vw, 3.5rem);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: oklch(0.985 0.003 258);
    --bg-raise: oklch(0.955 0.005 258);
    --ink: oklch(0.2 0.01 258);
    --muted: oklch(0.4 0.012 258);
    --line-dim: oklch(0.2 0.01 258 / 0.16);
    --accent: oklch(0.76 0.155 60);
    --accent-ink: oklch(0.5 0.13 55);
  }
}

html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 0; padding: 0.6rem 1rem; background: var(--bg-raise); }
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 1; }

.doc { box-sizing: border-box; max-width: 50rem; margin: 0 auto; padding: var(--pad); }
.masthead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 1.5rem; margin-bottom: clamp(2.5rem, 8vw, 4.5rem); }
.wordmark { font-size: 1.5rem; font-weight: 600; line-height: 1; letter-spacing: -0.025em; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.zero { color: var(--accent); }
.meta { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--muted); }

.hero { display: flex; gap: 1.25rem; align-items: center; margin: 0 0 1.25rem; }
.hero svg { flex: none; width: 4.5rem; height: 4.5rem; }
h1 { margin: 0; font-weight: 500; font-stretch: 80%; font-size: clamp(2.2rem, 1.7rem + 2.4vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; text-wrap: balance; }
h2 { margin: 2.5rem 0 0.6rem; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.005em; }
h3 { margin: 1.6rem 0 0.4rem; font-weight: 600; font-size: 1rem; }
p { margin: 0 0 1rem; color: var(--muted); text-wrap: pretty; }
.lede { color: var(--ink); max-width: 38rem; }
strong { color: var(--ink); font-weight: 600; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; color: var(--muted); }
li { margin: 0.4rem 0; text-wrap: pretty; }
code { font-family: var(--mono); font-size: 0.86em; color: var(--ink); overflow-wrap: anywhere; }
pre { margin: 0 0 1rem; padding: 0.9rem 1rem; overflow-x: auto; border: 1px solid var(--line-dim); border-radius: 10px; background: var(--bg-raise); font-size: 0.82rem; line-height: 1.65; }
pre code { font-size: inherit; white-space: pre; overflow-wrap: normal; }

.jump { display: flex; flex-wrap: wrap; gap: 0 1.25rem; font-size: 0.95rem; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; }

.get { display: grid; gap: 1rem; margin: 0 0 1rem; padding: 1.2rem 1.25rem; border: 1px solid var(--line-dim); border-radius: 14px; background: var(--bg-raise); }
.get p { margin: 0; }
.button { justify-self: start; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 48px; padding: 0 1.25rem; border-radius: 999px; background: var(--accent); color: oklch(0.18 0.01 258); font-weight: 600; text-decoration: none; }
.button:hover { color: oklch(0.18 0.01 258); filter: brightness(1.06); }
.facts { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.35rem 1rem; font-size: 0.92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; color: var(--ink); }
.hash { font-family: var(--mono); font-size: 0.8rem; word-break: break-all; }

.cards { list-style: none; display: grid; gap: 0.75rem; padding: 0; }
.cards li { margin: 0; padding: 0.95rem 1.1rem; border: 1px solid var(--line-dim); border-radius: 12px; }
.tag { display: block; margin-top: 0.35rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }

.wrap { overflow-x: auto; margin: 0 0 1rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
caption { text-align: left; padding: 0 0 0.5rem; color: var(--muted); font-size: 0.9rem; }
th, td { text-align: left; padding: 0.55rem 0.9rem 0.55rem 0; border-bottom: 1px solid var(--line-dim); vertical-align: top; }
thead th { font-family: var(--mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 500; color: var(--ink); }
td { color: var(--muted); }
td a { display: inline-flex; align-items: center; min-height: 32px; }
.mark { font-family: var(--mono); font-size: 0.8rem; color: var(--accent-ink); }

.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line-dim); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.03em; color: var(--muted); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }

@media (max-width: 40rem) {
  .picks tr > :nth-child(3) { display: none; }
  .picks code { white-space: nowrap; }
}
@media (max-width: 30rem) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dd { margin-bottom: 0.4rem; }
  th, td { padding-right: 0.6rem; }
}
