:root {
  --bg: #f4efe8;
  --bg-2: #ebe3d8;
  --paper: rgba(255, 252, 248, 0.78);
  --ink: #1c1614;
  --muted: #6f645c;
  --line: rgba(28, 22, 20, 0.12);
  --rose: #9a3d52;
  --rose-2: #c26478;
  --gold: #a68456;
  --shadow: 0 24px 60px rgba(70, 42, 32, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "STSong", "Noto Serif SC", serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --header: rgba(244, 239, 232, 0.88);
  color-scheme: light;
}
html.dark {
  --bg: #14110f;
  --bg-2: #221c18;
  --paper: rgba(32, 26, 23, 0.8);
  --ink: #f6efe8;
  --muted: #b3a69c;
  --line: rgba(246, 239, 232, 0.12);
  --rose: #f0a3b2;
  --rose-2: #e7b7c0;
  --gold: #d7bf90;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --header: rgba(20, 17, 15, 0.88);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(194, 100, 120, 0.16), transparent 55%),
    radial-gradient(900px 420px at -10% 20%, rgba(166, 132, 86, 0.16), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--header);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px; object-fit: cover; display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: 0.04em; }
.brand-text small { color: var(--muted); letter-spacing: 0.22em; font-size: 10px; }
.main-nav { display: flex; gap: 18px; margin-left: 12px; }
.main-nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.main-nav a:hover { color: var(--ink); }
.header-tools { margin-left: auto; display: flex; gap: 8px; }
.icon-btn, .menu-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; display: grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
.hero { padding: 72px 0 28px; }
.hero-compact { padding: 42px 0 10px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); letter-spacing: 0.18em; font-size: 12px; text-transform: uppercase; }
.eyebrow a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
.hero h1 { margin: 0; font-size: clamp(40px, 7vw, 84px); line-height: 1.02; }
.lede { max-width: 680px; color: var(--muted); font-size: 18px; }
.section-head, .card-meta, .article-meta, .footer-bar, .friends ul {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.section-head { margin: 10px 0 0; color: var(--muted); }
.section-head h2 { margin: 0; font-size: 28px; color: var(--ink); }
.list { padding-bottom: 40px; }
.card {
  display: grid; grid-template-columns: 148px 1fr; gap: 22px;
  padding: 26px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.thumb { border-radius: 18px; overflow: hidden; background: var(--bg-2); aspect-ratio: 4/5; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-empty { display: grid; place-items: center; }
.thumb-empty span { font-family: var(--serif); font-size: 42px; color: var(--rose); }
.card h2 { margin: 8px 0; font-size: clamp(22px, 3vw, 32px); line-height: 1.25; }
.card h2 a, .crumbs a { text-decoration: none; }
.card p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta, .article-meta { justify-content: flex-start; color: var(--muted); font-size: 13px; }
.pill {
  text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--rose);
}
.pager { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0 10px; }
.pager a, .pager span {
  min-width: 40px; height: 40px; display: grid; place-items: center; text-decoration: none;
  border-radius: 999px; border: 1px solid var(--line);
}
.pager .is-current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager-arrow { padding: 0 14px; }
.home-hero { padding: 42px 0 8px; }
.home-kicker { display: flex; justify-content: space-between; gap: 12px; color: var(--gold); letter-spacing: 0.18em; font-size: 12px; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.7fr); gap: 36px; align-items: end; margin-top: 18px; }
.home-hero h1 { margin: 0 0 12px; font-size: clamp(46px, 7vw, 84px); line-height: 0.98; }
.home-search { display: flex; gap: 10px; align-items: center; max-width: 560px; margin: 18px 0 16px; }
.home-search input { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 10px 0; outline: none; font-family: var(--serif); font-size: 20px; }
.home-search button { border: 0; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.home-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.home-picks a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; background: var(--paper); }
.home-picks a:hover { color: var(--rose); border-color: var(--rose); }
.home-note { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }
.home-note strong { display: block; font-family: var(--serif); font-size: 48px; line-height: 1; letter-spacing: -0.04em; }
.home-note span { color: var(--muted); letter-spacing: 0.12em; font-size: 13px; }
.home-note p:last-child { margin: 14px 0 0; color: var(--muted); }
.feature-board { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr); gap: 28px; padding: 26px 0 8px; align-items: start; }
.feature-main { display: grid; gap: 16px; align-content: start; }
.feature-visual { display: block; border-radius: 28px; overflow: hidden; background: var(--bg-2); aspect-ratio: 16/10; }
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-empty { display: grid; place-items: center; text-decoration: none; }
.feature-empty span { font-family: var(--serif); font-size: 72px; color: var(--rose); }
.feature-copy h2 { margin: 8px 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.2; }
.feature-copy h2 a { text-decoration: none; }
.feature-copy p { margin: 0 0 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.check-no { font-family: var(--serif); color: var(--gold); letter-spacing: 0.08em; }
.text-link { color: var(--rose); text-decoration: none; border-bottom: 1px solid var(--rose); }
.feature-side { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: 4px 18px 6px; box-shadow: var(--shadow); }
.mini-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; align-items: start; text-decoration: none; padding: 11px 0; border-top: 1px solid var(--line); }
.feature-side .mini-item:first-of-type { border-top: 0; }
.feature-side .eyebrow { margin-top: 12px; }
.mini-item strong { display: block; font-weight: 560; line-height: 1.4; }
.mini-item em { color: var(--muted); font-style: normal; font-size: 13px; }
.checklist { padding: 12px 0 8px; }
.check-list { list-style: none; margin: 8px 0 0; padding: 0; }
.check-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.check-item h3 { margin: 6px 0; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.3; }
.check-item h3 a { text-decoration: none; }
.check-item p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-row { padding: 8px 0 12px; }
.topic-row .topic-cloud { padding-top: 12px; }
.friends { padding: 10px 0 50px; }
.friends h2 { font-size: 28px; }
.friends ul { list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: flex-start; }
.friends a { text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; padding-top: 22px; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding: 10px 0 70px; align-items: start; }
.article-head h1 { margin: 0 0 14px; font-size: clamp(32px, 5vw, 58px); line-height: 1.12; }
.prose { font-size: 17.5px; line-height: 1.9; }
.prose p { margin: 0 0 1em; }
.prose img { border-radius: 22px; margin: 1.2em 0; box-shadow: var(--shadow); }
.prose h2, .prose h3 { line-height: 1.3; margin: 1.4em 0 0.5em; }
.prose a { color: var(--rose); }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.side { position: sticky; top: 96px; display: grid; gap: 16px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 8px; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 8px; font-size: 22px; }
.link-list { margin: 0; padding: 0 0 8px 18px; }
.link-list li { margin: 0 0 10px; }
.link-list a { text-decoration: none; }
.link-list a:hover { color: var(--rose); }
.topic-cloud { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; }
.topic-cloud a { text-decoration: none; background: var(--bg-2); border-radius: 999px; padding: 4px 10px; font-size: 13px; }
.muted, .empty { color: var(--muted); }
.ad-slot:empty { display: none; }
.ad-slot { padding: 10px 0 30px; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.footer-bar { align-items: end; }
.footer-bar p, .copy { margin: 0; color: var(--muted); }
.search-pop[hidden], .mobile-nav[hidden] { display: none; }
.search-pop, .mobile-nav { position: fixed; inset: 0; background: rgba(20, 16, 14, 0.46); z-index: 40; display: grid; align-items: start; justify-content: center; padding-top: 12vh; }
.search-panel, .mobile-nav-panel, .search-inline {
  width: min(560px, calc(100% - 32px)); background: var(--bg); border-radius: 28px; padding: 28px;
  display: grid; gap: 12px; box-shadow: var(--shadow);
}
.search-panel input, .search-inline input {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 12px 0; outline: none; font-size: 22px; font-family: var(--serif);
}
.search-panel button, .search-inline button, .text-btn, .mobile-nav-panel button {
  border: 0; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 10px 18px; width: fit-content; text-decoration: none; cursor: pointer;
}
.mobile-nav-panel a { text-decoration: none; font-family: var(--serif); font-size: 32px; }
@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-btn { display: grid; }
  .article-wrap, .card, .home-hero-grid, .feature-board, .check-item { grid-template-columns: 1fr; }
  .home-search { flex-direction: column; align-items: stretch; }
  .home-kicker { flex-direction: column; gap: 4px; }
  .thumb { aspect-ratio: 16/10; }
  .side { position: static; }
  .hero { padding-top: 42px; }
  .footer-bar, .section-head { align-items: flex-start; flex-direction: column; }
}
