:root {
  --bg: #f6f1e8;
  --paper: #fffdf8;
  --ink: #2c241c;
  --muted: #6e6256;
  --accent: #6d4c2e;
  --accent-soft: #e7d8c2;
  --line: #d8c8b5;
  --shadow: 0 10px 30px rgba(44, 36, 28, 0.08);
  --radius: 18px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(231,216,194,.45), transparent 30%),
    linear-gradient(180deg, #f8f4ed 0%, var(--bg) 100%);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; display: block; }
.wrapper { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(248,244,237,.9);
  border-bottom: 1px solid rgba(109,76,46,.12);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
}
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #7b5d3c, #4b3421);
  color: #fff; display: grid; place-items: center; font-size: 1.2rem; font-weight: bold;
  box-shadow: var(--shadow);
}
.brand-text strong { display: block; font-size: 1.1rem; letter-spacing: .02em; }
.brand-text span { display: block; font-size: .9rem; color: var(--muted); }
nav ul { display: flex; flex-wrap: wrap; gap: .8rem; list-style: none; padding: 0; margin: 0; }
nav a {
  text-decoration: none; color: var(--ink); padding: .45rem .7rem; border-radius: 999px;
}
nav a:hover, nav a[aria-current="page"] { background: var(--accent-soft); }
.hero { padding: 4.5rem 0 2.2rem; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .95fr; gap: 2rem; align-items: center; }
.kicker {
  display: inline-block; padding: .4rem .75rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: .92rem;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .8rem; }
h1 { font-size: clamp(2.3rem, 4.8vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.14rem; color: #43372c; max-width: 62ch; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1rem; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow);
}
.button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.card, .panel {
  background: var(--paper); border: 1px solid rgba(109,76,46,.12);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel { padding: 1.4rem; }
.hero-figure { overflow: hidden; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
figcaption, .caption {
  font-size: .95rem; color: var(--muted); font-style: italic; padding: .7rem 1rem 1rem;
}
.section { padding: 1rem 0 2.2rem; }
.grid-2, .grid-3 {
  display: grid; gap: 1.2rem;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.stat {
  padding: 1.1rem 1.1rem 1rem;
}
.stat strong { display: block; font-size: 1.8rem; color: var(--accent); }
.timeline { position: relative; margin: 1rem 0 0; padding-left: 1.2rem; }
.timeline::before {
  content: ""; position: absolute; left: .2rem; top: .4rem; bottom: .4rem;
  width: 2px; background: linear-gradient(var(--accent-soft), var(--accent));
}
.timeline-item {
  position: relative; padding: .2rem 0 1.2rem 1.4rem;
}
.timeline-item::before {
  content: ""; position: absolute; left: -.05rem; top: .35rem;
  width: .65rem; height: .65rem; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 5px rgba(109,76,46,.12);
}
.year { font-weight: bold; color: var(--accent); }
.quote {
  border-left: 4px solid var(--accent); padding: .6rem 1rem; background: #fbf7f1;
  border-radius: 0 12px 12px 0;
}
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.gallery figure, .gallery-card { margin: 0; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery .portrait img { aspect-ratio: 4 / 5; }
.map-card { padding: 1rem; }
.map-wrap {
  display: grid; grid-template-columns: minmax(320px,1.1fr) .95fr; gap: 1rem; align-items: start;
}
.legend { display: grid; gap: .7rem; }
.legend-item {
  display: grid; grid-template-columns: 1.2rem 1fr; gap: .75rem; align-items: start;
  padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 14px; background: #fbf8f3;
}
.dot { width: 1rem; height: 1rem; border-radius: 50%; margin-top: .2rem; }
.dot-1 { background: #7b5d3c; }
.dot-2 { background: #b5651d; }
.dot-3 { background: #4d6a58; }
.dot-4 { background: #845ec2; }
.info-table {
  width: 100%; border-collapse: collapse; background: var(--paper);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.info-table th, .info-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table th { text-align: left; width: 28%; background: #fbf7f1; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.sources li { margin-bottom: .55rem; }
.footer {
  margin-top: 2rem; border-top: 1px solid var(--line);
  background: rgba(255,253,248,.86);
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.2rem 0 2rem; color: var(--muted); font-size: .95rem;
}
.small { font-size: .95rem; color: var(--muted); }
.notice { background: #fbf7f1; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); }
svg text { font-family: Georgia, serif; fill: #3b3026; }
@media (max-width: 900px) {
  .hero-grid, .grid-2, .grid-3, .gallery, .map-wrap { grid-template-columns: 1fr; }
  nav ul { gap: .35rem; }
  .header-inner { align-items: flex-start; flex-direction: column; }
  .hero { padding-top: 2rem; }
}
