:root {
  --ink: #171717;
  --paper: #f5f7f3;
  --line: #171717;
  --acid: #d9ff4d;
  --pink: #ff6aa9;
  --cyan: #75e2ef;
  --space: clamp(1rem, 2vw, 2.5rem);
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; overflow-y: scroll; scrollbar-gutter: stable; }
body { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.site-header { align-items: baseline; background: var(--paper); border-bottom: 2px solid var(--line); column-gap: clamp(2rem, 5vw, 6rem); display: flex; flex-wrap: wrap; row-gap: 0.25rem; padding: 1rem var(--space); }
.wordmark { font-size: 0.9rem; font-weight: 400; letter-spacing: 0; text-decoration: none; }
.site-header nav { align-items: baseline; column-gap: 0.6rem; display: flex; flex: 0 0 auto; flex-wrap: wrap; font-size: 0.9rem; max-width: 100%; row-gap: 0.15rem; }
.site-header nav a { text-decoration: none; white-space: nowrap; }
.nav-separator { white-space: nowrap; }
.site-header nav a[aria-current="page"] { font-weight: 700; }

.intro { border-bottom: 2px solid var(--line); padding: 2.5rem var(--space); }
.eyebrow { font-size: 0.8rem; font-weight: 700; margin: 0; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { font-size: 3rem; font-weight: 500; line-height: 0.96; margin-bottom: 0; }
.intro h1 { font-size: 1.8rem; line-height: 1; margin-bottom: 1.25rem; }
.intro > p:last-child { font-size: 1.05rem; line-height: 1.4; margin: 0; max-width: 42rem; }

.work-index { display: block; }
.work-row { display: contents; }
.work-card { border-bottom: 2px solid var(--line); min-width: 0; }
.work-card__image { align-items: center; background: var(--acid); display: flex; min-height: 17rem; overflow: hidden; }
.work-row .work-card:nth-child(3n) .work-card__image { background: var(--pink); }
.work-row .work-card:nth-child(3n + 2) .work-card__image { background: var(--cyan); }
.work-card__image img { height: 100%; object-fit: cover; transition: transform 180ms ease; width: 100%; }
.work-card__image:hover img, .work-card__image:focus-visible img { transform: scale(1.025); }

.swipe-page { touch-action: pan-y; }
.swipe-page__content { transform: translateX(var(--swipe-offset, 0)); transition: transform 160ms ease-out; }
.swipe-page.is-swiping .swipe-page__content { transition: none; }
.work-page__content { padding: 0 var(--space) 1rem; }
.work-page__cover { margin: 0 auto; max-width: 100%; position: relative; width: fit-content; }
.work-page__artwork { display: block; max-width: 100%; }
.work-page__artwork img { height: auto; margin: 0 auto; max-height: 75vh; object-fit: contain; width: auto; }
.work-page__title { font-size: 1rem; font-weight: 400; line-height: 1.4; margin: 0.25rem auto 0; max-width: 42rem; text-align: center; }
.work-page__additional { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.work-page__additional-item { margin: 0; }
.work-page__body { color: #595959; font-size: 0.9rem; line-height: 1.4; margin: 0.75rem auto 0; max-width: 38rem; text-align: center; }
.work-page__body p:last-child { margin-bottom: 0; }
.work-page__pager { align-items: center; display: flex; inset: 50% var(--space) auto; justify-content: space-between; pointer-events: none; position: fixed; transform: translateY(-50%); z-index: 1; }
.work-page__pager-link { color: var(--ink); font-size: 1.5rem; line-height: 1; padding: 0.25rem; pointer-events: auto; text-decoration: none; }
.work-page__pager-link:not(.work-page__pager-link--next) { transform: translateX(-100%); }
.work-page__pager-link--next { margin-left: auto; transform: translateX(100%); }
.other-works { margin-top: 1rem; padding-top: 0.5rem; }
.other-works h2 { font-size: 1rem; font-weight: 400; margin-bottom: 1rem; }
.other-works__flow { align-content: flex-start; display: flex; flex-wrap: wrap; gap: 0.2rem 0.35rem; justify-content: flex-start; padding: 0.2rem; }
.other-work { display: block; flex: 0 0 auto; max-width: 6rem; }
.other-work img { height: 2.75rem; object-fit: contain; width: auto; }
.other-work--current { outline: 2px solid var(--ink); outline-offset: 2px; }

.about-page__content { display: grid; gap: 2rem; padding: 2rem var(--space); }
.about-page__photo { margin: 0; }
.about-page__photo img { height: auto; width: 100%; }
.about-page__section h1, .about-page__section h2 { font-size: 1rem; font-weight: 400; line-height: 1.2; margin-bottom: 1rem; }
.about-page__section h3 { font-size: 1rem; font-weight: 400; margin: 2rem 0 0.75rem; }
.about-page__section p, .about-page__clients { font-size: 1rem; line-height: 1.4; margin-bottom: 1rem; }
.about-page__clients { list-style: none; margin: 0; padding: 0; }
.about-page__links { display: grid; gap: 0.35rem; }
.site-footer { border-top: 2px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: space-between; padding: 1rem var(--space); }
.site-footer p { margin: 0; }


@media (min-width: 373px) {
  .work-index { --work-row-gap: clamp(1.5rem, 3vw, 3.5rem); display: grid; gap: var(--work-row-gap); padding: var(--work-row-gap) var(--space) var(--space); }
  .work-row { align-items: flex-start; display: flex; gap: clamp(0.75rem, 1.5vw, 1.5rem); min-width: 0; }
  .work-card { border: 0; flex: var(--work-aspect) 1 0; min-width: 0; }
  .work-card__image { background: transparent !important; display: block; min-height: 0; overflow: visible; }
  .work-card__image img { height: auto; object-fit: contain; width: 100%; }
  .work-card__image:hover img, .work-card__image:focus-visible img { transform: none; }
  .work-row--single { justify-content: flex-start; }
  .work-row--single .work-card { flex: 0 0 var(--work-single-width); max-width: 100%; }
}

@media (min-width: 900px) {
  :root {
    --space: max(2vw, calc(35vw - 297px), calc(50vw - 800px));
  }

  .about-page__content { align-items: start; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 372px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .intro { grid-template-columns: 1fr; }
  .work-card { border-right: 0; }
  .work-card__image { min-height: 0; }
  .work-card__image img { aspect-ratio: 4 / 3; object-fit: cover; }
  .work-page__body { margin-left: 0; }
  .work-page__pager { right: var(--viewport-scrollbar-width, 0px); }
  .work-page__pager-link--next { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
