:root {
  --ink: #16201c;
  --paper: #f3f0e8;
  --paper-light: #fbfaf6;
  --green: #245b43;
  --coral: #d45e45;
  --line: #c8c8bc;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(#16201c14 0.7px, transparent 0.7px);
  background-size: 8px 8px;
  font-family: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.site-header,
footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.wordmark {
  font-family: Palatino, "Palatino Linotype", serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}

.wordmark span {
  color: var(--coral);
}

nav,
footer div {
  display: flex;
  gap: 28px;
}

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

nav a:hover,
nav a[aria-current="page"],
footer a:hover {
  color: var(--coral);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 92px));
  display: grid;
  align-items: end;
  color: #fff;
  background: #29342f;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, #101a15db 0%, #101a158c 48%, #101a1524 100%), url("../images/worktable.jpg");
  background-position: center;
  background-size: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 110px 0 90px;
}

.eyebrow,
.section-number,
.project-index,
.legal-updated {
  margin: 0 0 18px;
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Palatino, "Palatino Linotype", serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 850px;
  margin-bottom: 20px;
  font-size: clamp(4rem, 11vw, 9rem);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 0 32px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.button {
  display: inline-block;
  padding: 13px 18px;
  border: 1px solid #ffffffad;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  color: var(--ink);
  background: #fff;
}

.intro,
.projects {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 120px 0;
}

.intro {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}

.intro h2,
.section-heading h2 {
  max-width: 850px;
  margin-bottom: 25px;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.intro div p {
  max-width: 720px;
  margin: 0;
  font-size: 1.12rem;
}

.section-heading {
  margin-bottom: 54px;
}

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

.project-list article {
  display: grid;
  grid-template-columns: 0.7fr 1.4fr 2fr auto;
  gap: 28px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.project-list h3,
.project-list p {
  margin: 0;
}

.project-list h3 {
  font-size: 1.6rem;
}

.project-list span {
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-main {
  width: min(calc(100% - 48px), 840px);
  margin: 0 auto;
  padding: 80px 0 120px;
  overflow: visible;
}

.legal-header {
  margin-bottom: 70px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--ink);
}

.legal-header h1 {
  margin-bottom: 20px;
  font-size: clamp(3.5rem, 9vw, 6.5rem);
}

.legal-header p:last-child {
  max-width: 650px;
  font-size: 1.1rem;
}

.legal-content section {
  margin-bottom: 48px;
}

.legal-content h2 {
  margin-bottom: 14px;
  font-size: 1.75rem;
}

.legal-content li + li {
  margin-top: 8px;
}

footer {
  min-height: 130px;
  border-top: 1px solid var(--line);
}

footer p {
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .site-header,
  footer,
  .hero-copy,
  .intro,
  .projects,
  .legal-main {
    width: min(calc(100% - 32px), var(--max-width));
  }

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

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 0.66rem;
  }

  .hero {
    min-height: 620px;
  }

  .hero-image {
    background-image: linear-gradient(0deg, #101a15e8 0%, #101a1566 68%, #101a1529 100%), url("../images/worktable.jpg");
    background-position: 60% center;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .hero-copy {
    padding: 90px 0 58px;
  }

  .intro,
  .project-list article {
    grid-template-columns: 1fr;
  }

  .intro,
  .projects {
    padding: 78px 0;
  }

  .project-list article {
    gap: 10px;
  }

  .project-list span {
    margin-top: 8px;
  }

  .legal-main {
    padding-top: 50px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }
}

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