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

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text-main);
  font-family: var(--font-mono);
  position: relative;
  min-height: 100vh;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  color: #ffffff;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(34px, 4vw, 50px);
}

h2 {
  font-size: clamp(30px, 3.5vw, 44px);
}

h3 {
  font-size: clamp(18px, 2vw, 24px);
}

em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent) 0%, #d8ff66 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

p {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
}

kbd {
  display: inline-block;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

code {
  font-family: var(--font-mono);
}

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