:root {
  color-scheme: light;
  --ink: #181818;
  --muted: #5c6068;
  --line: #ded7cf;
  --paper: #fffdfa;
  --panel: #f5f0e9;
  --brand: #b9151b;
  --brand-dark: #741116;
  --gold: #c99b3b;
  --forest: #1f4f3a;
  --shadow: 0 18px 48px rgba(24, 24, 24, 0.12);
  --max: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;
}

img,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--brand-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--ink);
  color: white;
  padding: 0.7rem 1rem;
}

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

.site-header {
  background: #111;
  color: white;
  border-bottom: 5px solid var(--brand);
}

.masthead {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
}

.brand-logo {
  width: 96px;
  aspect-ratio: 1;
  object-fit: contain;
  background: white;
  border: 3px solid var(--brand);
}

.brand-block {
  min-width: 0;
}

.brand-title {
  margin: 0;
  font-family: "UnifrakturMaguntia", Georgia, serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 0.95;
}

.brand-title a {
  color: white;
  text-decoration: none;
}

.tagline {
  margin: 0.4rem 0 0;
  color: #f0d7d8;
  font-size: 0.98rem;
}

.contact-line {
  margin: 0.25rem 0 0;
  color: #f7f0e7;
  font-size: 0.92rem;
}

.nav-wrap {
  background: #f8f2eb;
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 1.4rem;
  cursor: pointer;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 3px solid transparent;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--brand-dark);
  border-bottom-color: var(--brand);
}

.hero {
  position: relative;
  isolation: isolate;
  background: #171717;
  color: white;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.36) 48%, rgba(0, 0, 0, 0.08));
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  min-height: min(62vh, 640px);
  display: grid;
  align-content: center;
  padding: 5rem 0 6rem;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #fff7ed;
}

.page-hero {
  background: linear-gradient(135deg, #161616 0%, #3d1013 55%, #5b171b 100%);
  color: white;
}

.page-hero-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 3rem 0;
}

.page-hero h1 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2rem, 4.8vw, 4.2rem);
  line-height: 1.05;
}

.page-kicker,
.date-line {
  margin: 0 0 0.7rem;
  color: #f1d9d9;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section {
  padding: 3.2rem 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 2rem;
  align-items: start;
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.lead {
  font-size: 1.12rem;
  color: #2f3034;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.button,
.button-alt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid var(--brand);
}

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

.button:hover {
  color: white;
  background: var(--brand-dark);
}

.button-alt {
  background: white;
  color: var(--brand-dark);
}

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

.feature-list li {
  padding-left: 1.1rem;
  border-left: 4px solid var(--gold);
}

.band {
  background: var(--panel);
  border-block: 1px solid var(--line);
}

.program-grid,
.news-grid,
.gallery-grid,
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.program-card,
.news-card,
.gallery-item,
.side-panel,
.event-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.program-card img,
.news-card img,
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.program-card-body,
.news-card-body,
.side-panel,
.event-panel {
  padding: 1rem;
}

.program-card h3,
.news-card h3,
.side-panel h2,
.event-panel h2 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  line-height: 1.2;
}

.program-card p,
.news-card p,
.side-panel p,
.event-panel p {
  margin: 0.35rem 0;
  color: var(--muted);
}

.content-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2rem;
  align-items: start;
  padding: 3rem 0;
}

.wp-content {
  min-width: 0;
  font-size: 1rem;
}

.wp-content > *:first-child {
  margin-top: 0;
}

.wp-content h1,
.wp-content h2,
.wp-content h3,
.wp-content h4,
.wp-content h5,
.wp-content h6 {
  line-height: 1.18;
}

.wp-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.wp-content h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
}

.wp-content h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.wp-content h4,
.wp-content h5,
.wp-content h6 {
  font-size: 1.05rem;
}

.wp-content p {
  margin: 0 0 1rem;
}

.wp-content table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 1.2rem 0;
}

.wp-content td,
.wp-content th {
  border: 1px solid var(--line);
  padding: 0.75rem;
  vertical-align: top;
}

.wp-content iframe {
  width: 100%;
  border: 0;
}

.wp-content img.aligncenter,
.wp-content .aligncenter {
  display: block;
  margin: 1rem auto;
}

.wp-content img[align="right"] {
  float: right;
  margin: 0.2rem 0 1rem 1rem;
}

.wp-content img[align="left"] {
  float: left;
  margin: 0.2rem 1rem 1rem 0;
}

.generated-copy {
  display: grid;
  gap: 1rem;
}

.generated-copy p {
  margin: 0;
}

.page-gallery {
  margin-top: 2rem;
}

.page-gallery h2 {
  margin-bottom: 1rem;
}

.sidebar {
  display: grid;
  gap: 1rem;
}

.side-panel strong {
  color: var(--ink);
}

.wp-tiles-container {
  margin: 1rem 0 2rem;
}

.wp-tiles-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  height: auto !important;
}

.wp-tiles-tile {
  position: static !important;
  width: auto !important;
  height: auto !important;
}

.wp-tiles-tile > a {
  display: block;
  color: white;
  text-decoration: none;
}

.wp-tiles-tile-wrapper {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  border-radius: 8px;
  background: #222;
  box-shadow: var(--shadow);
}

.wp-tiles-tile-bg,
.wp-tiles-tile-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wp-tiles-tile-bg img {
  object-fit: cover;
}

.wp-tiles-tile-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.82));
}

.wp-tiles-byline {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 1rem;
}

.wp-tiles-byline-title {
  margin: 0;
  color: white;
  font-size: 1.05rem;
  line-height: 1.2;
}

.wp-tiles-byline-content {
  color: #f2e0d8;
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

.archive-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.archive-item {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.archive-item h2 {
  margin: 0 0 0.3rem;
  font-size: 1.35rem;
}

.site-footer {
  background: #111;
  color: #f4eee8;
  padding: 2.6rem 0;
  border-top: 5px solid var(--brand);
}

.footer-grid {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
}

.footer-grid p {
  margin: 0.25rem 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.footer-nav a {
  color: white;
}

.not-found {
  min-height: 55vh;
  display: grid;
  align-content: center;
}

@media (max-width: 900px) {
  .intro-grid,
  .content-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .program-grid,
  .news-grid,
  .gallery-grid,
  .sitemap-grid,
  .wp-tiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .masthead {
    grid-template-columns: auto 1fr;
  }

  .brand-logo {
    width: 76px;
  }

  .nav-inner {
    min-height: 58px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    z-index: 20;
    background: #f8f2eb;
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem;
  }

  .primary-nav[data-open] {
    display: grid;
  }

  .primary-nav a {
    min-height: 42px;
    border-bottom: 1px solid var(--line);
    padding-inline: 0;
  }

  .hero-inner {
    min-height: 520px;
    padding: 4rem 0 5rem;
  }

  .program-grid,
  .news-grid,
  .gallery-grid,
  .sitemap-grid,
  .wp-tiles-grid {
    grid-template-columns: 1fr;
  }

  .wp-content img[align="right"],
  .wp-content img[align="left"] {
    float: none;
    display: block;
    margin: 1rem auto;
  }
}
