/* Gahez landing tokens. Violet, neutrals and amber mirror the app
   (Gahez-App-Core/lib/src/config/theme/jz_colors.dart). Crest, sand and herb
   are landing-only world hues sampled from the hodhod drafts; resample them
   when the 3D model's materials are final. */

@font-face { font-family: "Alexandria"; src: url("fonts/alexandria-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Alexandria"; src: url("fonts/alexandria-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Alexandria"; src: url("fonts/alexandria-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;

  /* Brand violet (app ramp) */
  --violet-50: #F8F0FE;
  --violet-100: #F0DFFD;
  --violet-200: #E2C2FB;
  --violet-300: #D09CF9;
  --violet-500: #B660F7; /* flat brand: cap, vest, ticket, stamp, one action (ink label) */
  --violet-600: #9A45DC; /* pressed, white label */
  --violet-700: #7C2FB8; /* violet text < 24px */
  --violet-800: #5E2290;
  --violet-900: #3F1563;

  /* Warm neutrals (app) */
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --sunken: #F2EFE9;
  --line: #E7E2D9;
  --line-strong: #D9D3C8;
  --ink: #1B1712;
  --ink-2: #4F4840;
  --ink-3: #6F665B;

  /* Amber: hold / running late (app) */
  --amber: #E8A317;
  --amber-tint: #FDF3DC;
  --amber-text: #7A4F00;

  /* Crest: the hoopoe's orange crest. World hue for "ready". */
  --crest-50: #FEF4E8;
  --crest-100: #FCE4C6;
  --crest-200: #F9CB94;
  --crest-500: #F08A24;
  --crest-700: #9A4A06;
  --crest-900: #552904;

  /* Sand: the bird's body. Warm fills, ground. */
  --sand-100: #FBEBD3;
  --sand-300: #F2B86A;

  /* Herb: parsley / molokhia. World hue for "collect". */
  --herb-50: #EEF7EF;
  --herb-100: #D6EDD9;
  --herb-200: #AEDAB5;
  --herb-500: #3E9B4F;
  --herb-700: #22663A;
  --herb-900: #123A20;

  /* Type */
  --font: "Alexandria", "Noto Sans Arabic", "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;
  --fs-display: clamp(2.6rem, 1.6rem + 4.6vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-h3: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --lh-display: 1.25; /* Arabic default; :lang(en) tightens it */
  --lh-body: 1.75;

  /* Space (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px; --s11: 160px;

  /* Radius scale */
  --r-chip: 8px; --r-input: 12px; --r-card: 24px; --r-panel: 40px; --r-pill: 999px;

  /* Motion */
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring-character: cubic-bezier(0.34, 1.25, 0.64, 1); /* characters and props only */
  --t-press: 150ms;
  --t-state: 250ms;
  --t-focal: 800ms;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

:root:lang(en) { --lh-display: 1.05; --lh-body: 1.55; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body);
  font-weight: 400; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; letter-spacing: 0; }
:lang(en) h1, :lang(en) .display { letter-spacing: -0.03em; }
:lang(en) h2 { letter-spacing: -0.02em; }
p { text-wrap: pretty; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--violet-700); text-underline-offset: 0.2em; }
::selection { background: var(--violet-200); color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet-700); outline-offset: 2px; border-radius: 4px; }
input, select, button { font: inherit; color: inherit; accent-color: var(--violet-500); caret-color: var(--violet-700); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons: verb + object, >= 48px */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s5); border-radius: var(--r-pill); border: 0;
  font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-state) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-brand { background: var(--violet-500); color: var(--ink); }
.btn-brand:active { background: var(--violet-600); color: #fff; }
.btn-quiet { background: var(--sunken); color: var(--ink); }
@media (hover: hover) {
  .btn-primary:hover { background: #2E2820; }
  .btn-brand:hover { background: var(--violet-300); }
  .btn-quiet:hover { background: var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
