:root {
  --bg: #f3eee7;
  --bg-2: #e7dfd4;
  --paper: #fffcf8;
  --ink: #241c18;
  --muted: #74685f;
  --line: rgba(36, 28, 24, 0.12);
  --gold: #8d6840;
  --gold-2: #c6a36a;
  --rose: #8d534c;
  --blush: #f6e7e1;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", "STSong", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --wrap: 1120px;
  --shadow: 0 24px 60px rgba(70, 42, 28, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(198, 163, 106, 0.18), transparent 60%),
    radial-gradient(900px 420px at 110% 0%, rgba(141, 83, 76, 0.08), transparent 55%),
    var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--rose); }
button, input { font: inherit; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(243, 238, 231, 0.88);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand small {
  display: block;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--gold);
}
.brand strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav > a {
  text-decoration: none;
  letter-spacing: 0.12em;
  font-size: 14px;
}
.site-nav > a[aria-current="page"] { color: var(--rose); }
.search { display: flex; align-items: center; gap: 0; }
.search input {
  width: 168px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 6px 0;
  color: var(--ink);
}
.search button, .pager button, .text-link {
  border: 0;
  background: transparent;
  color: var(--gold);
  letter-spacing: 0.14em;
  cursor: pointer;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  padding: 6px 12px;
  letter-spacing: 0.14em;
}

.hero { padding: 54px 0 10px; }
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: end;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 12px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.02em; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; margin: 0 0 16px; }
.lede { color: var(--muted); font-size: 18px; max-width: 36em; }
.hero-card, .card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-card { padding: 22px; }
.hero-media, .card-media {
  display: block;
  overflow: hidden;
  background: var(--blush);
}
.hero-media { margin: -22px -22px 18px; aspect-ratio: 16 / 10; }
.hero-media img, .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-card h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.25; margin: 0 0 12px; }
.hero-card h2 a, .card h2 a { text-decoration: none; }
.card-date, .article-meta { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; }
.section { padding: 28px 0 64px; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 32px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold-2); }
.card-media { margin: -18px -18px 14px; aspect-ratio: 4 / 3; }
.card h2 { font-size: 22px; line-height: 1.35; margin: 6px 0 10px; }
.card p { color: var(--muted); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more, .text-link { margin-top: auto; text-decoration: none; letter-spacing: 0.16em; font-size: 13px; color: var(--gold); }
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(34px, 5vw, 56px); }
.empty { color: var(--muted); padding: 24px 0 40px; }

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pager a, .pager-muted { letter-spacing: 0.12em; text-decoration: none; }
.pager-muted { color: #b3a79d; }
.pager form { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.pager input {
  width: 76px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 6px 8px;
}

.article-head { padding-top: 42px; max-width: 820px; }
.crumb { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; }
.crumb a { text-decoration: none; }
.article-head h1 { font-size: clamp(32px, 4vw, 52px); }
.article-meta { display: flex; gap: 16px; }
.prose {
  max-width: 760px;
  font-size: 17.5px;
  line-height: 1.95;
  padding-bottom: 12px;
}
.prose p { margin: 0 0 1.15em; }
.prose h2, .prose h3 { line-height: 1.35; margin: 1.4em 0 0.5em; }
.prose img { display: block; margin: 1.2em auto; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.neighbors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 10px 0 20px;
  max-width: 760px;
}
.neighbors a {
  display: block;
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.neighbors .next { text-align: right; }
.neighbors small { display: block; color: var(--gold); letter-spacing: 0.16em; font-size: 12px; }
.neighbors strong { font-family: var(--serif); font-weight: 500; font-size: 20px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 22px;
  color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.footer-mark { font-family: var(--serif); color: var(--ink); font-size: 28px; margin: 0 0 8px; }
.footer-label { letter-spacing: 0.18em; font-size: 12px; text-transform: uppercase; color: var(--gold); }
.year-links { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.year-links a { text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
#to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: var(--shadow);
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero-grid, .card-grid, .neighbors, .footer-grid { grid-template-columns: 1fr; }
  .neighbors .next { text-align: left; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 20px 20px;
    background: rgba(243, 238, 231, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .search input { width: 100%; }
  .header-inner { min-height: 68px; }
  .wrap { width: min(var(--wrap), calc(100% - 32px)); }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
