/* ============================================================
   RESET + BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.625;
  color: var(--color-ink-strong);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  background: var(--color-bg);
}

main { flex: 1; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink-strong);
}

h1 { font-size: 52px; line-height: 60px; letter-spacing: -0.02em; }
h2 { font-size: 38px; line-height: 48px; font-weight: 600; }
h3 { font-size: 28px; line-height: 36px; font-weight: 600; }

@media (max-width: 480px) {
  h1 { font-size: 36px; line-height: 44px; }
  h2 { font-size: 28px; line-height: 36px; }
}
h4 { font-size: 22px; line-height: 30px; font-weight: 600; }
h5 { font-size: 18px; line-height: 26px; font-weight: 600; }

p { max-width: 70ch; }
p + p { margin-top: var(--space-4); }

a {
  color: var(--color-brand-action);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--color-brand-action-hover); }
a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}

img { max-width: 100%; display: block; }

ul { list-style: none; }

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

pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* ============================================================
   LAYOUT UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-lg {
  max-width: var(--container-lg);
}

@media (min-width: 640px) {
  .container { padding: 0 var(--space-6); }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--space-8); }
}

/* ============================================================
   BUTTONS
