/* 2 for a Tree · V1 Pro · page tokens (dark Soil theme).
 * Core colour, type, space, motion: /home/css/brand-tokens.css (copy of brand/tokens.css, linked first).
 * This file only derives roles for a Soil page from those core tokens. No raw colour is used in styles.css. */
:root {
  /* surfaces (dark) */
  --color-bg:      var(--color-soil);
  --color-bg-2:    var(--color-soil-2);
  --color-bg-3:    oklch(29% 0.013 80);                 /* hover on bg-2 */
  --color-ink:     var(--color-paper);                  /* text on soil 16.1:1 */
  --color-ink-2:   oklch(95.2% 0.015 90.2 / 0.78);      /* body on soil */
  --color-ink-3:   oklch(95.2% 0.015 90.2 / 0.58);      /* captions, labels on soil (AA small) */
  --color-ink-4:   oklch(95.2% 0.015 90.2 / 0.32);      /* ghost text, inactive rail */
  --color-rule-d:  var(--color-rule-on-soil);           /* paper 18 %, hairlines on soil */
  --color-rule-d2: oklch(95.2% 0.015 90.2 / 0.3);       /* stronger hairline, outlines */
  --color-scrim:   oklch(18.8% 0.011 80.5 / 0.84);      /* soil 84 %, header + photo scrims */
  --color-scrim-2: oklch(18.8% 0.011 80.5 / 0.55);
  --color-scrim-3: oklch(18.8% 0.011 80.5 / 0.94);      /* solid header, tags on photos */
  --color-scrim-0: oklch(18.8% 0.011 80.5 / 0);
  --color-shadow:  oklch(8% 0.01 80 / 0.55);

  /* accent roles */
  --color-accent:     var(--color-leaf);                /* buttons, active rules (graphics on soil) */
  --color-accent-hi:  oklch(58% 0.12 140);              /* hover on leaf buttons */
  --color-accent-ink: var(--color-paper);               /* text on leaf, 4.6:1 */
  --color-glow:       var(--color-sprout);              /* the one highlight on dark, <= 5 % of a view */
  --color-glow-soft:  oklch(79.4% 0.145 123.8 / 0.28);
  --color-glow-faint: oklch(79.4% 0.145 123.8 / 0.12);
  --color-ok:   var(--color-sprout);
  --color-err:  oklch(70% 0.14 35);                     /* error text on soil */

  /* light band (Paper) */
  --color-on-paper:   var(--color-soil);
  --color-on-paper-2: oklch(18.8% 0.011 80.5 / 0.78);
  --color-on-paper-3: var(--color-bark);

  /* extra type steps between brand body and display */
  --text-xs:  0.6875rem;   /* 11px mono labels */
  --text-lg:  1.125rem;
  --text-xl:  1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: clamp(2rem, 1.4rem + 1.8vw, 2.75rem);
  --text-4xl: clamp(2.5rem, 1.6rem + 3vw, 4rem);

  /* layout */
  --max: 76rem;
  --gutter: clamp(1rem, 0.4rem + 3vw, 4rem);
  --hdr: 72px;
  --rule-hair: 1px;
  --dur-med: 320ms;
}
@media (max-width: 900px) { :root { --hdr: 64px; } }
