/* =====================================================================
   Foreground Landscape Studio — design tokens
   Source of truth for colour, type, space, grid and motion.
   Direction: photo first, white and ink, small tracked type, hairlines.
   ===================================================================== */

:root {
  /* ---- Colour: the brand carries almost no colour; the photos do ---- */
  --fg-paper: #ffffff; /* page background */
  --fg-paper-2: #f5f5f2; /* quiet surface: form panels, alternate sections */
  --fg-ink: #141412; /* text, rules that must be seen, solid buttons */
  --fg-ink-2: #5f5f5a; /* secondary text, lead paragraphs on paper */
  --fg-ink-3: #9a9a94; /* captions, dates, metadata */
  --fg-line: #e3e3de; /* hairlines on paper */
  --fg-line-strong: #141412; /* hairlines that structure a screen */

  --fg-white: #ffffff; /* text on photo */
  --fg-white-2: rgba(255, 255, 255, 0.74); /* secondary text on photo */
  --fg-white-line: rgba(255, 255, 255, 0.55); /* hairlines on photo */

  --fg-night: #0f1110; /* dark sections without a photo */
  --fg-night-2: #1b1f1c;

  --fg-photo: #233128; /* fallback behind every photo while it loads */
  --fg-scrim: linear-gradient(180deg, rgba(10, 14, 12, 0.42) 0%, rgba(10, 14, 12, 0.08) 45%, rgba(10, 14, 12, 0.5) 100%);

  --fg-vermilion: #b23a26; /* reserved. Only the seal may use it, and only on print */

  /* ---- Type ---- */
  --fg-font-display: "Montserrat", "Gotham", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --fg-font-text: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --fg-font-ui: var(--fg-font-display);

  /* Two heading sizes. Nothing else is a heading. */
  --fg-size-h1: clamp(1.625rem, 1.1rem + 1.9vw, 2.625rem); /* 26 → 42 */
  --fg-size-h2: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem); /* 17 → 21 */
  --fg-size-lead: 1.0625rem; /* 17 */
  --fg-size-body: 0.9375rem; /* 15 */
  --fg-size-small: 0.8125rem; /* 13 */
  --fg-size-label: 0.6875rem; /* 11 */
  --fg-size-micro: 0.625rem; /* 10 */

  --fg-weight-display: 500;
  --fg-weight-ui: 500;
  --fg-weight-text: 400;

  --fg-track-h1: 0.26em;
  --fg-track-h2: 0.2em;
  --fg-track-label: 0.22em;
  --fg-track-wordmark: 0.38em;

  --fg-leading-h1: 1.4; /* stacked words need air between lines */
  --fg-leading-h2: 1.45;
  --fg-leading-text: 1.7;
  --fg-leading-tight: 1.25;

  --fg-measure: 34em; /* body text never runs wider than this */
  --fg-measure-narrow: 26em; /* paragraphs on photo */

  /* ---- Space (4px base) ---- */
  --fg-space-1: 0.25rem;
  --fg-space-2: 0.5rem;
  --fg-space-3: 0.75rem;
  --fg-space-4: 1rem;
  --fg-space-5: 1.5rem;
  --fg-space-6: 2rem;
  --fg-space-7: 3rem;
  --fg-space-8: 4rem;
  --fg-space-9: 6rem;
  --fg-space-10: 8rem;
  --fg-space-11: 12rem;

  --fg-section: clamp(4rem, 3rem + 6vw, 8rem); /* vertical rhythm between screens */
  --fg-gutter: clamp(1.25rem, 0.5rem + 3vw, 3rem); /* page side padding */
  --fg-gap: clamp(1rem, 0.5rem + 2vw, 2.5rem); /* grid column gap */
  --fg-max: 1440px;

  /* ---- Lines, shape, elevation ---- */
  --fg-hairline: 1px;
  --fg-radius: 0; /* square everywhere. Stone, not pebbles. */
  --fg-shadow: none; /* no shadows. Depth comes from the photo. */

  /* ---- Motion ---- */
  --fg-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --fg-dur-fast: 180ms;
  --fg-dur: 600ms;
  --fg-dur-slow: 1200ms;

  /* ---- Photo ratios ---- */
  --fg-ratio-hero: 4 / 3;
  --fg-ratio-wide: 16 / 9;
  --fg-ratio-still: 3 / 2;
  --fg-ratio-tall: 4 / 5;

  /* ---- Z ---- */
  --fg-z-nav: 20;
}
