:root {
  --bg: #ffffff;
  --text: #171717;
  --muted: #666666;
  --line: #e8e8e8;
  --accent: #111111;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.site-title {
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}

.narrow {
  max-width: 760px;
}

.hero {
  padding: 4rem 0 5rem;
}

.kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.2;
}

p, li {
  font-size: 1.03rem;
}

.lead {
  max-width: 720px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.links a {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}

.project-list, .post-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.project-card, .post-list article {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.project-card h2, .post-list h2 {
  margin-top: 0;
}

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

.article p {
  margin: 1.25rem 0;
}

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }
}
