/* AmaroX Design Tokens — v3.0.0 "Inox" (2026-11-10)
   Dark (powder black) is the default; light (bone) via [data-theme="light"].
   Brandbook: ../brandbook/index.html · Values mirrored in tokens.json. */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  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: "Inter";
  src: url("fonts/Inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  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;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-latin.woff2") format("woff2");
  font-weight: 100 800;
  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: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-latin-ext.woff2") format("woff2");
  font-weight: 100 800;
  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;
}

:root {
  /* materials */
  --amx-powder-black: #0E0E10;
  --amx-graphite: #1A1A1D;
  --amx-steel: #A9ABAE;        /* X on dark · 8.38:1 on powder black */
  --amx-steel-light: #66686C;  /* X on light · 4.73:1 on bone, 5.58:1 on white */
  --amx-bone: #EEECE7;
  --amx-white: #FFFFFF;
  --amx-ink-light: #EDEBE6;    /* 16.19:1 on powder black */
  --amx-ink-dark: #121214;     /* 15.85:1 on bone */
  --amx-crema: #C29468;        /* accent on dark · 7.10:1 · one element per composition */
  --amx-crema-deep: #8A5A33;   /* accent on light · 4.95:1 */

  /* semantic (dark default) */
  --amx-bg: var(--amx-powder-black);
  --amx-surface: #161619;
  --amx-raised: var(--amx-graphite);
  --amx-line: #2A2A2E;
  --amx-text: var(--amx-ink-light);
  --amx-muted: #9A9B9F;        /* 6.95:1 */
  --amx-x: var(--amx-steel);
  --amx-accent: var(--amx-crema);
  --amx-on-accent: var(--amx-ink-dark);

  /* type */
  --amx-font-sans: "Inter", Helvetica, Arial, sans-serif;
  --amx-font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --amx-text-100: 100px; --amx-text-72: 72px; --amx-text-48: 48px; --amx-text-32: 32px;
  --amx-text-24: 24px; --amx-text-18: 18px; --amx-text-14: 14px; --amx-text-12: 12px;
  --amx-tracking-display: -0.045em;
  --amx-tracking-label: 0.16em;
  --amx-leading-display: 0.98;
  --amx-leading-body: 1.5;

  /* shape and space */
  --amx-radius-sm: 2px;
  --amx-radius: 4px;
  --amx-radius-tile: 22%;      /* favicon / app tile */
  --amx-space-1: 4px; --amx-space-2: 8px; --amx-space-3: 16px; --amx-space-4: 24px;
  --amx-space-5: 48px; --amx-space-6: 96px;   /* 96 = social safe margin */
  --amx-stroke-ratio: 2;       /* light 18 : heavy 36 */
  color-scheme: dark;
}

[data-theme="light"] {
  --amx-bg: var(--amx-bone);
  --amx-surface: #F7F6F2;
  --amx-raised: var(--amx-white);
  --amx-line: #D3D1CB;
  --amx-text: var(--amx-ink-dark);
  --amx-muted: #5B5C60;        /* 5.66:1 */
  --amx-x: var(--amx-steel-light);
  --amx-accent: var(--amx-crema-deep);
  --amx-on-accent: var(--amx-white);
  color-scheme: light;
}
