:root {
  --ink: #302a28;
  --accent: #9e4135;
  --paper: #faf6ef;
  --line: #e3d8ca;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.8 system-ui, 'Microsoft YaHei', sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #be7648; outline-offset: 3px; }
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 19px max(5vw, calc((100vw - 1200px)/2));
  background: #fffaf3;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 750; white-space: nowrap; }
.brand small { display: block; font-size: 10px; letter-spacing: 2px; color: #876c5b; }
nav { display: flex; flex-wrap: wrap; gap: 23px; }
nav a { color: var(--ink); font-size: 14px; }
main { max-width: 1240px; margin: auto; padding: 28px 20px 64px; min-height: 65vh; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 8px; min-height: 480px; display: flex; align-items: center; color: white; background: #3c2927; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(25,16,18,.94),rgba(25,16,18,.66) 40%,transparent 85%); z-index: -1; }
.hero-copy { padding: 55px; max-width: 620px; }
h1,h2,h3,p { overflow-wrap: anywhere; }
h1 { font-size: clamp(25px,3vw,39px); line-height: 1.4; margin: 12px 0 20px; }
h2 { font-size: 24px; line-height: 1.5; }
.hero h2 { font-weight: 400; color: #f4d7ae; }
.hero p { max-width: 440px; }
.eyebrow { font-size: 12px; letter-spacing: 1.4px; }
.button { display: inline-block; padding: 10px 22px; border-radius: 4px; background: var(--accent); color: white; font-weight: 600; }
.section { margin-top: 44px; }
.section > h2 { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.eras,.tiles { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.eras a { padding: 22px; background: #f0e4d4; border-top: 3px solid var(--accent); }
.eras strong { display: block; font: 700 29px/1.5 Georgia,serif; }
.eras span { color: var(--ink); font-size: 14px; }
.tile { background: #fffdf8; border: 1px solid var(--line); padding: 22px; min-width: 0; border-radius: 4px; }
.tile[hidden] { display: none; }
.year { font: 36px Georgia,serif; color: var(--accent); }
.tile h3 { font-size: 19px; margin: 10px 0; }
.tile p { margin: 7px 0; }
.more { font-size: 13px; }
.guide-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guide-list a { display: flex; justify-content: space-between; padding: 18px; background: #fffdf8; border-bottom: 1px solid var(--line); }
.reading { max-width: 900px; margin: 16px auto; }
.reading .tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
.crumb { font-size: 14px; color: #75695f; }
.lead { font-size: 19px; color: #795d4b; }
dl { display: grid; grid-template-columns: 125px 1fr; background: #fffdf8; padding: 20px; border: 1px solid var(--line); }
dt,dd { padding: 8px; margin: 0; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 16px; flex-wrap: wrap; }
.filters label { flex: 1 1 220px; }
input,select { display: block; width: 100%; padding: 12px; border: 1px solid #b8a99a; border-radius: 4px; background: white; font: inherit; }
footer { padding: 34px 20px; text-align: center; background: #332a28; color: #e6d6c6; font-size: 14px; }
footer a { color: #f4c3a6; }
@media(max-width: 800px) {
  .header { align-items: flex-start; flex-direction: column; gap: 12px; }
  nav { gap: 14px; }
  .eras,.tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero { min-height: 440px; }
  .hero-copy { padding: 26px; }
  .hero img { object-position: 65% center; }
  .hero::after { background: linear-gradient(90deg,rgba(25,16,18,.91),rgba(25,16,18,.42)); }
}
@media(max-width: 420px) {
  main { padding: 16px 14px 40px; }
  .eras,.tiles,.reading .tiles,.guide-list { grid-template-columns: 1fr; }
  .hero { min-height: 420px; }
  .hero-copy { padding: 20px; }
  dl { grid-template-columns: 100px 1fr; padding: 10px; }
}

/* V24.2 archive tools */
.lookup { padding: 20px; border: 1px solid var(--line); background: #fffdf8; margin-top: 20px; }
.action { display: block; margin-top: 12px; padding: 8px 12px; border: 1px solid var(--accent); background: #fffdf8; color: var(--accent); border-radius: 4px; font: inherit; cursor: pointer; }
.action[aria-pressed="true"] { background: var(--accent); color: white; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; }
.source-note { padding: 12px; background: #f0e4d4; }
.reading li { margin: 10px 0; }
