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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  background-color: var(--background);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}
h1 { letter-spacing: -0.02em; line-height: 1.15; }
h2 { letter-spacing: -0.015em; line-height: 1.2; }
h3, h4, h5, h6 { letter-spacing: -0.01em; line-height: 1.3; }

/* Standard sub-page title. The home hero owns the site's only <h1>; every
   other page titles itself with <h2 class="page-title">, always left-aligned.
   See CLAUDE.md "Typography hierarchy". */
.page-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  text-align: left;
  margin: 0 0 16px;
}

p { margin: 0; }

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
a:hover { color: var(--unique); }

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  letter-spacing: 0;
}

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

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

input, textarea, select {
  font: inherit;
  color: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) {
  .container { padding: 0; }
}
/* Gutter guard: keep every .container page aligned with the header, even when
   a page-wrapper class on the same element sets a `padding: Npx 0` shorthand
   (which would otherwise collapse the side gutter and make the page wider than
   the header). `body .container` outranks a single page-wrapper class, so the
   24px gutter always wins; page wrappers only control top/bottom spacing.
   See CLAUDE.md "Page container width". */
body .container { padding-inline: 24px; }
@media (max-width: 768px) {
  body .container { padding-inline: 0; }
}

.page {
  padding-top: 32px;
  padding-bottom: 64px;
}

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

.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;
}
