:root {
  color-scheme: light;
  --primary: #1e293b;
  --primary-soft: #334155;
  --secondary: #f8f9fa;
  --tertiary: #4f46e5;
  --neutral: #64748b;
  --muted: #94a3b8;
  --line: #e5e7eb;
  --paper: #ffffff;
  --ink-soft: #475569;
  --sand: #f2eee8;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--secondary);
  color: var(--primary);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.editorial-shell {
  width: min(980px, calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 249, 250, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  justify-self: start;
  color: var(--primary);
  font-family: Georgia, "Songti SC", serif;
  font-size: 1.22rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
}

.site-nav {
  justify-self: center;
  gap: 30px;
}

.site-nav a,
.site-footer a,
.nav-action,
.text-link {
  color: var(--neutral);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--primary);
  outline: none;
}

.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 7px;
}

.nav-action {
  justify-self: end;
  min-height: 40px;
  padding: 10px 19px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

.nav-action:hover,
.nav-action:focus-visible {
  background: var(--tertiary);
  outline: none;
}

.eyebrow,
.section-kicker,
.post-meta {
  margin: 0;
  color: var(--tertiary);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.hero-note h2,
.feature-article h3,
.compact-list h3,
.topic-grid h2,
.subscribe-band h2,
.page-title h1,
.archive-year h2,
.archive-entry h3,
.about-copy h2,
.article-header h1,
.article-body h2,
.article-body h3,
.comment-card h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, "Songti SC", "Noto Serif SC", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.hero {
  padding: 88px 0 72px;
}

.hero h1 {
  max-width: 760px;
  margin-top: 12px;
  font-size: clamp(2.65rem, 5.2vw, 4.85rem);
  line-height: 1.03;
}

.hero__lede {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.92;
}

.hero-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) 310px;
  gap: 24px;
  align-items: start;
  margin-top: 48px;
}

.hero-feature figure {
  margin: 0;
}

.hero-feature img {
  width: 100%;
  aspect-ratio: 16 / 9.6;
  object-fit: cover;
  border: 1px solid var(--line);
}

.hero-note {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.hero-note h2 {
  margin-top: 12px;
  font-size: 1.6rem;
  line-height: 1.18;
}

.hero-note a,
.feature-article a,
.compact-list a,
.archive-entry a,
.article-header a {
  text-decoration: none;
}

.hero-note a:hover,
.hero-note a:focus-visible,
.feature-article a:hover h3,
.feature-article a:focus-visible h3,
.compact-list a:hover,
.compact-list a:focus-visible,
.archive-entry a:hover,
.archive-entry a:focus-visible {
  color: var(--tertiary);
  outline: none;
}

.hero-note p,
.feature-article p,
.compact-list p,
.topic-grid p,
.subscribe-band p,
.page-title p,
.archive-entry p,
.about-copy p,
.article-body p,
.article-body li,
.comment-card p {
  color: var(--ink-soft);
  line-height: 1.86;
}

.hero-note p {
  margin: 14px 0 0;
}

.latest-section,
.page-title,
.archive-layout,
.about-layout,
.article-layout {
  padding: 64px 0;
}

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

.section-heading h2,
.subscribe-band h2,
.about-copy h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.feature-article a,
.compact-list article,
.archive-entry,
.about-card,
.comment-card {
  border: 1px solid var(--line);
  background: var(--paper);
}

.feature-article a {
  display: grid;
  gap: 16px;
  padding: 18px;
}

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

.feature-article h3 {
  max-width: 640px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.12;
}

.feature-article p {
  margin: 0;
}

.compact-list {
  display: grid;
  gap: 14px;
}

.compact-list article {
  padding: 22px;
}

.compact-list h3 {
  margin-top: 9px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.soft-band {
  margin-top: 34px;
  padding: 58px 0;
  background: #eef2f7;
}

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

.topic-grid article {
  min-height: 218px;
  padding: 26px;
  border: 1px solid #dbe2ec;
  background: rgba(255, 255, 255, 0.72);
}

.topic-grid span {
  display: block;
  margin-bottom: 46px;
  color: var(--tertiary);
  font-weight: 850;
}

.topic-grid h2 {
  font-size: 1.85rem;
}

.subscribe-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-top: 66px;
  margin-bottom: 66px;
  padding: 40px;
  background: var(--primary);
  color: #fff;
}

.subscribe-band p {
  max-width: 660px;
  margin: 14px 0 0;
  color: #cbd5e1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 850;
  text-decoration: none;
}

.button--inverted {
  background: #fff;
  color: var(--primary);
}

.button--inverted:hover,
.button--inverted:focus-visible {
  background: var(--tertiary);
  color: #fff;
  outline: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 40px;
  border-top: 1px solid var(--line);
  color: var(--neutral);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  gap: 22px;
}

.page-title {
  display: grid;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.page-title h1,
.article-header h1 {
  max-width: 820px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.02;
}

.page-title p {
  max-width: 690px;
  margin: 0;
  font-size: 1.05rem;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 34px;
}

.search-field {
  display: grid;
  gap: 8px;
}

.search-field span {
  color: var(--neutral);
  font-size: 0.82rem;
  font-weight: 850;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 14px;
  background: #fff;
  color: var(--primary);
  font: inherit;
}

.search-field input:focus {
  border-color: var(--tertiary);
  outline: 3px solid rgba(79, 70, 229, 0.16);
}

.tag-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.tag-button {
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--neutral);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

.tag-button.is-active,
.tag-button:hover,
.tag-button:focus-visible {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  outline: none;
}

.archive-layout {
  display: grid;
  gap: 40px;
}

.archive-year {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.archive-year[hidden],
.archive-entry[hidden],
.empty-state[hidden] {
  display: none;
}

.archive-year h2 {
  font-size: 2.45rem;
}

.archive-stack {
  display: grid;
  gap: 14px;
}

.archive-entry {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.archive-entry time,
.post-meta {
  color: var(--neutral);
}

.archive-entry h3 {
  font-size: 1.55rem;
  line-height: 1.16;
}

.archive-entry p {
  margin: 0;
}

.empty-state {
  margin: 0 0 22px;
  padding: 16px 18px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: var(--neutral);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 0.9fr);
  gap: 52px;
  align-items: start;
}

.about-portrait {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-copy {
  display: grid;
  gap: 22px;
}

.about-copy p {
  margin: 0;
  font-size: 1.04rem;
}

.about-card {
  padding: 22px;
}

.about-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.quiet-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.article-header {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 58px 0 38px;
  text-align: center;
}

.article-header .post-meta {
  color: var(--tertiary);
}

.article-header h1 {
  max-width: 900px;
}

.article-hero {
  width: min(900px, calc(100vw - 40px));
  margin: 0 auto;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) 240px;
  gap: 52px;
  align-items: start;
}

.article-body {
  display: grid;
  gap: 21px;
}

.article-body p,
.article-body li {
  margin: 0;
  font-size: 1.06rem;
}

.article-body h2,
.article-body h3 {
  margin: 16px 0 0;
}

.article-body h2 {
  font-size: 2rem;
}

.article-body h3 {
  font-size: 1.45rem;
}

.article-body blockquote {
  margin: 10px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--tertiary);
  background: #fff;
  color: var(--primary);
  font-family: "Playfair Display", Georgia, "Songti SC", serif;
  font-size: 1.35rem;
  line-height: 1.58;
}

.article-aside {
  position: sticky;
  top: 102px;
  display: grid;
  gap: 14px;
}

.comment-card {
  padding: 20px;
}

.comment-card h3 {
  font-size: 1.18rem;
}

.comment-card p {
  margin: 12px 0 0;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    row-gap: 14px;
    padding: 16px 22px;
  }

  .site-nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .nav-action {
    justify-self: end;
  }

  .hero-feature,
  .featured-grid,
  .about-layout,
  .article-layout {
    grid-template-columns: 1fr;
  }

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

  .toolbar,
  .subscribe-band {
    grid-template-columns: 1fr;
  }

  .tag-filter {
    justify-content: flex-start;
  }

  .archive-year {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 560px) {
  .editorial-shell,
  .article-hero {
    width: min(100% - 32px, 980px);
  }

  .site-header {
    padding: 14px 16px;
  }

  .brand {
    font-size: 1.05rem;
  }

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

  .site-nav a {
    text-align: center;
  }

  .nav-action {
    padding-right: 14px;
    padding-left: 14px;
  }

  .hero {
    padding-top: 52px;
    padding-bottom: 46px;
  }

  .hero h1,
  .page-title h1,
  .article-header h1 {
    font-size: 2.55rem;
  }

  .hero-feature {
    margin-top: 34px;
  }

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

  .feature-article a,
  .compact-list article,
  .archive-entry,
  .about-card,
  .subscribe-band,
  .hero-note {
    padding: 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px 16px;
  }
}
