:root {
  --bg: #f5eddc;
  --bg-strong: #e3d2b6;
  --paper: rgba(255, 250, 241, 0.8);
  --surface: rgba(97, 56, 28, 0.08);
  --surface-strong: rgba(97, 56, 28, 0.14);
  --line: rgba(63, 36, 19, 0.14);
  --text: #27170e;
  --muted: #715947;
  --accent: #914d2c;
  --accent-deep: #6b321c;
  --accent-soft: #d9a46d;
  --leaf: #4a6a52;
  --shadow: 0 22px 50px rgba(43, 20, 8, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Public Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(145, 77, 44, 0.12), transparent 32%),
    radial-gradient(circle at bottom right, rgba(74, 106, 82, 0.14), transparent 28%),
    linear-gradient(180deg, #f9f2e4 0%, var(--bg) 52%, #efe2c8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(39, 23, 14, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 23, 14, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 80%);
}

.page-shell {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.site-header,
.hero,
.overview-strip,
.history,
.facts,
.attractions,
.gallery,
.visit,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff8ef;
  background: linear-gradient(140deg, var(--accent), var(--accent-soft));
  box-shadow: 0 12px 24px rgba(145, 77, 44, 0.28);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy span {
  font-size: 0.82rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav a,
.button,
.attraction-card a,
.source-list a,
figcaption a {
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease,
    transform 180ms ease, opacity 180ms ease;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.58);
  border: 1px solid rgba(39, 23, 14, 0.08);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 250, 241, 0.92);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  padding: 2rem 0 2.2rem;
  align-items: center;
}

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

h1,
h2,
h3 {
  font-family: "Fraunces", serif;
  line-height: 0.96;
  margin: 0;
}

h1 {
  font-size: clamp(3.2rem, 7vw, 6.1rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  max-width: 13ch;
}

h3 {
  font-size: 1.55rem;
  line-height: 1.02;
}

.lede,
.timeline-item p,
.fact-card p,
.attraction-card p,
.visit p,
.site-footer p,
.overview-strip article span,
figcaption {
  line-height: 1.65;
  color: var(--muted);
}

.lede {
  max-width: 62ch;
  margin: 1.2rem 0 1.5rem;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff8ef;
  background: linear-gradient(140deg, var(--accent-deep), var(--accent));
  box-shadow: 0 12px 30px rgba(107, 50, 28, 0.22);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 250, 241, 0.65);
  border-color: rgba(39, 23, 14, 0.12);
}

.hero-notes {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-notes li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 500;
}

.hero-notes li::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--leaf));
  box-shadow: 0 0 0 5px rgba(145, 77, 44, 0.08);
}

.hero-visual {
  position: relative;
  min-height: 34rem;
}

.hero-image-card {
  position: absolute;
  inset: 0.75rem 2rem 1rem 0;
  margin: 0;
  padding: 0.9rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 248, 236, 0.72);
  border: 1px solid rgba(39, 23, 14, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-image-card img,
.gallery-card img,
.attraction-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-card img {
  height: calc(100% - 3.25rem);
  border-radius: calc(var(--radius-lg) - 10px);
}

.hero-image-card figcaption {
  padding: 0.8rem 0.25rem 0 0.25rem;
  font-size: 0.84rem;
}

.hero-stat {
  position: absolute;
  max-width: 14rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(39, 23, 14, 0.9);
  color: #fbf3e4;
  box-shadow: 0 18px 28px rgba(39, 23, 14, 0.24);
}

.hero-stat strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-stat span {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(251, 243, 228, 0.8);
}

.hero-stat-top {
  top: 0;
  right: 0;
}

.hero-stat-bottom {
  right: 1rem;
  bottom: 0;
  background: rgba(74, 106, 82, 0.94);
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 4rem;
}

.overview-strip article,
.fact-card,
.attraction-card,
.gallery-card,
.visit,
.site-footer {
  border: 1px solid var(--line);
  background: var(--paper);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.overview-strip article {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-md);
}

.overview-strip article span {
  display: block;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}

.overview-strip article strong {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
}

.section-grid,
.facts,
.attractions,
.gallery {
  margin-bottom: 4rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.section-heading-split {
  align-items: stretch;
}

.section-photo,
.visit-photo {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.88);
  box-shadow: var(--shadow);
}

.section-photo {
  width: min(24rem, 100%);
  justify-self: end;
}

.section-photo img,
.visit-photo img {
  display: block;
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.section-photo figcaption,
.visit-photo figcaption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.84rem;
  background: rgba(255, 250, 241, 0.96);
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  padding-left: 1.25rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(145, 77, 44, 0.08));
}

.timeline-item {
  position: relative;
  padding: 1.3rem 1.35rem 1.3rem 1.45rem;
  margin-left: 0.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 241, 0.66);
  border: 1px solid var(--line);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: -1.05rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(145, 77, 44, 0.12);
}

.timeline-year {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.timeline-item p,
.fact-card p,
.attraction-card p,
.visit p {
  margin: 0.75rem 0 0;
}

.fact-grid,
.attraction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fact-card,
.attraction-card {
  padding: 1.35rem;
  border-radius: var(--radius-md);
}

.fact-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.92), rgba(243, 232, 212, 0.82)),
    var(--paper);
}

.card-kicker {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(145, 77, 44, 0.08);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attraction-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.attraction-card a,
.source-list a,
figcaption a {
  color: var(--accent-deep);
  text-underline-offset: 0.18em;
}

.attraction-card a:hover,
.source-list a:hover,
figcaption a:hover {
  color: var(--leaf);
}

.attraction-card-image {
  padding: 0;
  overflow: hidden;
  min-height: 0;
}

.attraction-card-image img {
  height: 15rem;
}

.attraction-copy {
  padding: 1.35rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 1rem;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-card img {
  height: 21rem;
}

.gallery-card.wide img {
  height: 100%;
  min-height: 28rem;
}

.gallery-card figcaption {
  padding: 1rem 1.15rem 1.15rem;
  background: rgba(255, 250, 241, 0.92);
  font-size: 0.88rem;
}

.visit {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
  padding: 1.6rem 1.75rem;
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(145, 77, 44, 0.08), transparent 25%),
    rgba(255, 250, 241, 0.82);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius-md);
}

.footer-heading {
  margin: 0 0 0.7rem;
  font-weight: 800;
  color: var(--text);
}

.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-meta {
  white-space: nowrap;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.visit-photo img {
  height: 100%;
  min-height: 19rem;
}

@media (max-width: 960px) {
  .hero,
  .visit,
  .site-footer,
  .gallery-grid,
  .overview-strip,
  .fact-grid,
  .attraction-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: start;
  }

  .hero {
    padding-top: 1.2rem;
  }

  .hero-visual {
    min-height: 28rem;
  }

  .hero-image-card {
    inset: 1rem 0.5rem 1rem 0;
  }

  .hero-stat-top {
    right: 0.5rem;
  }

  .hero-stat-bottom {
    right: 0;
  }

  .attraction-card-image {
    min-height: unset;
  }

  .attraction-card-image img {
    height: 18rem;
  }

  .gallery-card.wide img,
  .gallery-card img {
    height: 20rem;
    min-height: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--content-width));
  }

  .site-nav {
    gap: 0.4rem;
  }

  .site-nav a {
    padding: 0.55rem 0.75rem;
  }

  h1 {
    max-width: 11ch;
  }

  .hero-visual {
    min-height: 24rem;
  }

  .hero-image-card {
    inset: 0.75rem 0 0.75rem 0;
    padding: 0.75rem;
  }

  .hero-image-card img {
    height: calc(100% - 4rem);
  }

  .hero-stat {
    max-width: 11rem;
    padding: 0.85rem 0.9rem;
  }

  .hero-stat strong {
    font-size: 1.7rem;
  }

  .section-heading {
    margin-bottom: 1.2rem;
  }

  .section-photo {
    width: 100%;
  }

  .timeline,
  .facts,
  .attractions,
  .gallery {
    margin-bottom: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal],
  .site-nav a,
  .button,
  .attraction-card a,
  .source-list a,
  figcaption a {
    transition: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
