/* Tokens and typography — verbatim from STYLE-GUIDE.md §9.1.
   Do not re-derive values; edit STYLE-GUIDE.md and mirror here. */

:root {
  /* Apricot ramp */
  --apricot-50:  #FFF4EC;
  --apricot-100: #FFE3CE;
  --apricot-200: #FFC79B;
  --apricot-300: #FFA566;
  --apricot-400: #F27A2B;
  --apricot-500: #C85A12;
  --apricot-600: #8F3D08;

  /* Southwestern Summer accents (categorical; max 3 per view) */
  --summer-monsoon: #2E7A8C;
  --summer-orchard: #7A9366;
  --summer-nectar:  #E8A42A;
  --summer-plum:    #7A2E4A;
  --summer-bloom:   #D96B8A;

  /* Warm graphite neutrals */
  --ink-900: #1F1B17;
  --ink-700: #4A4037;
  --ink-500: #7A6E62;
  --ink-300: #BEB4A8;
  --ink-100: #EAE4DB;
  --ink-50:  #F5F1EA;
  --paper:   #FEFBF6;
  --white:   #FFFFFF;

  /* Data semantics (always pair with a glyph) */
  --data-gain:    #1F8A5C;
  --data-loss:    #C23B2F;
  --data-alert:   #D98B0B;
  --data-neutral: #7A6E62;

  /* Derived tints */
  --tint-gain-bg: #EEF1E4;
  --tint-loss-bg: #F7E6E0;

  /* Typography */
  --font-display: 'Tiempos Headline', 'Times New Roman', Georgia, serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'SF Mono', Consolas, Monaco, monospace;

  /* Spacing scale (4px base) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Radii + borders */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --border-hairline: 1px solid var(--ink-100);
  --border-soft:     1px solid var(--ink-300);
}

/* Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink-700);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 22px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--apricot-500);
  text-decoration: none;
}

a:hover {
  color: var(--apricot-400);
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Typography scale — matches STYLE-GUIDE §5 */

h1,
.display-md {
  font-size: 36px;
  line-height: 44px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}

h2,
.title-lg {
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--ink-900);
  margin: 0;
}

h3,
.title-md {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  color: var(--ink-900);
  margin: 0;
}

.body-lg { font-size: 16px; line-height: 24px; }
.body-md { font-size: 14px; line-height: 22px; }
.body-sm { font-size: 13px; line-height: 20px; }

.data-lg {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink-900);
}

.data-md {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  line-height: 20px;
}

.data-sm {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  line-height: 18px;
}

/* Utility classes */

.data-cell {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.label-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
