:root {
  color-scheme: light;
  --background: #fbfaf8;
  --text: #1f1f1d;
  --muted: #625f5b;
  --link: #315d86;
  --line: #e4e0da;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

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

.page {
  width: min(100% - 2.5rem, 48rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 5rem);
}

.portrait {
  display: block;
  width: 6rem;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 2.5rem);
  align-items: center;
  margin-top: clamp(1rem, 4vw, 2.5rem);
}

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

h1 {
  max-width: 18ch;
  margin-bottom: 0.85rem;
  font-size: 3.5rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.wave {
  display: inline-block;
  margin-right: 0.05em;
  font-size: 0.82em;
  letter-spacing: 0;
}

.role {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.45;
}

.details {
  margin-top: 2rem;
}

.details > p {
  max-width: 39rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.08rem);
}

.details > p + p {
  margin-top: 1.25rem;
}

footer {
  margin-top: clamp(3.5rem, 9vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.4rem;
  font-size: 0.85rem;
}

.section-label {
  margin: 0;
  color: #8b8781;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

/*
 * Dormant styles for the commented 5b featured-work block in index.html.
 * They become active automatically when that block is uncommented.
 */
.featured-work {
  margin-top: clamp(3.5rem, 9vw, 5rem);
}

.featured-work > .section-label {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(12rem, 1fr);
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: center;
  padding-top: 1.5rem;
}

.featured-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  background: #efede8;
  object-fit: cover;
}

.featured-copy h2 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.featured-copy p {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.featured-copy a {
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 36rem) {
  .page {
    width: min(100% - 2rem, 48rem);
    padding-block: 2.5rem;
  }

  .intro {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 1rem;
  }

  .portrait {
    width: 4.75rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .role {
    font-size: 1.1rem;
  }

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

@media (max-width: 27rem) {
  .intro {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: 4.5rem;
  }

  h1 {
    font-size: 2.25rem;
  }
}
