/* ============================================================
   Klarhet — Base Reset + Typography (Editorial / Swiss)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  min-height: 100vh;
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
h1 { font-size: 56px; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: 28px; line-height: 1.1; }
h3 { font-size: 18px; line-height: 1.2; letter-spacing: -0.01em; }

p { margin: 0; }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
  padding: 0;
}

input, textarea {
  font-family: inherit;
  color: inherit;
}

input::placeholder, textarea::placeholder { color: var(--text-faint); }

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* Eyebrow / breadcrumb / column header */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tnum { font-variant-numeric: tabular-nums; }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

/* Focus rings */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Animations */
@keyframes k-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes k-rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Visually hidden (a11y) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ───── Typography utility classes ──────────────────────────── */

.display-lg {
  font-family: var(--font-display);
  font-size: var(--display-lg);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.display-md {
  font-family: var(--font-display);
  font-size: var(--display-md);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-family: var(--font-display);
  font-size: var(--headline-lg);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.headline-sm {
  font-family: var(--font-display);
  font-size: var(--headline-sm);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.title-lg {
  font-family: var(--font-sans);
  font-size: var(--title-lg);
  font-weight: 600;
  line-height: 1.3;
}

.title-md {
  font-family: var(--font-sans);
  font-size: var(--title-md);
  font-weight: 500;
  line-height: 1.3;
}

.body-lg {
  font-size: var(--body-lg);
  line-height: 1.6;
}

.body-md {
  font-size: var(--body-md);
  line-height: 1.5;
}

.body-sm {
  font-size: var(--body-sm);
  line-height: 1.5;
}

.label-md {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.label-sm {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-muted {
  color: var(--text-faint);
}
