/* Ultra-minimal, white background, Inter 300, purple accent */
:root {
  --bg: #ffffff;
  --ink: #0f172a; /* main text */
  --muted: #64748b; /* subtle text */
  --accent: #a166b8; /* your purple */
  --border: #eceff3; /* light hairline (kept only for header/footer if wanted) */
  --maxw: 900px;
  --padx: 1.25rem;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans";
  font-weight: 300; /* thin */
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--padx);
}

/* Sections: remove top borders (no lines above Part 1/2/3) and add anchor offset */
.section {
  padding: 2rem 0;
  scroll-margin-top: 72px;
}

/* Type */
h1,
h2 {
  margin: 0 0 0.5rem;
  line-height: 1.28;
  font-weight: 400;
}
h1 {
  font-size: clamp(1.6rem, 2vw+1rem, 2rem);
  color: var(--accent);
} /* purple title */
h2 {
  font-size: clamp(1.2rem, 1.2vw+1rem, 1.35rem);
}
p {
  margin: 0.5rem 0 1rem;
}
.small {
  font-size: 0.9rem;
}
.muted {
  color: var(--muted);
}

/* Header + nav: keep header hairline only, remove nav line */
.site-header {
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  padding-top: 1.25rem;
  padding-bottom: 0.25rem;
}
.kicker,
.sub,
.due {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 0.9rem;
  padding: 0.5rem 0 1rem;
}
.nav a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nav a:hover {
  text-decoration: none;
}

/* Side-by-side media */
.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: 1fr; /* stack on mobile */
}
@media (min-width: 760px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

figure {
  margin: 0;
}
figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1.25rem;
}
.block {
  margin-top: 1rem;
}

/* Optional footer (if you add one later) */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  margin-top: 2rem;
}
