:root {
  color-scheme: light;
  --paper: #f8f4ed;
  --paper-soft: #fffaf2;
  --ink: #24211d;
  --muted: #6d675f;
  --line: #ddd2c1;
  --sage: #6d7b5b;
  --rust: #a85235;
  --blue: #3f6474;
  --shadow: 0 18px 45px rgba(45, 38, 29, 0.12);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Songti SC", "Noto Serif CJK SC", "Microsoft YaHei", serif;
  font-size: 16px;
  line-height: 1.7;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -44px;
  z-index: 20;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper-soft);
  padding: 8px 12px;
  transition: top 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(36, 33, 29, 0.12);
  background: rgba(248, 244, 237, 0.86);
  backdrop-filter: blur(18px);
}

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

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(36, 33, 29, 0.2);
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--rust);
  font-size: 17px;
  line-height: 1;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.site-footer a,
.back-link,
.text-button {
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.site-footer a:hover,
.back-link:hover {
  color: var(--rust);
}

.home-hero {
  position: relative;
  min-height: clamp(480px, 72vh, 700px);
  overflow: hidden;
  background: #1f211f;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(22, 20, 17, 0.78), rgba(22, 20, 17, 0.32) 52%, rgba(22, 20, 17, 0.08)),
    linear-gradient(0deg, rgba(22, 20, 17, 0.18), rgba(22, 20, 17, 0.04));
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(var(--max), calc(100% - 40px));
  min-height: clamp(480px, 72vh, 700px);
  margin: 0 auto;
  color: var(--paper-soft);
}

.eyebrow,
.section-kicker,
.article-meta,
.post-meta {
  margin: 0;
  color: var(--rust);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #f2c7ad;
}

.hero-copy h1 {
  max-width: 680px;
  margin: 12px 0 18px;
  font-size: 86px;
  font-weight: 700;
  line-height: 1.05;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 0 28px;
  color: rgba(255, 250, 242, 0.86);
  font-size: 20px;
}

.text-button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 42px;
  border-bottom: 1px solid currentColor;
  color: var(--rust);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.hero-copy .text-button {
  color: #f8e2cf;
}

.text-button:hover {
  transform: translateY(-1px);
}

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

.intro-grid,
.note-band,
.about-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 48px;
  border-bottom: 1px solid var(--line);
}

.intro-grid h2,
.section-heading h2,
.note-band h2,
.about-section h2 {
  margin: 8px 0 0;
  font-size: 42px;
  line-height: 1.2;
}

.intro-grid > p,
.about-section > p {
  margin: 0;
  color: var(--muted);
  font-size: 19px;
}

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

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  min-height: 310px;
  border: 1px solid rgba(36, 33, 29, 0.14);
  border-radius: 8px;
  background: var(--paper-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 82, 53, 0.42);
  box-shadow: var(--shadow);
}

.post-card a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 28px;
}

.post-card h3 {
  margin: 14px 0 12px;
  font-size: 25px;
  line-height: 1.28;
}

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

.read-more {
  margin-top: auto;
  padding-top: 30px;
  color: var(--blue);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.note-band {
  align-items: start;
  border-top: 1px solid var(--line);
}

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

.note-list p {
  margin: 0;
  border-left: 3px solid var(--sage);
  background: rgba(255, 250, 242, 0.76);
  padding: 14px 18px;
  color: #47423c;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.footer-identity {
  display: grid;
  gap: 3px;
}

.beian {
  color: #858078;
  font-size: 13px;
}

.beian a {
  text-decoration: underline;
  text-decoration-color: rgba(133, 128, 120, 0.45);
  text-underline-offset: 3px;
}

.article-page {
  padding: 62px 0 0;
}

.article-list-page {
  padding-top: 26px;
}

.article-list-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 54px;
}

.article-list-hero h1 {
  margin: 10px 0 18px;
  font-size: 64px;
  line-height: 1.1;
}

.article-list-hero p:not(.section-kicker) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.article-list-section {
  padding-top: 52px;
}

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

.archive-item a {
  display: grid;
  min-height: 142px;
  grid-template-columns: 156px minmax(0, 1fr) 92px;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.archive-item a:hover {
  border-color: rgba(168, 82, 53, 0.42);
  transform: translateX(4px);
}

.archive-meta,
.archive-copy {
  display: grid;
  gap: 5px;
}

.archive-date,
.archive-topic,
.archive-action {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.archive-date {
  color: var(--rust);
  font-size: 13px;
  font-weight: 700;
}

.archive-topic {
  color: var(--muted);
  font-size: 13px;
}

.archive-title {
  color: var(--ink);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.28;
}

.archive-summary {
  color: var(--muted);
  font-size: 16px;
}

.archive-action {
  justify-self: end;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.article-shell {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
}

.article-header {
  padding: 28px 0 34px;
}

.back-link {
  color: var(--blue);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.article-meta {
  margin-top: 30px;
}

.article-header h1 {
  margin: 14px 0 18px;
  font-size: 74px;
  line-height: 1.06;
}

.article-lede {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 21px;
}

.article-cover {
  margin: 0 0 54px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-body {
  color: #332f2a;
  font-size: 19px;
}

.article-body p {
  margin: 0 0 1.35em;
}

.article-body h2 {
  margin: 2.1em 0 0.72em;
  font-size: 30px;
  line-height: 1.25;
}

.article-body blockquote {
  margin: 2em 0;
  border-left: 4px solid var(--rust);
  background: var(--paper-soft);
  padding: 20px 24px;
  color: #3f3a34;
  font-size: 22px;
  line-height: 1.6;
}

.article-footer {
  padding: 24px 0 72px;
}

@media (max-width: 820px) {
  .nav {
    width: min(100% - 28px, var(--max));
  }

  .nav-links {
    gap: 14px;
  }

  .home-hero,
  .hero-copy {
    min-height: 560px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(22, 20, 17, 0.68), rgba(22, 20, 17, 0.22));
  }

  .hero-copy {
    justify-content: end;
    padding-bottom: 56px;
  }

  .hero-copy h1 {
    font-size: 62px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 18px;
  }

  .section {
    width: min(100% - 28px, var(--max));
    padding: 60px 0;
  }

  .intro-grid,
  .note-band,
  .about-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .post-card {
    min-height: 250px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .intro-grid h2,
  .section-heading h2,
  .note-band h2,
  .about-section h2 {
    font-size: 34px;
  }

  .article-shell {
    width: min(100% - 28px, 820px);
  }

  .article-page {
    padding-top: 36px;
  }

  .article-header h1 {
    font-size: 54px;
  }

  .article-lede,
  .article-body {
    font-size: 18px;
  }

  .archive-item a {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 24px 0;
  }

  .archive-action {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .nav {
    min-height: 62px;
  }

  .brand span:last-child {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-links {
    font-size: 13px;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .intro-grid h2,
  .section-heading h2,
  .note-band h2,
  .about-section h2 {
    font-size: 30px;
  }

  .post-card a {
    padding: 24px;
  }

  .site-footer {
    width: min(100% - 28px, var(--max));
    align-items: flex-start;
    flex-direction: column;
  }

  .article-header h1 {
    font-size: 42px;
  }

  .article-list-hero h1 {
    font-size: 42px;
  }

  .article-list-hero p:not(.section-kicker) {
    font-size: 18px;
  }

  .archive-title {
    font-size: 24px;
  }
}
