:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --ink: #24211c;
  --muted: #665f54;
  --accent: #a34328;
  --rule: #d9d2c4;
  --serif: "STIX Two Text", "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  --sans: "Instrument Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.masthead { min-height: 76px; border-bottom: 1px solid var(--rule); }
.masthead nav a, .back { font-size: .9rem; text-decoration: none; color: var(--muted); }
.masthead nav a:hover, .back:hover { color: var(--accent); }
.wordmark { font: 700 1.8rem/1 Georgia, var(--serif); letter-spacing: -.065em; text-decoration: none; }
.wordmark span, .hero h1 span { color: var(--accent); }
.hero { display: grid; grid-template-columns: 1fr 1.18fr; align-items: center; gap: 46px; padding-block: 54px 64px; }
.hero h1, .article-head h1 { font-family: var(--serif); letter-spacing: -.045em; margin: 0; }
.hero h1 { font-size: clamp(3.45rem, 6.3vw, 6.1rem); line-height: 1.08; }
.hero-copy p { margin: 23px 0 25px; max-width: 24ch; color: var(--muted); line-height: 1.75; font-size: 1.04rem; }
.hero img { display: block; width: 100%; height: auto; aspect-ratio: 1.58; object-fit: cover; background: #473522; border-radius: 3px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 42px; padding: 0 15px; border: 1px solid var(--ink); border-radius: 3px; text-decoration: none; font-size: .88rem; font-weight: 600; }
.pill:hover { background: var(--ink); color: var(--paper); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-bottom: 13px; }
.section-heading h2, .prose h2 { margin: 0; font: 700 1.7rem/1.3 var(--serif); }
.section-heading > span, .footer > span { font-size: .84rem; color: var(--muted); }
.entry { display: grid; grid-template-columns: 155px minmax(0, 1fr) 42px; gap: 26px; align-items: start; padding: 25px 0; border-bottom: 1px solid var(--rule); }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--muted); font-size: .82rem; line-height: 1.7; }
.entry-meta span:first-child { color: var(--accent); font-weight: 700; }
.entry h3 { margin: 0; font: 700 clamp(1.21rem, 2vw, 1.62rem)/1.45 var(--serif); }
.entry h3 a { text-decoration: none; }
.entry p { margin: 8px 0 12px; color: var(--muted); line-height: 1.75; font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.tags li { border: 1px solid var(--rule); padding: 3px 8px; border-radius: 2px; color: var(--muted); font-size: .74rem; }
.open-entry { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--rule); border-radius: 50%; text-decoration: none; font-size: 1.25rem; }
.open-entry:hover { border-color: var(--accent); }
.footer { margin-top: 52px; min-height: 74px; border-top: 1px solid var(--rule); }
.footer .wordmark { font-size: 1.26rem; }
.article-wrap { width: min(740px, calc(100% - 56px)); margin: 34px auto 70px; }
.article-head { margin: 23px 0 36px; padding-bottom: 29px; border-bottom: 1px solid var(--rule); }
.article-head h1 { margin: 12px 0 22px; font-size: clamp(2rem, 5.2vw, 3.35rem); line-height: 1.26; }
.prose { margin-top: 32px; font-size: 1rem; line-height: 1.9; overflow-wrap: anywhere; }
.prose p { margin: 15px 0; }
.prose a { color: #87361f; }
.prose blockquote { margin: 16px 0 0; padding: 14px 20px; border-left: 3px solid var(--accent); background: #eee8dc; }
.highlights { list-style: none; padding: 0; margin: 13px 0 0; }
.highlights li { padding: 15px 0; border-bottom: 1px solid var(--rule); }
.highlights strong { display: block; font-family: var(--serif); font-size: 1.07em; }

@media (max-width: 740px) {
  .wrap, .article-wrap { width: calc(100% - 36px); }
  .masthead { min-height: 64px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 30px 37px; }
  .hero h1 { font-size: clamp(2.8rem, 10.7vw, 4.5rem); }
  .hero-copy p { margin: 13px 0 16px; max-width: none; }
  .hero img { aspect-ratio: 1.8; }
  .entry { grid-template-columns: minmax(0, 1fr) 38px; column-gap: 10px; row-gap: 6px; padding: 18px 0; }
  .entry > .entry-meta { grid-column: 1 / -1; }
  .open-entry { width: 38px; height: 38px; }
  .article-wrap { margin-top: 24px; }
  .footer { margin-top: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
