/* Banqiao758 — research archive
   Palette: warm paper / ink, restrained brick accent. Academic, not sensational. */

:root {
  --bg: #f6f3ec;
  --bg-alt: #efe9db;
  --fg: #24211b;
  --muted: #5c5648;
  --border: #ddd3bd;
  --accent: #7a3b2e;
  --accent-fg: #fdf9f1;
  --link: #6a3226;
  --card-bg: #fffdf8;
  --shadow: 0 1px 2px rgba(36, 33, 27, 0.06);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16140f;
    --bg-alt: #1e1b14;
    --fg: #e9e2d2;
    --muted: #a89a80;
    --border: #3a3325;
    --accent: #d69b7c;
    --accent-fg: #1a1712;
    --link: #e2ac8c;
    --card-bg: #1c1912;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.25;
  font-weight: 600;
}

a { color: var(--link); text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--fg);
}
.brand-mark {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lang-switch {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  order: 2;
}
.lang-switch a { color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--link); }
.lang-switch .lang-current { color: var(--fg); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 32px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--fg);
  margin: 0 6px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 0.88rem;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--fg); }
.site-nav a.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Main content */
main { display: block; }
.page-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.page-head { margin-bottom: 2rem; }
.page-title { font-size: 1.9rem; margin: 0 0 0.4rem; }
.page-subtitle { color: var(--muted); font-family: var(--sans); margin: 0; }

.page-wrap h2 {
  font-size: 1.35rem;
  margin-top: 2.4rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}
.page-wrap h3 { font-size: 1.1rem; margin-top: 1.8rem; }

.page-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-family: var(--sans);
  font-size: 0.92rem;
}
.page-wrap th, .page-wrap td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
.page-wrap th {
  background: var(--bg-alt);
  font-weight: 600;
}
.page-wrap table caption {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.page-wrap blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 1.2rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-style: italic;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
}
code { padding: 0.1em 0.35em; font-size: 0.85em; }
pre { padding: 0.9rem; overflow-x: auto; }

/* Home hero */
.hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.hero-inner { max-width: 720px; margin: 0 auto; padding: 3.5rem 1.5rem 2.8rem; }
.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.hero h1 { font-size: 2.4rem; margin: 0 0 0.9rem; }
.hero-lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.intro { max-width: 720px; margin: 2.4rem auto 0; padding: 0 1.5rem; }
.intro p { margin: 0 0 1.1rem; }

.section-grid {
  max-width: 720px;
  margin: 2.6rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 560px) {
  .section-grid { grid-template-columns: 1fr; }
}
.card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--fg);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--accent); }
.card h2 {
  border: none;
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  padding: 0;
  color: var(--fg);
}
.card p {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.callout {
  max-width: 720px;
  margin: 2.6rem auto 0;
  padding: 1.4rem 1.5rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
}
.callout h2 { border: none; padding: 0; margin: 0 0 0.5rem; font-size: 1.15rem; }
.callout p { margin: 0; }

/* Placeholder notices used across archive/interviews/photos/data/maps pages */
.pending {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.9rem;
  margin: 1.2rem 0;
}
.gallery-placeholder {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  padding: 0.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.6rem 1.5rem 2.2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-inner p { margin: 0 0 0.5rem; }

/* Responsive nav */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.6rem; padding-top: 0.8rem; }
}
