:root {
  color-scheme: light;
  --ink: #202724;
  --forest: #182320;
  --deep: #111917;
  --muted: #52605a;
  --paper: #f5f4ef;
  --white: #fffefa;
  --line: #dedfd5;
  --gold: #e5c596;
  --bronze: #795b35;
  --display: "Songti SC", "SimSun", "Noto Serif SC", serif;
  --text: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --shell: min(1200px, calc(100% - 64px));
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.65 var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--bronze); }
:focus-visible { outline: 2px solid #9d773f; outline-offset: 4px; }
p, ul { margin-top: 0; }
main, footer, .mast, .nav { width: var(--shell); margin-inline: auto; }
main { padding: 29px 0 0; }

.skip, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.skip:focus {
  width: auto;
  height: auto;
  clip-path: none;
  z-index: 5;
  padding: 6px;
  background: var(--white);
}

.site-header {
  background: var(--deep);
  color: #f7f5eb;
  border-bottom: 1px solid #566058;
}

.mast {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f8f7ed;
  text-decoration: none;
}

.brand:hover { color: var(--gold); }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand strong { font: bold 29px/1.15 var(--display); letter-spacing: .12em; }
.search { display: flex; align-items: stretch; }
button, input, textarea { font: inherit; }

.search input {
  width: min(230px, 25vw);
  min-width: 0;
  border: 1px solid #52615a;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  padding: 6px 11px;
  background: #1e2925;
  color: #fffefa;
}

.search input::placeholder { color: #c6cec7; }
button { cursor: pointer; border: 1px solid #617168; padding: 6px 12px; background: var(--forest); color: var(--white); }
button:hover { background: #2f3f37; }
.search button { border-radius: 0 4px 4px 0; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(16px, 2.5vw, 36px);
  border-top: 1px solid #3a4841;
}

.nav a {
  padding: 11px 0 10px;
  border-bottom: 2px solid transparent;
  color: #e2e7e1;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover, .nav a[aria-current] {
  border-color: var(--gold);
  color: var(--gold);
}

.nav a:focus-visible { outline-color: var(--gold); outline-offset: -3px; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(360px, 41vw, 510px);
  overflow: hidden;
  border-radius: 7px;
  background: var(--deep);
  color: var(--white);
}

.hero > img, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero > img {
  z-index: -2;
  display: block;
  object-fit: cover;
  object-position: 65% 54%;
}

.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #101917 0%, rgba(16, 25, 23, .92) 19%, rgba(16, 25, 23, .6) 38%, rgba(16, 25, 23, .08) 65%, transparent 79%);
}

.hero-copy {
  max-width: 520px;
  padding: 45px 0;
  margin-inline: clamp(32px, 6vw, 76px) 24px;
}

.hero h1 {
  margin: 0;
  color: #fcf8ea;
  font: bold clamp(66px, 8vw, 106px)/1.02 var(--display);
  letter-spacing: .13em;
}

.hero-copy p {
  max-width: 27.5em;
  margin: 20px 0 0;
  color: #f0efe6;
  font-size: 17px;
  line-height: 1.8;
}

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

.hero-actions a {
  display: inline-block;
  border: 1px solid #adbaa9;
  border-radius: 4px;
  padding: 8px 16px;
  color: #fffefa;
  text-decoration: none;
  font-size: 15px;
}

.hero-actions a:first-child {
  border-color: var(--gold);
  background: var(--gold);
  color: #26251e;
}

.hero-actions a:hover { border-color: #fffefa; text-decoration: underline; }

.home-headlines, .channel-grid, .columns { display: grid; }
.home-headlines {
  grid-template-columns: minmax(0, 1.16fr) repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 30px;
}

.home-headlines > .box {
  padding: 16px 20px 12px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--forest);
  border-radius: 4px;
  background: var(--white);
}

.home-headlines > .box:first-child { border-top-color: #a1804d; }
.home-headlines > .box:first-child .links li:first-child a { font-weight: bold; }

.channel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  margin-top: 38px;
}

.channel-grid > .box, .home-qa {
  padding: 15px 19px 10px;
  border-top: 1px solid #909f95;
  background: var(--white);
}

.box { min-width: 0; overflow-wrap: anywhere; }
.box-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  font: bold 24px/1.4 var(--display);
}

h1.box-title {
  padding-bottom: 17px;
  font-size: clamp(32px, 4vw, 45px);
}

.box-title a, .listing h2 a, .links a { text-decoration: none; }
.box-title a:hover, .listing h2 a:hover, .links a:hover { text-decoration: underline; }
.box-title .more { font: normal 14px/1.5 var(--text); color: var(--muted); white-space: nowrap; }
.links { margin: 0; padding: 0; list-style: none; }
.links li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.links li:last-child { border-bottom: 0; }
.home-qa { margin-top: 28px; }
.home-qa .links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.home-qa .links li { border-bottom: 1px solid var(--line); }

.breadcrumb { margin: 0 0 19px; font-size: 14px; color: var(--muted); }
.breadcrumb a + a::before { content: " / "; display: inline-block; margin: 0 9px 0 4px; color: #826e51; }
.columns { grid-template-columns: minmax(0, 2.35fr) minmax(245px, 1fr); gap: 28px; align-items: start; }
.columns > div { min-width: 0; }

.listing { margin: 0; padding: 0; list-style: none; }
.listing li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.listing li:last-child { border-bottom: 0; }
.listing h2 { margin: 0; font-size: 20px; line-height: 1.45; }
.listing p, .section-note { margin: 5px 0 0; color: var(--muted); }
.section-note { padding: 10px 0 13px; border-bottom: 1px solid var(--line); }

.reading {
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.reading h1 {
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  font: bold clamp(30px, 3.4vw, 46px)/1.3 var(--display);
}

.prose { font-size: 17px; line-height: 1.9; }
.prose h2 { margin: 1.14em 0 .46em; color: var(--forest); font: bold 23px/1.4 var(--display); }
.prose h3 { margin: 0 0 5px; font-size: 16px; line-height: 1.5; color: #394a40; }
.prose p { margin: 0 0 .9em; }
.prose img { max-width: 100%; height: auto; }

.question {
  padding: 12px 15px;
  margin: 0 0 16px;
  border-left: 3px solid #ae8b59;
  background: #f3f1e9;
}

.answer { padding: 13px 0; border-top: 1px solid var(--line); }
.answer:last-child { padding-bottom: 0; }
.answer p:last-child { margin-bottom: 0; }
.related .box { padding: 15px 17px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.related .box + .box { margin-top: 14px; }
.related .box-title { font-size: 22px; }

.adjacent, .pagination, .comments {
  margin-top: 17px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.adjacent { display: grid; gap: 6px; }
.adjacent-label { margin-right: 8px; color: var(--bronze); font-weight: bold; }
.pagination { display: flex; flex-wrap: wrap; gap: 12px; }
.pagination [aria-current] { color: var(--bronze); font-weight: bold; }
.comments h2 { margin: 0 0 6px; font: bold 21px/1.4 var(--display); }
.comments p { margin-bottom: 8px; }
.comments textarea, .comments label { display: block; width: 100%; margin-bottom: 6px; }
.comments textarea { border: 1px solid #919d94; border-radius: 4px; background: var(--white); }

footer { margin-top: 39px; padding: 15px 0 23px; border-top: 1px solid #a9b1a9; }
.friends .box-title { color: var(--muted); font-size: 18px; }
.friends ul { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; margin: 0; padding: 8px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 14px; color: var(--muted); }

@media (max-width: 880px) {
  :root { --shell: calc(100% - 40px); }
  .home-headlines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .home-headlines > .box:first-child { grid-column: 1 / -1; }
  .home-headlines > .box:first-child > .links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .home-headlines > .box:first-child .links li { border-bottom: 1px solid var(--line); }
  .columns { gap: 18px; grid-template-columns: minmax(0, 1fr); }
  .related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
  .related .box + .box { margin-top: 0; }
}

@media (max-width: 650px) {
  :root { --shell: calc(100% - 28px); }
  .mast { min-height: 59px; gap: 12px; }
  .brand strong { font-size: 24px; white-space: nowrap; }
  .brand img { width: 28px; height: 28px; }
  .search input { width: min(150px, 36vw); font-size: 14px; padding-inline: 7px; }
  .search button { font-size: 14px; padding-inline: 7px; white-space: nowrap; }
  .nav { font-size: 14px; padding-bottom: 4px; }
  .nav a { padding: 6px 0 5px; }
  main { padding-top: 16px; }
  .hero { min-height: 0; flex-direction: column; align-items: stretch; }
  .hero::after { display: none; }
  .hero > img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; object-position: 68% 56%; }
  .hero-copy { margin: 0; padding: 20px 19px 23px; }
  .hero h1 { font-size: 53px; }
  .hero-copy p { margin-top: 10px; font-size: 15px; }
  .hero-actions { margin-top: 16px; }
  .hero-actions a { padding: 6px 10px; }
  .home-headlines { gap: 13px; margin-top: 18px; }
  .channel-grid { gap: 13px; margin-top: 22px; }
  .home-headlines, .home-headlines > .box:first-child > .links, .channel-grid, .home-qa .links, .related { grid-template-columns: minmax(0, 1fr); }
  .home-headlines > .box, .channel-grid > .box, .home-qa { padding-inline: 14px; }
  .reading { padding: 17px; }
  .reading h1 { margin-bottom: 17px; }
}

