/* Tóth Viktor épületgépész: design tokens.
   Alap: a felhasználó design systemje, anti-pattern tisztítással (lásd DESIGN.md).
   Sötét az alap; a világos téma ugyanazokkal a nevekkel él (rendszerbeállítás vagy [data-theme]). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 75% 100%;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  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;
}

:root {
  /* Sötét téma (alap) */
  color-scheme: dark;
  --bg: #071013;
  --surface: #0e1a1f;
  --surface-raised: #15262d;
  --line: #24383f;
  --line-strong: #5c7a84;
  --ink: #eaf5f5;
  --ink-muted: #a3b8bd;
  --cold: #3fe3ea;
  --cold-soft: #0f3a40;
  --on-cold: #04181b;
  --heat: #ff6b2c;
  --heat-hover: #ff8a57;
  --on-heat: #1c0a02;
  --success: #4be0a0;
  --warning: #ffc633;
  --danger: #ff6e8a;
  --focus: #7df3f8;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px rgba(0, 0, 0, 0.45);

  /* Betűk */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Figtree", "Segoe UI", system-ui, sans-serif;

  /* Típusskála (fluid, magyar hosszú szavakhoz óvatosan) */
  --fs-display: clamp(2.5rem, 1.35rem + 5.4vw, 4.75rem);
  --lh-display: 1.02;
  --fs-display-lg: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  --lh-display-lg: 1.08;
  --fs-h2: clamp(1.5rem, 1.25rem + 1.1vw, 1.875rem);
  --fs-h3: 1.3125rem;
  --fs-body-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.8125rem;
  --tracking-display: -0.03em;
  --tracking-tight: -0.015em;
  --tracking-label: 0.08em;
  --measure: 62ch;

  /* Térköz */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --gutter: clamp(16px, 5vw, 48px);
  --space-section: var(--space-8);

  /* Sarkok */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Mozgás: csak lassuló görbe, nincs visszapattanás */
  --dur-fast: 140ms;
  --dur-base: 260ms;
  --dur-slow: 700ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 900px) {
  :root { --space-section: var(--space-9); }
}

/* Világos téma: rendszerbeállítás szerint, ha nincs kézzel kényszerítve */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f2f6f6;
    --surface: #ffffff;
    --surface-raised: #e4ecee;
    --line: #cbd8db;
    --line-strong: #62767c;
    --ink: #08181d;
    --ink-muted: #43565c;
    --cold: #006775;
    --cold-soft: #d3eef0;
    --on-cold: #ffffff;
    --heat: #b83a08;
    --heat-hover: #963007;
    --on-heat: #ffffff;
    --success: #0a6b43;
    --warning: #7a5200;
    --danger: #b01e3f;
    --focus: #00505c;
    --shadow-card: 0 1px 2px rgba(8, 24, 29, 0.08), 0 16px 32px rgba(8, 24, 29, 0.1);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f2f6f6;
  --surface: #ffffff;
  --surface-raised: #e4ecee;
  --line: #cbd8db;
  --line-strong: #62767c;
  --ink: #08181d;
  --ink-muted: #43565c;
  --cold: #006775;
  --cold-soft: #d3eef0;
  --on-cold: #ffffff;
  --heat: #b83a08;
  --heat-hover: #963007;
  --on-heat: #ffffff;
  --success: #0a6b43;
  --warning: #7a5200;
  --danger: #b01e3f;
  --focus: #00505c;
  --shadow-card: 0 1px 2px rgba(8, 24, 29, 0.08), 0 16px 32px rgba(8, 24, 29, 0.1);
}
