/* CRFT Design System — generated from tokens.json */
:root, [data-theme="light"] {
  --color-bone-linen: #f7f5f2; /* Page canvas, body backgrounds. Text on dark (Forest Depths) surfaces. */
  --color-oat-milk: #eae6df; /* Card surfaces, elevated panels. */
  --color-driftwood: #d7d2cc; /* Hairline borders, dividers. Secondary text on Forest Depths (9.3:1). */
  --color-ash-mauve: #645757; /* Secondary text, captions, muted labels. 6.3:1 on Bone Linen, 5.5:1 on Oat Milk. */
  --color-mahogany-hush: #504344; /* Small headings (heading-sm), warm emphasis. */
  --color-obsidian-plum: #2a1a1d; /* Primary text, headings, nav. 15.3:1 on Bone Linen. */
  --color-forest-depths: #1d3023; /* Hero background and the one dark contrast surface; ghost-button borders; focus ring. */
  --color-moss-pulse: #b3b7a5; /* Primary action, inline-link underline, accent words, active nav. Reserved: one accent word per headline. Note: Bone Linen text on Moss is 3.7:1 (passes only at 24px+ / large text; flagged for 15px buttons). */
  --color-peacock-teal: #0e634f; /* Stat numbers, data emphasis. 6.6:1 on Bone Linen. */
  --color-warn: #a66a00; /* Warning status — badges and data only, never surfaces. 4.1:1 on Bone Linen: use at 13px bold+ or 18px+ (flagged). */
  --color-alert: #9e2b25; /* Error / alert status — badges and data only, never surfaces. 6.8:1 on Bone Linen. */
  --background: var(--color-bone-linen); /* Semantic: page background. */
  --foreground: var(--color-obsidian-plum); /* Semantic: default text. */
  --surface: var(--color-oat-milk); /* Semantic: raised surface. */
  --card: var(--color-oat-milk); /* Semantic: card background. */
  --card-foreground: var(--color-obsidian-plum); /* Semantic: text on card. */
  --muted: var(--color-oat-milk); /* Semantic: muted fill. */
  --muted-foreground: var(--color-ash-mauve); /* Semantic: body copy, captions, labels. */
  --border: var(--color-driftwood); /* Semantic: all hairlines (1px). */
  --primary: var(--color-moss-pulse); /* Semantic: primary button fill. */
  --primary-foreground: #464939; /* Semantic: text on primary. */
  --dark: var(--color-forest-depths); /* Semantic: the forest room (hero / contrast panel). */
  --dark-foreground: var(--color-bone-linen); /* Semantic: text on dark. */
  --accent: var(--color-moss-pulse); /* Semantic: accent word, link underline. */
  --data: var(--color-peacock-teal); /* Semantic: stat numbers. */
  --ring: var(--color-forest-depths); /* Semantic: focus ring. */
}
:root {
  --s-4: 4px; /* Hairline offsets, icon gaps. */
  --s-8: 8px; /* Tight gaps. */
  --s-16: 16px; /* Inline groups. */
  --s-24: 24px; /* Element gap; compact card padding. */
  --s-32: 32px; /* Card padding. */
  --s-40: 40px; /* Large card padding. */
  --s-56: 56px; /* Section gap. */
  --s-80: 80px; /* Major section gap. */
  --s-120: 120px; /* Hero breathing room. */
  --r-card: 8px; /* Cards, image frames, inputs. */
  --r-button: 999px; /* Pill buttons, chips. */
  --r-full: 9999px; /* Avatars. */
  --font-display: 'Geist', 'Noto Sans JP', system-ui, sans-serif;
  --font-sans: 'Geist', 'Noto Sans JP', system-ui, sans-serif;
  --font-jp: 'Noto Sans JP', 'Geist', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --text-crft-mega: 700 180px/0.95 var(--font-display); /* Hero promise only. */
  --text-crft-display: 700 72px/0.95 var(--font-display); /* Page headline. */
  --text-crft-heading-lg: 700 40px/1.1 var(--font-display); /* Section headline. */
  --text-crft-heading: 500 28px/1.1 var(--font-display); /* Section statement. */
  --text-crft-stat: 700 72px/0.95 var(--font-display); /* Stat numbers, in Peacock Teal (data). */
  --text-crft-heading-sm: 500 22px/1.1 var(--font-sans); /* Small headings, in Mahogany Hush. */
  --text-crft-body-lg: 400 17px/1.7 var(--font-sans); /* Lead paragraphs. */
  --text-crft-body: 400 15px/1.5 var(--font-sans); /* Default body, in muted-foreground. */
  --text-crft-body-jp: 400 17px/1.7 var(--font-jp); /* Japanese-led long copy. */
  --text-crft-caption: 400 12px/1.5 var(--font-sans); /* Legal floor — nothing below 12px, ever. */
  --text-crft-label: 500 13px/1.5 var(--font-mono); /* Uppercase labels, IDs, section eyebrows. */
}
.crft-mega {
  font-family: var(--font-display);
  font-size: 180px;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.crft-display {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.crft-heading-lg {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.crft-heading {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0;
}
.crft-stat {
  font-family: var(--font-display);
  font-size: 72px;
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.crft-heading-sm {
  font-family: var(--font-sans);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0;
}
.crft-body-lg {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0;
}
.crft-body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}
.crft-body-jp {
  font-family: var(--font-jp);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0;
}
.crft-caption {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0;
}
.crft-label {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.08em;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/GeistMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
