/* TatFinder base stylesheet — the fonts, the type/space/radius tokens, base
   element styles and the component classes the app is built from (.btn,
   .card, .tag, .input, .field, .text-muted).

   Forked on 2026-10-11 from the Nocturne design-system export the app used
   to link (apps/studio/_ds/nocturne-569bb669-…/styles.css). The repo owns it
   now: edit it here in shared/assets/, then `npm run sync` (from test/) copies
   it to apps/studio/assets/. Nothing regenerates it, so a future Claude
   Design export cannot change the app by accident.

   What is NOT here: colours and shadows. The palette — the light :root and
   both dark-theme blocks — lives in the <style> block of shared/index.html,
   which loads after this file and is the only place a colour is defined.
   Everything below reads var(--color-*) and themes for free.

   What the fork changed, all without moving a pixel (the before/after
   computed-style and screenshot comparison is in the PR that added it):
   - Inter is vendored (assets/vendor/fonts/) instead of @imported from
     Google Fonts, like Archivo already was, so the app makes no font-CDN
     request and the iOS bundle has its text font offline.
   - Nocturne's purple colour and shadow values are gone; the app overrode
     every one of them.
   - Classes and tokens the app never used are gone: .dialog*, .nav*,
     .table, .seg*, .radio, .card-meta, .elev-md, .elev-lg, .tag-accent-2,
     .hr, .lighten, figure/figcaption, --space-4/6/8, --color-section-ghost.
   - .tag-accent takes the accent fill with --color-on-accent text (see the
     rule for why). */

/* ── Inter ────────────────────────────────────────────────────────────────
   Inter variable (wght axis): Google Fonts' own Inter (v20, 2025-09-10) as
   packaged by @fontsource-variable/inter 5.3.0, split into Google's seven
   subsets with Google's unicode-ranges, so a page downloads only the
   scripts it shows — plain English text loads the 48 KB latin file and
   nothing else.
   The weight range is 400–700 on purpose: that is what the old import asked
   for (wght@400;500;600;700), so a request for 800 still renders at 700 and
   300 at 400, exactly as before. Order matters: where ranges overlap, the
   later face wins, as in Google's own stylesheet. OFL-1.1, licence in
   assets/vendor/fonts/inter-OFL.txt. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('vendor/fonts/inter-cyrillic-ext-wght.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('vendor/fonts/inter-cyrillic-wght.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('vendor/fonts/inter-greek-ext-wght.woff2') format('woff2');
  unicode-range: U+1F00-1FFF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('vendor/fonts/inter-greek-wght.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('vendor/fonts/inter-vietnamese-wght.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('vendor/fonts/inter-latin-ext-wght.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: Inter; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('vendor/fonts/inter-latin-wght.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; }

/* ── Tokens ───────────────────────────────────────────────────────────────
   The --space-* steps are Nocturne's 2.8 px scale. Only the classes below
   use them; app markup does not, so they stay as they are until those
   classes move onto the app's own spacing scale. */
:root {
  --font-heading: "Inter", system-ui, sans-serif;
  --font-heading-weight: 500;
  --font-body: "Inter", system-ui, sans-serif;

  --space-1: 2.8px;
  --space-2: 5.6px;
  --space-3: 8.4px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

/* ── Base elements ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400;
  background: var(--color-bg); color: var(--color-text); font-family: var(--font-body);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text); /* matches .input's 14px —
     the pair sits side by side in sign-up rows */
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { color: var(--color-accent); border-color: var(--color-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.btn-primary:active { background: color-mix(in srgb, var(--color-accent) 22%, transparent); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-icon { width: 36px; height: 36px; padding: 0; }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }

/* ── Cards ────────────────────────────────────────────────────────────── */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.elev-sm { box-shadow: var(--shadow-sm); }

/* ── Tags ─────────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
/* Solid accent with --color-on-accent text: 8.8:1 in light, 6.6:1 in dark.
   Nocturne painted it accent-800 on accent-100, two steps that are both deep
   reds in this palette's dark theme, so "Now in private beta" sat at 1.71:1
   (WCAG wants 4.5:1) until an override in the app's <style> fixed it.
   test/phase18-design-tokens.js holds both themes to 4.5:1. */
.tag-accent { background: var(--color-accent); color: var(--color-on-accent); }
.tag-neutral { background: var(--color-neutral-800); color: var(--color-neutral-100); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }
