:root {
  --paper: #F3EEE4;
  --ink: #211C16;
  --accent: #3F5E4E;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", serif;
  font-size: 18px;
  line-height: 1.68;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 2px;
}

.site-header {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--ink);
}

.header-inner {
  width: min(100%, 1050px);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.15rem;
}

nav a,
.section-label,
.meta,
figcaption,
footer,
.service-price {
  font-family: "Inter", sans-serif;
}

nav a {
  font-size: 0.76rem;
  font-weight: 500;
}

.essay,
.measure {
  width: min(calc(100% - 3rem), 680px);
  margin-inline: auto;
}

.essay {
  padding: 5.5rem 0 4.5rem;
}

.kicker,
.section-label {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 500;
  line-height: 1.12;
}

h1 {
  max-width: 16ch;
  margin-bottom: 1.35rem;
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.035em;
}

.meta {
  margin-bottom: 4rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.opening {
  max-width: 29ch;
  margin-bottom: 4.5rem;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  line-height: 1.35;
}

.essay h2,
.service-section h2,
.contact-section h2 {
  max-width: 24ch;
  margin-bottom: 1rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.essay h2:not(:first-of-type) {
  margin-top: 4.5rem;
}

.essay p:not(.kicker):not(.meta):not(.opening) {
  max-width: 62ch;
  margin-bottom: 1.25rem;
}

figure {
  margin: 2.5rem 0 0;
}

img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ink);
}

figcaption {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  line-height: 1.45;
}

.pull-stat {
  margin: 4rem 0;
  padding: 1.4rem 0 1.45rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.pull-stat strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
}

.pull-stat span {
  display: block;
  max-width: 37ch;
  font-size: 1.05rem;
  line-height: 1.45;
}

.service-section {
  padding: 4.8rem 1.5rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.service-section .measure,
.contact-section .measure {
  width: min(100%, 680px);
}

.service-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 2rem 0 1.1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.service-line p {
  margin: 0;
}

.service-price {
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-weight: 600;
}

.contact-section {
  padding: 4.8rem 1.5rem 0;
}

.closing {
  max-width: 46ch;
  margin-bottom: 2rem;
}

address {
  margin: 0 0 1.5rem;
  font-style: normal;
  line-height: 1.65;
}

.contact-link {
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

footer {
  width: min(100%, 1050px);
  margin: 4.5rem auto 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.7rem;
}

.privacy {
  padding: 2.4rem 0 3rem;
}

.privacy h2 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.privacy p {
  max-width: 58ch;
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .site-header {
    padding: 1.1rem 1.25rem;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  nav {
    gap: 1rem;
  }

  .essay,
  .measure {
    width: min(calc(100% - 2.5rem), 680px);
  }

  .essay {
    padding: 3.5rem 0;
  }

  .meta {
    margin-bottom: 3rem;
  }

  .opening {
    margin-bottom: 3.5rem;
  }

  .essay h2:not(:first-of-type) {
    margin-top: 3.5rem;
  }

  .service-section,
  .contact-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .service-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 3.5rem;
  }
}
