:root {
  --bg: #f7f4ee;
  --panel: #ffffff;
  --panel-soft: #fbfaf7;
  --ink: #22211f;
  --muted: #68645f;
  --line: #e2ddd4;
  --accent: #8f3f24;
  --accent-dark: #632b18;
  --accent-soft: #f1dfd4;
  --shadow: 0 18px 50px rgba(41, 31, 23, .10);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #fff 0, var(--bg) 42rem);
  color: var(--ink);
  line-height: 1.62;
}
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: .75rem 1rem; z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: .95rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; flex-direction: column; color: var(--ink); text-decoration: none; line-height: 1.08; }
.brand strong { font-size: clamp(1.35rem, 3vw, 2.05rem); letter-spacing: .02em; }
.brand span { color: var(--muted); font-size: .92rem; margin-top: .15rem; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--panel); border-radius: 999px;
  padding: .6rem .8rem; font: inherit; cursor: pointer;
}
.site-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.site-nav a {
  color: var(--ink); text-decoration: none; padding: .55rem .78rem; border-radius: 999px;
  font-weight: 650; font-size: .97rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); }
.site-nav .nav-cta { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(143, 63, 36, .16); }
.site-nav .nav-cta:hover { background: var(--accent-dark); color: #fff; }
.site-main { max-width: 1180px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3.6rem) 1.25rem; }
.hero {
  min-height: 65vh; display: grid; grid-template-columns: minmax(0, .92fr) minmax(300px, 1.08fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; }
.hero h1, .page-title { font-size: clamp(2.5rem, 7vw, 5.8rem); line-height: .95; margin: .2rem 0 1rem; letter-spacing: -.05em; }
.hero .lead, .intro { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.32rem); max-width: 62ch; }
.cta-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.8rem;
  padding: .75rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; font-weight: 750; background: var(--panel); color: var(--ink);
}
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); color: #fff; }
.button:hover { border-color: var(--accent); }
.hero-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.hero-gallery figure { margin: 0; overflow: hidden; border-radius: 1.4rem; box-shadow: var(--shadow); background: var(--panel); }
.hero-gallery img { width: 100%; height: clamp(170px, 24vw, 285px); object-fit: cover; }
.quote-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin-top: 2rem; }
.quote-grid blockquote, .card, .book-card, .paper-card, .notice-card {
  background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 1.2rem;
  box-shadow: 0 12px 30px rgba(41,31,23,.06);
}
.quote-grid blockquote { margin: 0; padding: 1.05rem; color: var(--muted); font-size: .98rem; }
.page-header { margin-bottom: 2rem; }
.page-header .page-title { margin-bottom: .75rem; }
.image-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: 0 0 1.5rem; }
.image-strip img { width: 100%; height: clamp(150px, 18vw, 230px); object-fit: cover; border-radius: 1rem; box-shadow: var(--shadow); }
.prose { font-size: 1.04rem; }
.prose p { margin: 0 0 1.1rem; }
.prose h1, .prose h2, .prose h3 { line-height: 1.15; margin-top: 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.25rem; align-items: start; }
.card { padding: clamp(1.1rem, 3vw, 2rem); }
.side-card { position: sticky; top: 7rem; }
.side-card a { display: block; padding: .65rem 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.side-card a:last-child { border-bottom: 0; }
.books-grid { display: grid; gap: 1.15rem; }
.book-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 1.25rem; padding: 1rem; }
.book-card img { width: 190px; max-height: 285px; object-fit: contain; border-radius: .55rem; background: var(--panel-soft); box-shadow: 0 10px 24px rgba(41,31,23,.08); }
.book-card h2 { margin: .15rem 0 .65rem; line-height: 1.12; font-size: clamp(1.25rem, 2.7vw, 2rem); letter-spacing: -.02em; }
.book-card p { margin-top: 0; }
.book-card-body a, .research-links a { font-weight: 750; }
.research-links { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1rem 0 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--panel); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: .85rem .95rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #f1ebe1; color: var(--accent-dark); font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; font-weight: 750; color: var(--muted); }
.notice-card { padding: clamp(1rem, 3vw, 1.7rem); }
.site-footer { border-top: 1px solid var(--line); margin-top: 2rem; background: rgba(255,255,255,.48); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 1.5rem 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--muted); font-weight: 650; }
.redirect { min-height: 60vh; display: grid; place-items: center; }
@media (max-width: 860px) {
  .header-inner { align-items: flex-start; }
  .nav-toggle { display: inline-flex; margin-top: .12rem; }
  .site-nav { display: none; width: 100%; padding-top: .75rem; justify-content: flex-start; }
  .site-nav.is-open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .hero, .content-grid, .book-card { grid-template-columns: 1fr; }
  .book-card img { width: min(220px, 80vw); justify-self: start; }
  .quote-grid { grid-template-columns: 1fr 1fr; }
  .side-card { position: static; }
}
@media (max-width: 560px) {
  .quote-grid, .image-strip, .hero-gallery { grid-template-columns: 1fr; }
  .site-main { padding-left: 1rem; padding-right: 1rem; }
}
