/* FADEHOUSE tokens: the single source of truth for the re-skin surface.
   To re-accent for a client: change the three wine values below, done.
   The chalk/charcoal grounds and everything else can stay. */

@font-face {
  font-family: "Anybody";
  src: url("../fonts/anybody-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("../fonts/red-hat-text-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* primitives */
  --charcoal: #1b1b1e;
  --charcoal-2: #232327;
  --charcoal-3: #2c2c31;
  --chalk: #f1eee6;
  --chalk-2: #e8e4d9;
  --white: #ffffff;
  --wine-deep: #7c2040;   /* chalk grounds: 8.5:1 on chalk, 7.7:1 on chalk-2, AA at any size */
  --wine-bright: #d26e90; /* charcoal grounds: 5.2:1 on charcoal, 4.8:1 on charcoal-2,
                             so AA holds at label sizes on the cards too, not just the
                             section ground. Lifted twice from the brand wine #C4517A. */
  --wine-raw: #c4517a;    /* brand-mark wine: large display strokes and art only */

  /* semantic (charcoal is the shop's default ground) */
  --bg: var(--charcoal);
  --bg-2: var(--charcoal-2);
  --fg: var(--chalk);
  --muted: #a9a59b;
  --line: rgba(241, 238, 230, 0.16);
  --line-strong: rgba(241, 238, 230, 0.55);
  --accent: var(--wine-bright);
  --accent-raw: var(--wine-raw);
  --focus: #8fb4ff;

  /* type */
  --font-display: "Anybody", "Arial Narrow", sans-serif;
  --font-body: "Red Hat Text", "Helvetica Neue", Arial, sans-serif;
  --t-display: clamp(2.6rem, 11vw, 8.5rem);
  --t-h2: clamp(1.9rem, 4.4vw, 3.4rem);
  --t-h3: clamp(1.2rem, 2.2vw, 1.6rem);
  --t-lead: clamp(1.1rem, 1.7vw, 1.35rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-label: 0.72rem;
  --lh-tight: 0.94;
  --lh-heading: 1.05;
  --lh-body: 1.55;
  --track-label: 0.13em;
  --wdth-display: 68;   /* Anybody condensed: the shopfront voice */
  --wdth-wide: 105;

  /* 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;
  --section-pad: clamp(4.5rem, 11vh, 8rem);
  --edge: clamp(1.1rem, 4vw, 3.5rem);
  --measure: 36rem;
  --max-w: 74rem;

  /* shape */
  --r-1: 4px;
  --r-2: 10px;
  --r-pill: 999px;

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

  /* layers */
  --z-bar: 40;
  --z-skip: 60;
}

/* chalk tone: any wrapper with data-tone="chalk" flips the semantic set */
[data-tone="chalk"] {
  --bg: var(--chalk);
  --bg-2: var(--chalk-2);
  --fg: var(--charcoal);
  --muted: #5d5a52;
  --line: rgba(27, 27, 30, 0.16);
  --line-strong: rgba(27, 27, 30, 0.55);
  --accent: var(--wine-deep);
  --focus: #1f4fd8;
}
