/* =========================
   Theme variables
========================= */
:root {
  --bg: #f8f8f6;
  --text: #111111;
  --muted: #6b7280;
  --border: #e7e5e4;
  --card: #ffffff;
}

/* =========================
   Reset & box model
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
}

/* Mobile refinement */
@media (max-width: 640px) {
  body {
    font-size: 16px;
    line-height: 1.65;
  }
}

/* =========================
   Headings
========================= */
h1, h2, h3 {
  margin: 0 0 16px 0;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 20px;
}

/* =========================
   Links
========================= */
a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

a:focus-visible {
  outline: 2px solid rgba(0,0,0,0.15);
  outline-offset: 2px;
}

/* =========================
   Text rhythm
========================= */
p {
  max-width: 720px;
  margin-bottom: 24px;
}

/* Muted utility */
.muted {
  color: var(--muted);
}