/* Global design tokens + reset. CSS variables pierce Shadow DOM, so every component uses these. */

/* The fonts, served by the site itself (no third-party request; licences in /fonts/OFL-*.txt).
   Each is one variable file covering all the weights used. The hand lettering waits briefly for
   its font (it's the brand, and is preloaded); body text shows straight away and swaps in. */
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: block;
  src: url("../fonts/caveat-700.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond.woff2") format("woff2");
}

:root {
  /* brand palette — sampled from the sketchysprouts mascot artwork */
  --color-ink: #241f26;
  --color-paper: #f6f1ea;
  --color-bg: #ffffff;

  --color-petal-light: #f1b1b7;
  --color-petal: #e39ba3;
  --color-petal-shade: #c87a85;

  --color-face-highlight: #fcf9cf;
  --color-face-light: #f6eda2;
  --color-face: #ecd472;
  --color-face-shade: #d3a03c;

  --color-blush: #e08a64;
  --color-tongue: #db7a5e;

  --color-leaf-light: #4fc4c6;
  --color-leaf: #1f97b9;
  --color-leaf-shade: #10708f;

  --color-stem-light: #a3714f;
  --color-stem: #7c5038;
  --color-stem-shade: #5a3826;

  --color-glow: #f2b4ba;
  --color-name: #8b6a58;

  /* butterfly (blue morpho) */
  --color-wing-light: #3f8dff;
  --color-wing: #1d5fe0;
  --color-wing-shade: #1446b8;
  --color-wing-glow: #34c4f4;

  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  background: var(--color-bg);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
}

/* hide components until they are defined (avoids a flash of unstyled content) */
:not(:defined) { visibility: hidden; }
