/* ==========================================================================
   Hamiyaan — design tokens. Every colour, size and duration lives here.
   Brand palette from the identity guide (v0.1); "deep" variants exist only
   so text and buttons pass WCAG AA contrast.
   ========================================================================== */

@font-face { font-family: "GE SS Two"; font-weight: 300; font-style: normal; font-display: swap;
  src: url("../fonts/GESSTwo-Light.woff") format("woff"), url("../fonts/GESSTwo-Light.otf") format("opentype"); }
@font-face { font-family: "GE SS Two"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/GESSTwo-Medium.woff") format("woff"), url("../fonts/GESSTwo-Medium.otf") format("opentype"); }
@font-face { font-family: "GE SS Two"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/GESSTwo-Bold.woff") format("woff"), url("../fonts/GESSTwo-Bold.otf") format("opentype"); }

:root {
  color-scheme: light;
  /* ---- Brand colours ---- */
  --navy: #00304a;          /* primary ink + dark surfaces */
  --navy-soft: #0b4463;     /* hover on navy */
  --coral: #e65b46;         /* decorative only (not for text) */
  --coral-deep: #bf3d28;    /* buttons with white text, error text */
  --coral-deeper: #a53320;  /* hover */
  --teal: #1a9aab;          /* decorative */
  --teal-deep: #0d6b79;     /* text, links, panels with white text */
  --sand: #cf966a;          /* decorative + panels with navy text */
  --sand-deep: #7d4f27;     /* text on light backgrounds */
  --maroon: #83373a;        /* from the logo's top band */
  --green: #2f7b61;
  --beige: #e5d7ba;
  --sky: #93cadf;
  --mist: #eaf4f8;          /* light tint of the sky blue */
  --paper: #ffffff;

  /* ---- Semantic roles ---- */
  --ink: var(--navy);
  --ink-soft: #35586b;      /* secondary text (AA on white and mist) */
  --line: rgb(0 48 74 / .16);
  --line-strong: rgb(0 48 74 / .55);
  --focus: var(--teal-deep);
  --focus-on-dark: #ffd9a8;
  --danger: var(--coral-deep);
  --success: var(--green);

  /* ---- Translucent surfaces and lines (alpha steps, per cent) ---- */
  --white-16: rgb(255 255 255 / .16); --white-18: rgb(255 255 255 / .18); --white-20: rgb(255 255 255 / .2);
  --white-30: rgb(255 255 255 / .3);  --white-40: rgb(255 255 255 / .4);  --white-50: rgb(255 255 255 / .5);
  --white-55: rgb(255 255 255 / .55); --white-80: rgb(255 255 255 / .8);  --white-86: rgb(255 255 255 / .86);
  --white-92: rgb(255 255 255 / .92); --white-97: rgb(255 255 255 / .97);
  --navy-12: rgb(0 48 74 / .12); --navy-68: rgb(0 48 74 / .68); --navy-82: rgb(0 48 74 / .82);

  /* ---- Status tints (form errors and the staff panel; every ink/tint pair is >= 4.5:1) ---- */
  --danger-tint: #fff6f4;
  --ok-ink: #1d4f3d;      --ok-tint: #e7f4ee;
  --err-ink: #7d2314;     --err-tint: #fbeae7;
  --warn-ink: #6b4a00;    --warn-tint: #fff4d6;   --warn-line: #8a6300;   /* border is >= 3:1 on white */
  --neutral-ink: #444444; --neutral-tint: #eeeeee;

  /* ---- Typography ---- */
  --font: "GE SS Two", "Segoe UI", Tahoma, "Noto Naskh Arabic", system-ui, sans-serif;
  --fw-light: 300; --fw-medium: 500; --fw-bold: 700;
  --fs-display: clamp(2.6rem, 1.1rem + 5.6vw, 6rem);
  --fs-h1: clamp(2.3rem, 1.2rem + 3.8vw, 4.25rem);
  --fs-h2: clamp(1.9rem, 1.1rem + 2.6vw, 3.4rem);
  --fs-h3: clamp(1.3rem, 1rem + 1vw, 1.8rem);
  --fs-lead: clamp(1.15rem, 1rem + .6vw, 1.45rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --lh-display: 1.28;
  --lh-heading: 1.4;
  --lh-body: 1.95;
  --measure: 40rem;

  /* ---- Spacing (4px base) ---- */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem; --s-9: 7rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 8rem);

  /* ---- Layout ---- */
  --container: 1240px;
  --container-narrow: 820px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 96px;
  /* breakpoints (used in @media): 640 / 900 / 1120 / 1440 */

  /* ---- Shape ---- */
  --r-sm: .375rem;
  --r-arch: 999px 999px 0 0;   /* signature arch frame */
  --bw: 2px;

  /* ---- Elevation (used sparingly) ---- */
  --shadow-1: 0 1px 2px rgb(0 48 74 / .08);
  --shadow-2: 0 18px 40px -18px rgb(0 48 74 / .35);

  /* ---- Motion ---- */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-1: 150ms; --dur-2: 280ms; --dur-3: 700ms;
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300304a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");   /* a data URI cannot read variables, so its stroke is navy (#00304a) here */
  --flow: -1;   /* reading direction on the x axis (RTL = -1); transforms have no logical axis, so they multiply by this */
}

@media (max-width: 640px) { :root { --header-h: 72px; } }
