/* Plant EDG design tokens. Every color and font on the site comes from here.
   Swap these values to re-skin the whole site. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/bricolage.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color */
  --paper: #E7E9E1;          /* page background, cool stone */
  --paper-2: #D9DCD1;        /* quiet panels */
  --field: #F6F7F2;          /* form fields */
  --ink: #101A15;            /* primary text, green-black */
  --ink-2: #3D4842;          /* secondary text (7.8:1 on paper) */
  --rule: #BCC2B5;           /* hairlines */
  --forest: #12221A;         /* dark bands, footer, Learn */
  --forest-2: #1B2F24;       /* raised surfaces and rules on forest */
  --on-forest: #E7E9E1;      /* text on forest (13.5:1) */
  --on-forest-2: #A9B3AA;    /* secondary text on forest (7.6:1) */
  --accent: #7E5200;         /* resin amber, used sparingly (5.5:1 on paper) */
  --accent-on-dark: #E9B04A; /* resin on forest (8.5:1) */
  --sage: #788873;           /* "plant" in her logo, on dark */
  --sage-deep: #56684F;      /* logo sage on light (4.9:1 on paper) */
  --stone: #D0CCBD;          /* "EDG" in her logo, on dark */
  --error: #9E2A1C;
  --focus: #7E5200;

  /* Type */
  --font-display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  --step-3: clamp(2rem, 1.45rem + 2.4vw, 3.4rem);
  --step-4: clamp(2.4rem, 1.5rem + 4vw, 5rem);
  --step-5: clamp(2.6rem, 1.4rem + 5.6vw, 6.6rem);

  /* Space and shape */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 3rem + 6vw, 9rem);
  --max: 78rem;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Logo colors. Light backgrounds by default; dark bands switch them in main.css. */
  /* Plant EDG logo, full color (her originals) */
  --pe-leaf: #2D6316; --pe-gold: #CBA200; --pe-est: #16310A;
  --pe-leaf-light: #8DB86A;
  --logo-leaf: var(--pe-leaf);
  --logo-word: var(--pe-gold);
  --logo-est: var(--pe-est);
}

/* Registered so the logo can fade between light and dark versions */
@property --logo-leaf { syntax: "<color>"; inherits: true; initial-value: #2D6316; }
@property --logo-word { syntax: "<color>"; inherits: true; initial-value: #CBA200; }
@property --logo-est { syntax: "<color>"; inherits: true; initial-value: #16310A; }
