* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #F6F1E7;
}

body {
  margin: 0;
  background: #F6F1E7;
  color: #1C1915;
  font-family: "Literata";
  font-size: 1.0625rem;
  line-height: 1.82;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #8C4A32;
  color: #F6F1E7;
}

a {
  color: #8C4A32;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

a:focus-visible {
  outline: 2px solid #8C4A32;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  z-index: 10;
  padding: 0.55rem 0.8rem;
  background: #1C1915;
  color: #F6F1E7;
  font-family: "Source Sans 3";
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid #1C1915;
}

.header-inner,
.footer-inner {
  width: min(70rem, calc(100% - 3rem));
  margin-inline: auto;
}

.header-inner {
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  color: #1C1915;
  line-height: 1.1;
  text-decoration: none;
}

.wordmark span {
  font-family: "Literata";
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wordmark small,
.primary-nav,
.kicker,
.meta,
.chapter-number,
.pull-quote cite,
.site-footer {
  font-family: "Source Sans 3";
}

.wordmark small {
  margin-top: 0.42rem;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.primary-nav a {
  color: #1C1915;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: #8C4A32;
}

.essay {
  width: min(65ch, calc(100% - 3rem));
  margin-inline: auto;
  padding: 7rem 0 6rem;
}

.article-header {
  margin-bottom: 6rem;
}

.kicker,
.chapter-number {
  margin: 0 0 1.25rem;
  color: #8C4A32;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Literata";
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.3rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.meta {
  margin: 2rem 0 3.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid #1C1915;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.opening {
  margin: 0;
  font-size: clamp(1.22rem, 2.5vw, 1.55rem);
  line-height: 1.68;
}

.opening::first-letter {
  float: left;
  margin: 0.1em 0.12em 0 0;
  color: #8C4A32;
  font-size: 4.25em;
  font-weight: 600;
  line-height: 0.75;
}

.chapter {
  scroll-margin-top: 2rem;
  margin: 0 0 5.5rem;
}

.chapter h2,
.closing h2 {
  margin: 0 0 1.7rem;
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.chapter p:not(.chapter-number),
.closing p {
  margin: 0 0 1.35rem;
}

.pull-quote {
  margin: 6rem 0;
  padding: 2.3rem 0 2.2rem;
  border-top: 1px solid #8C4A32;
  border-bottom: 1px solid #8C4A32;
}

.pull-quote p {
  max-width: 29ch;
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.pull-quote cite {
  display: block;
  margin-top: 1.3rem;
  color: #8C4A32;
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.closing {
  scroll-margin-top: 2rem;
  margin-top: 7rem;
  padding-top: 2.5rem;
  border-top: 1px solid #1C1915;
}

.text-cta {
  margin-top: 1.8rem;
  font-weight: 600;
}

.text-cta a {
  display: inline-block;
}

.site-footer {
  border-top: 1px solid #1C1915;
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer-inner {
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
}

.footer-inner a {
  color: #1C1915;
}

.footer-inner a:hover,
.footer-inner a:focus-visible,
.footer-inner a[aria-current="page"] {
  color: #8C4A32;
}

.legal-page .article-header {
  margin-bottom: 5rem;
}

.legal-page h1 {
  max-width: 15ch;
}

.legal-page .chapter {
  margin-bottom: 4.5rem;
}

@media (max-width: 42rem) {
  body {
    font-size: 1rem;
    line-height: 1.75;
  }

  .header-inner,
  .footer-inner,
  .essay {
    width: min(100% - 2rem, 65ch);
  }

  .header-inner {
    min-height: 0;
    padding: 1.4rem 0 1.2rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .primary-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
  }

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

  .article-header {
    margin-bottom: 4.5rem;
  }

  h1 {
    font-size: clamp(2.5rem, 13vw, 3.7rem);
  }

  .meta {
    margin: 1.6rem 0 2.5rem;
  }

  .chapter {
    margin-bottom: 4.25rem;
  }

  .pull-quote {
    margin: 4.5rem 0;
  }

  .closing {
    margin-top: 5rem;
  }

  .footer-inner {
    min-height: 0;
    padding: 1.8rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}

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