:root {
  --ink: #2f2923;
  --muted: #70655a;
  --paper: #f3ede3;
  --panel: #fcf8f1;
  --line: #d8cbbb;
  --green: #7b3f2c;
  --green-soft: #eadcca;
  --yellow: #c69239;
  --blue: #9a552f;
  --shadow: 0 18px 50px rgba(67, 47, 34, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(243,237,227,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: .86rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.hero { padding: 42px 0 30px; }
.hero-grid { display: grid; grid-template-columns: minmax(330px,.82fr) minmax(540px,1.18fr); gap: 32px; align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; padding: 18px 0 8px; }
.eyebrow { margin: 0 0 20px; color: var(--green); font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; max-width: 720px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6vw, 6.9rem); font-weight: 500; letter-spacing: -.055em; line-height: .88; }
.dek { max-width: 610px; margin: 28px 0; font-size: clamp(1.1rem, 1.7vw, 1.42rem); line-height: 1.42; }
.meta-row { display: flex; flex-wrap: wrap; gap: 9px; }
.pill { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.7); padding: 8px 12px; color: var(--muted); font-size: .82rem; }
.hero-photo { position: relative; min-height: 560px; overflow: hidden; border-radius: 4px; background: #d6c5ae; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption { position: absolute; right: 18px; bottom: 18px; max-width: 350px; background: rgba(47,41,35,.93); color: #fffaf2; padding: 14px 16px; font-size: .82rem; }
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 260px 1fr; gap: 34px; margin-bottom: 34px; }
.section-no { color: var(--blue); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4vw, 4.4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.lead { max-width: 880px; margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }
.record-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 28px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.fact { padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact dt { color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.fact dd { margin: 3px 0 0; font-size: 1rem; }
.note { margin-top: 22px; padding: 18px; background: var(--green-soft); border-left: 4px solid var(--green); }
.description p:first-child { margin-top: 0; }
.description p:last-child { margin-bottom: 0; }
.features { columns: 2; column-gap: 34px; padding-left: 20px; }
.features li { break-inside: avoid; margin: 0 0 10px; }
.significance { background: #53382c; color: #fffaf2; }
.significance .section { border-top: 0; }
.significance .section-no, .significance .lead { color: #e0c5a3; }
.significance-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; }
.significance-copy { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.32; }
.caution { align-self: end; border-top: 1px solid rgba(255,250,242,.3); padding-top: 16px; color: #eadfd2; font-size: .92rem; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.photo-card { margin: 0; background: var(--panel); border: 1px solid var(--line); cursor: zoom-in; transition: transform .18s ease, box-shadow .18s ease; }
.photo-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(67,47,34,.12); }
.photo-card button { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in; }
.photo-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-info { padding: 14px 15px 16px; }
.photo-id { display: flex; justify-content: space-between; gap: 12px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.filename { margin: 8px 0 5px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .73rem; line-height: 1.35; }
.photo-desc { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.map-grid { display: grid; grid-template-columns: 1.65fr .75fr; gap: 24px; align-items: start; }
.map-button { display: block; position: relative; border: 1px solid var(--line); background: white; padding: 0; cursor: zoom-in; }
.map-button img { width: 100%; }
.map-tag { position: absolute; left: 14px; bottom: 14px; background: var(--ink); color: white; padding: 9px 12px; font-size: .78rem; }
.document-list { display: grid; gap: 12px; }
.document { display: block; background: white; border: 1px solid var(--line); padding: 18px; text-decoration: none; }
.document:hover { border-color: var(--green); }
.document strong { display: block; }
.document span { color: var(--muted); font-size: .83rem; }
footer { padding: 32px 0 54px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; }
dialog { width: min(1100px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 5px; background: #2f2923; color: #fffaf2; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(26,20,16,.84); backdrop-filter: blur(5px); }
.dialog-inner { position: relative; }
.dialog-inner img { width: 100%; max-height: 78vh; object-fit: contain; background: #1d1814; }
.dialog-caption { padding: 17px 62px 19px 18px; }
.dialog-caption strong { display: block; font-size: .82rem; }
.dialog-caption span { display: block; margin-top: 3px; color: #dfd1c3; font-size: .88rem; }
.close { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border: 1px solid #8e7766; border-radius: 50%; background: transparent; color: #fffaf2; font-size: 1.25rem; cursor: pointer; }
@media (max-width: 1000px) {
  .hero-grid, .record-grid, .significance-grid, .map-grid { grid-template-columns: 1fr; }
  .hero-photo { min-height: 500px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .wrap { width: min(100% - 28px, 1440px); }
  .nav a:not(:last-child) { display: none; }
  .hero { padding-top: 24px; }
  .hero-copy { gap: 8px; }
  .hero-photo { min-height: 360px; }
  .section { padding: 54px 0; }
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .facts { grid-template-columns: 1fr; }
  .features { columns: 1; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .photo-info { padding: 11px; }
  .footer-grid { flex-direction: column; }
}
@media (max-width: 430px) {
  .gallery { grid-template-columns: 1fr; }
  h1 { font-size: 3.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-card { transition: none; }
}
