/* Design tokens of the Denge Etiket site. main.css reads these through var(--…) and holds no
   colour literal. Change a value here, then in app/DESIGN.md. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched fallback so the swap to Archivo does not shift the layout. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 103%;
  ascent-override: 88%;
  descent-override: 21%;
  line-gap-override: 0%;
}

:root {
  /* Label stock and ink */
  --color-paper: #f3f5f2;          /* page ground: cool label-stock white */
  --color-sheet: #ffffff;          /* a label face, the form, the open menu */
  --color-liner: #e4e8e2;          /* the silicone liner a label sits on: bands, hover fills */
  --color-line: #cfd4cc;           /* hairlines, die-cut outlines */
  --color-line-strong: #8d958a;    /* input borders, secondary button outline */
  --color-ink: #15181c;            /* body text and headings (≈ 17:1 on paper) */
  --color-ink-soft: #464c54;       /* secondary text (≈ 8.4:1 on paper) */
  --color-ink-deep: #0d1013;       /* footer ground */
  --color-on-ink: #eef1ed;         /* text on the footer */
  --color-on-ink-soft: #aeb5ad;    /* secondary text on the footer (≈ 8.6:1) */

  /* The one action colour: process blue, darkened so white text reads at ≈ 6.9:1 */
  --color-action: #0a5c9e;
  --color-action-hover: #084c84;
  --color-action-press: #063d6b;
  --color-on-action: #ffffff;

  /* Process inks: only in registration marks, the colour bar and illustrations, never text */
  --color-cyan: #00a0dc;
  --color-magenta: #e2007a;
  --color-yellow: #ffd200;
  --color-key: #15181c;

  --color-placeholder: #687079;   /* placeholder text (≈ 4.9:1 on white) */
  --color-error: #b3261e;          /* ≈ 6.2:1 on white */
  --color-focus: #0a5c9e;
  --color-selection: #ffe066;

  /* Type */
  --font-sans: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --stretch-display: 125%;         /* expanded, like typeset label copy */
  --stretch-body: 100%;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-md: 1.1875rem;
  --text-lg: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(1.875rem, 1.35rem + 2vw, 3rem);
  --text-display: clamp(2.125rem, 1.4rem + 2.6vw, 3.75rem);

  /* Space: a 4 px base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: clamp(4rem, 2.5rem + 6vw, 7.5rem);

  --container: 76rem;
  --gutter: clamp(1.25rem, 0.75rem + 2.2vw, 2.5rem);

  /* Radii follow the die: labels are cut with a 3 mm corner, controls with less */
  --radius-label: 0.875rem;
  --radius-control: 0.5rem;

  --shadow-label: 0 1px 1px rgb(21 24 28 / 0.06), 0 6px 18px -6px rgb(21 24 28 / 0.18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
