:root {
  color-scheme: light;
  --paper: #f1eee7;
  --ink: #181814;
  --muted: #68655d;
  --rule: #bdb8ac;
  --surface: #e2ddd2;
  --focus: #a54022;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-110%);
}

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

.site-header,
.site-footer,
.home,
.home-work,
.work-page {
  width: min(100% - 2.5rem, 90rem);
  margin-inline: auto;
}

.site-header {
  min-height: 5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  font-size: 0.875rem;
}

.wordmark {
  width: fit-content;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a,
.language-link {
  text-decoration: none;
}

.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.language-link {
  justify-self: end;
}

.home {
  max-width: 66rem;
  padding-block: clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: clamp(11rem, 20vw, 15rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.portrait {
  aspect-ratio: 1;
  background: var(--surface);
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.introduction {
  min-width: 0;
}

.page-intro p,
.video-card a,
.site-footer {
  color: var(--muted);
}

.introduction h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.65rem);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.introduction p {
  max-width: 44rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
}

.work-page {
  padding-block: clamp(3rem, 8vw, 8rem);
}

.home-work {
  padding-block: clamp(2.5rem, 6vw, 5rem);
  scroll-margin-top: 1.5rem;
}

.home-work-heading {
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.home-work-heading h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.page-intro {
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.page-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.client-list {
  border-top: 1px solid var(--ink);
}

.client-section {
  display: grid;
  grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  padding-block: 2rem 5rem;
  border-bottom: 1px solid var(--rule);
}

.client-heading {
  align-self: start;
}

.client-heading h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-controls button {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.carousel-controls button:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

.carousel-controls button:disabled {
  border-color: var(--rule);
  color: var(--rule);
  cursor: default;
}

.video-strip {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(19rem, 68vw);
  column-gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--ink) transparent;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
}

.video-card {
  scroll-snap-align: start;
}

.video-card.landscape {
  grid-column: span 2;
  width: min(36rem, 82vw);
}

.embed-shell {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.instagram .embed-shell {
  aspect-ratio: 7 / 11;
}

.landscape .embed-shell {
  aspect-ratio: 16 / 9;
}

.embed-shell iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;
}

.instagram .embed-shell iframe {
  height: calc(100% + 11.875rem);
}

.video-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 500;
}

.video-card a {
  font-size: 0.8rem;
}

.business-details {
  max-width: 48rem;
  margin: 0;
  border-top: 1px solid var(--ink);
}

.business-page .page-intro h1 {
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  overflow-wrap: anywhere;
}

.business-details div {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}

.business-details dt {
  color: var(--muted);
}

.business-details dd {
  margin: 0;
}

.business-details address {
  font-style: normal;
}

.site-footer {
  min-height: 8rem;
  padding-block: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 1rem;
  border-top: 1px solid var(--ink);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
}

.business-link {
  justify-self: end;
}

@media (max-width: 58rem) {
  .client-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .client-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 1rem;
  }

  .carousel-controls {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }
}

@media (max-width: 40rem) {
  .site-header,
  .site-footer,
  .home,
  .home-work,
  .work-page {
    width: min(100% - 1.5rem, 90rem);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 4.5rem;
  }

  .site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-bottom: 0.9rem;
  }

  .language-link {
    grid-column: 2;
    grid-row: 1;
  }

  .home {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: 2rem 3.5rem;
  }

  .portrait {
    width: 10rem;
  }

  .introduction h1 {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .page-intro {
    padding-bottom: 3rem;
  }

  .home-work-heading {
    padding-bottom: 2.5rem;
  }

  .page-intro h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .client-section {
    padding-block: 1.5rem 3rem;
  }

  .carousel-controls {
    display: none;
  }

  .video-strip {
    grid-auto-columns: 78vw;
    margin-right: -0.75rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .business-details div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .business-link {
    justify-self: start;
  }
}

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