/* BRAMBLE & FURROW tokens: the single source of truth. Re-skin here first.
   Family: botanical organic. Parchment ground, moss ink, aubergine accent. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* primitives */
  --parchment: #f6f1e7;
  --parchment-2: #efe7d5;
  --parchment-3: #e5d9c0;
  --moss: #33402a;
  --moss-2: #2a3522;
  --moss-3: #212a1b;
  --white: #fffdf8;
  --aubergine: #6c3355;      /* deep: AA on parchment at label sizes (8.3:1) */
  --aubergine-bright: #a05687; /* bright: a fill, never a letter. White label on it, 4.95:1 */
  --aubergine-soft: #d2a0bf;   /* tint: AA labels on moss surfaces (5.0:1) */

  /* semantic (parchment theme is the default) */
  --bg: var(--parchment);
  --bg-2: var(--parchment-2);
  --fg: var(--moss);
  --muted: #5d6353;
  --line: rgba(51, 64, 42, 0.18);
  --line-strong: rgba(51, 64, 42, 0.52);
  --accent: var(--aubergine);
  --focus: #274f8f;

  /* type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --soft-display: "opsz" 90, "SOFT" 100, "WONK" 1;
  --soft-text: "opsz" 40, "SOFT" 75, "WONK" 0;
  --t-display: clamp(2.5rem, 6.8vw, 6.25rem);
  --t-h1: clamp(2.3rem, 5.4vw, 4.75rem);
  --t-h2: clamp(1.85rem, 3.9vw, 3.25rem);
  --t-h3: clamp(1.3rem, 2.1vw, 1.7rem);
  --t-lead: clamp(1.1rem, 1.7vw, 1.4rem);
  --t-body: 1.0625rem;
  --t-small: 0.9rem;
  --t-label: 0.76rem;
  --lh-tight: 1.02;
  --lh-heading: 1.12;
  --lh-body: 1.6;
  --track-label: 0.16em;

  /* 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;
  --s-10: 9rem;
  --section-pad: clamp(5rem, 12vh, 9rem);
  --gutter: clamp(1rem, 2.5vw, 1.5rem);
  --edge: clamp(1.25rem, 4vw, 4rem);
  --measure: 38rem;
  --max-w: 84rem;

  /* shape + depth */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 14px;
  --shadow-1: 0 1px 2px rgba(33, 42, 27, 0.07), 0 10px 30px rgba(33, 42, 27, 0.1);

  /* motion */
  --dur-1: 150ms;
  --dur-2: 320ms;
  --dur-3: 650ms;
  --dur-4: 1000ms;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);

  /* layers */
  --z-header: 40;
  --z-menu: 50;
  --z-skip: 60;
}

/* moss theme: any element with data-theme="moss" flips the semantic set */
[data-theme="moss"] {
  --bg: var(--moss);
  --bg-2: var(--moss-2);
  --fg: var(--parchment);
  --muted: #aab3a0;
  --line: rgba(246, 241, 231, 0.2);
  --line-strong: rgba(246, 241, 231, 0.58);
  --accent: var(--aubergine-soft);
  --focus: #b8cdf5;
}
