/* Teal Lemur tokens: the ONE token file (decision 0023).
   Direction: Paper room (founder pick, 2026-10-17), with the accent moved
   from sage to teal when Designroom became Teal Lemur (founder pick C,
   2026-10-17). Warm paper, ink and one teal accent; the mark adds amber
   eyes (founder pick L3, 2026-10-18), for the logo only. Tokens are named
   for their role, never for their value; the base palette at the top of
   :root is named by hue and step, and only roles use it.
   This is the only file allowed colour literals and font family names. */

/* ---------------------------------------------------------------- fonts */

/* Pages load each font as WOFF2, made without loss from the TTF beside it
   (assets/fonts/README.md): the same letters at under half the size. */

/* Brand fonts: Newsreader (name and headings), Instrument Sans (interface),
   Geist Mono (paths, frame labels, commits). */

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-Newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-Newsreader-Italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrumentsans-InstrumentSans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geistmono-GeistMono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Sample fonts: only for the fictional products drawn inside frames
   (Harbor, Fieldwork, Lumen). Never for Teal Lemur itself. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hankengrotesk-HankenGrotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-Geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrumentserif-InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrumentserif-InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Betalgo's font, for "betalgo" in the Betalgo endorsement on the website
   and nothing else. Copied as it is from betalgo-system-design. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("assets/fonts/schibstedgrotesk-SchibstedGrotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- tokens */

:root {
  /* Base palette: raw values that only the roles below use. It holds the
     logo's amber; the interface roles keep their values directly. */
  --palette-amber-400: #E8A23A;     /* the lemur's eyes in the mark */

  /* Paper and ink */
  --color-ground: #F4F1EA;          /* page paper: chrome, top bar, sidebar */
  --color-surface: #FBF9F5;         /* raised paper: cards, fields, dialogs */
  --color-wall: #ECE8DF;            /* the wall the frames hang on */
  --color-ink: #1E1C19;             /* text, the wordmark, the mark's pupils */
  --color-ink-soft: #55504A;        /* secondary text */
  --color-ink-faint: #67625A;       /* counts, meta, placeholders (AA on paper) */
  --color-rule: #DCD6CB;            /* hairlines */
  --color-rule-strong: #C4BCAE;     /* control edges */

  /* The one accent: teal. Selected state, primary action, focus only, and
     the mark's tile. Same lightness as the sage it replaced, so every
     contrast holds. */
  --color-accent: #2A6866;          /* fills, selected ring, focus ring: 5.7:1 on paper, 5.2:1 on the wall */
  --color-accent-strong: #22524F;   /* accent text on the tint: 7.1:1 */
  --color-accent-tint: #DCEAE6;     /* selected background */
  --color-on-accent: #FBF9F5;       /* text on the accent: 6.1:1 */

  /* Inverse ground, for the lockup on dark */
  --color-ground-inverse: #1E1C19;
  --color-ink-inverse: #F4F1EA;
  --color-ink-inverse-soft: #A9A397;
  --color-rule-inverse: #3A3631;

  /* The mark: a teal tile with two amber eyes and ink pupils (founder pick
     L3, 2026-10-18). Only the mark uses these. Amber is for the logo only:
     never use it, or these roles, in the interface. */
  --color-mark-tile: var(--color-accent);        /* the rounded square */
  --color-mark-eye: var(--palette-amber-400);    /* the irises: 3.0:1 on the tile, a graphic */
  --color-mark-pupil: var(--color-ink);          /* the pupils: 7.8:1 on the irises */

  /* Derived */
  --color-frame-edge: color-mix(in srgb, var(--color-ink) 13%, transparent);
  --color-scrim: color-mix(in srgb, var(--color-ink) 30%, transparent);  /* behind the phone drawer */
  --shadow-frame: 0 1px 1px color-mix(in srgb, var(--color-ink) 5%, transparent), 0 8px 22px -12px color-mix(in srgb, var(--color-ink) 22%, transparent);
  --shadow-raised: 0 1px 2px color-mix(in srgb, var(--color-ink) 6%, transparent), 0 24px 60px -20px color-mix(in srgb, var(--color-ink) 30%, transparent);

  /* Type */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-ui: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  /* Radii */
  --radius-frame: 2px;              /* frames hang like prints: nearly square */
  --radius-inner: 4px;              /* rows, segments, key caps */
  --radius-control: 6px;            /* buttons, fields */
  --radius-card: 10px;              /* cards, tiles */
  --radius-panel: 14px;             /* dialogs, the phone drawer */
  --radius-pill: 999px;

  /* Sample products shown inside frames (fictional; not part of the brand).
     Radii here are unitless: frames multiply them by their own scale. */
  --sample-harbor-font: "Inter", system-ui, sans-serif;
  --sample-harbor-canvas: #FFFFFF;
  --sample-harbor-panel: #F3F5F9;
  --sample-harbor-ink: #121826;
  --sample-harbor-muted: #677084;
  --sample-harbor-line: #E2E6ED;
  --sample-harbor-accent: #2F5BD3;
  --sample-harbor-accent-tint: #E8EEFC;
  --sample-harbor-on-accent: #FFFFFF;
  --sample-harbor-nav: #13203A;
  --sample-harbor-nav-ink: #AEBBD4;
  --sample-harbor-nav-strong: #FFFFFF;
  --sample-harbor-nav-active: #24365F;
  --sample-harbor-warn-tint: #FDF2D3;
  --sample-harbor-warn-ink: #7A5200;
  --sample-harbor-highlight: #FFE58A;
  --sample-harbor-radius: 6;
  --sample-harbor-accent-next: #2445AE;       /* PR 12 head */
  --sample-harbor-accent-tint-next: #E6EAF6;  /* PR 12 head */
  --sample-harbor-panel-next: #F5F3EE;        /* PR 12 head */
  --sample-harbor-radius-next: 10;            /* PR 12 head */

  /* Harbor's own design system, as its brand and component pages draw it
     and as the design system overview lists it (screens/viewer/
     design-system--default.html). Radii here have real units. */
  --sample-harbor-font-reading: "Instrument Serif", Georgia, serif;
  --sample-harbor-sunken: #EBEEF4;
  --sample-harbor-placeholder: #9AA2B1;
  --sample-harbor-accent-hover: #2449B0;
  --sample-harbor-focus: #6A8EF0;
  --sample-harbor-line-strong: #C9CFDA;
  --sample-harbor-success: #1F8A5B;
  --sample-harbor-success-tint: #E3F4EC;
  --sample-harbor-danger: #C8372D;
  --sample-harbor-danger-tint: #FCE9E7;
  --sample-harbor-notebook-1: #3B6FE0;
  --sample-harbor-notebook-2: #1F9D74;
  --sample-harbor-notebook-3: #D9822B;
  --sample-harbor-notebook-4: #A35BC9;
  --sample-harbor-notebook-5: #D2455B;
  --sample-harbor-notebook-6: #5C6B82;
  --sample-harbor-blue-50: #EEF3FE;
  --sample-harbor-blue-100: #DCE6FD;
  --sample-harbor-blue-200: #BCCEFA;
  --sample-harbor-blue-300: #93AFF5;
  --sample-harbor-blue-400: #6A8EF0;
  --sample-harbor-blue-500: #4672E6;
  --sample-harbor-blue-600: #2F5BD3;
  --sample-harbor-blue-700: #2449B0;
  --sample-harbor-blue-800: #1E3A87;
  --sample-harbor-blue-900: #172A5E;
  --sample-harbor-gray-50: #F8F9FB;
  --sample-harbor-gray-100: #F3F5F9;
  --sample-harbor-gray-200: #E2E6ED;
  --sample-harbor-gray-300: #C9CFDA;
  --sample-harbor-gray-400: #9AA2B1;
  --sample-harbor-gray-500: #7F889A;
  --sample-harbor-gray-600: #677084;
  --sample-harbor-gray-700: #4A5263;
  --sample-harbor-gray-800: #2B3242;
  --sample-harbor-gray-900: #121826;
  --sample-harbor-green-50: #F0F9F4;
  --sample-harbor-green-100: #E3F4EC;
  --sample-harbor-green-200: #C3E6D4;
  --sample-harbor-green-300: #94D1B3;
  --sample-harbor-green-400: #5DB78D;
  --sample-harbor-green-500: #33A070;
  --sample-harbor-green-600: #1F8A5B;
  --sample-harbor-green-700: #1A6F4A;
  --sample-harbor-green-800: #16573B;
  --sample-harbor-green-900: #10402C;
  --sample-harbor-red-50: #FEF4F3;
  --sample-harbor-red-100: #FCE9E7;
  --sample-harbor-red-200: #F8CBC6;
  --sample-harbor-red-300: #F0A097;
  --sample-harbor-red-400: #E5705F;
  --sample-harbor-red-500: #D84E40;
  --sample-harbor-red-600: #C8372D;
  --sample-harbor-red-700: #A52B23;
  --sample-harbor-red-800: #82241E;
  --sample-harbor-red-900: #5E1B17;
  --sample-harbor-radius-row: 4px;
  --sample-harbor-radius-control: 6px;
  --sample-harbor-radius-card: 10px;
  --sample-harbor-radius-dialog: 16px;
  --sample-harbor-radius-pill: 999px;
  --sample-harbor-shadow-raised: 0 1px 2px rgb(18 24 38 / 8%);
  --sample-harbor-shadow-menu: 0 6px 18px -4px rgb(18 24 38 / 16%);
  --sample-harbor-shadow-dialog: 0 24px 60px -12px rgb(18 24 38 / 28%);

  --sample-fieldwork-font: "Hanken Grotesk", system-ui, sans-serif;
  --sample-fieldwork-canvas: #FFFFFF;
  --sample-fieldwork-panel: #F6F4F0;
  --sample-fieldwork-ink: #1D1B18;
  --sample-fieldwork-muted: #75706A;
  --sample-fieldwork-line: #E7E2DA;
  --sample-fieldwork-accent: #D9572B;
  --sample-fieldwork-accent-tint: #FBE7DE;
  --sample-fieldwork-second: #2E8B66;
  --sample-fieldwork-second-tint: #DDF1E8;
  --sample-fieldwork-on-accent: #FFFFFF;
  --sample-fieldwork-radius: 8;
  /* Fieldwork's small token set on the design system overview
     (screens/viewer/design-system--small.html). */
  --sample-fieldwork-danger: #C2362B;
  --sample-fieldwork-warning: #9A6412;
  --sample-fieldwork-radius-card: 8px;
  --sample-fieldwork-radius-chip: 4px;

  --sample-lumen-font: "Geist", system-ui, sans-serif;
  --sample-lumen-font-title: "Instrument Serif", Georgia, serif;
  --sample-lumen-canvas: #14121D;
  --sample-lumen-panel: #1E1B2B;
  --sample-lumen-raised: #2A2639;
  --sample-lumen-ink: #F1EEF8;
  --sample-lumen-muted: #9C96B0;
  --sample-lumen-line: #312C45;
  --sample-lumen-accent: #F2B544;
  --sample-lumen-cover-first: #C8664A;
  --sample-lumen-cover-second: #4C6FA8;
  --sample-lumen-cover-third: #5E8C6A;
  --sample-lumen-radius: 12;
}

/* Media templates: the page outlines that show a media image in context
   (founder pick A, "Marked plan", 2026-10-25). Corners are unitless: an
   outline multiplies them by its own scale. Marks are ink on a paper halo,
   so they read on any image; never teal. */
:root {
  --outline-radius-card: 8;
  --outline-radius-control: 6;
  --outline-radius-bar: 2;
  --outline-radius-logo: 24;          /* a company logo at desktop: 46 of 290 measured, at half size */
  --outline-radius-logo-phone: 12;

  --mark-ink: var(--color-ink);                                         /* mark lines and label text */
  --mark-halo: var(--color-surface);                                    /* behind every mark line and label */
  --mark-hatch: color-mix(in srgb, var(--color-ink) 34%, transparent);  /* covered and cut-off areas */
}

/* Betalgo endorsement on the website (BET-1827): the Betalgo star in the
   bottom right corner of teallemur.com, which turns and slides out "by
   betalgo". Copied from betalgo-system-design at 685d13b; never redrawn or
   recoloured. Betalgo's own small palette, for the endorsement only: never
   interface, status or identity colours, and never in the viewer.
   The endorsement's classes are copied as they are, so they use Betalgo's
   token names. Those names live here and nothing else in Teal Lemur uses
   them. Teal Lemur already uses three of them for its own look (the accent,
   the ground and the control radius), so Betalgo's values for the accent
   and the ground take a betalgo name; the control radius stays Teal
   Lemur's, the shape of the focus ring around the star. */
:root {
  /* Betalgo's palette, as betalgo-system-design names it. */
  --palette-betalgo-forest-800: #2A4239;
  --palette-betalgo-rowan-600: #B85333;
  --palette-betalgo-birch-100: #F5F2EA;
  --palette-betalgo-ink-950: #161A18;
  --palette-betalgo-ink-700: #4A4F4C;
  --palette-betalgo-forest-100: #C9D2CC;
  --palette-betalgo-birch-50: #FBF9F3;

  /* Betalgo's roles, under Betalgo's names. */
  --color-text: var(--palette-betalgo-ink-950);
  --color-text-soft: var(--palette-betalgo-ink-700);
  --color-text-inverse: var(--palette-betalgo-birch-50);
  --color-brand: var(--palette-betalgo-forest-800);
  --color-brand-tint: var(--palette-betalgo-forest-100);
  /* Betalgo's soft fill behind a focused link. Teal Lemur focuses with its
     teal ring instead, which the corner adds. */
  --color-focus: transparent;
  --font-wordmark: "Schibsted Grotesk", sans-serif;
  --font-text: "Schibsted Grotesk", sans-serif;
  --text-small: 13px;
  --space-2: 8px;
  --motion-ease: cubic-bezier(0.65, 0, 0.35, 1);       /* the star's turn */
  --motion-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-ease-in: cubic-bezier(0.55, 0, 1, 0.45);

  /* Betalgo's values for the names Teal Lemur uses for its own look. */
  --color-betalgo-accent: var(--palette-betalgo-rowan-600);  /* Betalgo's --color-accent: the star's seed */
  --color-betalgo-ground: var(--palette-betalgo-birch-100);  /* Betalgo's --color-ground: the seam round the seed */

  /* The Selbu star: four axis points, four diagonal points, a square seed
     with a seam in the ground colour around it. */
  --star-point: var(--color-brand);
  --star-point-alt: var(--color-text);
  --star-seed: var(--color-betalgo-accent);
  --star-seam: var(--color-betalgo-ground);
}
