/* =============================================================
   Greenhouse style kit: tokens (v1.0, 2026-11-19)
   Colour and type come from the Foundations page of Sophia's
   Greenhouse_DesignDocumentation file (Greenhouse Juice Brand System).
   Spacing, radii and shadows are the ones the Greenhouse design library
   is built on (remakes/greenhouse-library.html), a 4-point scale.
   The library itself still carries its own copy of the colours.
   ============================================================= */

/* Chapeau, Greenhouse's typeface. It's asked for by name rather than shipped,
   so it shows on a Mac with Chapeau installed and falls back to a rounded
   system font elsewhere. */
@font-face { font-family: "GH Chapeau"; font-weight: 300; src: local("Chapeau-Light"), local("Chapeau Light"); }
@font-face { font-family: "GH Chapeau"; font-weight: 400; src: local("Chapeau-Regular"), local("Chapeau Regular"), local("Chapeau"); }
@font-face { font-family: "GH Chapeau"; font-weight: 400; font-style: italic; src: local("Chapeau-Italic"), local("Chapeau Italic"); }
@font-face { font-family: "GH Chapeau"; font-weight: 500; src: local("Chapeau-Medium"), local("Chapeau Medium"); }
@font-face { font-family: "GH Chapeau"; font-weight: 600; src: local("Chapeau-Bold"), local("Chapeau Bold"); }
@font-face { font-family: "GH Chapeau Mono"; font-weight: 400; src: local("Chapeau-Mono"), local("Chapeau Mono"); }

:root {
  /* ---------- Brand colours (Foundations page) ---------- */
  --gh-olive: #5a592d;  /* buttons, selected chips, focus; 7.2:1 on paper */
  --gh-moss: #879367;   /* large text and graphics only: 3.3:1 on paper */
  --gh-sage: #b1bc93;   /* decoration only: 2.0:1 on paper */
  --gh-mint: #dee7c5;   /* the selected page in the side nav; olive on mint is 5.6:1 */
  --gh-cream: #fcf8ed;  /* text on olive (6.8:1), certification tiles */

  /* ---------- Neutrals the library mixes from the palette ---------- */
  --gh-paper: #fffefa;       /* page */
  --gh-tile: #f5f1e4;        /* cards, the search field */
  --gh-tile-hover: #ede7d3;
  --gh-line: #e8e2cf;        /* hairlines */
  --gh-line-strong: #cfc8ad; /* chip and outline button borders */
  --gh-ink: #2a2917;         /* text: 14.6:1 on paper */
  --gh-ink-2: #5f5e47;       /* secondary text: 6.5:1 on paper, 5.8:1 on tile */
  --gh-olive-press: #474621; /* pressed and hovered primary buttons */

  /* ---------- Type ---------- */
  --gh-sans: "GH Chapeau", "Chapeau", ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gh-mono: "GH Chapeau Mono", "Chapeau Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* Styles from the Foundations page */
  --gh-display: 3rem;      /* 48, weight 600: hero sections, major headings */
  --gh-heading-1: 2rem;    /* 32, weight 600, line height 1.2: page titles */
  --gh-body: 1.25rem;      /* 20, weight 600, line height 1.3: standard content */
  /* Sizes the library uses for its controls */
  --gh-text-md: 1.0625rem; /* 17 */
  --gh-text-sm: 0.9375rem; /* 15, weight 500: buttons, chips, labels */
  --gh-text-xs: 0.8125rem; /* 13: counts, keys, captions */

  /* ---------- Spacing: the library's 4-point scale ---------- */
  --gh-space-1: 0.25rem; /* 4 */
  --gh-space-2: 0.5rem;  /* 8 */
  --gh-space-3: 1rem;    /* 16 */
  --gh-space-4: 1.5rem;  /* 24 */
  --gh-space-5: 2rem;    /* 32 */
  --gh-space-6: 2.5rem;  /* 40 */
  --gh-space-7: 3rem;    /* 48 */
  --gh-space-8: 4rem;    /* 64 */
  --gh-target: 44px;     /* the smallest thing you can tap */

  /* ---------- Layout and icons, as the library uses them ---------- */
  --gh-top-h: 72px;      /* the top bar */
  --gh-page-max: 76rem;  /* 1216: widest a page gets */
  --gh-measure: 40rem;   /* 640: longest line of text */
  --gh-icon: 20px;       /* line icons in controls, like the search glass */

  /* ---------- Shape ---------- */
  --gh-radius-sm: 8px;    /* key caps, thumbnails */
  --gh-radius-md: 14px;   /* tiles and cards */
  --gh-radius-lg: 22px;   /* panels */
  --gh-radius-pill: 999px; /* buttons, chips, the search field */
  --gh-shadow: 0 1px 2px rgb(42 41 23 / 0.06), 0 6px 18px rgb(42 41 23 / 0.08);   /* cards */
  --gh-shadow-lg: 0 24px 64px rgb(42 41 23 / 0.2);                              /* sheets and dialogs */

  /* ---------- Motion ---------- */
  --gh-fast: 180ms;
  --gh-ease: cubic-bezier(0.2, 0, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --gh-fast: 0ms; }
}
