/* ═══════════════════════════════════════════════════════
   Kártyaudvar — base.css
   Reset, custom properties, typography
   ═══════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--c-text);
    background-color: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-accent-hover); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--c-accent); }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
table { border-collapse: collapse; width: 100%; }

/* ── Custom Properties ─────────────────────────────── */
:root {
    /* Colors */
    --c-bg:           #0B0E11;
    --c-surface:      #151A1F;
    --c-surface2:     #1D2329;
    --c-border:       #283038;
    --c-text:         #E6ECF0;
    --c-text-dim:     #8A9AA5;
    --c-accent:       #2B7A78;
    --c-accent-hover: #3A9E9B;
    --c-accent-soft:  rgba(43, 122, 120, 0.12);
    --c-gold:         #C9A95C;
    --c-white:        #F5F8FA;
    --c-error:        #E05C4D;
    --c-success:      #5CB06E;

    /* Fonts */
    --f-heading: 'Fraunces', Georgia, serif;
    --f-body:    'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing (8px grid) */
    --s-4:   0.25rem;
    --s-8:   0.5rem;
    --s-12:  0.75rem;
    --s-16:  1rem;
    --s-24:  1.5rem;
    --s-32:  2rem;
    --s-40:  2.5rem;
    --s-48:  3rem;
    --s-64:  4rem;
    --s-80:  5rem;
    --s-96:  6rem;
    --s-120: 7.5rem;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --dur:  280ms;

    /* Layout */
    --max-w:    1200px;
    --header-h: 64px;

    /* Radius */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
}

/* ── Typography ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-heading);
    color: var(--c-white);
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw + 0.25rem, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw + 0.15rem, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: var(--s-16); }
p:last-child { margin-bottom: 0; }

/* Eyebrow / Label */
.kv-eyebrow {
    font-family: var(--f-body);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--c-accent-hover);
    margin-bottom: var(--s-12);
    display: block;
}

/* Section heading spacing */
.kv-section__heading {
    margin-bottom: var(--s-16);
}

.kv-section__desc {
    color: var(--c-text-dim);
    max-width: 640px;
    margin-bottom: var(--s-32);
}

/* Selection */
::selection {
    background: var(--c-accent);
    color: var(--c-white);
}
