/* hmsk.life "Letterpress" A1 Ink Blue: shared base for every hosted tool (2026-10-20).
   The same file ships in every tool repo; edit it in HMSK-Tools/_letterpress/ and run sync.sh, never per tool.
   Tokens and contrast: hmsk.life docs/design/v2/README.md. Fonts are self-hosted (OFL), no third-party requests. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  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: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/newsreader-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("fonts/newsreader-italic-latin.woff2") format("woff2");
  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: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/publicsans-latin.woff2") format("woff2");
  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: "Public Sans"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/publicsans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("fonts/publicsans-italic-latin.woff2") format("woff2");
  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; }

:root {
  /* A1 palette. Text pairs ≥ 6:1 on paper, borders (rule-strong) ≥ 3:1 on paper and card. */
  --paper: #EFF1F2; --paper-2: #E2E6E9; --card: #F8F9FA;
  --ink: #151B24; --ink-2: #4A5562; --placeholder: #616C78; /* 5.1:1 on card, 4.7:1 on paper: lighter than typed text */
  --rule: #CBD2D9; --rule-strong: #7B8592;
  --accent: #1E4C8A; --accent-hover: #163A6B; --on-accent: #FFFFFF; --accent-tint: #DCE6F3;
  --mark: #A8C8F2; --band: #151B24;
  /* status: the only extra hues, each ≥ 5.5:1 on paper, paper-2 and its own tint */
  --danger: #A3262A; --danger-tint: #F6E3E2;
  --warn: #7A4E00;   --warn-tint: #F4EAD6;
  --ok: #2B6440;     --ok-tint: #E0ECE4;
  --shadow: rgba(21, 27, 36, .4);

  /* old token names, kept so tool CSS written against them still resolves to A1 */
  --bg: var(--paper); --surface: var(--card); --text: var(--ink); --muted: var(--ink-2);
  --border: var(--rule); --primary: var(--accent); --secondary: var(--rule-strong);

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --mono: var(--sans); /* the terminal look is gone: former mono UI text is set in Public Sans */

  --xs: 8px; --sm: 12px; --md: 20px; --lg: 32px; --xl: 56px; --xxl: 96px;
  --r-sm: 3px; --radius: 6px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans);
  font-feature-settings: "kern", "liga"; -webkit-font-smoothing: antialiased; }
::selection { background: var(--mark); color: var(--ink); }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, .serif { font-family: var(--serif); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-weight: 400; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; color: var(--ink); hyphens: auto; }
h2 { font-weight: 500; }
code, kbd, samp, pre { font-family: var(--code); }
hr { border: 0; border-top: 1px solid var(--rule); }

/* small caps label above a headline */
.eyebrow { font: 600 13px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

/* form controls: card fields, rule-strong borders (3.5:1), accent focus ring */
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea {
  font-family: var(--sans); color: var(--ink); background-color: var(--card); border: 1px solid var(--rule-strong); border-radius: var(--r-sm); }
input::placeholder, textarea::placeholder { color: var(--placeholder); opacity: 1; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); box-shadow: none; }
input:disabled, select:disabled, textarea:disabled { background-color: var(--paper-2); color: var(--ink-2); border-color: var(--rule-strong); }
input[type=checkbox], input[type=radio], input[type=range], progress { accent-color: var(--accent); }
[aria-invalid=true] { border-color: var(--danger) !important; }

/* buttons: one primary (accent), one ghost; disabled stays readable (6:1) instead of fading */
button, .btn { font-family: var(--sans); }
.btn:disabled, .btn[aria-disabled=true], button.primary:disabled {
  background: var(--paper-2) !important; color: var(--ink-2) !important; border-color: var(--rule-strong) !important;
  opacity: 1 !important; transform: none !important; cursor: not-allowed; box-shadow: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  :root { --paper: #fff; --paper-2: #fff; --card: #fff; --ink: #000; --ink-2: #333; }
  body { background: #fff; color: #000; }
}
