:root {
  color-scheme: light;
  --background: #fafaf8;
  --surface: #ffffff;
  --text: #202936;
  --muted: #566273;
  --accent: #3563c8;
  --accent-dark: #244fae;
  --border: #e2e8f0;
  --focus-ring: #1f57c8;
  --max-width: 900px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

::selection {
  background: #dbe6ff;
  color: var(--text);
}

.container {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.4rem;
  background: var(--text);
  color: var(--surface);
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.header-content,
.footer-content,
.nav-list,
.brand {
  display: flex;
  align-items: center;
}

.header-content {
  min-height: 4.5rem;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  gap: 0.55rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.nav-list {
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 0.4rem;
  color: var(--muted);
  font-size: 0.925rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--accent-dark);
}

.hero {
  padding: clamp(4.5rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem);
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--accent-dark);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.16;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.1rem;
  font-size: clamp(2.45rem, 6vw, 4.25rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.hero-lede {
  max-width: 39rem;
  margin-bottom: 1rem;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 500;
  line-height: 1.5;
}

.hero-copy,
.content-column > p,
.interest-card p,
.section-heading > p,
.error-content > p {
  color: var(--muted);
}

.hero-copy {
  max-width: 38rem;
  margin-bottom: 1.65rem;
}

.text-link {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--border);
}

.content-column {
  max-width: 43rem;
}

.content-column > p:last-child {
  margin-bottom: 0;
}

.interests-section {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.75rem;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 20rem;
  font-size: 0.95rem;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.interest-card {
  min-height: 13.5rem;
  padding: 1.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.interest-icon {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.15rem;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.interest-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-content {
  min-height: 5.5rem;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-content p {
  margin: 0;
}

.error-page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.error-main {
  display: grid;
  flex: 1;
  place-items: center;
  padding: 4rem 1.5rem;
}

.error-content {
  width: min(100%, 34rem);
}

.error-content h1 {
  margin-bottom: 0.75rem;
  color: var(--accent-dark);
  font-size: clamp(4.5rem, 18vw, 8rem);
  letter-spacing: -0.08em;
}

.error-lede {
  margin-bottom: 0.65rem;
  color: var(--text) !important;
  font-size: 1.3rem;
  font-weight: 650;
}

.error-content > p:not(.eyebrow):not(.error-lede) {
  margin-bottom: 1.5rem;
}

a:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .header-content {
    min-height: 4.25rem;
    gap: 0.75rem;
  }

  .nav-list {
    gap: 0;
  }

  .nav-list a {
    padding: 0.4rem;
    font-size: 0.875rem;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin-top: 0.8rem;
  }

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

  .interest-card {
    min-height: 0;
  }

  .footer-content {
    min-height: 0;
    padding: 1.4rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
