:root {
  color-scheme: light;
  --paper: #fffaf0;
  --surface: #ffffff;
  --mist: #f3eadf;
  --ink: #18130f;
  --muted: #766457;
  --line: rgba(24, 19, 15, 0.12);
  --sun: #ffc43b;
  --bronze: #b86b37;
  --aqua: #17a9b0;
  --shadow: 0 14px 34px rgba(58, 38, 20, 0.08);
}

* {
  box-sizing: border-box;
}

body.blog-body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.blog-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.blog-index-hero {
  min-height: 250px;
  display: grid;
  align-content: end;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
}

.blog-index-hero-refined {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.34fr);
  gap: 28px;
  align-items: end;
  min-height: 280px;
}

.blog-kicker,
.blog-meta-label {
  margin: 0 0 10px;
  color: var(--bronze);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-index-title,
.blog-title {
  margin: 0;
  letter-spacing: -0.055em;
}

.blog-index-title {
  max-width: 760px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1;
}

.blog-index-deck,
.blog-deck {
  max-width: 640px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  font-weight: 560;
}

.blog-author-card {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 520px;
  margin-top: 22px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
}

.blog-author-card img {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  object-fit: cover;
}

.crew-author-card {
  gap: 18px;
}

.crew-avatar-stack {
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.blog-author-card .crew-avatar-stack img {
  width: 58px;
  height: 58px;
  margin-left: -10px;
  border: 3px solid var(--surface);
  box-shadow: 0 10px 22px rgba(24, 19, 15, 0.12);
}

.blog-author-card strong,
.blog-author-card span {
  display: block;
}

.blog-author-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.blog-index-side {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.blog-index-side span,
.blog-index-side strong,
.blog-index-side a {
  display: block;
}

.blog-index-side span {
  color: var(--bronze);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-index-side strong {
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.blog-index-side a,
.blog-section-label a {
  width: fit-content;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid var(--sun);
}

.blog-feature-section,
.blog-archive-section {
  padding-top: 28px;
}

.blog-section-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.blog-section-label .blog-kicker {
  margin-bottom: 0;
}

.blog-section-label span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.featured-post-card {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(320px, 0.38fr);
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #1d1712;
  color: var(--paper);
  text-decoration: none;
}

.featured-post-card > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 50% 45%;
}

.featured-post-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.featured-post-body h2 {
  margin: 0 0 14px;
  color: var(--paper);
  font-size: clamp(32px, 4.8vw, 52px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.featured-post-body p:not(.blog-meta-label) {
  color: rgba(255, 250, 240, 0.76);
  font-size: 16px;
  line-height: 1.52;
  font-weight: 560;
}

.featured-post-body .blog-kicker,
.featured-post-body .blog-meta-label {
  color: var(--sun);
}

.featured-read-link {
  width: fit-content;
  margin-top: 22px;
  color: var(--paper);
  font-size: 15px;
  border-bottom: 2px solid var(--sun);
}

.blog-card-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.compact-blog-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

.blog-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: none;
  color: inherit;
  text-decoration: none;
}

.blog-card > img {
  width: 100%;
  height: 440px;
  min-height: 0;
  object-fit: contain;
  object-position: 50% 50%;
  background: #f1e6d8;
}

.compact-blog-list .blog-card > img {
  height: 270px;
  object-fit: cover;
}

.blog-card-body {
  align-self: end;
  padding: 18px;
}

.compact-blog-list .blog-card-body {
  padding: 16px;
}

.blog-author-chip {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 8px 12px 8px 8px;
  border: 1px solid rgba(24, 19, 15, 0.12);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.88);
  color: var(--ink);
  box-shadow: none;
}

.blog-author-chip img {
  width: 42px;
  height: 42px;
  min-height: 0;
  border-radius: 50%;
  object-fit: cover;
}

.blog-author-chip span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.blog-author-chip strong,
.blog-author-chip em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-author-chip strong {
  font-size: 13px;
  line-height: 1;
}

.blog-author-chip em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.blog-card h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.compact-blog-list .blog-card h2 {
  font-size: 22px;
}

.blog-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 560;
}

.blog-post {
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.blog-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(300px, 0.38fr);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #1d1712;
}

.blog-hero > img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  background: #f1e6d8;
}

.blog-hero::after {
  content: none;
}

.blog-hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  align-self: end;
  padding: 28px;
}

.blog-hero .blog-kicker {
  color: var(--sun);
}

.hero-author-chip {
  margin-bottom: 18px;
  background: rgba(255, 250, 240, 0.92);
  border-color: rgba(255, 250, 240, 0.32);
}

.blog-title {
  color: var(--paper);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1;
}

.blog-deck {
  color: rgba(255, 250, 240, 0.82);
}

.blog-hero-credit {
  margin: 0;
  padding: 11px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
  font-weight: 620;
}

.blog-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  background: transparent;
  border-bottom: 0;
}

.blog-meta-item {
  min-height: 0;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.blog-meta-value {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.22;
  font-weight: 820;
}

.blog-content {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 38px 0 60px;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
  color: var(--ink);
  letter-spacing: -0.035em;
}

.blog-content h1 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.08;
}

.blog-content h2 {
  margin: 40px 0 14px;
  font-size: clamp(23px, 2.7vw, 29px);
  line-height: 1.12;
}

.blog-content h3 {
  margin: 28px 0 10px;
  font-size: 24px;
}

.blog-content p,
.blog-content li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 520;
}

.blog-content p {
  margin: 0 0 18px;
}

.blog-content ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  margin: 0 0 22px;
}

.blog-content strong {
  color: var(--ink);
  font-weight: 820;
}

.blog-content a {
  color: #0d7f86;
  font-weight: 800;
}

.blog-content hr {
  margin: 36px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.blog-figure {
  width: min(840px, calc(100vw - 32px));
  margin: 28px 50%;
  transform: translateX(-50%);
}

.blog-figure:nth-of-type(3n + 1) {
  width: min(620px, calc(100vw - 32px));
}

.blog-figure:nth-of-type(4n + 2) {
  width: min(920px, calc(100vw - 32px));
}

.blog-figure img {
  display: block;
  width: 100%;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(58, 38, 20, 0.09);
}

.blog-figure figcaption {
  max-width: 760px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 620;
}

.blog-gallery {
  width: min(960px, calc(100vw - 32px));
  margin: 34px 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.blog-gallery img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 22px;
  object-fit: cover;
}

.blog-gallery img:first-child {
  grid-column: span 2;
}

.blog-callout {
  margin: 30px 0;
  padding: 20px;
  border-radius: 22px;
  background: #eff9f8;
}

.blog-source-list {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.blog-source-list p,
.blog-source-list li {
  font-size: 15px;
}

@media (max-width: 780px) {
  .blog-shell {
    width: min(100% - 24px, 1080px);
  }

  .blog-index-hero,
  .blog-hero {
    border-radius: 16px;
  }

  .blog-index-hero-refined {
    grid-template-columns: 1fr;
  }

  .blog-index-hero {
    padding: 22px;
  }

  .featured-post-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .featured-post-card > img {
    height: min(430px, 78vw);
    min-height: 0;
  }

  .featured-post-body {
    padding: 22px;
  }

  .blog-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .blog-hero > img {
    height: min(340px, 72vw);
  }

  .blog-hero-content {
    padding: 22px;
  }

  .blog-card-list {
    grid-template-columns: 1fr;
  }

  .compact-blog-list {
    grid-template-columns: 1fr;
  }

  .blog-card-body {
    padding: 18px 22px 24px;
  }

  .blog-meta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .blog-gallery {
    grid-template-columns: 1fr;
  }

  .blog-gallery img:first-child {
    grid-column: auto;
  }
}

@media (max-width: 460px) {
  .blog-index-title,
  .blog-title {
    font-size: clamp(42px, 15vw, 64px);
  }

  .blog-meta-grid {
    grid-template-columns: 1fr;
  }

  .blog-content {
    width: min(100% - 28px, 760px);
  }
}
