.public-site {
  --site-width: 1280px;
  --site-gutter: clamp(18px, 5vw, 70px);
  --site-line: #594437;
  --site-gold: #ffb674;
  background: #110f0f;
  color: #fff5ed;
}
.public-site h2, .staff-access h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.public-site :is(a, button) { touch-action: manipulation; }
.public-site :is(a, button):focus-visible { outline-offset: 4px; }
.public-site .skip-link {
  position: fixed;
  inset: 8px auto auto 8px;
  transform: translateY(-160%);
  z-index: 3;
  background: var(--bg);
  padding: 10px;
}
.public-site .skip-link:focus { transform: translateY(0); }
.site-shell { width: min(100%, var(--site-width)); padding-inline: var(--site-gutter); margin-inline: auto; }
.site-header {
  display: block;
  margin: 0;
  position: relative;
  background: #161211;
  border-bottom: 1px solid #372a24;
}
.site-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; min-height: 78px; }
.site-brand { display: inline-flex; align-items: center; width: 88px; min-height: 44px; }
.site-brand img, .hero h1 img, .gallery-logo img { display: block; width: 100%; height: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: clamp(10px, 2.4vw, 32px); border: 0; padding: 0; }
.site-nav a, .site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover, .site-footer a:hover { color: var(--site-gold); }
.site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid var(--site-line);
  border-radius: 7px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  transition: border-color 150ms, background-color 150ms;
}
.site-button:hover { border-color: var(--site-gold); }
.site-button.primary { color: #1b0f0b; }
.site-button.primary:hover { background: #ffc28c; }
.staff-link { justify-self: end; white-space: nowrap; }
.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(510px, 75svh, 840px);
  background: radial-gradient(ellipse at 50% 78%, #361d17 0%, #1b1311 50%, #110f0f 80%);
  overflow: clip;
  border-bottom: 1px solid var(--site-line);
}
.hero-light {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: repeating-radial-gradient(ellipse at 50% 55%, transparent 0 45px, #ffad6916 46px 47px, transparent 48px 74px);
  mask-image: radial-gradient(ellipse at center, #000 12%, transparent 76%);
}
.public-site #waves { position: absolute; z-index: -1; opacity: .7; }
.hero-content { text-align: center; padding-block: clamp(46px, 7vw, 90px) clamp(58px, 9vw, 110px); }
.club-label { color: var(--site-gold); margin: 0 0 11px; font-weight: 650; letter-spacing: .035em; }
.hero h1 { width: min(100%, 710px); margin: 0 auto 18px; }
.hero h1 img { filter: drop-shadow(0 9px 20px #0a0504aa); }
.hero-description { color: #f0d8ca; margin: 0 auto 23px; font-size: clamp(1.06rem, 2.15vw, 1.42rem); max-width: 32ch; text-wrap: balance; }
.hero-controls { position: absolute; inset: auto 0 0; display: flex; justify-content: flex-end; padding-bottom: 9px; }
#wave-toggle { font-size: .8rem; min-height: 44px; padding: 7px 11px; background: #1c1412; color: #ead3c5; }
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: center;
  padding-block: clamp(45px, 7vw, 90px);
}
.about-section h2, .gallery-heading h2 { margin: 0; font-size: clamp(2.85rem, 6vw, 5.6rem); }
.about-copy { max-width: 48ch; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.about-copy p:first-child { color: #f6e7dd; }
.about-copy p:last-child { margin-bottom: 0; }
.gallery-section { padding-block: clamp(30px, 5vw, 62px) clamp(56px, 8vw, 100px); border-top: 1px solid var(--site-line); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 7px 18px; margin-bottom: 20px; }
.gallery-heading p { margin: 0 0 4px; }
.gallery-grid { display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery-entry {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
  padding: 0;
  background: #1b1412;
  border: 1px solid var(--site-line);
  border-radius: 9px;
  overflow: hidden;
}
.gallery-entry:disabled { opacity: 1; }
.gallery-feature { grid-row: span 2; }
.gallery-art { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; width: 100%; aspect-ratio: 2.7; background: #251311; }
.gallery-feature .gallery-art { flex: 1; aspect-ratio: 1.65; }
.gallery-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; padding: 8px 13px; }
.gallery-caption span:last-child { color: var(--site-gold); }
.gallery-logo { background: repeating-radial-gradient(ellipse at 50% 57%, transparent 0 29px, #ff99552b 30px, transparent 31px 54px), radial-gradient(ellipse at 53% 55%, #67392b, #211512 72%); }
.gallery-logo img { width: 72%; }
.gallery-waves { background: linear-gradient(155deg, #4d211d, #1b1211); }
.gallery-waves span { position: absolute; width: 125%; height: 50%; border: 2px solid #ffae66; border-radius: 46%; transform: rotate(-16deg) translateY(-12px); box-shadow: 0 0 22px #ff9c6440; }
.gallery-waves span:nth-child(2) { transform: rotate(15deg) translateY(16px); border-color: #f17564; }
.gallery-waves span:nth-child(3) { transform: rotate(-4deg) translateY(-32px); border-color: #aa4e42; }
.gallery-sound { display: flex; align-items: center; justify-content: center; gap: 3%; background: linear-gradient(30deg, #160f0e, #48211a); }
.gallery-sound i { width: 3%; height: 22%; border-radius: 8px; background: linear-gradient(#ffb66e, #ed6855); }
.gallery-sound i:nth-child(3n) { height: 46%; }
.gallery-sound i:nth-child(4n) { height: 69%; }
.gallery-sound i:nth-child(5n) { height: 35%; }
.gallery-dialog { width: min(92vw, 850px); max-height: 90dvh; overflow: auto; overscroll-behavior: contain; padding: 16px; border: 1px solid var(--site-line); border-radius: 12px; background: #1b1412; color: var(--ink); }
.gallery-dialog::backdrop { background: #090706e8; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dialog-heading h2 { font-size: clamp(1.45rem, 4vw, 2.6rem); margin: 0; }
.dialog-heading button { min-height: 44px; }
.gallery-dialog .gallery-art { aspect-ratio: 1.8; border-radius: 6px; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 0; padding-block: 9px; border-top: 1px solid var(--site-line); font-size: .88rem; }
.staff-access #signin { max-width: 425px; }
.staff-access #signin h1 { font-size: clamp(2rem, 5vw, 3rem); }
.staff-access #signin > a { font-size: .9rem; text-decoration: none; }
.staff-access .public-return { color: var(--muted); font-size: .9rem; }
@media(max-width: 640px) {
  .site-bar { grid-template-columns: 1fr auto; gap: 0 12px; padding-block: 8px 0; }
  .site-nav { grid-row: 2; grid-column: 1/-1; gap: 20px; }
  .hero { min-height: 420px; }
  .hero-content { padding-block: 35px 70px; }
  .about-section { grid-template-columns: 1fr; gap: 14px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-feature { grid-row: auto; }
  .gallery-art, .gallery-feature .gallery-art { aspect-ratio: 2; }
}
@media(prefers-reduced-motion: reduce) { .site-button { transition: none; } }
.about-copy p, .about-preview-body p { white-space: pre-wrap; overflow-wrap: anywhere; }
.gallery-photo img { display: block; width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.gallery-dialog .gallery-photo img { object-fit: contain; }
.website-editor textarea { resize: vertical; }
.gallery-editor-list { margin: 0; padding: 0; list-style: none; }
.gallery-editor-row { border-top: 1px solid var(--border); padding: 14px 0; display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr); gap: 14px; }
.gallery-editor-thumb { display: grid; place-items: center; min-width: 0; aspect-ratio: 4/3; color: var(--muted); border-radius: 8px; background: var(--bg); text-align: center; align-self: start; overflow: hidden; }
.gallery-editor-thumb img { width: 100%; height: 100%; object-fit: contain; }
.website-notice:empty { display: none; }
.website-notice { margin: 8px 0 0; color: var(--accent); }
.upload-hint { margin: 6px 0 0; font-size: .85rem; }
@media (max-width: 520px) { .gallery-editor-row { grid-template-columns: 1fr; } .gallery-editor-thumb { width: 120px; } }

.gallery-grid.gallery-collection {
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-template-rows: none;
}
.gallery-collection .gallery-art { aspect-ratio: 4/3; }
.gallery-caption > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.gallery-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 17px; }
.gallery-pagination p { margin: 0; }
.gallery-pagination p:empty, .gallery-pagination:has(p:empty):has(button[hidden]) { display: none; }
.gallery-pagination button, .gallery-navigation button { min-height: 44px; }
.gallery-navigation { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 13px; }
#gallery-position { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gallery-dialog .gallery-art { max-height: 67dvh; }
.dialog-heading h2 { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) { .gallery-grid.gallery-collection { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 390px) { .gallery-grid.gallery-collection { grid-template-columns: minmax(0,1fr); } }

