/* Alapstílusok: reset, tipográfia, közös segédosztályok */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-feature-settings: "cv11", "ss01", "ss03";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(32px, 4.4vw, 56px); }
h2 { font-size: clamp(24px, 2.6vw, 34px); }
h3 { font-size: 17px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--primary); }

img, svg, video, iframe { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--aurora-iris);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: rgba(108, 92, 231, .35); }

/* Kis, nagybetűs, ritkított felirat a címek fölött (pl. "BEJELENTKEZÉS") */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: 0; }
.muted { color: var(--muted); }

.aurora-text {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Önálló 404.html oldal */
.notfound { align-items: center; justify-content: center; padding: 20px; }
.notfound__box { max-width: 460px; width: 100%; background: var(--card-solid); }
.notfound__logo { margin: 0 auto 12px; }

/* Háttér: az edumetric.app sötétkék fényfoltjai + mozgó háló (js/components/background.js) */
body {
  background:
    radial-gradient(900px 600px at 10% -10%, var(--bg-glow-1), transparent),
    radial-gradient(900px 600px at 90% -10%, var(--bg-glow-2), transparent),
    var(--bg);
  background-attachment: fixed;
}
#bg-anim {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { #bg-anim { display: none; } }
