:root {
  --fg: #1a1a1a;
  --fg-muted: #5a5a5a;
  --fg-faint: #888;
  --bg: #faf9f6;
  --rule: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.75rem 2rem;
}

header {
  margin-bottom: 2rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.lede {
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  color: var(--fg);
  margin-bottom: 2.5rem;
  max-width: 32em;
  line-height: 1.45;
}

.about {
  margin-bottom: 3rem;
  max-width: 34em;
}

.about p {
  color: var(--fg-muted);
  font-size: 1rem;
}

.contact h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  margin-bottom: 0.5rem;
}

.contact a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s ease;
  font-size: 1.05rem;
}

.contact a:hover,
.contact a:focus {
  text-decoration-color: var(--fg);
}

footer {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  border-top: 1px solid var(--rule);
  color: var(--fg-faint);
  font-size: 0.85rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f0eee8;
    --fg-muted: #b8b6b0;
    --fg-faint: #888680;
    --bg: #161513;
    --rule: rgba(255, 255, 255, 0.1);
  }
}
