/* TORQUE AUTO CARE tokens: the single source of truth. Re-skin here first.
   To fit a client: swap the two oxide values (keep one deep for light grounds,
   one bright for dark grounds, both AA at label sizes), then follow the
   60-minute checklist on /styleguide. */

@font-face {
  font-family: "Geologica";
  src: url("../fonts/geologica-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cabin";
  src: url("../fonts/cabin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* primitives */
  --asphalt: #1e1e1f;
  --asphalt-2: #262628;
  --asphalt-3: #2f2f32;
  --bone: #f1ede4;
  --bone-2: #e7e2d5;
  --bone-3: #dcd6c6;
  --oxide-bright: #ef5350; /* for asphalt grounds, AA at label sizes */
  --oxide-deep: #b91c1c;   /* for bone grounds, AA at label sizes */

  /* semantics (asphalt theme is the default) */
  --bg: var(--asphalt);
  --bg-2: var(--asphalt-2);
  --fg: var(--bone);
  --muted: #a8a49b;
  --line: rgba(241, 237, 228, 0.16);
  --line-strong: rgba(241, 237, 228, 0.55);
  --accent: var(--oxide-bright);
  --focus: #7db1ff;

  /* type */
  --font-display: "Geologica", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Cabin", "Gill Sans", Verdana, sans-serif;
  --t-h1: clamp(2.1rem, 5.6vw, 4.1rem);
  --t-h2: clamp(1.6rem, 3.4vw, 2.5rem);
  --t-h3: clamp(1.15rem, 2vw, 1.45rem);
  --t-lead: clamp(1.1rem, 1.6vw, 1.3rem);
  --t-body: 1.0625rem;
  --t-small: 0.9rem;
  --t-decal: 0.75rem;
  --lh-heading: 1.06;
  --lh-body: 1.55;
  --track-decal: 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;
  --section-pad: clamp(4.5rem, 11vh, 8rem);
  --gutter: clamp(1rem, 2.5vw, 1.5rem);
  --edge: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 40rem;
  --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-header: 40;
  --z-callstrip: 45;
  --z-skip: 60;
}

/* bone theme: any wrapper with data-theme="bone" flips the semantic set */
[data-theme="bone"] {
  --bg: var(--bone);
  --bg-2: var(--bone-2);
  --fg: var(--asphalt);
  --muted: #625e55;
  --line: rgba(30, 30, 31, 0.16);
  --line-strong: rgba(30, 30, 31, 0.55);
  --accent: var(--oxide-deep);
  --focus: #1d4ed8;
}
