@font-face {
  font-family: "Manrope";
  src: url("fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: only light;
  --page-background: #f6f3eb;
  background: var(--page-background);
  color: #191c17;
  font-family: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
picture, img, .intro h1 svg { display: block; }
img, .intro h1 svg { width: 100%; height: auto; }
.art-filters { position: absolute; pointer-events: none; }
.name-gap { display: none; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#name-clearance feFlood { flood-color: var(--page-background); }
.portrait img { filter: url("#portrait-ink"); }

.page {
  position: relative;
  container-type: inline-size;
  max-width: 90.5rem;
  margin-inline: auto;
}

.header {
  position: absolute;
  inset: 0 2.75% auto 53.9%;
  z-index: 1;
  padding-block-start: 2.35cqw;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .4rem;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  font-size: clamp(.75rem, 1.4cqw, 1.25rem);
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  flex-shrink: 0;
  color: inherit;
  text-decoration: none;
  text-underline-offset: .24em;
}

nav a:hover, nav a:focus-visible { text-decoration: underline; }
nav a:focus-visible { outline: 1px solid currentColor; outline-offset: -1px; }

.hero {
  display: grid;
  grid-template-columns: 50.6% minmax(0, 1fr);
  align-items: start;
}

.intro {
  margin: 21cqw 5.75cqw 0 1.35cqw;
}

.intro p {
  max-width: 23ch;
  margin: 1.7cqw 0 0;
  color: #57584e;
  font-size: clamp(1rem, 3.15cqw, 2.85rem);
  letter-spacing: -.025em;
  line-height: 1.19;
  text-wrap: balance;
}

.work {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7cqw;
  margin: 1.13cqw 3.25cqw 0;
  padding: 2.25cqw .15cqw 3.4cqw;
  border-top: 1px solid #76776a;
}

.work h2 {
  font-size: clamp(1rem, 2.52cqw, 2.28rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.035em;
}

.work p {
  margin-top: .34em;
  color: #57584e;
  font-size: clamp(.84rem, 1.55cqw, 1.4rem);
  line-height: 1.34;
}

@media (max-width: 43rem) {
  .header {
    position: relative;
    inset: auto;
    padding: 0 clamp(.65rem, 5.45cqw, 1.75rem);
  }

  nav {
    font-size: clamp(.72rem, 3.13cqw, 1.15rem);
    gap: clamp(.2rem, 1.5cqw, .65rem);
  }

  nav a {
    -webkit-text-stroke: 5px var(--page-background);
    paint-order: stroke fill;
  }

  .hero {
    display: flex;
    flex-direction: column;
  }

  .portrait {
    width: 84.3%;
    margin: -1.25rem 0 0 5.9%;
  }

  .intro {
    position: relative;
    margin: -19.4cqw 5.55cqw 0;
  }

  .intro h1 {
    width: 67.3cqw;
    filter: url("#name-clearance");
  }

  .name-gap { display: inline; fill: var(--page-background); }

  .intro p {
    max-width: none;
    margin-top: 4cqw;
    font-size: clamp(.77rem, 4.04cqw, 1.4rem);
    line-height: 1.3;
    text-wrap: wrap;
  }

  .work {
    grid-template-columns: minmax(0, 1fr);
    gap: 4.65cqw;
    margin: 3.1cqw 5.45cqw 0;
    padding: 4.5cqw 0 6.3cqw;
  }

  .work h2 { font-size: clamp(1.24rem, 5.65cqw, 2.15rem); }
  .work p { font-size: clamp(.875rem, 3.55cqw, 1.22rem); }
}

@media (max-width: 23rem) {
  .header { padding-inline: .65rem; }
}
