:root {
  --bg: #f5f1e8;
  --panel: #fbf8f1;
  --ink: #2b211c;
  --muted: #6f665e;
  --line: #ded5c8;
  --accent: #a4562f;
  --accent-2: #6b7c63;
  --accent-3: #4d6480;
  --soft: #ede4d7;
  --shadow: 0 18px 44px rgba(43, 33, 28, .07);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 241, 232, .9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 720;
  letter-spacing: 0;
  color: #342923;
}

.brand-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  box-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 7px 10px;
  border-radius: 6px;
  color: #5d554f;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(43, 33, 28, .06);
  color: var(--ink);
}

.hero {
  min-height: 680px;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
  filter: saturate(.65) sepia(.16);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(245, 241, 232, .78) 0%, rgba(245, 241, 232, .94) 82%),
    linear-gradient(90deg, rgba(245, 241, 232, .99) 0%, rgba(245, 241, 232, .86) 58%, rgba(245, 241, 232, .68) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 94px 0 50px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 650;
  font-size: 13px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 500;
}

h1 {
  max-width: 820px;
  margin: 20px 0 22px;
  font-size: clamp(46px, 7vw, 86px);
}

.hero p {
  max-width: 680px;
  margin: 0 0 30px;
  font-size: 20px;
  color: #5f564f;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #2b211c;
  border-radius: 7px;
  font-weight: 650;
  background: var(--ink);
  color: #fbf8f1;
}

.btn.secondary {
  color: var(--ink);
  background: rgba(251, 248, 241, .45);
}

.section {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
}

.section-title p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 520px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 28px;
  align-items: start;
}

.lead-story {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}

.lead-story h3 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.02;
}

.lead-story p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.side-index {
  border-top: 1px solid var(--line);
}

.index-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.index-row span {
  color: #a69b90;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 22px;
}

.index-row strong {
  display: block;
  margin-bottom: 4px;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.18;
}

.index-row em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

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

.article-row {
  display: grid;
  grid-template-columns: 150px 1fr 120px;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.article-row .topic {
  color: #8d4b2d;
  font-weight: 650;
  font-size: 14px;
}

.article-row h3 {
  margin: 0 0 8px;
  font-size: 27px;
}

.article-row p {
  margin: 0;
  color: var(--muted);
}

.article-row .time {
  color: #8a8178;
  font-size: 14px;
  text-align: right;
}

.quote-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 46px 0;
}

.quote-band p {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  color: #3b302a;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.18;
}

.card {
  background: rgba(251, 248, 241, .68);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  box-shadow: none;
}

.card.featured {
  grid-column: span 2;
  background: rgba(251, 248, 241, .92);
}

.card.compact h3 {
  font-size: 20px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 42px;
  max-width: 860px;
}

.feature-item {
  background: rgba(251, 248, 241, .82);
  padding: 18px;
}

.feature-item b {
  display: block;
  margin-bottom: 6px;
}

.feature-item span {
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  color: #7c472e;
  background: #eadccd;
}

.tag.orange {
  color: #704126;
  background: #ead8ca;
}

.tag.blue {
  color: #4d6480;
  background: #dfe6e8;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 25px;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.meta {
  color: #857b72;
  font-size: 14px;
}

.read-link {
  color: #8d4b2d;
  font-weight: 700;
}

.band {
  background: #2b211c;
  color: #f8f0e7;
}

.band .section-title p,
.band .meta,
.band .card p {
  color: #d8ccc0;
}

.band .card {
  background: rgba(245, 241, 232, .06);
  border-color: rgba(245, 241, 232, .16);
}

.band .read-link {
  color: #e8b08d;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: start;
}

.note-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(251, 248, 241, .72);
  padding: 28px;
  box-shadow: none;
}

.note-panel h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.note-panel ul,
.article ul {
  padding-left: 21px;
}

.topic-list {
  display: grid;
  gap: 12px;
}

.topic-item {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.topic-item:last-child {
  border-bottom: 0;
}

.topic-item strong {
  color: #8d4b2d;
}

.topic-item p {
  margin: 0;
  color: var(--muted);
}

.signal-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.signal {
  background: rgba(251, 248, 241, .72);
  padding: 22px;
}

.signal strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: #8d4b2d;
}

.signal span {
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 46px;
}

.page-layout {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 80px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 46px;
}

.page-aside {
  position: sticky;
  top: 92px;
  align-self: start;
  color: var(--muted);
  font-size: 14px;
}

.page-aside a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(222, 213, 200, .7);
}

.article-catalog {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(38px, 6vw, 66px);
}

.content-wrap {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 76px;
}

.article {
  background: rgba(251, 248, 241, .84);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(24px, 5vw, 54px);
  box-shadow: var(--shadow);
}

.article h2 {
  margin-top: 34px;
  font-size: 30px;
}

.article h3 {
  margin-top: 26px;
  font-size: 22px;
}

.article p,
.article li {
  color: #4a4039;
}

.article blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid #a4562f;
  color: #463a33;
  font-weight: 700;
}

.article code {
  background: #ebe1d3;
  padding: 2px 6px;
  border-radius: 5px;
}

.article pre {
  overflow-x: auto;
  background: #2b211c;
  color: #f8f0e7;
  padding: 18px;
  border-radius: 8px;
}

.article .checklist {
  background: #f0e7da;
  border: 1px solid #dccdbc;
  border-radius: 6px;
  padding: 18px 20px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.toc a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  color: #33423b;
  background: rgba(251, 248, 241, .68);
}

.post-more {
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.post-more-head {
  margin-bottom: 22px;
}

.post-more-head h2 {
  margin: 6px 0 0;
  font-size: clamp(26px, 3.4vw, 38px);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(251, 248, 241, .72);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  transition: border-color .18s ease, transform .18s ease;
}

.related-card:hover {
  border-color: #c9b7a4;
  transform: translateY(-2px);
}

.related-card .topic {
  color: #8d4b2d;
  font-weight: 650;
  font-size: 13px;
}

.related-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.22;
}

.related-card .time {
  margin-top: auto;
  color: #8a8178;
  font-size: 13px;
}

.post-back {
  display: inline-block;
  margin-top: 28px;
  color: #8d4b2d;
  font-weight: 650;
}

.post-back:hover {
  text-decoration: underline;
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(251, 248, 241, .72);
}

.footer-inner {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: #8d4b2d;
}

@media (max-width: 820px) {
  .nav {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
  }

  .hero {
    min-height: 690px;
  }

  .hero-inner {
    padding: 72px 0 42px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero p {
    font-size: 18px;
  }

  .feature-strip {
    margin-top: 30px;
  }

  .hero-media::after {
    background: linear-gradient(180deg, rgba(245, 241, 232, .98) 0%, rgba(245, 241, 232, .93) 60%, rgba(245, 241, 232, .76) 100%);
  }

  .grid,
  .signal-list,
  .feature-strip,
  .split,
  .editorial-grid,
  .related-grid,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-aside {
    position: static;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .article-row .time {
    text-align: left;
  }

  .topic-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .card.featured {
    grid-column: auto;
  }

  .section-title {
    display: block;
  }
}
