:root {
  color-scheme: light;
  --ink: #1d3130;
  --muted: #526866;
  --accent: #087b70;
  --line: #dce8e4;
  --paper: #fbfcfa;
  --soft: #edf5f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark span,
h1 span,
h2 span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 600;
}

nav a,
footer a {
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  color: var(--accent);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 72px;
  padding: 120px 0 130px;
}

.intro-copy {
  max-width: 650px;
}

.eyebrow,
.section-number,
.project-label,
.project-tag {
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.045em;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
}

.lead {
  max-width: 580px;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.4;
}

.intro-copy > p:not(.eyebrow, .lead),
.section-heading > p,
.project > p:not(.project-label, .project-tag),
.contribution p,
.connect > div > p:last-child {
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.not-found {
  padding: 120px 0 160px;
}

.portrait {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}

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

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-heading > p {
  max-width: 330px;
  margin-bottom: 0;
}

.section-number,
.project-label {
  color: var(--accent);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.projects {
  display: grid;
  gap: 20px;
}

.project,
.contributions {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.project-featured {
  display: flex;
  flex-direction: column;
  background: var(--soft);
}

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

.contributions > .project-label {
  grid-column: 1 / -1;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

h3 a {
  text-decoration: none;
}

h3 a:hover,
.social-links a:hover {
  color: var(--accent);
}

h3 a span,
.social-links a span {
  color: var(--accent);
  font-size: 0.8em;
}

.project-tag {
  margin: auto 0 0;
  padding-top: 42px;
  color: var(--accent);
}

.contribution {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.contribution h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.contribution p {
  margin-bottom: 0;
}

.connect {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.connect h2 {
  margin-bottom: 20px;
}

.social-links {
  min-width: 220px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-links a {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
  text-decoration: none;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer p {
  margin: 0;
}

@media (max-width: 700px) {
  .page {
    padding: 0 22px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 75px 0 85px;
  }

  .portrait {
    grid-row: 1;
    width: 160px;
  }

  .section {
    padding: 60px 0;
  }

  .section-heading,
  .connect {
    display: block;
  }

  .section-heading > p {
    margin-top: 16px;
  }

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

  .social-links {
    margin-top: 28px;
  }
}

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