:root {
  --bg: #f8f5ef;
  --surface: #fffaf3;
  --text: #27231d;
  --muted: #6f6659;
  --accent: #a85520;
  --accent-dark: #743814;
  --border: #e3d8ca;
  --tinted: #efe6da;
  --shadow: 0 18px 40px rgba(39, 35, 29, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(248, 245, 239, 0.96);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
}

.nav-links a:hover { color: var(--accent-dark); }

.menu-btn {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.2rem;
}

.loading {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 22px;
  color: var(--muted);
}

.hero {
  min-height: 76vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #32291f, #5a3a25 55%, #8b4a1d);
  color: white;
}

.hero-content {
  max-width: 950px;
  margin: 0 auto;
  padding: 80px 22px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 10px;
}

.hero .eyebrow { color: #f4b47c; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; }
h1 { font-size: clamp(2.3rem, 6vw, 4.7rem); max-width: 850px; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

.hero-text {
  max-width: 770px;
  font-size: 1.1rem;
  color: #f5eee5;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-photo-space {
  margin: 34px 0 0;
  max-width: 760px;
}

.hero-photo-space figcaption {
  color: #f5eee5;
  font-size: 0.94rem;
  margin-top: 10px;
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 76px 22px;
}

.tinted {
  max-width: none;
  background: var(--tinted);
}

.tinted > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading { margin-bottom: 30px; }
.section-heading p { margin-bottom: 8px; }

.section-intro {
  max-width: 780px;
  color: var(--muted);
  margin-top: 6px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.card, .content-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card p, .content-block p { margin-top: 0; }
.card p:last-child, .content-block p:last-child { margin-bottom: 0; }

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 20px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 6px solid var(--accent);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.timeline-card:hover { transform: translateY(-2px); }

.timeline-card.selected {
  border-color: var(--accent-dark);
  border-left-color: var(--accent-dark);
  box-shadow: 0 22px 45px rgba(39, 35, 29, 0.18);
  transform: scale(1.01);
}

.timeline-year {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 1.35rem;
}

.timeline-card h3 { margin-bottom: 8px; }
.timeline-card p { margin: 0; }

.source-note {
  max-width: 1100px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.policy-grid { margin-top: 18px; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.photo-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.photo-card figcaption {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 10px;
}

.photo-placeholder {
  min-height: 245px;
  border: 2px dashed #c8b7a3;
  border-radius: 14px;
  background: #f2eadf;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
  padding: 20px;
}

.photo-placeholder.large {
  min-height: 260px;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  color: white;
}

.site-photo {
  display: block;
  width: 100%;
  height: auto;
  min-height: 245px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-photo-space .site-photo {
  max-height: 420px;
}

.photo-tip {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.photo-tip p { margin-bottom: 0; }

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.source-list {
  display: grid;
  gap: 12px;
}

.source-list a {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: 14px;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 700;
}

.source-list a:hover { text-decoration: underline; }

.footer {
  text-align: center;
  padding: 30px 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

@media (max-width: 800px) {
  .menu-btn { display: block; }
  .nav { align-items: flex-start; }
  .nav-links {
    display: none;
    position: absolute;
    left: 22px;
    right: 22px;
    top: 58px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    flex-direction: column;
  }
  .nav-links.open { display: flex; }
  .grid.two, .grid.three, .photo-grid { grid-template-columns: 1fr; }
  .timeline-card { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
}
