:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #111827;
  --muted: #5f6b7a;
  --line: #e5e7eb;
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 32px 32px;
}

.hero {
  max-width: 760px;
  padding-bottom: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.06;
  text-wrap: balance;
}

.lede {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.4;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  text-wrap: balance;
}

article p,
footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.section-heading,
footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin-bottom: 18px;
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 38%, transparent);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.section-heading a,
footer a {
  font-size: 13px;
  font-weight: 650;
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.projects a {
  min-width: 0;
  padding: 18px;
  text-decoration: none;
}

.projects a + a {
  border-left: 1px solid var(--line);
}

.projects strong,
.projects span {
  display: block;
}

.projects strong {
  margin-bottom: 6px;
  font-size: 14px;
}

.projects span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

footer {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

footer nav {
  display: flex;
  gap: 18px;
  white-space: nowrap;
}

@media (max-width: 680px) {
  main {
    padding: 28px 20px 24px;
  }

  .pillars,
  .projects {
    grid-template-columns: 1fr;
  }

  .projects a + a {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  footer nav {
    flex-wrap: wrap;
    white-space: normal;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --surface: #161a22;
    --text: #f3f4f6;
    --muted: #a8b0bd;
    --line: #2a303b;
    --accent: #60a5fa;
  }
}
