:root {
  color-scheme: light;
  --color-background: #f4efe7;
  --color-surface: #fffdf9;
  --color-surface-muted: #e9dfd1;
  --color-text: #29231f;
  --color-text-muted: #655b54;
  --color-primary: #74482f;
  --color-primary-dark: #4f2f20;
  --color-primary-light: #a87857;
  --color-border: #d9cbbd;
  --color-focus: #155f74;
  --shadow-card: 0 0.75rem 2rem rgb(79 47 32 / 10%);
  --shadow-header: 0 0.25rem 1rem rgb(41 35 31 / 8%);
  --radius-small: 0.5rem;
  --radius-medium: 1rem;
  --radius-large: 1.5rem;
  --content-width: 72rem;
  --content-narrow: 48rem;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--color-background);
  color: var(--color-text);
  line-height: 1.65;
}

main {
  flex: 1;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  max-width: 16ch;
  margin-bottom: var(--space-4);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: var(--space-3);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: var(--space-2);
  font-size: 1.25rem;
}

p {
  margin-bottom: var(--space-3);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 0.2rem solid var(--color-focus);
  outline-offset: 0.2rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-small);
  background: var(--color-text);
  color: var(--color-surface);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.content-wrapper,
.header-inner {
  width: min(100% - 2rem, var(--content-width));
  margin-inline: auto;
}

.content-wrapper--narrow {
  max-width: var(--content-narrow);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
  background: rgb(255 253 249 / 96%);
  box-shadow: var(--shadow-header);
}

.header-inner {
  min-height: 4.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-2);
}

.site-logo {
  color: var(--color-primary-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-primary);
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-muted);
}

.nav-toggle-line {
  width: 1.25rem;
  height: 0.125rem;
  border-radius: 999px;
  background: currentcolor;
}

.site-nav {
  width: 100%;
}

.nav-list {
  margin: 0;
  padding: var(--space-2) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  list-style: none;
}

.nav-list a,
.private-access {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-small);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-list a {
  color: var(--color-text-muted);
}

.nav-list a:hover {
  background: var(--color-surface-muted);
  color: var(--color-primary-dark);
}

.nav-list a[aria-current="page"] {
  background: var(--color-primary-dark);
  color: var(--color-surface);
}

.private-access {
  width: 100%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.62;
}

.js .nav-toggle {
  display: flex;
}

.js .site-nav {
  display: none;
}

.js .site-nav.is-open {
  display: block;
}

.hero,
.page-intro {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background:
    radial-gradient(
      circle at 82% 28%,
      rgb(168 120 87 / 24%) 0 8rem,
      transparent 8.1rem
    ),
    linear-gradient(135deg, var(--color-surface) 0%, #eadfce 100%);
}

.hero::after,
.page-intro::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -6rem;
  width: 14rem;
  aspect-ratio: 1;
  border: 1px solid rgb(116 72 47 / 25%);
  border-radius: 50%;
}

.hero-content,
.page-intro .content-wrapper {
  position: relative;
  z-index: 1;
}

.hero-content {
  padding-block: clamp(4.5rem, 12vw, 8rem);
}

.page-intro .content-wrapper {
  padding-block: clamp(3.5rem, 9vw, 6rem);
}

.page-intro h1 {
  font-size: clamp(2.5rem, 8vw, 4.75rem);
}

.hero-summary,
.page-intro p:not(.eyebrow) {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
}

.eyebrow {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.featured-section,
.timeline-section,
.gallery-section,
.detail-section {
  padding-block: clamp(3.5rem, 8vw, var(--space-7));
}

.detail-section {
  padding-top: 0;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: var(--space-5);
}

.section-heading > :last-child {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.card-grid {
  display: grid;
  gap: var(--space-4);
}

.card {
  border: 1px solid rgb(217 203 189 / 85%);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.feature-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--space-4);
  text-align: center;
}

.card-content p {
  color: var(--color-text-muted);
}

.card-content .button-link {
  margin-top: auto;
}

.image-placeholder {
  width: min(100%, 11rem);
  aspect-ratio: 1;
  margin-inline: auto;
  flex: 0 0 auto;
  border: 0.4rem solid #c39b7f;
  border-radius: var(--radius-small);
  background:
    linear-gradient(
      135deg,
      transparent 47%,
      rgb(255 255 255 / 12%) 47% 53%,
      transparent 53%
    ),
    var(--color-primary);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%);
}

.image-placeholder--small {
  width: min(100%, 8rem);
}

.button-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-small);
  background: var(--color-primary-dark);
  color: var(--color-surface);
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.button-link:hover {
  background: var(--color-primary);
  transform: translateY(-0.125rem);
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0.4rem;
  width: 0.125rem;
  background: var(--color-border);
}

.timeline-item {
  position: relative;
  margin-left: var(--space-4);
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: calc(-1 * var(--space-4) - 0.05rem);
  width: 0.9rem;
  aspect-ratio: 1;
  border: 0.2rem solid var(--color-background);
  border-radius: 50%;
  background: var(--color-primary);
}

.timeline-content {
  min-width: 0;
}

.timeline-content > :last-child {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.item-date {
  margin-bottom: var(--space-1);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 11rem));
  justify-content: center;
  gap: var(--space-4);
}

.text-card {
  padding: clamp(1.25rem, 4vw, var(--space-5));
}

.text-card p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.site-footer {
  padding: var(--space-4) var(--space-3);
  border-top: 1px solid var(--color-border);
  background: var(--color-primary-dark);
  color: #f7f0e8;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.88rem;
}

@media (min-width: 38rem) {
  .content-wrapper,
  .header-inner {
    width: min(100% - 3rem, var(--content-width));
  }

  .card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item {
    grid-template-columns: 8rem minmax(0, 1fr);
    align-items: center;
  }
}

@media (min-width: 53rem) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-toggle,
  .js .nav-toggle {
    display: none;
  }

  .site-nav,
  .js .site-nav,
  .js .site-nav.is-open {
    width: auto;
    display: block;
  }

  .nav-list {
    padding: 0;
    flex-direction: row;
    align-items: center;
  }

  .private-access {
    width: auto;
  }

  .card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
