/*
  Alelas Holdings design tokens
  ------------------------------------------------------------------
  The single source for every colour, type size, space, radius, motion value,
  z-index and focus ring on Alelas pages.

  Colour:  four palette values only. No tints, no opacity mixes, no new colours.
  Type:    IBM Plex Sans, one variable latin woff2, weights 400 / 600 / 700, self-hosted.
  Scheme:  light only.

  Rules for using this file
  - Components use the ROLE tokens (--color-text, --color-surface …), never the
    palette tokens directly. Palette tokens exist so roles can point at them.
  - Green (--color-green) is never body text. It is allowed for
    graphics, rules, icons, UI boundaries and large text (24 px+, or 18.66 px+ bold).
    The only text role that uses it is --color-display.
  - Near-black is a print / one-colour-logo colour. No screen role uses it.
  - Media queries can't read custom properties: the one layout breakpoint is
    60rem (960 px), written literally where needed and documented here.
*/

/* ---------------------------------------------------------------
   Font: IBM Plex Sans (variable, wght 100–700; we use 400, 600, 700)
   Fontsource @fontsource-variable/ibm-plex-sans 5.3.0, file
   ibm-plex-sans-latin-wght-normal.woff2, 45,712 bytes, unmodified,
   sha256 e2291e842cf5af167122a22881a740c7f2dda7716f1e8cd76680264f4a859470.
   The version sits in the folder name so the file can be cached as immutable
   without renaming it.
   --------------------------------------------------------------- */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-5.3.0/ibm-plex-sans-latin-wght-normal.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;
}

/* Metric-matched fallback, so the swap from Arial to Plex doesn't move the layout (CLS).
   Measured in Chrome 2026-11-20 on the page's own text: Plex/Arial advance-width ratio
   1.004 at 400, 0.964 at 600 and 0.977 at 700; Plex hhea ascent 1025, descent 275,
   line gap 0. Overrides = Plex metric / size-adjust. */
@font-face {
  font-family: "IBM Plex Sans Fallback";
  font-style: normal;
  font-weight: 100 500;
  src: local("Arial"), local("ArialMT"), local("Liberation Sans");
  size-adjust: 100.4%;
  ascent-override: 102.1%;
  descent-override: 27.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "IBM Plex Sans Fallback";
  font-style: normal;
  font-weight: 600;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold");
  size-adjust: 96.4%;
  ascent-override: 106.3%;
  descent-override: 28.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "IBM Plex Sans Fallback";
  font-style: normal;
  font-weight: 700 900;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold");
  size-adjust: 97.7%;
  ascent-override: 104.9%;
  descent-override: 28.1%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;

  /* ---------- Palette ---------- */
  --color-indigo: #253668;      /* Shadowed Indigo, primary */
  --color-green: #339C5E;       /* Jungle Whisper, accent: never body text */
  --color-white: #FFFFFF;
  --color-near-black: #231F20;  /* print and one-colour logo only; no screen role */

  /* ---------- Colour roles: light surface (white) ---------- */
  --color-surface: var(--color-white);           /* page background */
  --color-text: var(--color-indigo);             /* all text on white: 11.63:1 */
  --color-heading: var(--color-indigo);
  --color-link: var(--color-indigo);             /* links are indigo + underline */
  --color-display: var(--color-green);           /* "Coming Soon!" only, ≥ 48 px bold: 3.47:1 (large text) */
  --color-accent: var(--color-green);            /* rules, motif, icons: 3.47:1 vs white (graphics ≥ 3:1) */
  --color-border: var(--color-indigo);           /* input and notice boundaries: 11.63:1 */
  --color-button-bg: var(--color-indigo);
  --color-button-text: var(--color-white);       /* 11.63:1 */
  --color-error: var(--color-indigo);            /* no red in the palette: errors use indigo + icon + bar + words */
  --color-focus: var(--color-indigo);            /* ring on white: 11.63:1 */

  /* ---------- Colour roles: inverse surface (indigo field) ---------- */
  --color-surface-inverse: var(--color-indigo);
  --color-text-inverse: var(--color-white);      /* 11.63:1 */
  --color-link-inverse: var(--color-white);
  --color-display-inverse: var(--color-green);   /* ≥ 48 px bold on indigo: 3.35:1 (large text) */
  --color-accent-inverse: var(--color-green);    /* motif on indigo: 3.35:1 */
  --color-focus-inverse: var(--color-white);     /* ring on indigo: 11.63:1 */

  /* ---------- Typography ---------- */
  --font-sans: "IBM Plex Sans", "IBM Plex Sans Fallback", Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Fluid sizes: min at 360 px, max at 1280 px, linear in between.
     The rem part keeps them responsive to text zoom (WCAG 1.4.4). */
  --text-display: clamp(3rem, 2.413rem + 2.609vw, 4.5rem);      /* "Coming Soon!" 48 → 72 px, bold */
  --text-h1: clamp(2.5rem, 2.109rem + 1.739vw, 3.5rem);         /* "Alelas Holdings" 40 → 56 px, bold */
  --text-lead: clamp(1.125rem, 1.027rem + 0.435vw, 1.375rem);   /* description 18 → 22 px, regular */
  --text-h2: clamp(1.375rem, 1.277rem + 0.435vw, 1.625rem);     /* section headings 22 → 26 px, semibold */
  --text-h3: 1.125rem;                                          /* notice headings 18 px, semibold */
  --text-body: 1rem;                                            /* 16 px, regular */
  --text-label: 1rem;                                           /* 16 px, semibold */
  --text-small: 0.875rem;                                       /* 14 px: hints, footer */

  --leading-tight: 1.1;    /* display, h1 */
  --leading-snug: 1.3;     /* h2, h3, lead */
  --leading-body: 1.55;    /* body, privacy text */
  --tracking-display: -0.015em;
  --tracking-h1: -0.01em;
  --measure: 40rem;        /* privacy reading width */
  --measure-lead: 30rem;   /* description width */

  /* ---------- Space (4 px base) ---------- */
  --space-1: 0.25rem;   /*  4 */
  --space-2: 0.5rem;    /*  8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 3rem;      /* 48 */
  --space-8: 4rem;      /* 64 */
  --space-9: 6rem;      /* 96 */

  /* ---------- Layout ---------- */
  --container-max: 72rem;            /* 1152 px */
  --gutter: var(--space-4);          /* 16 px side padding at 360 px */
  --gutter-narrow: 0.625rem;         /* 10 px below 340 px, so the column keeps 300 px for Turnstile */
  --gutter-wide: var(--space-6);     /* 32 px from 60rem */
  /* Breakpoint (literal in media queries): 60rem = 960 px → two columns. */

  /* ---------- Shape ---------- */
  --radius-control: 4px;             /* inputs, buttons, notices */
  --border-width: 1px;               /* default input border */
  --border-width-strong: 2px;        /* error border, notices, secondary button */
  --bar-width: 4px;                  /* error side bar, accent rule height */
  --rule-length: 3rem;               /* short green rule above section headings */

  /* ---------- Targets and controls ---------- */
  --control-height: 2.75rem;         /* 44 px: buttons, inputs */
  --target-min: 1.5rem;              /* 24 px: smallest allowed target */
  --icon-size: 1.25rem;              /* 20 px inline icons */
  --spam-check-height: 65px;         /* Turnstile "normal"/"flexible" height, reserved (no CLS) */
  --spam-check-width: 300px;         /* Turnstile "normal" width (flexible: min 300 px) */

  /* ---------- Focus ring ---------- */
  --focus-width: 3px;
  --focus-offset: 2px;
  /* usage: outline: var(--focus-width) solid var(--color-focus); outline-offset: var(--focus-offset); */

  /* ---------- Motion (transform and opacity only) ---------- */
  --duration-instant: 0ms;
  --duration-fast: 120ms;            /* hover */
  --duration-base: 200ms;            /* success view fade */
  --duration-enter: 400ms;           /* Contact and form entrance */
  --duration-reduced: 150ms;         /* fade-only replacement under reduced motion */
  --duration-motif: 1200ms;          /* arc settles once; ends well under 5 s (WCAG 2.2.2) */
  --duration-spin: 800ms;            /* submitting spinner */
  --delay-stagger: 60ms;
  --delay-motif: 300ms;
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0.2, 1);
  --rise: 8px;                       /* entrance translate */
  --motif-turn: -8deg;               /* arc start angle, settles to 0 */

  /* ---------- Z-index ---------- */
  --z-base: 0;
  --z-motif: 0;                      /* decorative SVG, under content */
  --z-content: 1;
  --z-skip-link: 100;
}
