/* ==========================================================================
   Design tokens
   Every colour, type step and spacing value the rest of the CSS draws on.

   Breakpoints (custom properties cannot be used inside media queries, so
   they are listed here for reference and written out where they are used):
     1000px  two column grids stack
      900px  feature rows stack
      860px  nav collapses to the menu button
      660px  card grid goes to one column
      420px  small phones
   ========================================================================== */

:root {
  /* Surfaces */
  --paper:      #ffffff;
  --paper-2:    #faf8f4;   /* card fill, barely off white */
  --paper-3:    #f1ece3;   /* deeper tint, image wells */
  --peach:      #f8ddc8;   /* top of the hero glow, keep in step with the theme-color meta in index.html */
  --peach-pale: #fdf2ec;   /* bottom of the hero glow */

  /* Ink */
  --ink:        #141414;   /* body text */
  --ink-mid:    #55504a;   /* secondary text */
  --ink-dim:    #6f6960;   /* tertiary text, still AA on white */

  /* Accents */
  --ember:      #cf6f2e;   /* fills, rules, large text */
  --ember-text: #b8501c;   /* AA on white at body size */
  --ember-pale: #f7e2d2;
  --harvest:    #8a6d10;   /* gold, darkened so it can carry text. Not used yet */
  --moss:       #5c6f4e;

  --line:        rgba(20, 20, 20, 0.16);
  --line-soft:   rgba(20, 20, 20, 0.08);
  --line-strong: rgba(20, 20, 20, 0.48);

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --step-hero: clamp(3rem, 11vw, 8rem);
  --step-h2:   clamp(2rem, 5vw, 3.3rem);
  --step-h3:   clamp(1.2rem, 2.1vw, 1.55rem);
  --step-lead: clamp(1.04rem, 1.5vw, 1.26rem);

  /* Space and shape */
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 1180px;
  --section-y: clamp(4.5rem, 11vh, 8rem);
  --header-h: 84px;
  --radius: 14px;

  /* Texture and motion */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
}
