/*
 * VOH tooling look for hosted Notion OS. Ported (values copied, no Tailwind,
 * no new dependency) from the voh-admin console so Notion OS reads as part of
 * VOH tooling rather than a separate product:
 *   voh-admin app/globals.css                         base, headings, links, focus, inputs, buttons
 *   voh-admin lib/design-tokens.ts                    NEUTRAL ramp, CONSOLE roles, FUTURE.graphite
 *   voh-admin lib/ui.ts                               SPACE, FONT, FONT_FAMILY, MONO, zero radius
 *   voh-admin app/admin/components/ConsoleChrome.tsx  header rows, brand wordmark, tabs
 *   voh-admin app/admin/components/console/SectionHeader.tsx  kicker, heading, lede
 *   voh-admin components/ui/{Card,Button,Badge}.tsx   card, button variants, badge
 * Keep these in step with those files by hand. One stylesheet serves the React
 * pages (app/layout.js) and the HTML pages built in lib/shell.mjs.
 *
 * Archivo is self-hosted from /fonts (variable wght axis, latin and latin-ext
 * subsets from @fontsource-variable/archivo 5.3.0; SIL OFL 1.1, see
 * /fonts/Archivo-OFL.txt). No page requests a third-party font host.
 */

@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/archivo-latin-ext-wght-normal.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: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("/fonts/archivo-latin-wght-normal.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 {
  color-scheme: dark;
  /* lib/design-tokens.ts NEUTRAL */
  --n100: #f8f4f4; --n200: #eae7e7; --n300: #d7d3d3; --n400: #bab6b6; --n500: #9b9797;
  --n600: #7d7979; --n700: #605d5d; --n800: #444141; --n900: #2d2b2b;
  /* lib/design-tokens.ts CONSOLE + FUTURE.graphite */
  --ground: #201e1d; --raised: #26231f; --line: var(--n800); --line-dim: var(--n900);
  --paper: var(--n100); --t2: var(--n300); --t3: var(--n500); --quiet: var(--n600);
  /* lib/ui.ts */
  --font: "Archivo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --s-xs: 4px; --s-sm: 8px; --s-md: 12px; --s-lg: 16px; --s-xl: 24px; --s-2xl: 32px; --s-3xl: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100dvh; }
body {
  background-color: var(--ground); color: var(--paper); font-family: var(--font);
  font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font); font-weight: 800; letter-spacing: -0.015em; line-height: 1.12; }
/* globals.css: monochrome links, underline on hover. Inside cards a dim underline keeps prose links visible. */
a { color: var(--paper); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.voh-card p a, .voh-card li a { text-decoration: underline; text-decoration-color: var(--n600); text-underline-offset: 3px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
::selection { background: var(--n800); color: var(--paper); }
code, .voh-code { font-family: var(--mono); font-size: 12px; color: var(--t2); word-break: break-all; }

/* ConsoleChrome row 1: brand, context, identity, return link */
.voh-app { min-height: 100dvh; display: flex; flex-direction: column; }
.voh-header { background: var(--ground); }
.voh-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-lg);
  padding: 9px var(--s-xl); border-bottom: 1px solid var(--n900);
}
.voh-brand { font-size: 13px; font-weight: 800; letter-spacing: 0.01em; color: var(--t2); white-space: nowrap; text-decoration: none; }
.voh-brand b { color: var(--paper); font-weight: 800; }
.voh-context { font-size: 12px; color: var(--t3); white-space: nowrap; }
.voh-identity { margin-left: auto; font-size: 12px; color: var(--t3); overflow-wrap: anywhere; }
/* ConsoleChrome row 2: section tabs */
.voh-tabs { display: flex; align-items: stretch; padding: 0 var(--s-xl); border-bottom: 2px solid var(--line); overflow-x: auto; }
.voh-tab {
  display: flex; align-items: center; padding: 11px 18px 10px; margin-right: 2px;
  border-bottom: 3px solid transparent; font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--t3); text-decoration: none; white-space: nowrap;
}
.voh-tab:hover { color: var(--paper); }
.voh-tab[aria-current="page"] { border-bottom-color: var(--paper); background: var(--n900); font-weight: 800; color: var(--paper); }

.voh-main { flex: 1; width: 100%; max-width: 820px; padding: 0 var(--s-xl) var(--s-3xl); }

/* SectionHeader: mono kicker, heavy heading, lede */
.voh-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t3); }
.voh-heading { padding: 34px 0 26px; }
.voh-heading h1 { margin: 10px 0 0; font-size: 38px; font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.voh-lede { margin: 14px 0 0; max-width: 70ch; font-size: 14.5px; line-height: 1.6; color: var(--t2); }

/* components/ui/Card.tsx (graphite surface, 1px rule, zero radius) */
.voh-stack { display: flex; flex-direction: column; gap: var(--s-lg); }
.voh-card { background: var(--raised); border: 1px solid var(--line); padding: var(--s-lg); }
.voh-card > :first-child { margin-top: 0; }
.voh-card > :last-child { margin-bottom: 0; }
.voh-card h2 { font-size: 16px; font-weight: 700; margin: 0 0 var(--s-sm); }
.voh-card p, .voh-card li { color: var(--t2); margin: 0 0 var(--s-sm); }
.voh-card ol, .voh-card ul { margin: 0 0 var(--s-sm); padding-left: 20px; }
.voh-card[role="alert"] { border-color: var(--n500); }
.voh-muted { color: var(--t3) !important; }
.voh-dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-xs) var(--s-lg); margin: 0 0 var(--s-sm); }
.voh-dl dt { color: var(--t3); font-size: 12px; }
.voh-dl dd { margin: 0; color: var(--paper); overflow-wrap: anywhere; }

/* components/ui/Button.tsx + globals.css .voh-btn states */
.voh-actions { display: flex; flex-wrap: wrap; gap: var(--s-sm); align-items: center; margin-top: var(--s-md); }
.voh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm);
  min-height: 44px; padding: var(--s-sm) var(--s-lg); font-family: var(--font); font-size: 14px;
  font-weight: 600; line-height: 1; letter-spacing: 0.2px; border-radius: 0; cursor: pointer;
  background: var(--paper); color: var(--ground); border: 1px solid transparent; text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.voh-btn[data-variant="secondary"] { background: transparent; color: var(--paper); border-color: var(--line); }
.voh-btn[data-size="sm"] { min-height: 36px; padding: var(--s-xs) var(--s-md); font-size: 13px; }
.voh-btn:hover { filter: brightness(1.08); text-decoration: none; }
.voh-btn[data-variant="secondary"]:hover { filter: none; background-color: rgba(248, 244, 244, 0.06); border-color: var(--n500); }
.voh-btn:active { transform: translateY(1px); }

/* globals.css .voh-input */
.voh-input {
  width: 100%; max-width: 420px; min-height: 40px; padding: var(--s-sm) var(--s-md);
  background: var(--n900); color: var(--paper); border: 1px solid var(--line); border-radius: 0; font: inherit;
}
.voh-input:focus-visible { outline: none; border-color: var(--paper); }
label { display: block; color: var(--t2); }

/* Consent system choices */
.voh-choice { display: flex; gap: var(--s-md); align-items: flex-start; padding: var(--s-md); border: 1px solid var(--line); margin: 0 0 var(--s-sm); cursor: pointer; }
.voh-choice input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--paper); }
.voh-choice strong { color: var(--paper); display: block; }

/* components/ui/Badge.tsx (neutral tone) */
.voh-badge {
  display: inline-flex; align-items: center; padding: 2px var(--s-sm); font-family: var(--mono); font-size: 12px;
  font-weight: 600; line-height: 1.4; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--paper); background: var(--n900); border: 1px solid var(--line-dim);
}

/* ConsoleChrome bottom status bar (static here, not fixed) */
.voh-status { display: flex; flex-wrap: wrap; gap: 20px; padding: 8px var(--s-xl); border-top: 2px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--t3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
