/* TRUE NORTH PLUMBING tokens: the single source of truth.
   RE-SKIN SURFACE: swap the two water values (and paper/ink temperature if
   you like) and the whole site follows. Both accents pass AA at label sizes:
   --water-deep on paper 6.6:1, --water-bright on ink 4.8:1. */

@font-face {
  font-family: "Familjen Grotesk";
  src: url("../fonts/familjen-grotesk-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* primitives */
  --paper: #f6f8fa;        /* paper white, a degree cool */
  --paper-2: #eceff3;
  --ink: #16283c;          /* deep navy */
  --ink-2: #0f1d2c;
  --white: #ffffff;
  --water-deep: #145d8c;   /* accent on paper grounds */
  --water-bright: #2e9bd6; /* accent on ink grounds */
  --ink-muted: #9fb0c0;    /* quiet type on ink grounds, 6.7:1 on --ink */
  --ink-line: rgba(246, 248, 250, 0.4); /* hairline on ink grounds */
  --rust: #a33111;         /* the only alarm colour: 7.0:1 on white, 6.6:1 on paper */

  /* semantics (paper theme is the default) */
  --bg: var(--paper);
  --bg-2: var(--paper-2);
  --fg: var(--ink);
  --muted: #47586a;
  --line: rgba(22, 40, 60, 0.16);
  --line-strong: rgba(22, 40, 60, 0.5);
  --accent: var(--water-deep);
  --accent-contrast: var(--white); /* text placed on solid accent */
  --danger: var(--rust);           /* field errors and the error summary */
  --focus: #b3550e;

  /* type */
  --font-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --t-h1: clamp(2.2rem, 6.4vw, 4.4rem);
  --t-h2: clamp(1.7rem, 3.6vw, 2.6rem);
  --t-h3: clamp(1.15rem, 2vw, 1.45rem);
  --t-lead: clamp(1.08rem, 1.6vw, 1.3rem);
  --t-body: 1rem;
  --t-small: 0.875rem;
  --t-tag: 0.74rem;
  --lh-heading: 1.06;
  --lh-body: 1.6;
  --track-tag: 0.1em;

  /* 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: 4.5rem;
  --section-pad: clamp(3.5rem, 9vh, 6.5rem);
  --edge: clamp(1.1rem, 4vw, 3rem);
  --measure: 40rem;
  --max-w: 72rem;

  /* shape + depth */
  --r-1: 6px;
  --r-2: 12px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(22, 40, 60, 0.07), 0 10px 28px rgba(22, 40, 60, 0.09);

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

  /* layers */
  --z-topbar: 40;
  --z-pocket: 45;
  --z-skip: 60;
}

/* deep-water theme: any wrapper with data-theme="deep" flips the semantic set */
[data-theme="deep"] {
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --fg: var(--paper);
  --muted: var(--ink-muted);
  --line: rgba(246, 248, 250, 0.18);
  --line-strong: rgba(246, 248, 250, 0.55);
  --accent: var(--water-bright);
  --accent-contrast: var(--ink-2);
  --focus: #f0a35e;
}
