/* =========================================================
   A1 Toys & Static Games: design tokens
   Colours come straight from the original a1toys.com palette.
   ========================================================= */

:root {
  /* Colour */
  --amber: #ffb300;
  --charcoal: #2f2f2f;
  --charcoal-2: #3f3f3f;
  --white: #ffffff;
  --black: #000000;
  --line-dark: rgba(47, 47, 47, 0.18);
  --line-light: rgba(255, 255, 255, 0.16);

  /* Type families (all referenced by the original site) */
  --font-display: "Bayon", "Arial Narrow", Impact, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Fluid type scale */
  --fs-mega: clamp(4.5rem, 1.4rem + 11.6vw, 12rem);
  --fs-h2: clamp(3rem, 1.6rem + 5.6vw, 7rem);
  --fs-h3: clamp(2rem, 1.5rem + 2vw, 3rem);
  --fs-lead: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  --lh-display: 0.86;
  --lh-body: 1.6;
  --tracking-label: 0.12em;

  /* Spacing (fluid) */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-s: 0.875rem;
  --space-m: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  --space-l: clamp(1.5rem, 1.2rem + 1.3vw, 2.5rem);
  --space-xl: clamp(2.25rem, 1.6rem + 2.8vw, 4.25rem);
  --space-2xl: clamp(3.5rem, 2.4rem + 4.8vw, 7.5rem);

  /* Layout */
  --container: 82.5rem; /* 1320px */
  --gutter: clamp(1.25rem, 0.5rem + 3.6vw, 4.5rem);
  --header-h: 5.5rem; /* 77px logo + padding; also drives anchor offsets */

  /* Packaging language: borders, layers, shadows */
  --border: 2px solid var(--charcoal);
  --border-thick: 3px solid var(--charcoal);
  --offset: 10px;
  --offset-shadow: var(--offset) var(--offset) 0 var(--charcoal);
  --layer-x: clamp(14px, 0.6rem + 1.6vw, 36px); /* backing-card offset */

  /* Tabletop print language */
  --motif-stroke: 2px;
  --dot-gap: 9px;
  --dot-size: 1.35px;
  --crop-len: 16px;
  --crop-off: 12px;
  --texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .18 0 0 0 0 .18 0 0 0 1.4 -.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --texture-opacity: 0.16;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-settle: cubic-bezier(0.34, 1.3, 0.64, 1); /* a little physical overshoot */
  --dur-fast: 200ms;
  --dur-base: 520ms;
  --move-hover: 3px;
  --move-enter: 16px;

  /* Focus ring colour (overridden per surface) */
  --focus: var(--charcoal);
}
