:root {
  --ink: #3d352f;
  --cream: #ffffff;
  --paper: #ffffff;
  --stone: #f3efe8;
  --sand: #e8ded1;
  --clay: #c9ad98;
  --line: rgba(61, 53, 47, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  text-decoration: none;
  font-weight: 800;
}

.nav-links,
footer div {
  display: flex;
  gap: 30px;
}

.nav-links a,
footer a {
  text-decoration: none;
  font-weight: 700;
}

.nav-links a:hover,
footer a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 90px 0 120px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow,
.section-number,
.project-type {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.hero h2,
.section h2,
.projects h2,
.contact h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.02;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(4.2rem, 12vw, 9.5rem);
  letter-spacing: -0.075em;
}

.hero h2 {
  max-width: 780px;
  margin-top: 18px;
  color: #72675d;
  font-size: clamp(2rem, 5vw, 4.4rem);
  letter-spacing: -0.045em;
}

.intro {
  max-width: 650px;
  margin: 40px 0 34px;
  font-size: 1.17rem;
}

.button {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  padding: 15px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
}

.button:hover {
  transform: translateY(-2px);
}

.section,
.projects,
.contact {
  padding: 110px max(20px, calc((100% - 1120px) / 2));
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 30px;
}

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

.section h2,
.projects h2,
.contact h2 {
  margin-bottom: 30px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  letter-spacing: -0.04em;
}

.section > div,
.contact > div {
  max-width: 760px;
}

.section p:not(.section-number),
.contact p:not(.section-number, .eyebrow) {
  font-size: 1.15rem;
}

.tags {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
}

.projects {
  background: var(--stone);
}

.projects-content {
  min-width: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.project-card {
  min-height: 330px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 5px;
  box-shadow: 7px 7px 0 #a99b8e;
}

.project-card.warm {
  background: var(--sand);
}

.project-card h3 {
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.project-card a {
  margin-top: auto;
  font-weight: 800;
  text-underline-offset: 5px;
}

.contact {
  background: var(--ink);
  color: var(--paper);
}

.button.light {
  margin-top: 24px;
  background: var(--clay);
  color: var(--ink);
}

footer {
  padding: 30px max(20px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .nav-links {
    gap: 16px;
    font-size: 0.9rem;
  }

  .hero {
    padding: 70px 0 90px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 20vw, 6rem);
  }

  .section,
  .projects,
  .contact {
    padding-top: 80px;
    padding-bottom: 80px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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