:root {
  --paper: #f3efe6;
  --paper-deep: #ebe4d8;
  --ink: #171713;
  --muted: #686259;
  --rule: #c8c0b3;
  --copper: #a45532;
  --copper-dark: #78391f;
  --serif: "Iowan Old Style", Baskerville, "Times New Roman", Times, serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.page {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent 63px,
      rgb(23 23 19 / 5.5%) 64px,
      transparent 65px
    ),
    var(--paper);
}

.shell {
  width: min(100%, 1600px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  flex-direction: column;
}

.masthead {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  animation: reveal 650ms ease-out both;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  width: max-content;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand::after {
  content: "Z/26";
  color: var(--copper);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  vertical-align: top;
}

nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

nav a {
  position: relative;
  padding: 8px 0;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

nav a::after,
.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

nav a:hover::after,
nav a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  min-height: 450px;
  display: grid;
  grid-template-columns: minmax(0, 8.25fr) minmax(310px, 3.75fr);
  gap: 76px;
  align-items: end;
  padding: 64px 0 58px;
}

.hero-copy {
  animation: rise 750ms 80ms cubic-bezier(0.2, 0.72, 0.22, 1) both;
}

.eyebrow,
.card-number,
.approach-label {
  margin: 0;
  color: var(--copper-dark);
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 29px;
  height: 1px;
  background: var(--copper);
}

h1 {
  max-width: 930px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(64px, 5.7vw, 91px);
  font-weight: 400;
  line-height: 0.91;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--copper);
  font-weight: 400;
}

.hero-aside {
  padding: 22px 0 3px 26px;
  border-left: 1px solid var(--rule);
  animation: rise 750ms 180ms cubic-bezier(0.2, 0.72, 0.22, 1) both;
}

.hero-aside p {
  max-width: 390px;
  margin: 0 0 31px;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.42;
  letter-spacing: -0.012em;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 0 0 7px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.text-link::before {
  content: "↗";
  color: var(--copper);
  font-size: 17px;
  font-weight: 400;
  line-height: 0.6;
}

.work {
  border-top: 1px solid var(--ink);
  animation: rise 750ms 280ms cubic-bezier(0.2, 0.72, 0.22, 1) both;
}

.work-heading {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.work-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.work-heading p {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.work-grid {
  display: grid;
  grid-template-columns: 1.18fr 1.05fr 0.92fr 0.92fr;
  min-height: 270px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--ink);
}

.work-card {
  position: relative;
  min-width: 0;
  padding: 26px 25px 23px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-right: 1px solid var(--rule);
  transition: color 280ms ease, background-color 280ms ease;
}

.work-card:first-child {
  padding-left: 0;
}

.work-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.work-card::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms ease;
}

a.work-card:hover,
a.work-card:focus-visible {
  background: var(--paper-deep);
  outline: none;
}

a.work-card:hover::before,
a.work-card:focus-visible::before {
  transform: scaleX(1);
}

.card-number {
  color: var(--muted);
  font-size: 9px;
}

.work-card h3 {
  margin: 42px 0 10px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.032em;
}

.work-card p {
  max-width: 270px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.domain,
.status {
  margin-top: auto;
  padding-top: 24px;
  color: var(--copper-dark);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.domain::after {
  content: "  ↗";
  font-size: 12px;
}

.status {
  color: var(--muted);
}

.approach {
  min-height: 180px;
  display: grid;
  grid-template-columns: 2.1fr 8.15fr 1.75fr;
  gap: 30px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  animation: rise 750ms 360ms cubic-bezier(0.2, 0.72, 0.22, 1) both;
}

.approach-label {
  align-self: start;
  padding-top: 58px;
}

.approach p {
  margin: 0;
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.17;
  letter-spacing: -0.028em;
}

.cta {
  justify-self: end;
  display: inline-grid;
  width: 124px;
  height: 124px;
  place-items: center;
  padding: 23px;
  color: var(--paper);
  background: var(--copper);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.13em;
  border-radius: 50%;
  transition: background-color 250ms ease, transform 250ms ease;
}

.cta:hover,
.cta:focus-visible {
  background: var(--copper-dark);
  transform: rotate(-3deg) scale(1.035);
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

footer {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  animation: reveal 650ms 440ms ease-out both;
}

footer a {
  color: var(--ink);
  text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
  color: var(--copper-dark);
}

.error-page {
  width: min(100% - 40px, 920px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 28px;
}

.error-page .eyebrow {
  margin: 0;
}

.error-page h1 {
  font-size: clamp(58px, 10vw, 112px);
}

.error-page .text-link {
  width: max-content;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .shell {
    padding: 0 28px;
  }

  .page {
    background: var(--paper);
  }

  .masthead {
    min-height: 78px;
  }

  nav {
    gap: 18px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 54px 0;
  }

  .hero-aside {
    max-width: 650px;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-card {
    min-height: 240px;
    border-bottom: 1px solid var(--rule);
  }

  .work-card:first-child {
    padding-left: 25px;
  }

  .work-card:nth-child(2) {
    border-right: 0;
  }

  .work-card:nth-child(3) {
    border-bottom: 0;
  }

  .work-card:last-child {
    padding-right: 25px;
    border-bottom: 0;
  }

  .approach {
    grid-template-columns: 1fr 4fr auto;
  }
}

@media (max-width: 620px) {
  .shell {
    padding: 0 20px;
  }

  .masthead {
    min-height: 74px;
  }

  .brand {
    font-size: 25px;
  }

  .brand::after {
    display: none;
  }

  nav {
    gap: 13px;
  }

  nav a {
    font-size: 9px;
  }

  .hero {
    min-height: auto;
    gap: 38px;
    padding: 52px 0;
  }

  h1 {
    font-size: clamp(47px, 14vw, 58px);
  }

  .hero-aside {
    padding-left: 19px;
  }

  .hero-aside p {
    font-size: 18px;
  }

  .work-heading p {
    display: none;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card:nth-child(3) {
    min-height: 220px;
    padding-right: 22px;
    padding-left: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .work-card:first-child {
    padding-left: 22px;
  }

  .work-card:last-child {
    padding-right: 22px;
    border-bottom: 0;
  }

  .work-card h3 {
    margin-top: 34px;
  }

  .approach {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 38px 0;
  }

  .approach-label {
    padding-top: 0;
  }

  .approach p {
    font-size: 28px;
  }

  .cta {
    justify-self: start;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
