@font-face {
  font-family: "Fraunces Local";
  src: url("/assets/fonts/fraunces-700-800.woff2") format("woff2"),
    url("assets/fraunces-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
}

@font-face {
  font-family: "Switzer Local";
  src: url("/assets/fonts/switzer-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Switzer Local";
  src: url("/assets/fonts/switzer-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f5f1e8;
  --ink: #051133;
  --accent: #8f6d1e;
  --rule: #dfdbd0;
  --serif: "Fraunces Local", Fraunces, Georgia, serif;
  --sans: "Switzer Local", Switzer, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.project-link {
  display: block;
  text-decoration: none;
}

.page-shell {
  width: min(100% - 48px, 760px);
  margin-inline: auto;
}

.site-header {
  padding-top: 40px;
}

.wordmark {
  display: inline-block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 24px;
  text-decoration: none;
}

.intro {
  padding-top: 119.289px;
}

h1,
h2,
footer p,
footer a {
  font-family: var(--serif);
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: normal;
  line-height: 67.2px;
}

.intro-copy {
  margin-top: 28px;
  font-size: 20px;
  letter-spacing: normal;
  line-height: 32px;
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 24px;
}

.intro-copy strong {
  font-weight: 700;
}

.work {
  margin-top: 80px;
}

.project + .project {
  margin-top: 56px;
}

.project-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 400px;
  background: transparent;
  border-radius: 16px;
}

.project-visual img {
  display: block;
  user-select: none;
}

.project-visual::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: rgba(201, 190, 132, 0.62);
  pointer-events: none;
}

.visual-background {
  position: absolute;
  width: 772px;
  height: 408px;
  left: -6px;
  top: -4px;
  object-fit: cover;
}

.agents-ui {
  position: absolute;
  z-index: 1;
  width: 676px;
  height: auto;
  left: 50%;
  top: 48px;
  transform: translateX(-50%);
}

.kiwi-phones {
  position: absolute;
  z-index: 1;
  width: 511px;
  height: auto;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.project h2 {
  max-width: 750px;
  margin: 16px 0 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: normal;
  line-height: 43.2px;
}

footer {
  margin-top: 80px;
  padding: 109px 0 154px;
  border-top: 1px solid var(--rule);
}

footer p {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: normal;
  line-height: 38.4px;
}

footer a {
  display: block;
  width: 100%;
  color: var(--accent);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: normal;
  line-height: 57.6px;
  text-decoration: none;
  transition: color 180ms ease;
}

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

@media (max-width: 767px) {
  .page-shell {
    width: min(100% - 32px, 620px);
  }

  .site-header {
    padding-top: 24px;
  }

  .wordmark {
    font-size: 18px;
  }

  .intro {
    padding-top: 82px;
  }

  h1 {
    font-size: clamp(42px, 12.7vw, 57px);
    line-height: 1.02;
  }

  .intro-copy {
    margin-top: 31px;
    font-size: 17px;
    line-height: 1.55;
  }

  .work {
    margin-top: 58px;
  }

  .project + .project {
    margin-top: 48px;
  }

  .project-visual {
    aspect-ratio: 1.25 / 1;
    border-radius: 12px;
  }

  .visual-background {
    width: calc(100% + 12px);
    height: calc(100% + 8px);
  }

  .agents-ui {
    width: 112%;
    height: auto;
    left: 50%;
    top: auto;
    bottom: 1%;
  }

  .kiwi-phones {
    width: 84%;
    height: auto;
    left: 50%;
    right: auto;
    bottom: 0;
  }

  .project h2 {
    margin-top: 14px;
    font-size: 31px;
  }

  footer {
    margin-top: 64px;
    padding: 72px 0 92px;
  }

  footer p {
    font-size: 27px;
  }

  footer a {
    font-size: clamp(29px, 8.2vw, 36px);
    white-space: nowrap;
  }
}

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

  footer a {
    transition: none;
  }
}
