/* The Historic Tabernacle on Chestnut — draft site styles. Self-contained. */
:root {
  --bg: #f3eee4;
  --bg-deep: #e8dfd0;
  --bg-elev: #fffaf3;
  --ink: #241c16;
  --ink-soft: #4a3f36;
  --muted: #65584d;
  --rule: #d3c4ad;
  --gold: #7e6034;
  --brick: #6b2d26;
  --brick-hover: #54231e;
  --on-brick: #fffaf3;
  --focus: #243f63;
  --font-serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 72rem;
  --content: 42rem;
  --header-h: 4.5rem;
  --radius: 2px;
  --space: clamp(1.25rem, 3vw, 2rem);
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-underline-offset: 0.15em; }
a:hover { color: var(--brick-hover); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bg-elev);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--space)));
  margin-inline: auto;
}
.prose { width: min(var(--content), 100%); }

/* Header */
.site-header {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark:hover { color: var(--brick); }
.wordmark span { display: block; font-weight: 400; font-style: italic; font-size: 0.85rem; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 44px;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.75rem;
  align-items: center;
}
@media (min-width: 861px) {
  .site-nav ul { flex-wrap: nowrap; }
  .site-nav a, .nav-item summary { font-size: 0.9rem; }
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--brick); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

.nav-item { position: relative; }
.nav-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-item summary::-webkit-details-marker { display: none; }
.nav-item summary::after { content: "▾"; font-size: 0.7em; color: var(--gold); }
.submenu {
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  min-width: 14rem;
  padding: 0.4rem 0;
  box-shadow: none;
  z-index: 50;
}
.submenu a {
  display: block;
  padding: 0.45rem 0.9rem;
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  background: var(--brick);
  color: var(--on-brick);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--brick);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--brick-hover); color: var(--on-brick); border-color: var(--brick-hover); }
.btn-secondary {
  background: transparent;
  color: var(--brick);
  border-color: var(--brick);
}
.btn-secondary:hover { background: var(--bg-deep); color: var(--brick-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Hero & typography */
.hero {
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}
h1, h2, h3, .h1, .h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.35rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.4rem; }
.lede {
  font-size: clamp(1.12rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}
.section { padding: clamp(2rem, 5vw, 3.75rem) 0; }
.section + .section, .band + .section { border-top: 1px solid var(--rule); }
.band { background: var(--bg-elev); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
p { margin: 0 0 1rem; }
p.muted, .muted { color: var(--muted); }
.fine-print { font-size: 0.9rem; color: var(--muted); }

hr.ornament {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: 0;
}

/* Metrics, cards, figures */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 2rem 0 0;
}
.metric {
  background: var(--bg-elev);
  padding: 1.1rem 1rem 1.15rem;
  text-align: center;
}
.metric b {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  line-height: 1.1;
}
.metric span { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }

.card-grid, .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 0;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
a.card:hover { border-color: var(--gold); }
.card-body { padding: 1.1rem 1.15rem 1.25rem; }
.card-body h2, .card-body h3 { margin-top: 0; }
.card .more { font-weight: 600; color: var(--brick); }

figure {
  margin: 0 0 1.25rem;
}
figcaption, .credit {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 0.45rem;
}
figure img, .frame img {
  width: 100%;
  background: var(--bg-deep);
}

.placeholder {
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(36,28,22,0.03) 12px, rgba(36,28,22,0.03) 13px),
    var(--bg-deep);
  border: 1px dashed #b9a88d;
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--ink-soft);
  aspect-ratio: 16 / 10;
}
.placeholder strong { font-family: var(--font-serif); font-size: 1.15rem; display: block; margin-bottom: 0.25rem; }
.placeholder span { font-size: 0.9rem; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  background: var(--bg-elev);
}
table.data th, table.data td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.data th { font-weight: 600; color: var(--ink-soft); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
table.data caption {
  text-align: left;
  font-weight: 600;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.35rem 0;
  min-height: 44px;
}
.faq details p:last-child { margin-bottom: 0.35rem; }

.notice {
  background: var(--bg-elev);
  border-left: 3px solid var(--gold);
  padding: 0.9rem 1rem;
  margin: 1rem 0 1.5rem;
}
.notice strong { display: block; margin-bottom: 0.2rem; }

/* Calendar */
.calendar-app { margin-top: 1rem; }
.cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.cal-toolbar h2 { margin: 0; font-size: 1.35rem; }
.cal-nav { display: flex; gap: 0.4rem; }
.cal-nav button, .cal-field {
  min-height: 44px;
  border: 1px solid var(--rule);
  background: var(--bg-elev);
  color: var(--ink);
  font: inherit;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.cal-dow, .cal-day {
  background: var(--bg-elev);
  text-align: center;
  padding: 0.45rem 0.15rem;
  font-size: 0.85rem;
}
.cal-dow { font-weight: 600; color: var(--muted); background: var(--bg-deep); }
.cal-day {
  min-height: 2.75rem;
  border: 0;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}
.cal-day[disabled], .cal-day.is-past, .cal-day.is-busy {
  background: #efe6d8;
  color: #8a7d70;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.cal-day.is-empty { background: var(--bg); cursor: default; }
.cal-day.is-inrange { background: #f3e4d6; }
.cal-day.is-start, .cal-day.is-end {
  background: var(--brick);
  color: var(--on-brick);
  font-weight: 600;
}
.cal-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.75rem 0; font-size: 0.9rem; color: var(--muted); }
.guest-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin: 1rem 0; }
.guest-row label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; font-size: 0.9rem; }

/* Footer */
.site-footer {
  background: #2a221c;
  color: #e8dfd0;
  padding: 2.5rem 0 2rem;
  margin-top: 0;
}
.site-footer a { color: #f3e6d3; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer h2 { color: #fffaf3; font-size: 1.15rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0.3rem 0; }
.footer-tag {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid #4a3f35;
  font-size: 0.9rem;
  color: #cbbda8;
}

.address { font-style: normal; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    background: var(--bg-elev);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--space) 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a, .nav-item summary { min-height: 44px; display: flex; align-items: center; }
  .submenu { position: static; border: 0; padding-left: 0.75rem; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .split, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 1.75rem; }
}

@media (max-width: 520px) {
  .header-inner .btn-book-label { display: none; }
}

.card h2 a, .card h3 a, .card .more a { color: inherit; text-decoration: none; }
.card h2 a:hover, .card h3 a:hover, .card .more a { color: var(--brick); }
.card .more a { font-weight: 600; color: var(--brick); }

/* Logo wordmark and social icons */
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.wordmark-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: block;
  background: #f3eee4;
}
.wordmark-text { display: block; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-links a,
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 44px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}
.social-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}
.site-header .social-icon { color: var(--ink-soft); }
.site-header .social-icon:hover { color: var(--brick); }
.site-footer .social-links { margin: 0.35rem 0 0.75rem; }
.site-footer .social-icon { color: #f3e6d3; }
.site-footer .social-icon:hover { color: #fff; }
.footer-social-list a { justify-content: flex-start; padding-right: 0.5rem; }
.header-social { display: flex; }
.contact-social { margin: 1rem 0 1.25rem; }
.contact-social a { color: var(--ink-soft); }
.contact-social a:hover { color: var(--brick); }

@media (max-width: 860px) {
  .header-social { display: none; }
  .wordmark-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .site-nav .nav-social {
    display: flex;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid var(--rule);
    margin-top: 0.5rem;
  }
}
@media (min-width: 861px) {
  .site-nav .nav-social { display: none; }
}

.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin: 1.25rem 0;
}
@media (min-width: 800px) {
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote-card.quote-featured { grid-column: 1 / -1; }
  .quotes-highlight { grid-template-columns: 1fr; }
}
.quote-card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 1.15rem 1.2rem 1.2rem;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.quote-card figcaption { margin-top: auto; padding-top: 0.85rem; }
.quote-card blockquote {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}
.quote-card blockquote p { margin: 0; }
.quote-card figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
  margin: 0;
}

.event-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  list-style: none;
}
.event-types li {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
  margin: 0;
}
.event-types strong { display: block; margin-bottom: 0.35rem; }
.rules-box {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0 1.75rem;
}
.rules-box h2, .rules-box h3 { margin-top: 0; }
.rules-box ul { margin-bottom: 0; }
.photo-request {
  font-size: 0.95rem;
  color: var(--muted);
}

.path-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.25rem;
  margin: 1.25rem 0 0;
}
.path-card .card-body { flex: 1; display: flex; flex-direction: column; }
.path-card .card-body .btn-row { margin-top: auto; padding-top: 0.75rem; }
.path-card .eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.occasion-questions {
  list-style: none;
  margin: 0.35rem 0 1.15rem;
  padding: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  line-height: 1.45;
  font-style: italic;
  color: var(--ink);
}
.occasion-questions li { margin: 0 0 0.15rem; }
.occasion-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.25rem, 1fr));
  gap: 0.6rem;
  list-style: none;
  margin: 1.15rem 0 1.15rem;
  padding: 0;
}
.occasion-tiles li {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 0.8rem 0.75rem;
  margin: 0;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}
.hero .occasion-tiles li { background: var(--bg); }
.occasion-close { font-family: var(--font-serif); font-size: 1.15rem; margin: 0.5rem 0 1rem; }
.host-questions { margin: 0 0 0.75rem; }
.path-card .host-questions { font-size: 0.98rem; }

/* House photographs */
.hero-photo {
  margin: 2rem 0 0;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 30%;
}
.photo-grid figure img,
.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}



/* Home page comparison hero: full-width photo with text overlay */
.hero-cover {
  padding: 0;
  border-bottom: 0;
}
.hero-cover-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(46rem, calc(100vh - var(--header-h)));
  min-height: min(46rem, calc(100svh - var(--header-h)));
  overflow: hidden;
  background: #1c1510;
  color: var(--on-brick);
}
.hero-cover-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 30%;
}
.hero-cover-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(20, 14, 10, 0.94) 0%,
      rgba(20, 14, 10, 0.90) 34%,
      rgba(20, 14, 10, 0.80) 52%,
      rgba(20, 14, 10, 0.66) 68%,
      rgba(20, 14, 10, 0.48) 84%,
      rgba(20, 14, 10, 0.32) 100%
    );
}
.hero-cover-content {
  position: relative;
  z-index: 1;
  padding: clamp(2.25rem, 7vw, 4rem) 0 clamp(2rem, 5vw, 3.25rem);
}
.hero-cover-logo {
  width: 88px;
  height: 88px;
  margin: 0 0 1rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 250, 243, 0.18);
}
.hero-cover-content .eyebrow {
  display: inline-block;
  color: #f6e6c2;
  text-shadow: 0 1px 2px rgba(20, 14, 10, 0.7);
}
.hero-cover-content h1 {
  color: #fffaf3;
  max-width: 18ch;
  text-shadow: 0 1px 2px rgba(20, 14, 10, 0.65);
}
.hero-cover-content .lede {
  color: #f3eee4;
  max-width: 40rem;
  text-shadow: 0 1px 2px rgba(20, 14, 10, 0.65);
}
.hero-cover .btn-secondary {
  background: transparent;
  color: #fffaf3;
  border-color: #fffaf3;
}
.hero-cover .btn-secondary:hover {
  background: rgba(255, 250, 243, 0.14);
  color: #fffaf3;
  border-color: #fffaf3;
}
.hero-cover :focus-visible {
  outline-color: #fffaf3;
}
.hero-cover-below {
  padding: 0 0 clamp(1.5rem, 4vw, 2.25rem);
  border-bottom: 1px solid var(--rule);
}
.hero-cover-below .metrics {
  margin-top: 0;
}
.hero-cover-credit {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (max-width: 860px) {
  .hero-cover {
    padding-top: 0;
  }
  .hero-cover-stage {
    min-height: min(38rem, calc(100vh - var(--header-h)));
    min-height: min(38rem, calc(100svh - var(--header-h)));
  }
  .hero-cover-logo {
    width: 72px;
    height: 72px;
  }
  .hero-cover .btn {
    white-space: normal;
    text-align: center;
  }
}
