:root {
  color-scheme: light;
  --canvas: #ffffff;
  --ink: #111111;
  --muted: #767676;
  --line: #dedede;
  --soft: #f5f5f3;
  --max: 1080px;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--canvas);
  transform: translateY(-160%);
}

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

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

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

.wordmark {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 28px;
}

nav a,
footer a {
  color: var(--muted);
  font-size: 15px;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--ink);
}

.intro {
  padding-block: clamp(88px, 14vw, 164px) clamp(96px, 14vw, 156px);
}

.folio,
.eyebrow,
.project-number,
.project-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.folio {
  margin: 0 0 42px;
}

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

h1 {
  max-width: 970px;
  margin-bottom: 40px;
  font-size: clamp(44px, 7.6vw, 86px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.99;
  text-wrap: balance;
}

.dek {
  max-width: 720px;
  margin-bottom: 0;
  color: #2d2d2d;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.35;
  text-wrap: pretty;
}

.work,
.about {
  padding-block: 72px;
  border-top: 1px solid var(--ink);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  margin-bottom: 56px;
}

.section-heading h2,
.about h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(31px, 4vw, 50px);
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project {
  display: grid;
  grid-template-columns: 54px minmax(220px, 0.9fr) minmax(320px, 1.25fr);
  gap: 28px;
  align-items: start;
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.project:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 6px;
}

.project-title,
.project-description,
.project-meta {
  display: block;
}

.project-title {
  margin-bottom: 12px;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.project-description {
  max-width: 390px;
  margin-bottom: 28px;
  color: #3d3d3d;
  font-size: 17px;
}

.project-media {
  display: grid;
  place-items: center;
  min-height: 250px;
  overflow: hidden;
  background: var(--soft);
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  transition: transform 240ms ease;
}

.project:hover .project-media img,
.project:focus-visible .project-media img {
  transform: scale(1.018);
}

.media-paper img {
  width: min(78%, 330px);
  height: auto;
  object-fit: contain;
}

.media-dark {
  background: #0d0e12;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 46px;
}

.about-copy {
  max-width: 610px;
  color: #2d2d2d;
  font-size: 20px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-block: 34px 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    padding-block: 22px;
  }

  nav {
    gap: 18px;
  }

  .intro {
    padding-block: 72px 88px;
  }

  .folio {
    margin-bottom: 30px;
  }

  h1 {
    margin-bottom: 28px;
  }

  .work,
  .about {
    padding-block: 54px;
  }

  .section-heading,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .about-grid {
    margin-top: 28px;
  }

  .project {
    grid-template-columns: 36px 1fr;
    gap: 18px;
  }

  .project-media {
    grid-column: 1 / -1;
    min-height: 210px;
  }

  .project-description {
    margin-bottom: 20px;
  }
}

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

  .project-media img {
    transition: none;
  }
}
