/* MICRODUCK ARENA — design tokens.
 *
 * The reference for every colour, face, size and duration in the Arena: edit them here.
 * Source: the MicroDuck charter — Pollen Robotics, V1 · 2026.
 * The share on every colour is its role in the 70 / 20 / 10 rule.
 * Paper and ink carry 70 % of any screen, the charter's accents at most 20 %, the named extensions at most 10 %.
 */

/* The faces are served from design/fonts/, never from a font host, so the hall looks
   the same behind any network. Licences: fonts/Anton-OFL.txt, fonts/DMSans-OFL.txt. */

@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/anton-400-latin.woff2') format('woff2');
  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: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/anton-400-latin-ext.woff2') format('woff2');
  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: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/dm-sans-400-700-latin.woff2') format('woff2');
  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: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/dm-sans-400-700-latin-ext.woff2') format('woff2');
  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 {
  /* Type voices — three, never more */
  --display: Anton, sans-serif;      /* Always capitals. Never a paragraph. */
  --body: 'DM Sans', sans-serif;     /* Measure at most 66 characters. */
  --mono: ui-monospace, 'SF Mono', Menlo, monospace; /* Never rewritten. */
  --mono-tracking-min: 0.12em;
  --mono-tracking-max: 0.16em;

  /* Colour · ground — 70 % share */
  --ink: #101018;                    /* Ink — Text, strokes, marquee boxes, scoreboard bodies, sticker shadows */
  --deep-ink: #08080C;               /* Deep ink — CRT screens, terminal, footer, the aberration's shadow */
  --paper: #FAF8F2;                  /* Paper — The hall's ground, flyers, cabinet bodies, text on ink */
  --warm-paper: #F2ECDD;             /* Warm paper — Alternate floor tile, pegboard, recessed cards */

  /* Colour · carrying accent — 20 % share */
  --orange: #FF7A2F;                 /* Pollen orange — The action. The one orange button per section; the ray fan; the sprite's beak */
  --yellow: #FFD23F;                 /* Beak yellow — The shout. Marquee letters, default sticker, flyer bands, court posts, the sprite's body */

  /* Colour · electric signal — 20 % share */
  --magenta: #FF2FA8;                /* Magenta VHS — Hot signal. Right ghost, button shadow, LIVE, REC, the FAIL stamp */
  --cyan: #2FF0E6;                   /* Cyan VHS — Cold signal. Left ghost, focus ring, FORK, SOUND ON, replay and cabinet shadows, tape */

  /* Colour · shell — 20 % share */
  --cream: #F7E6CB;                  /* Cream shell — Shell: a player's duck, trophy plastic */
  --graphite: #101018;               /* Graphite shell — Shell: a player's duck, trophy plastic */
  --lavender: #9D87E8;               /* Lavender shell — Shell; the NEW sticker; a court line */
  --sky: #8FB8DC;                    /* Sky shell — Shell; mono labels on ink (commands, on-screen display); a court line */

  /* Colour · inked text — 20 % share */
  --orange-inked: #C2500A;           /* Inked orange — Orange as text on paper: eyebrows, the objective's emphasis, rank 1 */
  --yellow-inked: #9A7200;           /* Inked yellow — Yellow as text on paper */
  --sky-inked: #3A6C99;              /* Inked sky — Sky as text on paper: repo paths, hashes, terminal frames */
  --lavender-inked: #5F45B0;         /* Inked lavender — Lavender as text on paper */

  /* Colour · extension — 10 % share */
  --lime: #C8FF2E;                   /* LIME HI-VIS · extension — Go. PASS, seeds cleared, ducks entered, "your duck", a new personal best */
  --lime-inked: #3F6B00;             /* Lime inked · extension — Lime as text on paper — 6.0 : 1 on paper, 5.4 : 1 on warm paper */

  /* Tints — a token with an alpha, never a new hex */
  --ink-70: rgba(16, 16, 24, 0.7);   /* Captions, secondary labels and disabled states on paper */
  --paper-60: rgba(250, 248, 242, 0.6); /* Captions, secondary labels and disabled states on ink */

  /* Type scale — the charter's eleven levels */
  /* hero-title — The front's ROUND 01, the broadcast's verdict */
  --type-hero-title-family: var(--display);
  --type-hero-title-weight: 400;
  --type-hero-title-size: clamp(min(4.8rem, 16.5vw), 9vw, 7.5rem);
  --type-hero-title-line: 0.95;
  --type-hero-title-tracking: 0;

  /* section-title-xl — Cabinet marquee, FAIL and PASS stamps */
  --type-section-title-xl-family: var(--display);
  --type-section-title-xl-weight: 400;
  --type-section-title-xl-size: clamp(min(3.6rem, 12.5vw), 7.5vw, 5.6rem);
  --type-section-title-xl-line: 0.95;
  --type-section-title-xl-tracking: 0;

  /* section-title — Spoils headline, section heads */
  --type-section-title-family: var(--display);
  --type-section-title-weight: 400;
  --type-section-title-size: clamp(min(3.3rem, 12.5vw), 6vw, 4.6rem);
  --type-section-title-line: 0.95;
  --type-section-title-tracking: 0;

  /* display-subtitle — The round's objective line */
  --type-display-subtitle-family: var(--display);
  --type-display-subtitle-weight: 400;
  --type-display-subtitle-size: clamp(2.5rem, 4.4vw, 3.9rem);
  --type-display-subtitle-line: 0.95;
  --type-display-subtitle-tracking: 0;

  /* card-title — Signage lockup, ranks, scores, key figures */
  --type-card-title-family: var(--display);
  --type-card-title-weight: 400;
  --type-card-title-size: clamp(1.55rem, 2.4vw, 2rem);
  --type-card-title-line: 1.15;
  --type-card-title-tracking: 0.01em;

  /* lede — The cabinet's one-paragraph brief */
  --type-lede-family: var(--body);
  --type-lede-weight: 400;
  --type-lede-size: clamp(1.15rem, 1.8vw, 1.45rem);
  --type-lede-line: 1.5;
  --type-lede-tracking: -0.012em;

  /* body — Everything that is a sentence */
  --type-body-family: var(--body);
  --type-body-weight: 400;
  --type-body-size: clamp(1rem, 1.6vw, 1.25rem);
  --type-body-line: 1.6;
  --type-body-tracking: 0;

  /* eyebrow — ROUND 07 · DROPS EVERY FRIDAY; caption heads */
  --type-eyebrow-family: var(--body);
  --type-eyebrow-weight: 600;
  --type-eyebrow-size: 0.8rem;
  --type-eyebrow-line: 1.4;
  --type-eyebrow-tracking: 0.14em;

  /* button-label — ENTER THE JAM */
  --type-button-label-family: var(--display);
  --type-button-label-weight: 400;
  --type-button-label-size: 1.45rem;
  --type-button-label-line: 1.15;
  --type-button-label-tracking: 0.07em;

  /* sticker — Every sticker */
  --type-sticker-family: var(--display);
  --type-sticker-weight: 400;
  --type-sticker-size: 0.72rem;
  --type-sticker-line: 1.5;
  --type-sticker-tracking: 0.05em;

  /* mono-label — Repo · hash, seeds, Hz, the CRT's on-screen display */
  --type-mono-label-family: var(--mono);
  --type-mono-label-weight: 600;
  --type-mono-label-size: 0.72rem;
  --type-mono-label-line: 1.5;
  --type-mono-label-tracking: 0.16em;

  /* Spacing */
  --space-chapter-top-min: 104px;    /* Space above a chapter */
  --space-chapter-top-max: 128px;
  --space-chapter-bottom-min: 152px; /* Space below a chapter */
  --space-chapter-bottom-max: 168px;
  --space-title-to-grid-min: 32px;   /* Title down to the grid under it */
  --space-title-to-grid-max: 48px;
  --space-gutter-min: 18px;          /* Grid gutter */
  --space-gutter-max: 28px;
  --space-card-padding-min: 18px;    /* Inside a card */
  --space-card-padding-max: 24px;
  --space-button-padding-y: 18px;    /* Button padding, vertical */
  --space-button-padding-x: 42px;    /* Button padding, horizontal */
  --space-content-column: 1120px;    /* Content column width */
  --space-grid-wide: 300px;          /* auto-fit track minimum, wide */
  --space-grid-medium: 230px;        /* auto-fit track minimum, medium */
  --space-grid-narrow: 180px;        /* auto-fit track minimum, narrow */

  /* Effect · aberration — Chromatic aberration: ink shadow on the diagonal, cyan ghost left, magenta ghost right */
  --aberration-shadow-offset: 0.06em;
  --aberration-ghost-offset: 0.035em;

  /* Effect · shadow — Offset shadow: equal x and y, zero blur, one colour of the magenta/cyan pair */
  --shadow-blur: 0;
  --shadow-sticker-min: 4px;
  --shadow-sticker-max: 6px;
  --shadow-card-min: 7px;
  --shadow-card-max: 9px;

  /* Effect · rotate — The charter's six rotation values, alternating in sign from one sibling to the next, never beyond 4° */
  --rotate-0-75: 0.75deg;
  --rotate-1-0: 1deg;
  --rotate-1-5: 1.5deg;
  --rotate-2-5: 2.5deg;
  --rotate-3-0: 3deg;
  --rotate-4-0: 4deg;
  --rotate-max: 4deg;

  /* Effect · scanline — One dark line every 4 px, over the whole page and inside every moving image */
  --scanline-line: 1px;
  --scanline-period: 4px;
  --scanline-color: rgba(0, 0, 0, 0.5);
  --scanline-opacity-min: 0.12;
  --scanline-opacity-max: 0.18;
  --scanline-opacity-page: 0.14;
  --scanline-opacity-screen: 0.18;

  /* Effect · grain — Fractal noise tile in multiply overlay, over the whole page and every render */
  --grain-base-frequency: 0.8;
  --grain-octaves: 2;
  --grain-tile-min: 160px;
  --grain-tile-max: 180px;
  --grain-opacity-min: 0.04;
  --grain-opacity-max: 0.06;

  /* Effect · ray-fan — Conic fan behind a page's main section, one per page, tilted by its from angle and never by a rotate() */
  --ray-fan-from: -12deg;
  --ray-fan-width: 8deg;
  --ray-fan-period: 20deg;
  --ray-fan-color: rgba(255, 122, 47, 0.09);
}
