:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #111318;
  --muted: #666b75;
  --line: #dfe2e7;
  --soft: #f4f5f7;
  --signal: #2457e6;
  --page-x: clamp(24px, 6vw, 96px);
  --content: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--signal) 38%, transparent);
  outline-offset: 5px;
  border-radius: 2px;
}

.site-header,
main,
.site-footer {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: var(--page-x);
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.wordmark-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 750;
}

.header-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  transition: color 160ms ease;
}

.header-link:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 92px));
  padding-block: clamp(88px, 13vw, 172px) 96px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero-rule {
  position: absolute;
  top: 0;
  left: var(--page-x);
  width: 1px;
  height: clamp(58px, 8vw, 104px);
  background: var(--signal);
  transform-origin: top;
  animation: draw-rule 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--signal);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(58px, 10.6vw, 152px);
  font-weight: 660;
  letter-spacing: -0.075em;
  line-height: 0.86;
}

.hero-copy {
  max-width: 610px;
  margin: clamp(44px, 7vw, 82px) 0 0 auto;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 27px);
  letter-spacing: -0.025em;
  line-height: 1.38;
}

.work {
  padding-block: clamp(88px, 12vw, 160px);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: 48px;
  margin-bottom: clamp(64px, 9vw, 112px);
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 620;
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-heading p {
  align-self: end;
  color: var(--muted);
  font-size: 18px;
}

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

.work-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr);
  gap: 48px;
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.work-row h3,
.work-row p {
  margin: 0;
}

.work-row h3 {
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.work-row p {
  color: var(--muted);
  font-size: 18px;
}

.contact {
  padding-block: clamp(92px, 13vw, 176px);
}

.contact h2 {
  max-width: 820px;
  margin: 0 0 clamp(54px, 8vw, 92px);
  font-size: clamp(44px, 7vw, 98px);
  font-weight: 640;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.email-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 23px;
  border-block: 1px solid var(--ink);
  font-size: clamp(19px, 2.2vw, 30px);
  font-weight: 540;
  letter-spacing: -0.025em;
  transition:
    color 170ms ease,
    padding-inline 170ms ease;
}

.email-link:hover {
  padding-inline: 12px;
  color: var(--signal);
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  gap: 16px 32px;
  padding-block: 30px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.footer-note {
  justify-self: end;
}

@keyframes draw-rule {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 76px;
  }

  .hero {
    min-height: auto;
    padding-block: 80px 72px;
  }

  .hero-rule {
    height: 48px;
  }

  .hero h1 {
    font-size: clamp(52px, 17vw, 88px);
    line-height: 0.9;
  }

  .hero-copy {
    margin-left: 0;
  }

  .section-heading,
  .work-row {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 20px;
  }

  .work-row {
    gap: 10px;
  }

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

  .footer-note {
    justify-self: start;
    margin-top: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
