:root {
  --paper: #f7f4ec;
  --paper-deep: #efe9dc;
  --ink: #252823;
  --muted: #686a61;
  --accent: #6d5a3d;
  --accent-dark: #344940;
  --line: #d9d2c4;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: auto;
}

body {
  margin: 0;
  font-family: var(--serif);
  background:
    linear-gradient(to bottom, rgba(255,255,255,.28), transparent 22rem),
    var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-underline-offset: .2em;
}

a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 4px; }

.site-header {
  border-bottom: 1px solid var(--line);
  font-family: var(--sans);
}

.header-inner,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2em;
  text-decoration: none;
}

nav { display: flex; gap: clamp(16px, 3vw, 36px); }
nav a { font-size: 13px; text-decoration: none; color: var(--muted); }

.hero {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0 110px;
}

.eyebrow,
.section-kicker,
.meta,
.article-byline,
.back-link,
.topic-number {
  font-family: var(--sans);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 7.2vw, 88px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}

.hero-copy {
  max-width: 630px;
  margin: 54px 0 0 auto;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.55;
}

.hero-copy p { margin: 0 0 1.4em; }

.home-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-heading h2,
.page-intro h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.featured .section-heading h2 { max-width: 740px; }
.featured .section-heading h2 a { text-decoration: none; }

.excerpt {
  max-width: 690px;
  margin: 32px 0 20px;
  color: #44483f;
  font-size: 21px;
  line-height: 1.65;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.text-link {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 46px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.topic-grid a {
  min-height: 150px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 23px;
  text-decoration: none;
}

.topic-grid span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .08em;
}

.listing-page,
.simple-page {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0 130px;
}

.page-intro {
  max-width: 720px;
  margin-bottom: 74px;
}

.page-intro > p:last-child {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.6;
}

.article-list article {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.article-list h2 {
  margin: 12px 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
}

.article-list h2 a { text-decoration: none; }
.article-list article > p:not(.meta) { max-width: 690px; font-size: 18px; line-height: 1.65; }

.topic-list { border-top: 1px solid var(--line); }
.topic-list section {
  display: grid;
  grid-template-columns: 60px minmax(180px, 1fr) 2fr;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 30px;
}
.topic-list h2 { margin: 0; font-size: 25px; font-weight: 500; }
.topic-list p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.topic-list a { grid-column: 3; font-family: var(--sans); font-size: 13px; }

.simple-page article { max-width: 720px; margin: 0 auto; }
.prose { font-size: 21px; line-height: 1.8; }
.prose p { margin: 0 0 1.45em; }

.article {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0 120px;
}

.article-header {
  padding-bottom: 58px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.article-header h1 {
  margin: 24px 0 30px;
  font-size: clamp(42px, 7vw, 68px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.article-byline {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

.article-body {
  padding-top: 55px;
  font-size: 20px;
  line-height: 1.78;
}

.article-body p { margin: 0 0 1.45em; }
.article-body h1 {
  margin: 3.2em 0 1.2em;
  font-size: 35px;
  line-height: 1.2;
}
.article-body h2 {
  margin: 3em 0 1.1em;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.3;
}
.article-body h3 {
  margin: 2.2em 0 1em;
  color: var(--accent-dark);
  font-size: 20px;
  font-family: var(--sans);
  font-weight: 600;
}
.article-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--accent);
  color: #42483f;
  font-size: 1.02em;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body ul { margin: 0 0 1.6em; padding-left: 1.25em; }
.article-body li { margin: .4em 0; padding-left: .25em; }
.article-body hr {
  width: 80px;
  margin: 4em auto;
  border: 0;
  border-top: 1px solid var(--accent);
}

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

.footer-inner {
  min-height: 120px;
  display: flex;
  align-items: center;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
}

@media (max-width: 720px) {
  .header-inner { min-height: auto; padding: 20px 0; align-items: flex-start; }
  nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
  nav a { font-size: 12px; }
  .hero { min-height: auto; padding: 80px 0 76px; }
  .hero-copy { margin: 42px 0 0; font-size: 20px; }
  .hero-copy br { display: none; }
  .home-section { padding: 70px 0; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .topic-grid a { min-height: 130px; padding: 22px; font-size: 19px; }
  .listing-page, .simple-page { padding: 72px 0 100px; }
  .topic-list section { grid-template-columns: 38px 1fr; gap: 12px 14px; }
  .topic-list section > p:not(.topic-number), .topic-list a { grid-column: 2; }
  .article { padding-top: 64px; }
  .article-header { padding-bottom: 44px; }
  .article-body { padding-top: 42px; font-size: 18px; line-height: 1.72; }
  .article-body h1 { font-size: 29px; }
  .article-body h2 { font-size: 25px; }
  .article-body h3 { font-size: 18px; }
}

@media (max-width: 420px) {
  .header-inner, .footer-inner, .hero, .home-section, .listing-page, .simple-page, .article {
    width: min(100% - 32px, 1120px);
  }
  .header-inner { display: block; }
  nav { margin-top: 16px; justify-content: flex-start; }
  .hero h1 { font-size: 42px; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-grid a { min-height: 112px; }
  .article-byline { display: block; }
  .article-byline time { display: block; margin-top: 6px; }
  .article-body blockquote { padding-left: 18px; }
}
