/* Adrias design-v4 tokens: the genre of AI film studios in the Adrias brand (17 November 2026).
   The single source of every value. A near-black Night canvas, warm grey surfaces, one tangerine accent with
   Ink text on it, heavy UPPERCASE display titles in Archivo Condensed, Plus Jakarta Sans for everything people
   read. Flat colour only: no gradients, glows, blurs or shadows (energy comes from motion, overlays, density
   and type). Token NAMES from the earlier rounds are kept, so every page restyles at once; the homepage and
   pricing are dark too (no light theme). Measured genre values: brand-work/hf-study/hf-system.md section (a). */

/* UI and body: Plus Jakarta Sans (SIL OFL 1.1, fonts/OFL-PlusJakartaSans.txt), 400 to 800, tabular figures for
   numbers. Titles: Archivo Condensed ExtraBold (Omnibus-Type, SIL OFL 1.1, fonts/OFL-Archivo.txt), a static
   instance at width 75 and weight 800, latin, 14.6 KB. Titles only, always uppercase (set in CSS, so copy and
   screen readers keep sentence case). Self-hosted. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/PlusJakartaSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/PlusJakartaSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/PlusJakartaSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/PlusJakartaSans-Bold.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Archivo Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/ArchivoCondensed-ExtraBold.woff2") format("woff2"); }

:root {
  color-scheme: dark;

  /* ---------------------------------------------------------------- brand colours (brand/system/tokens.json) */
  --tangerine: #FA5E20;
  --tangerine-deep: #C23A04;
  --ink: #0B0B0C;
  --night: #0F1012;
  --paper: #F4F2EE;
  --white: #FFFFFF;

  /* ---------------------------------------------------------------- colour roles
     Night canvas (the genre's near-black), Ink stage for hero bands and the studio fan, three warm grey
     steps. Genre mapping: cards, menus, composers and tag pills sit on surface-2 (their #1C1E20), icon tiles
     and secondary buttons on surface-3 (their #23262A), row hover inside a panel goes one step DARKER to
     surface-1 (their #131517), as in the measured menus. */
  --canvas: #0F1012;         /* the page (Night) */
  --stage: #0B0B0C;          /* Ink: hero band, fan stage, the stage behind a player */
  --surface-1: #171615;      /* sidebar, dialogs, sticky bar, row hover inside panels */
  --surface-2: #201F1D;      /* cards, menus, composer, chips, tag pills, inputs */
  --surface-3: #292724;      /* icon tiles, hover, selected rows, secondary buttons */
  --surface-3-hover: #33302C;
  --glass: #0F1012;          /* top bars: flat Night, no blur */
  --glass-sheet: #171615;
  --blur: none;              /* flat brand: no backdrop blur */

  /* Lines: 1 px hairlines only */
  --line: #2C2A27;
  --line-strong: #3B3834;
  --line-hover: #4A4642;
  --line-on-media: rgba(255, 255, 255, 0.18);
  --line-on-media-strong: rgba(255, 255, 255, 0.86);   /* the input-still thumbnail ring */
  --glass-media: #0B0B0C;       /* plates, chips and buttons over media: flat Ink */
  --glass-media-hover: #201F1D;
  --track-on-media: rgba(255, 255, 255, 0.24);
  --wave-rest: #4A4642;

  /* Text tiers (AA on every surface: text-3 is 5.5:1 on surface-3, the lowest pair) */
  --text-1: #FFFFFF;         /* titles, prompts, values */
  --text-2: #C9C5BF;         /* body, nav links at rest, descriptions (Fog) */
  --text-3: #A29D96;         /* sublines, labels, hints (Ash) */
  --text-on-media: #FFFFFF;
  --text-on-media-2: rgba(255, 255, 255, 0.86);

  /* The one accent: tangerine. Fills carry Ink text (6.3:1). Tangerine text only on dark (6.1:1 on Night,
     5.3:1 on its own 12% wash). White on tangerine only for the A mark and display type of 24 px and up. */
  --accent: #FA5E20;
  --accent-hover: #FF7438;
  --accent-pressed: #E14F14;
  --on-accent: #0B0B0C;
  --accent-text: #FA5E20;
  --accent-wash: rgba(250, 94, 32, 0.12);
  --accent-line: #FA5E20;
  --accent-sweep: rgba(250, 94, 32, 0.07);
  --brand-top: #FA5E20;
  --credit-glyph: var(--accent-text);

  /* Neutral primary: White with Ink (send, Recreate, the white buttons of the genre) */
  --ink-btn: #FFFFFF;
  --on-ink-btn: #0B0B0C;

  /* Status: always an icon and a word */
  --ok: #1FA463;
  --warn: #F5B700;
  --bad: #FF8A9B;
  --ok-wash: rgba(31, 164, 99, 0.14);
  --warn-wash: rgba(245, 183, 0, 0.12);
  --bad-wash: rgba(255, 138, 155, 0.12);

  /* Veils and scrims: flat Ink, never a gradient */
  --scrim: rgba(11, 11, 12, 0.56);
  --scrim-reveal: rgba(11, 11, 12, 0.60);   /* the wall-tile reveal: white 13 px text stays 5.2:1 even over a white frame */
  --scrim-strong: rgba(11, 11, 12, 0.64);
  --scrim-top: rgba(11, 11, 12, 0.40);
  --veil: rgba(11, 11, 12, 0.76);           /* behind sheets, the drawer, search and the pop-up */

  /* ---------------------------------------------------------------- type */
  --font-title: "Archivo Condensed", "Arial Narrow", "Roboto Condensed", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;   /* UI headings */
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;   /* its own tabular figures (tnum) */
  --opsz-display: normal;
  --opsz-head: normal;
  --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-15: 15px; --fs-17: 17px; --fs-20: 20px;
  --fs-24: 24px; --fs-32: 32px; --fs-40: 40px; --fs-56: 56px; --fs-72: 72px;
  --fw-regular: 400; --fw-medium: 500; --fw-semi: 600; --fw-bold: 700; --fw-heavy: 800;
  --lh-body: 1.5; --lh-head: 1.2; --lh-display: 1.05;
  --track-72: -0.03em; --track-56: -0.025em; --track-40: -0.02em; --track-32: -0.015em;
  --track-24: -0.01em; --track-20: -0.005em; --track-17: 0em; --track-15: 0em;
  --track-label: 0.01em; --track-caps: 0.08em;
  --track-display: var(--track-56); --track-head: var(--track-20);
  --stretch-display: 100%;

  /* Display titles (Archivo Condensed 800, UPPERCASE). Desktop / phone sizes and line heights. Tracking is 0
     from 28 to 40 px, slightly negative from 64 px, slightly open at 16 to 24 px (checked at DPR 2). */
  --d-hero: 112px;  --d-hero-lh: 0.88;   --d-hero-ph: 56px;   /* the homepage headline */
  --d-xl: 72px;     --d-xl-lh: 0.92;     --d-xl-ph: 44px;     /* page and banner heroes, the studio line */
  --d-l: 48px;      --d-l-lh: 0.96;      --d-l-ph: 36px;      /* banners, the pop-up, the tag-cloud heading */
  --d-m: 32px;      --d-m-lh: 1.06;      --d-m-ph: 26px;      /* section titles */
  --d-s: 24px;      --d-s-lh: 1.06;      --d-s-ph: 22px;      /* large card titles */
  --d-xs: 18px;     --d-xs-lh: 1.12;     --d-xs-ph: 18px;     /* card titles under media */
  --d-foot: 120px;  --d-foot-ph: 52px;                         /* the footer block line */
  --d-track-big: -0.01em; --d-track: 0em; --d-track-small: 0.01em;

  /* ---------------------------------------------------------------- space and layout */
  --s-2: 2px; --s-4: 4px; --s-6: 6px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-20: 20px;
  --s-24: 24px; --s-32: 32px; --s-40: 40px; --s-48: 48px; --s-64: 64px; --s-96: 96px;
  --gutter: 16px;            /* app pages: 16 phone, 24 from 600, 32 from 1024 */
  --gap-gallery: 8px;        /* 8 phone, 16 desktop */
  --site-gutter: 16px;       /* the genre: 16 px side gutters at every width, desktop included */
  --site-max: 1560px;        /* content cap: at 1560 a 4-column wall tile is 384 px and a 5-column reel 299 px, inside the half-size rule */
  --gap-wall: 8px;           /* 16:9 and masonry walls */
  --gap-reel: 16px;          /* 9:16 reel walls and rows */
  --gap-row: 20px;           /* media-card rows */
  --gap-tools: 12px;         /* tool-card grid */
  --sec-gap: 64px;           /* between sections (phone 40) */
  --sec-head: 20px;          /* subline to the first tile */
  --wall-cap: 896px;         /* a wall is cut at this height and ends in its View all pill */
  --wall-cap-reel: 1024px;
  /* The site wall (site-wall/spec.md 4): its height is 3.325 tile widths, at most 1,024 px, so every width keeps the
     same composition (about two tall tiles a column, cut by the band); tiles at most 327 px (our 654 px sources at 2x),
     so the wide pages stop at 2,034 px (2,002 of content between 16 px gutters). */
  --wall-cap-ratio: 3.325;
  --wall-cap-max: 1024px;
  --wall-cap-ratio-ph: 6.6;  /* phones: two columns */
  --wall-band: 208px;        /* the flat Ink band over the wall's foot (144 px on phones) */
  --wall-tile-max: 327px;
  --site-max-wide: 2002px;   /* the home and /clips/: 6 columns of 327 px and 5 gaps of 8 */
  --strip-h: 36px;           /* announcement strip */
  --nav-h: 56px;             /* site nav (sticky) */
  --bar-h: 56px;             /* app top bar */
  --side-w: 248px;           /* app sidebar */
  --rail-w: 72px;
  --panel-w: 360px;
  --thread-w: 720px;
  --mega-w: 1180px;          /* two-column mega menu, plus its preview pane */
  --composer-w: 800px;       /* the studio composer */
  --sticky-w: 760px;         /* the sticky composer bar */
  --toast-w: 360px;
  --tile-icon: 48px;         /* icon tiles in menus and search rows */

  /* Controls */
  --btn-sm: 32px; --btn-md: 40px; --btn-lg: 48px; --btn-xl: 56px;
  --chip-h: 32px;            /* composer chips (44 on phones) */
  --go-w: 128px; --go-h: 80px;   /* the big Go in the studio composer; the hero composer uses 64 */
  --fab-h: 52px;

  /* Radii: four values, plus 4 px for badges and keyboard hints */
  --r-xs: 4px;      /* badges, kbd */
  --r-sm: 8px;      /* chips, tag pills, small thumbs, menu items, tooltips */
  --r-md: 12px;     /* buttons, icon tiles, media tiles, wall tiles, rows */
  --r-lg: 20px;     /* cards, menus, panels, dialogs, banners, the composer */
  --r-pill: 999px;  /* pills, status chips, round arrows, dots */

  /* Elevation: none. Overlays get a flat 1 px hairline instead of a shadow. */
  --shadow-on-media: none;
  --shadow-overlay: 0 0 0 1px #3B3834;

  /* Layers */
  --z-nav: 30; --z-sticky: 32; --z-fab: 33; --z-menu: 34;
  --z-veil: 40; --z-sheet: 50; --z-dialog-veil: 60; --z-dialog: 61; --z-toast: 80; --z-tip: 90;

  /* Motion: short and quiet (colour, opacity, small moves); the energy is in the footage */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);     /* sheets, drawers, the sticky bar */
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);       /* hover colour and opacity */
  --t-fast: 180ms;
  --t-hover: 200ms;
  --t-sheet: 240ms;
  --t-panel: 260ms;

  /* Focus: 2 px ring in the accent with a 2 px canvas gap */
  --focus: 0 0 0 2px var(--canvas), 0 0 0 4px var(--accent-text);

  /* Voice orbs: flat per-voice avatars (brand palette) */
  --orb-harriet: #FA5E20;
  --orb-oliver: #C9C5BF;
  --orb-isla: #F4F2EE;
  --orb-rhys: #6E6963;
  --orb-amara: #C23A04;
  --orb-theo: #A29D96;
  --orb-elspeth: #4A4642;
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --gap-gallery: 16px; } }
@media (max-width: 899px) { :root { --sec-gap: 40px; --chip-h: 44px; --nav-h: 56px; } }

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 1ms; --t-hover: 1ms; --t-sheet: 1ms; --t-panel: 1ms; }
}
