/**
 * base.css — Gradbau.com
 * Reset, typography, layout foundations.
 * Requires tokens.css to be loaded first.
 */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-theme), color var(--transition-theme);
}
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-d);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--text);
}
h1 { font-size: clamp(32px, 4vw, 58px); }
h2 { font-size: clamp(24px, 3vw, 40px); }
h3 { font-size: clamp(18px, 2vw, 26px); }
h4 { font-size: 18px; }
p  { line-height: 1.65; color: var(--text-2); }
small { font-size: 11px; color: var(--text-3); }
code, kbd {
  font-family: var(--font-m);
  font-size: .9em;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1px 5px;
}

/* LAYOUT */
.container    { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 36px; }
.container-sm { max-width: 780px; }
.container-lg { max-width: 1400px; }

/* DIVIDER */
.divider { height: 1px; background: var(--line); margin: 0; }

/* SKIP LINK (a11y) */
.skip-link {
  position: absolute;
  top: -100%; left: 16px;
  z-index: var(--z-toast);
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  transition: top .15s;
}
.skip-link:focus { top: 16px; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* FOCUS */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

/* RESPONSIVE */
@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 761px) {
  .hide-desktop { display: none !important; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
