/* The Charlotte Real — design tokens */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Manrope:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Neutrals — warm, subtle */
  --paper: #faf7f2;
  --paper-2: #f4efe6;
  --paper-3: #ece6d9;
  --ink: #15201f;
  --ink-2: #33403e;
  --ink-3: #5c6865;
  --ink-4: #8a938f;
  --rule: #d9d1c2;
  --rule-2: #e7e0d1;

  /* Brand */
  --teal: #1f5e5e;
  --teal-deep: #163f3f;
  --teal-ink: #0f2e2e;
  --teal-wash: #e4ebe8;
  --terra: #b8553a;
  --terra-wash: #f3e3db;

  /* Utility */
  --positive: #2f6b3b;
  --warn: #8a5a1c;

  /* Type */
  --serif: 'EB Garamond', 'Tiempos', Georgia, serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Layout */
  --max: 1400px;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* Typography utilities */
.display { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.02; }
.serif { font-family: var(--serif); }
.sans { font-family: var(--sans); }
.mono { font-family: var(--mono); }

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

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}

.dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
}

.rule { height: 1px; background: var(--rule); border: 0; }

/* Shared layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 860px) { :root { --gutter: 20px; } }

/* Focus */
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 2px; }

/* Density tweak */
[data-density="compact"] { --s-7: 32px; --s-8: 48px; --s-9: 72px; --s-10: 96px; }

/* Hide warm accent if toggled */
[data-warm="off"] .warm-accent { color: var(--teal) !important; }
[data-warm="off"] .warm-fill { background: var(--teal-wash) !important; }
[data-warm="off"] .warm-dot { background: var(--teal) !important; }
