
:root {
  --bg: #f3efe6;
  --bg-soft: #fbf8f2;
  --panel: rgba(255,255,255,0.72);
  --line: rgba(68,94,104,0.14);
  --text: #26404b;
  --muted: #607781;
  --brand: #4e7c7b;
  --brand-strong: #2f5d69;
  --accent: #d9985f;
  --accent-soft: #ecd3b2;
  --shadow: 0 18px 50px rgba(49,79,91,0.10);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin:0;
  color:var(--text);
  background: radial-gradient(circle at top right, rgba(233, 204, 153, 0.35), transparent 30%), linear-gradient(180deg, #eef7f3 0%, var(--bg) 42%, #eef4f7 100%);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height:1.7;
}
a { color: inherit; text-decoration:none; }
img { max-width:100%; display:block; border-radius: 22px; }
.wrap { width:min(1180px, calc(100% - 32px)); margin: 0 auto; }
.grain {
  position:fixed; inset:0; pointer-events:none; opacity:.22;
  background-image: radial-gradient(rgba(38,64,75,.18) 0.5px, transparent 0.5px);
  background-size: 8px 8px;
  mask-image: linear-gradient(180deg, transparent, black 12%, black 88%, transparent);
}
.site-header { position:sticky; top:0; z-index:50; backdrop-filter: blur(16px); background: rgba(250,248,243,.78); border-bottom:1px solid var(--line); }
.header-inner { display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:78px; }
.brand { display:flex; gap:12px; align-items:center; }
.brand strong { display:block; font-size:1.2rem; letter-spacing:.04em; }
.brand small { color:var(--muted); }
.brand-mark { width:46px; height:46px; border-radius:16px; display:grid; place-items:center; background:linear-gradient(145deg, var(--brand), #8eb3a8); color:white; box-shadow: var(--shadow); }
.nav { display:flex; gap:10px; flex-wrap:wrap; }
.nav a { padding:10px 14px; border-radius:999px; color:var(--muted); }
.nav a.active, .nav a:hover { background: rgba(78,124,123,.12); color:var(--brand-strong); }
.motion-toggle { border:1px solid var(--line); background:white; border-radius:999px; padding:10px 14px; color:var(--brand-strong); }
.hero { display:grid; grid-template-columns: 1.1fr 0.9fr; gap:28px; padding:44px 0 28px; align-items:stretch; }
.hero-copy, .hero-card, .note-card, .search-panel, .work-card, .feature-copy, .scenic-figure, .timeline-card, .panel, .category-box, .essay-block, .longform-card, .page-hero {
  background: var(--panel); border:1px solid rgba(255,255,255,.45); box-shadow: var(--shadow); border-radius: var(--radius);
}
.hero-copy { padding:34px; position:relative; overflow:hidden; }
.hero-copy::after { content:""; position:absolute; width:220px; height:220px; right:-60px; top:-80px; border-radius:50%; background: radial-gradient(circle, rgba(217,152,95,.42), transparent 70%); }
.eyebrow { text-transform:uppercase; letter-spacing:.16em; color:var(--brand); font-size:.82rem; margin:0 0 12px; }
.hero h1, .page-hero h1 { font-size: clamp(2rem, 4vw, 4rem); line-height:1.15; margin:0 0 18px; }
.lead { font-size:1.05rem; color:#395662; }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; margin:24px 0 16px; }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:0 18px; border-radius:999px; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color:white; box-shadow:0 12px 24px rgba(47,93,105,.22); }
.button.ghost { background:transparent; color:var(--brand-strong); border:1px solid var(--line); box-shadow:none; }
.fact { color:var(--muted); font-size:.95rem; }
.hero-card { padding:16px; display:flex; flex-direction:column; gap:10px; }
.hero-card figcaption, .work-card .meta, .source { color: var(--muted); font-size:.92rem; }
.intro-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; padding: 10px 0 18px; }
.note-card { padding:22px; }
.note-card h2, .search-panel h2, .feature-copy h2, .timeline-card h2, .panel h2, .category-box h2, .essay-block h2, .longform-card h2 { margin-top:0; font-size:1.28rem; }
.search-panel { padding:22px 24px; margin: 14px auto 20px; display:grid; grid-template-columns: 1fr auto; gap:16px; align-items:end; }
.search-tools { display:flex; gap:10px; flex-wrap:wrap; }
#site-search { min-width:260px; padding:14px 16px; border-radius:999px; border:1px solid var(--line); background:white; }
#clear-search, .tag, .save-btn, .text-link { border:1px solid var(--line); background:white; color:var(--brand-strong); padding:11px 15px; border-radius:999px; cursor:pointer; }
.filter-tags { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:10px; }
.tag.active { background: rgba(78,124,123,.12); }
.cards-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:20px; padding-bottom:24px; }
.work-card { padding:15px; display:grid; grid-template-columns: 240px 1fr; gap:18px; align-items:start; transition: transform .24s ease, box-shadow .24s ease; }
.work-card:hover { transform: translateY(-3px); }
.work-body h3 { margin:.2rem 0 .55rem; font-size:1.34rem; }
.card-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.split-layout, .list-and-panel, .essay-row { display:grid; grid-template-columns: 1fr 1fr; gap:20px; padding: 10px 0 24px; }
.feature-copy, .panel, .essay-block { padding:26px; }
.timeline-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; padding-bottom:20px; }
.timeline-card { padding:24px; }
.tips, .favorites-list, .category-box ul { padding-left:1.2rem; }
.page-hero.slim { padding:28px; margin: 26px auto 20px; }
.category-columns { display:grid; grid-template-columns: repeat(2, 1fr); gap:18px; padding-bottom:24px; }
.category-box { padding:24px; }
.notes-stack { display:grid; gap:18px; padding-bottom:28px; }
.longform-card { padding:26px; }
.longform-card .intro { color:#395662; font-weight:600; }
.site-footer { padding: 18px 0 32px; }
.footer-grid { display:grid; grid-template-columns: 1.1fr 1fr 1fr; gap:18px; }
.footer-grid section { background: rgba(255,255,255,.55); border:1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding:20px; }
.footer-note { color:var(--muted); padding-top:12px; }
.lightbox { position:fixed; inset:0; background: rgba(26,37,40,.88); display:grid; place-items:center; padding:26px; z-index:200; }
.lightbox-image { max-width:min(1000px, 90vw); max-height:74vh; border-radius:20px; }
.lightbox-caption { color:white; max-width:800px; text-align:center; }
.lightbox-close { position:absolute; top:18px; right:18px; border:0; background:white; width:44px; height:44px; border-radius:50%; font-size:1.5rem; }
mark { background: rgba(217,152,95,.45); color:inherit; padding:0 .12em; border-radius:6px; }
.is-hidden { display:none !important; }
body.reduced-motion * { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
.hero-card, .note-card, .work-card, .timeline-card, .panel, .category-box, .longform-card { transition: transform .28s ease, background .28s ease; }
.hero-card:hover, .note-card:hover, .timeline-card:hover, .panel:hover, .category-box:hover, .longform-card:hover { transform: translateY(-3px); }
