:root {
  --paper: #f4f0e7;
  --paper-deep: #e7dfd1;
  --ink: #172127;
  --muted: #5f625f;
  --rule: #c9c0b2;
  --accent: #a8442f;
  --display: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", 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;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.key-mark {
  width: 46px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--ink);
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

nav {
  display: flex;
  gap: 34px;
}

nav a,
footer a {
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 7vw;
  padding-block: 72px;
}

.eyebrow,
.work-kind,
.section-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 22px;
  font-family: var(--display);
  font-size: clamp(4.1rem, 8.2vw, 7.6rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.86;
}

.introduction {
  margin: 0 0 36px;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.text-link {
  display: inline-block;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.typewriter-form {
  width: min(108%, 620px);
  margin: 0 -4% 0 0;
  justify-self: end;
  filter: contrast(0.93) drop-shadow(0 26px 24px rgb(23 33 39 / 0.12));
}

.typewriter-form img {
  display: block;
  width: 100%;
  height: auto;
}

.work-section,
.about-section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 64px;
  padding-block: 96px;
  border-top: 1px solid var(--rule);
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.section-label span {
  color: var(--muted);
  font-weight: 500;
}

.featured-work {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}

h2 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.availability,
.about-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 1.16rem;
  line-height: 1.7;
}

.about-copy {
  display: grid;
  gap: 34px;
}

.about-copy h2 {
  max-width: 760px;
}

footer {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 680px);
  }

  .site-header {
    min-height: 88px;
  }

  .wordmark-text {
    display: none;
  }

  nav {
    gap: 22px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 72px 86px;
  }

  .typewriter-form {
    width: min(96vw, 560px);
    justify-self: center;
    margin-top: 26px;
    margin-right: 0;
  }

  .work-section,
  .about-section {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 72px;
  }

  .section-label {
    max-width: 200px;
  }

  .featured-work {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(3.5rem, 19vw, 5rem);
  }

  .typewriter-form {
    width: min(105vw, 520px);
  }

  footer {
    min-height: 130px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
  }
}

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