:root {
  --paper: #f4f1ea;
  --ink: #161616;
  --muted: #5f5a53;
  --line: rgba(22, 22, 22, 0.14);
  --max-width: 1120px;
  --measure: 38rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino,
    "Times New Roman", serif;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

p {
  max-width: var(--measure);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.page {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
  min-height: 100vh;
}

.site-header,
.site-footer {
  border-top: 1px solid var(--line);
}

.site-header,
.site-footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.mark,
.hero h1,
.article-title {
  font-weight: 400;
  letter-spacing: -0.04em;
}

.mark {
  font-size: 1.1rem;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a,
.meta,
.eyebrow,
.site-footer {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a,
.meta,
.eyebrow,
.site-footer,
.article-lede,
.intro-grid,
.manifesto-grid,
.essay-card p {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: 4.5rem 0 5rem;
}

.home-hero {
  grid-template-columns: minmax(0, 1fr);
  padding: 3rem 0 2.75rem;
}

.hero h1 {
  grid-column: 1 / -1;
  font-size: clamp(4.5rem, 16vw, 11rem);
  line-height: 0.9;
  margin-bottom: 0;
}

.lede {
  font-size: 1.45rem;
  line-height: 1.3;
  max-width: 24rem;
  color: var(--ink);
}

.intro-grid,
.manifesto-grid,
.about-grid,
.article-body,
.article-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.section {
  padding: 1.25rem 0 3rem;
}

.section-heading {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.essay-card h3,
.article-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 0;
  font-weight: 400;
}

.essay-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding: 0;
}

.essay-card--featured {
  align-items: start;
}

.essay-image-link {
  display: block;
  text-decoration: none;
}

.essay-image {
  width: 100%;
  border: 1px solid var(--line);
}

.about-grid {
  align-items: start;
}

.about-portrait {
  margin: 0;
  max-width: 16rem;
}

.about-portrait img {
  width: 100%;
  border: 1px solid var(--line);
  background: #d7d2c8;
}

.about-copy p {
  max-width: 30rem;
}

.text-link {
  display: inline-block;
  margin-top: 0.75rem;
}

.site-footer {
  margin-top: 4rem;
  padding-bottom: 1.75rem;
}

.article-page .hero {
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.article-page .hero .eyebrow {
  margin-bottom: 0;
}

.article-header {
  grid-template-columns: minmax(0, 1fr);
  max-width: 36rem;
  gap: 0.9rem;
  padding: 1.5rem 0 2rem;
}

.article-header p:last-child {
  margin-bottom: 0;
}

.article-lede {
  font-size: 1.2rem;
  line-height: 1.35;
  max-width: 32rem;
  color: var(--ink);
}

.article-image {
  margin: 0;
  padding: 0 0 2rem;
}

.article-image img {
  width: 100%;
  max-width: 38rem;
  margin: 0 auto;
}

.article-body {
  grid-template-columns: minmax(0, 1fr);
  max-width: 38rem;
  gap: 0;
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--line);
}

.article-body > div {
  max-width: var(--measure);
}

.article-body h2 {
  max-width: 30rem;
  margin: 2.4rem 0 0.9rem;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.article-body p {
  max-width: 34rem;
  margin-bottom: 1.1rem;
  color: #222;
}

.article-body a,
.article-body strong,
.article-body sup {
  overflow-wrap: anywhere;
}

.back-link {
  text-decoration: none;
}

@media (max-width: 760px) {
  html {
    font-size: 16px;
  }

  .page {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .site-header,
  .site-footer,
  .hero,
  .intro-grid,
  .section-heading,
  .essay-card,
  .manifesto-grid,
  .about-grid,
  .article-header,
  .article-body {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    gap: 0.6rem;
  }

  .site-header {
    padding: 0.85rem 0;
  }

  .site-nav {
    width: 100%;
    gap: 0.65rem 0.9rem;
  }

  .site-nav a,
  .meta,
  .eyebrow,
  .site-footer {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .hero {
    gap: 1rem;
    padding: 2.25rem 0 2.75rem;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 22vw, 5rem);
    line-height: 0.92;
  }

  .home-hero {
    padding: 1.6rem 0 1.8rem;
  }

  .article-page .hero {
    padding: 1.75rem 0 1.1rem;
  }

  .lede,
  .article-lede {
    font-size: 1.05rem;
    max-width: 100%;
  }

  .section,
  .article-header,
  .article-body {
    padding-left: 0;
    padding-right: 0;
  }

  .article-header {
    gap: 0.6rem;
    padding: 1rem 0 1.35rem;
  }

  .article-image {
    padding: 0 0 1.35rem;
  }

  .article-body {
    padding: 1.35rem 0 2.5rem;
  }

  .article-body h2 {
    margin: 2rem 0 0.7rem;
    font-size: 1.28rem;
  }

  .article-body p {
    max-width: 100%;
    margin-bottom: 0.95rem;
    font-size: 1rem;
    line-height: 1.58;
  }

  .section-heading {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .section-heading h2,
  .essay-card h3,
  .article-title {
    font-size: clamp(1.7rem, 8vw, 2.35rem);
  }

  .article-title {
    max-width: 11ch;
  }

  .essay-card,
  .intro-grid,
  .manifesto-grid,
  .about-grid,
  .article-body,
  .article-header {
    gap: 1rem;
  }

  .about-portrait {
    max-width: 12rem;
  }

  .site-footer {
    margin-top: 2.5rem;
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 420px) {
  .page {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .hero h1 {
    font-size: clamp(2.7rem, 21vw, 4.2rem);
  }

  .article-page .hero h1 {
    font-size: clamp(2.2rem, 15vw, 3.2rem);
    line-height: 0.96;
  }

  .lede,
  .article-lede {
    font-size: 1rem;
  }

  .article-body h2 {
    font-size: 1.18rem;
  }
}
