/* Reset + typography primitives */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

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

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}

h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 400; line-height: 1.1; }

.serif,
h1.serif, h2.serif, h3.serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

p {
  color: var(--c-ink-2);
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.32;
  color: var(--c-ink);
  font-weight: 300;
  max-width: 28ch;
}

.body-text {
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--c-ink-2);
  max-width: 50ch;
}

.small {
  font-size: var(--t-small);
  color: var(--c-ink-3);
}

.meta {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-3);
}

.accent { color: var(--c-accent); }

/* Layout primitives */
main {
  display: block;
  min-height: calc(100vh - var(--nav-h));
}

.container {
  width: 100%;
  padding-inline: var(--pad-x);
}

section.block {
  padding-block: var(--pad-y);
  position: relative;
}

section.block + section.block {
  border-top: 1px solid var(--c-rule-soft);
}

.paper-2 { background: var(--c-paper-2); }
.paper-3 { background: var(--c-paper-3); }

.row { display: flex; gap: clamp(24px, 4vw, 64px); flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.grid-asym { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 32px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }

@media (max-width: 900px) {
  .grid-2,
  .grid-asym {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .grid-3 { grid-template-columns: 1fr; }
}
