:root {
  --red: #922a23;
  --red-dark: #591915;
  --cream: #f2e9dc;
  --paper: #fffdf8;
  --charcoal: #262321;
  --muted: #665f58;
  --brass: #b6843e;
  --line: #d4c6b4;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 102px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: .7rem 1rem;
  background: white;
  border: 3px solid black;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hours-strip {
  display: flex;
  justify-content: center;
  gap: .35rem 1.2rem;
  flex-wrap: wrap;
  padding: .44rem 1rem;
  background: var(--red-dark);
  color: white;
  font-size: .91rem;
  text-align: center;
}

.hours-strip span {
  color: #f1dcd0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 74px;
  padding: .5rem max(1rem, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 253, 248, .97);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: .68rem;
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-size: 1.06rem;
  line-height: 1.12;
}

.brand-text small {
  margin-top: .1rem;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.18;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .2rem;
}

.main-nav a {
  padding: .52rem .72rem;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: #eee3d6;
  outline: none;
}

.main-nav .facebook-link {
  margin-left: .25rem;
  border: 2px solid var(--red);
  color: var(--red);
}

.menu-button {
  display: none;
  min-height: 42px;
  padding: .42rem .75rem;
  background: white;
  border: 2px solid var(--red);
  border-radius: 5px;
  color: var(--red);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 1rem max(1rem, calc((100vw - var(--max)) / 2));
  background:
    #32180f url("assets/historic-header.png") center / cover no-repeat;
  color: white;
  isolation: isolate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(28, 11, 6, .05) 0%, rgba(28, 11, 6, .08) 42%, rgba(22, 9, 5, .8) 100%);
}

.hero-panel {
  width: min(650px, 100%);
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
  background: rgba(37, 17, 11, .86);
  border: 1px solid rgba(224, 182, 105, .55);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .28);
}

.eyebrow {
  margin: 0 0 .42rem;
  color: var(--red);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #e3ba74;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
}

h4 {
  margin-top: 0;
  line-height: 1.15;
}

.hero h1 {
  margin-bottom: .55rem;
  font-size: clamp(2.05rem, 5vw, 3.75rem);
}

.hero-panel > p:not(.eyebrow) {
  max-width: 590px;
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.hero-actions,
.button-row {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .62rem .95rem;
  border: 2px solid transparent;
  border-radius: 5px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--red);
  color: white;
}

.light-button {
  background: white;
  color: var(--red-dark);
}

.outline-light {
  border-color: white;
  color: white;
}

.outline-dark {
  border-color: var(--red);
  color: var(--red);
}

.button:hover,
.button:focus-visible,
.carousel-button:hover,
.carousel-button:focus-visible,
.project-thumbnail:hover,
.project-thumbnail:focus-visible {
  outline: 3px solid #d5bd61;
  outline-offset: 2px;
}

.hero-facts {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 0;
}

.hero-facts div {
  padding: .72rem 1rem;
  border-right: 1px solid var(--line);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts strong,
.hero-facts span {
  display: block;
}

.hero-facts strong {
  color: var(--red-dark);
}

.hero-facts span {
  color: var(--muted);
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: auto;
  padding: 2.55rem 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 1.6rem;
  align-items: start;
}

.intro-grid h2,
.section-heading h2,
.tour-copy h2,
.visit-card h2,
.support-card h2 {
  margin-bottom: .55rem;
  font-size: clamp(1.9rem, 3.6vw, 2.95rem);
}

.intro-grid p {
  margin: .15rem 0 0;
  font-size: 1.05rem;
}

.projects-heading-row {
  margin-bottom: 1rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
}

.section-heading {
  max-width: 740px;
}

.section-heading p:last-child {
  margin: 0;
}

.project-navigation {
  min-width: 260px;
  display: grid;
  gap: .45rem;
  justify-items: end;
}

.project-count {
  color: var(--muted);
  font-size: .9rem;
}

.project-buttons {
  display: flex;
  gap: .45rem;
}

.carousel-button {
  min-height: 42px;
  padding: .5rem .72rem;
  background: var(--paper);
  border: 1px solid var(--red);
  border-radius: 5px;
  color: var(--red-dark);
  font-weight: 800;
  cursor: pointer;
}

.carousel-button:disabled {
  border-color: #aaa096;
  color: #817970;
  cursor: not-allowed;
  opacity: .58;
}

.project-viewport {
  overflow: hidden;
}

.project-track {
  min-width: 0;
}

.project-card {
  display: none;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  gap: .85rem;
  padding: .65rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 5px 16px rgba(45, 34, 25, .055);
}

.project-card.is-active {
  display: grid;
}

.project-gallery {
  min-width: 0;
}

.project-main-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
  border: 1px solid var(--line);
}

.project-thumbnails {
  display: flex;
  gap: .42rem;
  margin-top: .45rem;
}

.project-thumbnail {
  width: 92px;
  padding: 2px;
  background: white;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
}

.project-thumbnail img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.project-thumbnail.is-selected {
  border-color: var(--red);
}

.project-content {
  padding: .25rem .45rem .25rem .1rem;
}

.status {
  display: inline-block;
  padding: .2rem .45rem;
  background: #eee1cf;
  border-radius: 4px;
  color: var(--red-dark);
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.project-content h3 {
  margin: .42rem 0 .52rem;
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
}

.project-summary {
  margin: 0 0 .65rem;
  font-weight: 700;
  line-height: 1.42;
}

.timeline {
  margin: 0;
}

.timeline div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: .62rem;
  padding: .34rem 0;
  border-top: 1px solid var(--line);
}

.timeline dt {
  color: var(--red-dark);
  font-weight: 800;
}

.timeline dd {
  margin: 0;
}

.restoration {
  margin-top: .65rem;
  padding: .58rem .72rem;
  background: #f1e4d2;
  border-left: 4px solid var(--brass);
}

.restoration strong {
  display: block;
  margin-bottom: .15rem;
  color: var(--red-dark);
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.restoration p {
  margin: 0;
}

.tour-section {
  padding: 2.7rem max(1rem, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 1.6rem;
  align-items: center;
  background: var(--charcoal);
  color: white;
}

.tour-copy p:not(.eyebrow) {
  margin-bottom: 1rem;
}

.tour-frame iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #111;
  border: 3px solid #e9dcc8;
  border-radius: 6px;
}

.visit-section {
  padding: 2.7rem 1rem;
  background: #e5dacb;
}

.visit-grid {
  width: min(var(--max), 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

.visit-card,
.support-card {
  padding: 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.visit-details {
  margin: .8rem 0 0;
}

.visit-details div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: .6rem;
  padding: .48rem 0;
  border-top: 1px solid var(--line);
}

.visit-details dt {
  font-weight: 800;
}

.visit-details dd {
  margin: 0;
}

.support-card p {
  max-width: 560px;
}

footer {
  min-height: 82px;
  padding: .9rem max(1rem, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #191716;
  color: white;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand span {
  color: #c9c3bc;
  font-size: .84rem;
}

@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .menu-button {
    display: inline-block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: .65rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .main-nav .facebook-link {
    margin-left: 0;
  }

  .intro-grid,
  .project-card,
  .tour-section,
  .visit-grid {
    grid-template-columns: 1fr;
  }

  .project-content {
    padding: .35rem .25rem;
  }

  .projects-heading-row {
    align-items: start;
  }
}

@media (max-width: 650px) {
  html {
    scroll-padding-top: 86px;
  }

  .hours-strip {
    gap: .1rem .65rem;
    font-size: .83rem;
  }

  .hours-strip strong {
    width: 100%;
  }

  .site-header {
    min-height: 64px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 430px;
    padding: .65rem;
    background-position: center;
  }

  .hero-panel {
    margin: 0;
    padding: .9rem;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    padding: .5rem .75rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .section,
  .tour-section,
  .visit-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .projects-heading-row {
    display: grid;
  }

  .project-navigation {
    width: 100%;
    justify-items: stretch;
  }

  .project-count {
    text-align: center;
  }

  .project-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .project-thumbnail {
    width: 78px;
  }

  .timeline div,
  .visit-details div {
    grid-template-columns: 54px 1fr;
  }

  .hero-actions,
  .button-row {
    display: grid;
  }

  .button {
    width: 100%;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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