/* ============================================================
   KLEIN BASE
   assets/css/base.css
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
img, video { display: block; max-width: 100%; }
svg { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease);
}
a:hover { color: var(--accent-hover); }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--size-base);
  font-weight: var(--weight-light);
  line-height: var(--leading-base);
  min-height: 100dvh;
  transition: background-color var(--dur-slow) var(--ease), color var(--dur-slow) var(--ease);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--weight-light);
  color: var(--text-bright);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-wide);
}
h1 { font-size: var(--size-2xl); }
h2 { font-size: var(--size-xl); }
h3 { font-size: var(--size-lg); }
h4 { font-size: var(--size-md); }
h5 { font-size: var(--size-base); }
h6 { font-size: var(--size-sm); }
p { line-height: var(--leading-loose); }
p + p { margin-top: var(--sp-3); }
.label {
  font-size: var(--size-xs);
  font-weight: var(--weight-reg);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-dim);
}
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--accent-soft);
  color: var(--accent-hover);
  padding: 1px 5px;
  border-radius: var(--r-xs);
}
pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  overflow-x: auto;
}
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
* { scrollbar-width: thin; scrollbar-color: var(--scrollbar) transparent; }
::selection { background: var(--accent-soft); color: var(--text-bright); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
hr { border: none; border-top: 1px solid var(--border); margin: var(--sp-5) 0; }
