:root {
  --bg: #f5f0e8;
  --surface: rgba(255, 255, 255, 0.78);
  --ink: #16120e;
  --muted: #65584b;
  --line: rgba(22, 18, 14, 0.12);
  --accent: #c65a1e;
  --accent-deep: #8b3c12;
  --shadow: 0 24px 60px rgba(49, 32, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(198, 90, 30, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(47, 109, 92, 0.08), transparent 24%),
    var(--bg);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(245, 240, 232, 0.76);
  border-bottom: 1px solid rgba(22, 18, 14, 0.07);
}

.site-header__inner,
.blog-hero,
.blog-toolbar,
.featured-post,
.post-grid,
.article-page,
.related-posts {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.site-mark {
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.post-card h2 a:hover,
.post-card h2 a:focus-visible,
.featured-post h2 a:hover,
.featured-post h2 a:focus-visible {
  color: var(--accent-deep);
}

.blog-hero {
  padding: 72px 0 36px;
}

.blog-hero__content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.blog-hero h1,
.article-header h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.blog-hero__lede,
.article-header__excerpt {
  max-width: 62ch;
  margin: 24px 0 0;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 36px;
}

.blog-toolbar a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), border-color 240ms ease, color 240ms ease;
}

.blog-toolbar a.is-active,
.blog-toolbar a:hover,
.blog-toolbar a:focus-visible {
  color: var(--ink);
  border-color: rgba(198, 90, 30, 0.4);
  transform: translateY(-1px);
}

.featured-post {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 22px;
  margin-bottom: 44px;
}

.featured-post--text-only {
  grid-template-columns: 1fr;
}

.featured-post__copy,
.featured-post__media,
.post-card,
.article-header,
.article-body,
.related-posts {
  border: 1px solid rgba(22, 18, 14, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.featured-post__copy {
  border-radius: 30px;
  padding: 34px;
}

.featured-post__media {
  overflow: hidden;
  border-radius: 30px 54px 30px 30px;
  min-height: 420px;
}

.featured-post__media img,
.post-card__media img,
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-post h2,
.post-card h2,
.section-heading h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: clamp(1.85rem, 2.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.featured-post p,
.post-card p,
.meta-row,
.article-header__meta,
.article-body {
  color: var(--muted);
}

.featured-post p:not(.eyebrow),
.post-card p:not(.eyebrow) {
  line-height: 1.7;
}

.meta-row,
.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.92rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 96px;
}

.post-card {
  grid-column: span 4;
  overflow: hidden;
  border-radius: 28px;
}

.post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
}

.post-card__body {
  padding: 24px;
}

.post-card--empty {
  grid-column: span 12;
}

.article-page {
  padding: 52px 0 32px;
}

.article-header {
  border-radius: 32px;
  padding: 42px;
  margin-bottom: 26px;
}

.article-header__meta {
  margin-bottom: 18px;
}

.article-cover {
  margin: 30px 0 0;
  overflow: hidden;
  border-radius: 26px;
  aspect-ratio: 16 / 9;
}

.article-body {
  border-radius: 32px;
  padding: 40px clamp(22px, 5vw, 72px) 56px;
  font-size: 1.06rem;
}

.article-block::after {
  content: "";
  display: block;
  clear: both;
}

.article-block--space-before-none {
  margin-top: 0;
}

.article-block--space-before-sm {
  margin-top: 0.75rem;
}

.article-block--space-before-md {
  margin-top: 1.5rem;
}

.article-block--space-before-lg {
  margin-top: 2.5rem;
}

.article-block--space-before-xl {
  margin-top: 4rem;
}

.article-block--space-after-none {
  margin-bottom: 0;
}

.article-block--space-after-sm {
  margin-bottom: 0.75rem;
}

.article-block--space-after-md {
  margin-bottom: 1.5rem;
}

.article-block--space-after-lg {
  margin-bottom: 2.5rem;
}

.article-block--space-after-xl {
  margin-bottom: 4rem;
}

.article-rich-text {
  max-width: 68ch;
}

.article-rich-text--lead {
  max-width: 62ch;
  font-size: 1.14rem;
}

.article-rich-text--note {
  max-width: 60ch;
  color: var(--accent-deep);
  font-size: 0.98rem;
}

.article-rich-text--size-sm {
  font-size: 0.96rem;
}

.article-rich-text--size-md {
  font-size: 1.06rem;
}

.article-rich-text--size-lg {
  font-size: 1.18rem;
}

.article-rich-text--size-xl {
  font-size: 1.32rem;
}

.article-rich-text--lh-compact {
  line-height: 1.45;
}

.article-rich-text--lh-balanced {
  line-height: 1.7;
}

.article-rich-text--lh-relaxed {
  line-height: 1.9;
}

.article-rich-text--lh-airy {
  line-height: 2.1;
}

.article-rich-text p,
.article-rich-text ul,
.article-rich-text ol,
.article-rich-text blockquote,
.article-rich-text h2,
.article-rich-text h3 {
  margin: 0 0 1rem;
}

.article-rich-text h2,
.article-rich-text h3 {
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  text-wrap: balance;
}

.article-rich-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-top: 2.4rem;
}

.article-rich-text h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: 2rem;
}

.article-rich-text blockquote {
  border-left: 3px solid rgba(198, 90, 30, 0.4);
  padding-left: 18px;
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 1.2em;
}

.article-rich-text a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.article-image {
  width: min(100%, var(--article-image-width));
}

.article-image img {
  width: 100%;
  border-radius: 24px;
}

.article-image__caption {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.article-image--wrap-right-square,
.article-image--wrap-left-square {
  width: min(100%, var(--article-image-width));
}

.article-image--wrap-right-square {
  float: right;
  margin-left: clamp(18px, 4vw, 34px);
}

.article-image--wrap-left-square {
  float: left;
  margin-right: clamp(18px, 4vw, 34px);
}

.article-image--wrap-right-square img,
.article-image--wrap-left-square img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.article-image--centered {
  margin-left: auto;
  margin-right: auto;
}

.article-image--wide,
.article-image--full-width {
  clear: both;
  width: 100%;
}

.article-image--wide {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

.article-image--full-width img {
  border-radius: 28px;
}

.section-heading {
  margin-bottom: 22px;
}

.related-posts {
  border-radius: 32px;
  padding: 34px;
  margin-bottom: 96px;
}

.pagination {
  width: min(1180px, calc(100% - 32px));
  margin: -40px auto 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.pagination a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.56);
}

@media (max-width: 980px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .site-header__inner,
  .featured-post,
  .blog-hero,
  .blog-toolbar,
  .post-grid,
  .pagination,
  .article-page,
  .related-posts {
    width: min(100% - 24px, 1180px);
  }

  .post-card,
  .post-card--empty {
    grid-column: span 12;
  }

  .article-header,
  .article-body,
  .related-posts,
  .featured-post__copy {
    padding: 24px;
  }

  .article-image--wrap-right-square,
  .article-image--wrap-left-square {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
