*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #faf9f7;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --brand: #1d4ed8;
  --accent: #1d4ed8;
  --border: #e8e6e1;
  --max-width: 38rem;
  --space: clamp(1.25rem, 4vw, 2rem);
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.site-header {
  padding: var(--space) var(--space) 0;
  max-width: calc(var(--max-width) + var(--space) * 2);
  margin: 0 auto;
  width: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo:hover .logo-mark {
  background: #1e40af;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.35rem;
  background: var(--brand);
  color: #faf9f7;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max-width) + var(--space) * 2);
  margin: 0 auto;
  padding: calc(var(--space) * 2) var(--space) calc(var(--space) * 3);
}

section + section {
  margin-top: clamp(2.5rem, 8vh, 4rem);
  padding-top: clamp(2rem, 6vh, 3rem);
  border-top: 1px solid var(--border);
}

.hero {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lead {
  margin: 0;
  font-size: 1.1875rem;
  color: var(--text-muted);
  max-width: 34ch;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

p:last-child {
  margin-bottom: 0;
}

.about p,
.scope p {
  max-width: 42ch;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
}

.contact p {
  max-width: 42ch;
}

.email-line {
  margin-top: 1rem;
}

.email-line a {
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
}

.email-line a:hover {
  text-decoration: underline;
}

.site-footer {
  padding: var(--space);
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --text: #eceae6;
    --text-muted: #a8a6a0;
    --accent: #60a5fa;
    --border: #2a2926;
  }

  .pill-list li {
    background: #1a1a18;
  }
}
