:root {
  color-scheme: light;
  --paper: #f6f4ef;
  --surface: #fffefa;
  --ink: #252824;
  --muted: #73766f;
  --line: #e5e2d9;
  --forest: #233d35;
  --accent: #d96e54;
  --accent-soft: #f3e5dd;
  font-family: Georgia, "Times New Roman", serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; transition: color .2s ease; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.site-header {
  max-width: 1220px;
  min-height: 78px;
  padding: 18px 34px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  font: 13px/1.4 Arial, sans-serif;
}
.brand {
  color: var(--forest);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .15em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a,
.site-footer a { color: var(--muted); text-decoration: none; }
.site-header nav a { padding: 8px 0; }
.site-header nav a:hover,
.site-footer a:hover { color: var(--accent); }

main { max-width: 1220px; padding: 0 34px; margin: 0 auto; }
.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: none;
  padding: clamp(42px, 7vw, 78px) clamp(28px, 6vw, 76px);
  margin: 42px 0 48px;
  border-radius: 5px;
  background: var(--forest);
  color: #fffefa;
}
.intro::after {
  position: absolute;
  z-index: -1;
  top: -125px;
  right: -30px;
  width: 390px;
  height: 390px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgb(255 255 255 / 3%), 0 0 0 70px rgb(255 255 255 / 3%);
  content: "";
}
.intro .eyebrow,
.eyebrow { color: var(--accent); }
.intro .eyebrow { margin: 0 0 12px; }
.intro h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 6.4vw, 70px);
  line-height: 1.04;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.intro > p:last-child {
  max-width: 520px;
  margin: 18px 0 0;
  color: rgb(255 255 255 / 76%);
  font: 16px/1.7 Arial, sans-serif;
}
.eyebrow {
  font: 700 10px/1.5 Arial, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 64px;
}
.card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgb(37 40 36 / 3%);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgb(37 40 36 / 9%);
}
.card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.62;
  background: #e9e6df;
}
.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.card:hover .card-image img { transform: scale(1.035); }
.card-body { padding: 22px 23px 24px; }
.card-body .eyebrow { min-height: 16px; margin: 0 0 8px; }
.card-body .eyebrow a { color: var(--accent); text-decoration: none; }
.card-body h2 {
  margin: 0 0 11px;
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.16;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.card-body h2 a { text-decoration: none; }
.card-body time,
.byline { color: var(--muted); font: 12px/1.5 Arial, sans-serif; }
.excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 14px 0 18px;
  color: #5f625b;
  font-size: 15px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.excerpt p { margin: 0; }
.more {
  color: var(--forest);
  font: 700 10px/1.5 Arial, sans-serif;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.more:hover { color: var(--accent); }
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 76px;
}
.pagination a {
  min-width: 39px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  text-align: center;
  text-decoration: none;
  font: 13px Arial, sans-serif;
}
.pagination a:hover,
.pagination .current { border-color: var(--forest); background: var(--forest); color: white; }

.post { max-width: 790px; margin: 0 auto; padding: 70px 0 100px; }
.post > .eyebrow { margin: 0 0 14px; }
.post .eyebrow a,
.tags a { color: var(--accent); text-decoration: none; }
.post h1 {
  margin: 0;
  font-size: clamp(37px, 6vw, 65px);
  line-height: 1.07;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.byline { margin: 18px 0 30px; }
.featured { margin: 34px 0 42px; }
.featured img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 570px;
  border-radius: 4px;
  object-fit: cover;
}
.prose { color: #373a35; font-size: 19px; line-height: 1.83; }
.prose h2 {
  margin: 1.8em 0 .65em;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.prose h3 { color: var(--ink); font-size: 26px; line-height: 1.3; }
.prose p { margin: 0 0 1.45em; }
.prose li { padding-left: 5px; margin: 0 0 .45em; }
.prose a { color: #a64f3d; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--forest); }
.prose img { display: block; max-width: 100%; height: auto; margin: 25px auto; }
.prose figure { margin: 32px 0; }
.prose figcaption { margin-top: 9px; color: var(--muted); text-align: center; font: 13px/1.5 Arial, sans-serif; }
.prose blockquote {
  margin: 34px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  color: #60635c;
  font-size: 21px;
  font-style: italic;
}
.prose pre {
  overflow: auto;
  padding: 20px 22px;
  border-radius: 4px;
  background: #202b29;
  color: #f3f3ed;
  font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.prose iframe { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose .gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.prose .gallery-item { width: auto !important; float: none !important; margin: 0 !important; }
.prose .gallery img { width: 100%; height: 210px; margin: 0; border-radius: 3px; object-fit: cover; }
.prose .aligncenter { margin-right: auto; margin-left: auto; }
.prose .alignleft { float: left; margin: 8px 24px 18px 0; }
.prose .alignright { float: right; margin: 8px 0 18px 24px; }
.prose .alignnone { max-width: 100%; }
.tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 32px; font: 13px Arial, sans-serif; }
.tags a { padding: 6px 10px; border-radius: 20px; background: var(--accent-soft); }
.related { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); }
.related h2 { font-size: 22px; }
.related li { margin: 8px 0; }
.comments article { padding: 14px 18px; border-radius: 4px; background: var(--surface); }
.comments article p { margin: 0 0 6px; }

.site-footer {
  max-width: 1220px;
  margin: 0 auto;
  padding: 25px 34px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 12px/1.5 Arial, sans-serif;
}
.site-footer a:first-child { color: var(--forest); font-weight: 700; }

@media (min-width: 900px) {
  .cards .card:first-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    align-items: stretch;
  }
  .cards .card:first-child .card-image { aspect-ratio: auto; min-height: 100%; }
  .cards .card:first-child .card-body { padding: 28px 30px; }
  .cards .card:first-child .card-body h2 { font-size: clamp(27px, 3vw, 36px); }
}
@media (max-width: 850px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .site-header nav { gap: 20px; flex-wrap: wrap; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  main { padding: 0 18px; }
  .site-header { padding: 18px; }
  .site-header nav { gap: 15px; font-size: 12px; }
  .intro { margin: 24px 0 30px; padding: 42px 25px; }
  .intro::after { top: -45px; right: -190px; }
  .cards { grid-template-columns: 1fr; gap: 17px; margin-bottom: 46px; }
  .cards .card:first-child { display: block; grid-column: auto; }
  .cards .card:first-child .card-image { min-height: 0; aspect-ratio: 1.62; }
  .post { padding: 48px 0 70px; }
  .prose { font-size: 17px; line-height: 1.78; }
  .prose h2 { font-size: 29px; }
  .prose .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose .gallery img { height: 160px; }
  .prose .alignleft, .prose .alignright { float: none; margin: 24px auto; }
  .site-footer { padding: 20px 18px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
