:root {
  --ink: #172d32;
  --navy: #18354a;
  --rust: #a33f20;
  --pine: #354d2b;
  --cream: #f6edda;
  --paper: #fffaf0;
  --gold: #c48a3a;
  --line: rgba(24, 53, 74, .15);
  --shadow: 0 18px 50px rgba(30, 37, 31, .14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  padding-bottom: calc(82px + env(safe-area-inset-bottom));
  color: var(--ink);
  background: var(--cream);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .22;
  background-image: radial-gradient(#805d33 .55px, transparent .7px);
  background-size: 7px 7px;
}
img { display: block; max-width: 100%; height: auto; }
button, a { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: white; }
.skip-link:focus { top: 1rem; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: .6rem clamp(1rem, 4vw, 4rem);
  color: white;
  background: rgba(20, 42, 53, .96);
  box-shadow: 0 5px 25px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}
.brand { display: flex; gap: .7rem; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { display: block; flex: 0 0 42px; width: 42px; height: 42px; border: 2px solid #e4b567; border-radius: 50%; object-fit: cover; }
.brand b, .brand small { display: block; }
.brand small { color: #e8dcc8; font-size: .75rem; }
#site-nav { display: flex; align-items: center; gap: .2rem; }
#site-nav a { padding: .65rem .72rem; border-radius: 8px; color: #f8f1e5; font-size: .9rem; text-decoration: none; }
#site-nav a:hover, #site-nav a:focus-visible, #site-nav a.active { background: rgba(255,255,255,.12); color: #ffd28b; }
.menu-button { display: none; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: .5rem .8rem; color: white; background: transparent; }
.page { min-height: 60vh; padding: clamp(4rem, 8vw, 7rem) clamp(1.1rem, 6vw, 6rem); border-bottom: 1px solid var(--line); }
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(330px, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  color: white;
  background: linear-gradient(120deg, #162f3e 0%, #294835 66%, #704323 140%);
}
.hero-copy { max-width: 660px; }
.eyebrow { margin: 0 0 .8rem; color: var(--rust); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero .eyebrow { color: #f2ba66; }
h1, h2, h3 { line-height: 1.08; }
h1, h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; }
h1 { max-width: 700px; font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.3rem, 5vw, 4.6rem); letter-spacing: -.035em; }
.lede { max-width: 620px; font-size: clamp(1.1rem, 2vw, 1.35rem); color: #e9e5d8; }
.event-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0; }
.event-facts div { padding: 1rem; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,255,255,.06); }
.event-facts span, .event-facts strong { display: block; }
.event-facts span { margin-bottom: .2rem; color: #d4bd9c; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .7rem 1rem; border: 1px solid transparent; border-radius: 9px; font-weight: 750; text-decoration: none; cursor: pointer; }
.button.primary { color: white; background: var(--rust); }
.button.secondary { color: white; border-color: rgba(255,255,255,.35); background: transparent; }
.offline-status { margin: 1rem 0 0; color: #d7d1c2; font-size: .82rem; }
.poster-button, .document-card, .wide-document, .map-feature button, .map-gallery button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.poster-button img { border: 8px solid #d0a766; border-radius: 4px; box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.section-heading { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section-heading > p:last-child { color: #526164; font-size: 1.08rem; }
.document-card { position: relative; display: block; max-width: 680px; margin-inline: auto; box-shadow: var(--shadow); }
.document-card img { width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.document-card span, .wide-document span { position: absolute; right: 12px; bottom: 12px; padding: .35rem .65rem; border-radius: 7px; color: white; background: rgba(15, 28, 31, .82); font-size: .8rem; }
.wide-document { position: relative; display: block; max-width: 1200px; margin-inline: auto; box-shadow: var(--shadow); }
.map-layout { max-width: 1040px; margin: 0 auto 3rem; overflow: hidden; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.map-overview { margin: 0; padding: 0; border: 0; background: white; cursor: zoom-in; }
.map-overview img { width: auto; max-width: 100%; height: auto; margin-inline: auto; }
.gallery-title { margin: 0 auto 1rem; max-width: 1040px; }
.map-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; max-width: 1040px; margin-inline: auto; }
.map-gallery button { overflow: hidden; border-radius: 10px; background: #d8d3c5; }
.map-gallery.natural { align-items: start; }
.map-gallery img { width: 100%; height: auto; object-fit: contain; transition: transform .2s ease; }
.map-gallery button:hover img { transform: scale(1.03); }
.compact-page { min-height: 52vh; }
.notice { display: flex; gap: 1rem; max-width: 780px; margin: 0 auto; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid #d8c49c; border-radius: 14px; background: #fff8e8; box-shadow: 0 10px 35px rgba(71, 49, 19, .07); }
.notice-icon { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: white; background: var(--rust); font-weight: 900; }
.notice h3 { margin: .3rem 0; }
.notice p { margin: .55rem 0 0; }
.editor-note { color: #646153; font-size: .9rem; }
.resource-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 900px; margin-inline: auto; }
.resource-card { display: flex; align-items: center; gap: 1rem; min-height: 110px; padding: 1.2rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper); box-shadow: 0 8px 30px rgba(25,45,45,.07); text-decoration: none; }
.resource-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.resource-card div { flex: 1; }
.resource-card strong, .resource-card small { display: block; }
.resource-card small { margin-top: .2rem; color: #6a7372; }
.resource-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: white; background: var(--navy); font: 800 1.3rem Georgia, serif; }
.embed-shell { position: relative; max-width: 1040px; min-height: 620px; margin-inline: auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.embed-shell iframe { position: relative; z-index: 1; display: block; width: 100%; height: 620px; border: 0; background: white; }
.offline-embed-note { position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center; color: #596361; }
.is-offline .embed-shell iframe { display: none; }
.songs-page { min-height: 100vh; padding-bottom: 4rem; background: linear-gradient(180deg, #142f3d 0, #254836 540px, var(--cream) 540px); }
.album-hero { display: grid; grid-template-columns: minmax(260px, 440px) minmax(300px, 620px); gap: clamp(2rem, 6vw, 6rem); align-items: center; max-width: 1180px; margin-inline: auto; padding: clamp(3rem, 7vw, 6rem) clamp(1.1rem, 5vw, 4rem) 4rem; color: white; }
.album-photo { width: 100%; aspect-ratio: 4 / 5; margin: 0; padding: 0; border: 7px solid #d4a45e; border-radius: 8px; overflow: hidden; background: #102431; box-shadow: 0 28px 70px rgba(0,0,0,.38); cursor: zoom-in; transform: rotate(-1.2deg); }
.album-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.album-intro .eyebrow { color: #f2ba66; }
.album-intro h1 { font-size: clamp(3rem, 7vw, 6.7rem); }
.album-meta { display: flex; gap: .6rem; margin: 1.4rem 0 2rem; color: #d8dfd5; font-weight: 700; }
.album-meta span + span::before { content: "•"; margin-right: .6rem; color: #e1a95a; }
.album-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.album-secondary { border-color: #f2ba66; color: #173543; background: #fff4dc; box-shadow: 0 5px 16px rgba(0,0,0,.18); }
.album-secondary:hover, .album-secondary:focus-visible { color: #102b38; background: #ffd996; }
.album-secondary:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.album-secondary:disabled { color: #4c5a5c; border-color: #c9c1b1; background: #ddd6c8; cursor: wait; opacity: 1; }
.download-status { min-height: 1.5em; color: #d7dfd7; font-size: .9rem; }
.music-shell { max-width: 1080px; margin: 0 auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.now-playing { position: sticky; top: 82px; z-index: 10; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: .85rem; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; color: white; background: rgba(20,42,53,.97); box-shadow: 0 16px 45px rgba(0,0,0,.2); backdrop-filter: blur(12px); }
.mini-cover { width: 62px; height: 62px; border-radius: 10px; overflow: hidden; }
.mini-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.now-copy { min-width: 0; }
.now-copy span { display: block; color: #c9d1cd; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.now-copy h2 { overflow: hidden; font: 700 clamp(1.05rem, 3vw, 1.45rem) system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.transport { display: flex; gap: .3rem; }
.transport button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.1); cursor: pointer; }
.now-playing audio { grid-column: 1 / -1; width: 100%; height: 42px; }
.track-section { margin-top: 2rem; padding: clamp(1.2rem, 4vw, 2.5rem); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.track-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.track-heading h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.track-heading span { color: #697270; font-weight: 700; }
.track-list { margin: 0; padding: .5rem 0 0; list-style: none; }
.track-list li + li { border-top: 1px solid var(--line); }
.track-button { display: grid; grid-template-columns: 42px minmax(0, 1fr) 38px; gap: .7rem; align-items: center; width: 100%; min-height: 62px; padding: .55rem .7rem; border: 0; border-radius: 9px; text-align: left; background: transparent; cursor: pointer; }
.track-button:hover, .track-button:focus-visible { background: #f2e7d0; }
.track-button.active { color: white; background: var(--rust); }
.track-number { color: #7e817a; font-variant-numeric: tabular-nums; font-size: .82rem; font-weight: 800; }
.track-button.active .track-number { color: #f6d6c7; }
.track-title { font-weight: 750; line-height: 1.25; }
.track-play { text-align: center; opacity: .72; }
.closing { background: #efe4cc; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1rem, 6vw, 6rem); color: #d8d5cb; background: #142a35; font-size: .85rem; }
.quick-dock {
  position: fixed;
  left: 50%;
  bottom: max(.65rem, env(safe-area-inset-bottom));
  z-index: 35;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: .4rem;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  padding: .4rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 19px;
  background: rgba(20,42,53,.96);
  box-shadow: 0 14px 42px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}
.quick-dock a {
  display: flex !important;
  flex: 0 0 64px;
  width: 64px;
  min-width: 64px;
  max-width: 64px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .45rem .7rem;
  border-radius: 14px;
  color: #f8f1e5;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
}
.quick-dock a:hover, .quick-dock a:focus-visible { background: rgba(255,255,255,.12); }
.quick-dock a.active { color: #18354a; background: #f2ba66; }
.dock-icon { font-size: 1.65rem; line-height: 1; }
#lightbox { width: min(96vw, 1400px); max-width: none; height: 94vh; max-height: none; padding: 2.5rem 1rem 1rem; border: 0; overflow: hidden; background: rgba(12,17,17,.96); }
#lightbox::backdrop { background: rgba(0,0,0,.78); }
#lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close { position: fixed; top: max(.75rem, env(safe-area-inset-top)); right: max(.75rem, env(safe-area-inset-right)); z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: white; background: rgba(12,17,17,.86); box-shadow: 0 6px 22px rgba(0,0,0,.35); font-size: 2rem; line-height: 1; cursor: pointer; }
#install-dialog {
  width: min(92vw, 560px);
  padding: clamp(1.35rem, 4vw, 2rem);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}
#install-dialog::backdrop { background: rgba(9, 20, 25, .7); backdrop-filter: blur(4px); }
.install-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.1rem;
  border-radius: 15px;
  color: #f2ba66;
  background: var(--navy);
  font: 800 2rem Georgia, serif;
}
.install-copy h2 { font-size: clamp(2rem, 6vw, 3rem); }
.install-copy > p:not(.eyebrow) { color: #526164; }
.ios-install-help { padding: .8rem 1rem; border-radius: 9px; background: #f4ead5; }
.install-actions { display: flex; justify-content: flex-end; gap: .7rem; margin-top: 1.4rem; }
.install-dismiss { border-color: var(--line); color: var(--ink); background: transparent; }
.swipe-hint {
  position: fixed;
  left: 50%;
  bottom: calc(82px + max(1.2rem, env(safe-area-inset-bottom)));
  z-index: 40;
  max-width: calc(100vw - 2rem);
  padding: .65rem 1rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: white;
  background: rgba(20,42,53,.94);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 1rem);
  transition: opacity .15s ease, transform .15s ease;
  font-size: .86rem;
  font-weight: 700;
  white-space: nowrap;
}
.swipe-hint.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1020px) {
  .menu-button { display: block; }
  #site-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; max-height: calc(100vh - 72px); padding: .75rem 1rem 1rem; overflow-y: auto; background: #142a35; }
  #site-nav.open { display: grid; grid-template-columns: repeat(2, 1fr); }
  #site-nav a { padding: .8rem; }
  .hero { grid-template-columns: 1fr; }
  .poster-button { max-width: 800px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 70px; }
  .page { padding-block: 3.4rem; }
  .hero { min-height: auto; padding-top: 3rem; }
  .event-facts, .resource-grid { grid-template-columns: 1fr; }
  .map-gallery { grid-template-columns: repeat(2, 1fr); }
  .map-gallery img { height: auto; }
  footer { display: block; }
  .install-actions { flex-direction: column-reverse; }
  .install-actions .button { width: 100%; }
  .songs-page { background: linear-gradient(180deg, #142f3d 0, #254836 780px, var(--cream) 780px); }
  .album-hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 2rem; }
  .album-photo { max-width: 390px; margin-inline: auto; }
  .album-intro h1 { font-size: clamp(2.8rem, 15vw, 4.7rem); }
  .album-actions .button { flex: 1 1 130px; }
  .now-playing { top: 76px; grid-template-columns: 52px minmax(0, 1fr) auto; gap: .65rem; }
  .mini-cover { width: 52px; height: 52px; }
  .transport button { width: 36px; height: 36px; }
  .track-section { padding: 1rem .6rem; }
  .track-heading { padding-inline: .6rem; }
  .track-button { grid-template-columns: 34px minmax(0, 1fr) 30px; padding-inline: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
