/* JetBrains Mono, SIL Open Font License 1.1 (assets/fonts/OFL-JetBrainsMono.txt) */
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-700.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #342828;
  --black: #0a0a0a;
  --white: #f5f5f5;
  --lime: #e0f131;
  --gray: #9a9290;
  --line: rgba(245,245,245,.16);
  --line-strong: rgba(245,245,245,.36);
  --muted: rgba(245,245,245,.68);
  --error: #ffb8a9;
  /* Headline font not decided yet (TT Chocolates Bold, Jost, ...): main site stays on the original Arial Narrow until then. */
  --display: "Arial Narrow", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Type scale (non-display sizes; headlines use fluid clamp() in sections.css) */
  --fs-2xs: 11px;  /* micro labels, eyebrows, footer – minimum size */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;   /* body copy, inputs (>=16px prevents iOS zoom) */
  --fs-lg: 18px;
  --fs-xl: 24px;

  /* Glass surfaces (header, menu): frosted glass with a soft "puffy" relief */
  --glass-surface: linear-gradient(160deg, rgba(245,245,245,.18), rgba(52,40,40,.36));
  --glass-border: 1px solid rgba(245,245,245,.16);
  --glass-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    inset 3px 5px 10px rgba(255,255,255,.24),
    inset -4px -7px 14px rgba(0,0,0,.3),
    0 14px 30px rgba(0,0,0,.28);
  --glass-shadow-sm:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 2px 3px 6px rgba(255,255,255,.2),
    inset -3px -4px 8px rgba(0,0,0,.25);
  --glass-blur: blur(22px) saturate(1.15);
  --glass-lime: linear-gradient(160deg, #eef77a, #d3e320);
  --emboss: 0 1px 0 rgba(255,255,255,.3), 0 -1px 0 rgba(0,0,0,.3);

  /* Layout rhythm */
  --eyebrow-gap: clamp(20px, 1.8vw, 28px);  /* eyebrow → next block, every section */
  --header-offset: 82px;                    /* fixed header + breathing room, for anchor jumps */

  /* Focus */
  --focus-ring: 2px solid var(--lime);
  --focus-offset: 4px;

  /* Route chart: slope categories */
  --slope-flat: #937c66;
  --slope-moderate: #a99886;
  --slope-steep: var(--lime);
  --slope-very-steep: #e85d3f;
  --slope-downhill: #5ba8a0;
}
