:root {
  --bg: #fcfcfb;
  --ink: #111111;
  --muted: #5f5f5f;
  --line: #d8d8d8;
  --link: #1f4e8c;
  --max: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  font-size: 19px;
}

.wrap {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

a {
  color: var(--link);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

header {
  padding: 2.2rem 0 1.2rem;
}

.site-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 0.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 1.02rem;
}

nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  margin: 1.6rem 0 2.2rem;
  font-size: 0.98rem;
}

nav a {
  margin-right: 1rem;
  color: var(--ink);
  text-decoration: none;
}

nav a:last-child {
  margin-right: 0;
}

nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
}

main {
  padding-bottom: 4rem;
}

section {
  padding: 0 0 2.3rem;
  margin-bottom: 2.3rem;
  border-bottom: 1px solid var(--line);
}

section:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}

h2 {
  font-size: 1.45rem;
  margin: 0 0 1rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.08rem;
  margin: 1.5rem 0 0.45rem;
  line-height: 1.25;
}

p {
  margin: 0 0 1rem;
}

.intro {
  font-size: 1.08rem;
}

.quote {
  margin: 1.4rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--line);
  font-style: italic;
  color: var(--muted);
}

ul {
  padding-left: 1.2rem;
  margin: 0.8rem 0 1rem;
}

li {
  margin-bottom: 0.7rem;
}

.small {
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  padding: 0 0 3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  nav a {
    display: inline-block;
    margin-right: 0.8rem;
    margin-bottom: 0.35rem;
  }
}
