/* ============================================================================
   karrieraszallodaban.hu — DESIGN TOKENS
   Source of truth: "Színek és betűtípusok.docx" (client, 2026-07-29).
   That document specifies THREE colours and ONE typeface. Nothing here adds a
   fourth hue — every other value is an alpha step or a blend of those three.
   DO NOT EDIT. Extend in pages.css.
   ========================================================================== */

/* ---------- 1. FONT ---------------------------------------------------- */
/* Niveau Grotesk (HVD, Hannes von Döhren). Client-named fallback: Arial.
   NOTE: we hold DESKTOP licences. Web embedding needs its own HVD web licence
   — see BRIEF.md §9. Until cleared, this is a prototype-only embed.          */

@font-face {
  font-family: "Niveau Grotesk";
  src: url("../fonts/NiveauGrotesk-Light.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Niveau Grotesk";
  src: url("../fonts/NiveauGrotesk-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Niveau Grotesk";
  src: url("../fonts/NiveauGrotesk-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Niveau Grotesk";
  src: url("../fonts/NiveauGrotesk-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {

  /* ---------- 2. COLOUR — the three, and only the three ---------------- */
  --green:  #015046;   /* sötét zöld  — R1 G80 B70   */
  --mint:   #A0F59B;   /* világos zöld — R160 G245 B155 */
  --white:  #FFFFFF;

  /* derived: alpha steps of --green (never a new hue) */
  --green-92: rgba(1, 80, 70, .92);
  --green-82: rgba(1, 80, 70, .82);   /* BODY TEXT on light. 5.7:1 on white. */
  --green-58: rgba(1, 80, 70, .58);   /* secondary text on light. 3.4:1 — large text only. */
  --green-20: rgba(1, 80, 70, .20);   /* hairline on light */
  --green-08: rgba(1, 80, 70, .08);   /* hover ground on light */
  --green-04: rgba(1, 80, 70, .04);

  /* derived: alpha steps of --mint */
  --mint-40:  rgba(160, 245, 155, .40);
  --mint-22:  rgba(160, 245, 155, .22);  /* hairline on dark */
  --mint-12:  rgba(160, 245, 155, .12);

  /* derived: white steps, for text on the green ground */
  --white-78: rgba(255, 255, 255, .78);
  --white-56: rgba(255, 255, 255, .56);
  --white-14: rgba(255, 255, 255, .14);

  /* the only off-white ground: --green at 4% over white */
  --paper: #F4F7F5;

  /* MEASURED CONTRAST (sRGB, WCAG 2.1) — do not "improve" these blindly:
       white   on --green   9.39:1   AAA
       --mint  on --green   7.15:1   AAA
       --green on white    11.4 :1   AAA
       --green-82 on white  5.71:1   AA  (body text)
       --green-58 on white  3.42:1   large text / UI glyphs only
       --mint  on white     1.31:1   ✗ NEVER text. Rules and fills only.      */

  /* ---------- 3. TYPE --------------------------------------------------- */
  --font: "Niveau Grotesk", Arial, Helvetica, sans-serif;

  --fs-display: clamp(2.75rem, 7.2vw, 7rem);
  --fs-h1:      clamp(2.25rem, 4.6vw, 4rem);
  --fs-h2:      clamp(1.75rem, 3.2vw, 2.85rem);
  --fs-h3:      clamp(1.15rem, 1.6vw, 1.5rem);
  --fs-body:    clamp(1rem, 1.05vw, 1.125rem);
  --fs-small:   .9375rem;
  --fs-label:   .75rem;

  --lh-display: .95;
  --lh-h1:     1.03;
  --lh-h2:     1.08;
  --lh-h3:     1.2;
  --lh-body:   1.6;

  --ls-display: -.03em;
  --ls-h1:      -.02em;
  --ls-h2:      -.015em;
  --ls-label:    .16em;

  --measure: 68ch;

  /* ---------- 4. SPACE + GRID ------------------------------------------ */
  --page-max:  1600px;
  --gutter:    clamp(16px, 3.5vw, 56px);   /* page side padding */
  --tile-gap:  clamp(8px, .9vw, 14px);
  --row:       clamp(150px, 15vw, 230px);  /* one tile row unit */

  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 96px;  --s-10: 128px;

  --section-y: clamp(72px, 9vw, 152px);

  /* ---------- 5. SHAPE -------------------------------------------------- */
  /* The identity is geometric and flat. Radius is 0 everywhere except pills. */
  --radius:      0;
  --radius-pill: 999px;
  --rule:        2px;                       /* the threshold rule weight */
  --hairline:    1px;
  /* No shadow tokens exist on purpose. If you need one, the design is wrong. */

  /* ---------- 6. MOTION ------------------------------------------------- */
  --ease:     cubic-bezier(.16, 1, .3, 1);
  --t-fast:   180ms;
  --t-base:   320ms;
  --t-slow:   600ms;
  --t-scene:  900ms;
  --stagger:  55ms;

  /* ---------- 7. LAYERS -------------------------------------------------- */
  --z-base: 0; --z-tile-hover: 2; --z-sticky: 40; --z-nav: 50; --z-modal: 100;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 1ms; --t-base: 1ms; --t-slow: 1ms; --t-scene: 1ms; --stagger: 0ms; }
}
