/* Selective — generated from tokens.json */
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/InstrumentSerif-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root, [data-theme="light"] {
  --paper: #f7f3ec; /* Page background. Default ground for all text tokens. */
  --paper-raised: #fffdf8; /* Cards, inputs and panels sitting on paper. */
  --paper-sunken: #ece5d8; /* Recessed areas: code blocks, token display, table headers. */
  --line: #cdc4b2; /* Hairlines: dividers and table rules, drawn at 1px. */
  --line-strong: #8c8372; /* Borders of inputs and neutral buttons, and rules that must hold 3:1 on paper and paper-raised. */
  --ink: #1f1c17; /* Primary text and headings on paper, paper-raised, paper-sunken and accent-tint. */
  --ink-muted: #5c5548; /* Secondary text, labels and helper copy on paper, paper-raised and paper-sunken. */
  --accent: #0b6b4d; /* Emerald. Good buttons, links, success. The only chromatic brand colour. */
  --accent-hover: #07553c; /* Hover and pressed state of accent fills and links. */
  --accent-tint: #dcefe6; /* Soft emerald wash for success notices and selected rows; carries ink text. */
  --on-accent: #fffdf8; /* Text and icons on accent and accent-hover fills. */
  --danger: #a3321f; /* Errors, expired or revoked links. Always paired with a word or icon. */
  --danger-hover: #7f2616; /* Hover and pressed state of danger fills (bad buttons, e.g. Delete). */
  --danger-tint: #f6dfd9; /* Error notice background; carries ink text. */
  --warning: #7d5200; /* Caution text and icons (link about to expire). Always paired with a word or icon. */
  --warning-tint: #f5e7c8; /* Warning notice background; carries ink text. */
  --data-1: #3d5a80; /* Slate. Data colour 1: the first category colour in every chart, label and board. Marks, labels and text on paper; order and meanings in colors.json. */
  --data-2: #7a4069; /* Plum. Data colour 2. */
  --data-3: #5f6a24; /* Olive. Data colour 3. */
  --data-4: #2e6b78; /* Teal. Data colour 4. */
  --data-5: #4d4a8f; /* Indigo. Data colour 5. */
  --data-6: #7a5236; /* Umber. Data colour 6. */
  --data-7: #9c4a63; /* Rose. Data colour 7. */
  --data-8: #4f6b3a; /* Moss. Data colour 8. */
  --data-9: #6a4f8a; /* Violet. Data colour 9, meaning: task list hermes (colors.json). */
  --data-10: #2f5d73; /* Petrol. Data colour 10, meaning: task list uni (colors.json). */
  --data-11: #8a5a44; /* Sienna. Data colour 11, meaning: task list music (colors.json). */
  --data-12: #50695a; /* Sage. Data colour 12, meaning: task list life (colors.json). */
}
:root {
  --space-1: 4px; /* Icon-to-text gaps. */
  --space-2: 8px; /* Tight gaps between related controls. */
  --space-3: 11px; /* Control padding, label-to-input gap. */
  --space-4: 14px; /* Default gap and card padding on small screens. */
  --space-5: 20px; /* Card padding, gaps between form groups. */
  --space-6: 28px; /* Between sections inside a page. */
  --space-7: 42px; /* Page top and bottom margins. */
  --space-8: 56px; /* Largest vertical rhythm step. */
  --bp-md: 640px; /* Tablet breakpoint (min-width). Literal in @media. */
  --bp-lg: 1024px; /* Desktop breakpoint (min-width). Literal in @media. */
  --bp-phone: 639px; /* Phone layout (max-width): the bottom tab bar and phone screens. Literal in @media. */
  --shell-max: 1200px; /* Max width of the desktop page shell. */
  --measure: 65ch; /* Max line length of reading text. */
  --control-height: 40px; /* Apps: height of every button, text input and select, so controls in a row line up. Never changed by an app. 44px on touch screens (below). */
  --target: 40px; /* Least height (and width) of anything clickable that is not a control: sidebar rows, list rows, tile heads. 44px on touch screens (below). */
  --board-row: 46px; /* Height of one row of Home's widget board (12 columns, gaps of space-5). A bit taller than space-7 so widgets keep room for their content; the board still runs about 8% denser than the old 48px rows with 24px gaps. */
  --radius-sm: 0; /* Inline code, tags: square. */
  --radius-md: 0px; /* Buttons and inputs: square. */
  --radius-lg: 0px; /* Cards, notices and the largest surfaces: square. */
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --text-display: 400 44px/48px var(--font-serif); /* Page title on a landing or sign-in screen. One per page. */
  --text-title: 400 26px/31px var(--font-serif); /* Section and card titles. */
  --text-display-lg: 400 50px/54px var(--font-serif); /* Desktop (>=1024px) page title. Replaces display there. */
  --text-title-lg: 400 29px/35px var(--font-serif); /* Desktop (>=1024px) section and card titles. Replaces title there. */
  --text-body: 400 15px/22px var(--font-sans); /* Default copy. */
  --text-body-small: 400 13px/19px var(--font-sans); /* Helper text, notices, table cells. */
  --text-label: 700 12px/16px var(--font-sans); /* Field labels and button text, set in uppercase. */
  --text-code: 400 13px/20px var(--font-mono); /* One-time links, codes, IDs and tokens. */
}
/* Global density (Nov 2026): with a mouse controls and click targets are 40px (--control-height, --target) and body
   text 15/22; on a touch screen targets stay a finger's 44px and body text 16/24 (16px inputs stop iOS zooming in),
   so a phone keeps what it had. It lives here, not in layout.css, so pages that load only the tokens (artifact pages)
   get it too. Everything that sizes a target or text uses these tokens. */
@media (pointer: coarse) {
  :root {
    --control-height: 44px;
    --target: 44px;
    --text-body: 400 16px/24px var(--font-sans);
    --text-body-small: 400 14px/20px var(--font-sans);
  }
}
.display {
  font: var(--text-display); /* one source: the token above */
  letter-spacing: -0.02em;
}
.title {
  font: var(--text-title); /* one source: the token above */
  letter-spacing: -0.01em;
}
.body {
  font: var(--text-body); /* one source: the token above */
  letter-spacing: 0;
}
.body-small {
  font: var(--text-body-small); /* one source: the token above */
  letter-spacing: 0;
}
.label {
  font: var(--text-label); /* one source: the token above */
  letter-spacing: 0.06em;
}
.code {
  font: var(--text-code); /* one source: the token above */
  letter-spacing: 0;
}
