@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/figtree/latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/figtree/latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/figtree/latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/syne/latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/syne/latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/syne/latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/jetbrains-mono/latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono/latin-500-normal.woff2") format("woff2");
}

:root {
  /* Canonical system — teal + market gold only */
  --brand-bg: #0b2e2b;
  --brand-bg-mid: #134843;
  --brand-accent: #e4b84a;
  --brand-accent-soft: rgba(228, 184, 74, 0.2);

  --bg: #f1f5f4;
  --surface: #ffffff;
  --surface-2: #f1f5f4;
  --surface-3: #e2ebe8;
  --border: rgba(18, 32, 30, 0.1);
  --border-strong: rgba(18, 32, 30, 0.16);
  --text: #12201e;
  --muted: #4d5f5c;
  --faint: #7a8c88;
  --accent: #e4b84a;
  --accent-fg: #0b2e2b;

  /* Legacy aliases (keep pages working) */
  --ink: var(--text);
  --ink-muted: var(--muted);
  --ink-faint: var(--faint);

  --success: #1f9d6c;
  --warn: #d97706;
  --danger: #dc4a3d;
  --shadow: 0 1px 0 rgba(18, 32, 30, 0.04), 0 8px 24px rgba(11, 46, 43, 0.06);
  --shadow-lg: 0 1px 0 rgba(18, 32, 30, 0.05), 0 18px 40px rgba(11, 46, 43, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-xs: 3px;
  --space: 8px;
  --font-display: "Syne", "Figtree", sans-serif;
  --font-sans: "Figtree", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 64px;
  --bottom-nav-h: 64px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 3px rgba(228, 184, 74, 0.45);
}

[data-theme="dark"] {
  --bg: #0d1c1a;
  --surface: #122623;
  --surface-2: #0d1c1a;
  --surface-3: #1a3330;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef6f3;
  --muted: #a7bbb6;
  --faint: #6f857f;
  --ink: var(--text);
  --ink-muted: var(--muted);
  --ink-faint: var(--faint);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.45);
}
