/* PALLET & PLANE tokens: the single source of truth. Re-skin here first.
   Grounds are shop pine and walnut; the accent is verdigris in two AA strengths. */

@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* primitives */
  --pine: #e8dcc8;        /* shop pine: the benchroom ground */
  --pine-2: #dfd0b6;      /* planed a pass deeper */
  --pine-3: #d3c19f;      /* end grain */
  --walnut: #31261a;      /* walnut: the dark ground */
  --walnut-2: #3a2d1f;
  --walnut-3: #453623;
  --verdigris-deep: #28624f;   /* on pine grounds, AA at label sizes */
  --verdigris-bright: #55a893; /* on walnut grounds, AA at label sizes */

  /* piece woods (SVG fills on the bench; decorative, not text) */
  --wood-ash: #d9c6a3;
  --wood-oak: #c9a671;
  --wood-cherry: #8a5a38;
  --wood-walnut: #4a3826;
  --wood-maple: #efe3cb;

  /* semantic (pine theme is the default) */
  --bg: var(--pine);
  --bg-2: var(--pine-2);
  --fg: var(--walnut);
  --muted: #5e5344;
  --line: rgba(49, 38, 26, 0.22);
  --line-strong: rgba(49, 38, 26, 0.55);
  --accent: var(--verdigris-deep);
  --focus: #1e5a4b;

  /* type */
  --font-slab: "Bitter", "Iowan Old Style", Georgia, serif;
  --font-grot: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --t-display: clamp(2.4rem, 7.5vw, 5.6rem);
  --t-h2: clamp(1.8rem, 4vw, 3.1rem);
  --t-h3: clamp(1.2rem, 2vw, 1.6rem);
  --t-lead: clamp(1.1rem, 1.7vw, 1.35rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-note: 0.75rem;
  --lh-heading: 1.06;
  --lh-body: 1.6;
  --track-note: 0.12em;

  /* space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --station-pad: clamp(5rem, 12vh, 9rem);
  --gutter: clamp(1rem, 2.5vw, 1.5rem);
  --edge: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 40rem;
  --max-w: 82rem;

  /* shape + depth */
  --r-1: 3px;
  --r-2: 8px;
  --r-tag: 999px;
  --shadow-piece: 0 2px 3px rgba(49, 38, 26, 0.18), 0 10px 26px rgba(49, 38, 26, 0.16);
  --shadow-card: 0 4px 10px rgba(49, 38, 26, 0.22), 0 22px 60px rgba(49, 38, 26, 0.3);

  /* motion */
  --dur-1: 150ms;
  --dur-2: 320ms;
  --dur-3: 600ms;
  --ease-settle: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-latch: cubic-bezier(0.83, 0, 0.17, 1);

  /* layers */
  --z-shopbar: 30;
  --z-buildcard: 45;
  --z-toolwall: 50;
  --z-skip: 60;
}

/* walnut theme: any element with data-theme="walnut" flips the semantic set */
[data-theme="walnut"] {
  --bg: var(--walnut);
  --bg-2: var(--walnut-2);
  --fg: var(--pine);
  --muted: #a89a85;
  --line: rgba(232, 220, 200, 0.2);
  --line-strong: rgba(232, 220, 200, 0.6);
  --accent: var(--verdigris-bright);
  --focus: #74c2ad;
}
