/* Proofestry design tokens (Archive). Generated from tokens.json. */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

/* Light theme (default) */
:root,
[data-theme="light"] {
  color-scheme: light;
  --ground: #F6F1E6;
  --surface: #FFFDF8;
  --code-bg: #EFE7D6;
  --border: #E2D9C6;
  --primary: #1F3A2E;
  --primary-hover: #2B4D3D;
  --on-primary: #F6F1E6;
  --text: #1C1C1A;
  --text-muted: #5A5A52;
  --accent: #A8782B;
  --accent-text: #7E5719;
  --secondary: #5E7A5A;
  --focus: #7E5719;
}

/* Dark theme: follows the device unless light is forced */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #0F1C16;
    --surface: #172A21;
    --code-bg: #12231B;
    --border: #2A4235;
    --primary: #F1EADB;
    --primary-hover: #FFFAF0;
    --on-primary: #0F1C16;
    --text: #E4DCCB;
    --text-muted: #B8B09E;
    --accent: #C9963F;
    --accent-text: #D9AE5B;
    --secondary: #8FAE88;
    --focus: #D9AE5B;
  }
}

/* Dark theme: forced */
[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0F1C16;
  --surface: #172A21;
  --code-bg: #12231B;
  --border: #2A4235;
  --primary: #F1EADB;
  --primary-hover: #FFFAF0;
  --on-primary: #0F1C16;
  --text: #E4DCCB;
  --text-muted: #B8B09E;
  --accent: #C9963F;
  --accent-text: #D9AE5B;
  --secondary: #8FAE88;
  --focus: #D9AE5B;
}

:root {
  /* Fonts */
  --font-display: Fraunces, Georgia, serif;
  --font-sans: Inter, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-18: 72px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-sans);
}

a { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Type styles */
.display-xl { font-family: var(--font-display); font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -0.01em; color: var(--primary); }
.display-lg { font-family: var(--font-display); font-size: 40px; line-height: 1.1; font-weight: 600; color: var(--primary); }
.heading    { font-family: var(--font-display); font-size: 24px; line-height: 1.25; font-weight: 600; color: var(--primary); }
.body-lg    { font-family: var(--font-sans); font-size: 20px; line-height: 1.5; font-weight: 400; }
.body       { font-family: var(--font-sans); font-size: 17px; line-height: 1.6; font-weight: 400; }
.small      { font-family: var(--font-sans); font-size: 14px; line-height: 1.45; font-weight: 400; }
.label      { font-family: var(--font-sans); font-size: 15px; line-height: 1.2; font-weight: 600; }
.code       { font-family: var(--font-mono); font-size: 14px; line-height: 1.6; font-weight: 400; }
.eyebrow    { font-family: var(--font-mono); font-size: 13px; line-height: 1.2; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }

@media (max-width: 640px) {
  .display-xl { font-size: 44px; }
  .display-lg { font-size: 32px; }
}
