:root {
  --bg: #f9f7f2; /* Cream White */
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #4a5a68;
  --line: #d9e2ec;
  --rose: #e3e9ef; /* soft blue-tinted wash */
  --blush: #f1f4f7; /* pale mist */
  --sage: #afbec8; /* Dusty Blue */
  --accent: #637f99; /* French Blue */
  --accent-strong: #4f6b86;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --wrap: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Work Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

h1,
h2,
h3,
h4 {
  font-family: "Playfair Display", "Times New Roman", serif;
  margin: 0 0 0.35em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.bg-texture {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(175, 190, 200, 0.16), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(99, 127, 153, 0.16), transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(225, 233, 239, 0.35), transparent 45%);
  z-index: 0;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(14px);
  background: rgba(249, 247, 242, 0.85);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 0;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 8px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-weight: 600;
  font-size: 1.02rem;
}

.brand-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav-link {
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(99, 127, 153, 0.12);
}

.nav-link.active {
  color: var(--ink);
  background: var(--rose);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.hero,
.page-hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 3rem 0 2rem;
  align-items: center;
}

.hero-overlay {
  min-height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(2rem, 5vw, 4rem);
}

.hero-overlay__text {
  margin: 0;
  color: #f9f7f2;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.2rem, 3vw, 2.7rem);
}

.hero.hero-simple {
  position: relative;
  overflow: hidden;
  background: transparent;
  padding: 3.5rem;
}

.hero.hero-simple .hero-copy {
  position: relative;
  z-index: 1;
  color: inherit;
}

.hero.hero-simple .hero-copy p {
  color: var(--muted);
}

.hero-photo-section {
  padding: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  display: grid;
  gap: 1rem;
}

.hero-photo-wrap {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 100%;
}

.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-photo-title {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 100%;
  text-align: center;
  margin: 0;
  color: #f9f7f2;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 0 1rem;
}

.hero-actions--center {
  justify-content: center;
}

.hero-actions--overlay {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  justify-content: center;
  gap: 0.6rem;
}

.hero-actions,
.cta-stack {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}

.message-section {
  padding: 0.5rem 0 1.5rem;
}

.message-section .card {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.instructions {
  padding: clamp(2rem, 6vw, 3rem) 0 clamp(2.5rem, 7vw, 4rem);
  scroll-margin-top: 70px;
}

.instructions-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  display: grid;
  gap: 0.8rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.instructions h2 {
  margin: 0 0 0.25rem;
}

.instructions ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
  text-align: left;
  margin: 0 auto;
}

.instructions-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  justify-content: center;
}

.photo-upload {
  padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
}

.photo-upload__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.photo-upload__copy .lede {
  margin-bottom: 1rem;
}

.photo-upload__form {
  width: 100%;
}

.slideshow {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 70vh;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: grid;
  place-items: center;
}

.slide.active {
  opacity: 1;
  position: absolute;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 90vh;
  max-width: 100vw;
}

.slideshow:fullscreen .slide img,
.slideshow:-webkit-full-screen .slide img {
  object-fit: contain;
}

.slide-overlay {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  max-width: 360px;
}

.slideshow-empty {
  color: #fff;
  text-align: center;
  display: grid;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 25px rgba(99, 127, 153, 0.25);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
}

.button.white {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 58ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
}

.pill {
  background: var(--sage);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: grid;
  gap: 1.2rem;
}

.hero-card__header,
.hero-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

.prompt-list li {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--blush);
  color: var(--ink);
  font-weight: 600;
}

.metric {
  display: grid;
  gap: 0.15rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.metric strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.card-grid,
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  padding: 2rem 0;
}

.card,
.prompt-card,
.form-card,
.video-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.prompt-board {
  padding: 2rem 0;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.prompt-card h3 {
  margin-top: 0.25rem;
}

.feature {
  padding: 1.5rem 0 3rem;
}

.feature-card {
  background: linear-gradient(135deg, var(--rose), var(--sage));
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--shadow);
}

.page {
  padding-bottom: 3rem;
}

.page-hero {
  padding-top: 2.5rem;
}

.page-hero--centered {
  justify-content: center;
  text-align: center;
}

.page-hero--centered .lede {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.form-section--centered {
  display: flex;
  justify-content: center;
}

.form-card--centered {
  width: 100%;
  max-width: 520px;
}

.form-actions--stack {
  flex-direction: column;
  align-items: stretch;
}

.upload-notes {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  padding: 1.25rem;
  color: var(--muted);
}

.upload-notes ul {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
}

.form-section {
  padding: 1rem 0 3rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 600;
  color: var(--ink);
}

input,
select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 127, 153, 0.22);
}

.form-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.gallery-section {
  padding: 1.5rem 0 3rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.video-grid--insta {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.thumb-card {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: none;
  box-shadow: none;
  position: relative;
  aspect-ratio: 1 / 1;
}

.thumb-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.2s ease;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.thumb-link:hover .thumb-overlay,
.thumb-link:focus-visible .thumb-overlay {
  opacity: 1;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 70px 1rem 1rem; /* leave room for sticky nav */
  z-index: 20;
}

.video-modal.active {
  display: flex;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.video-modal__content {
  position: relative;
  background: #000;
  padding: 1rem;
  border-radius: 12px;
  max-width: 900px;
  width: min(90vw, 900px);
  max-height: calc(100vh - 110px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.video-modal__content video {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  display: block;
  background: #000;
}

.video-modal__content .button.wide {
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
}

.video-modal__close {
  position: absolute;
  top: 0.3rem;
  right: 0.35rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.video-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--blush);
  min-height: 150px;
  display: grid;
  place-items: center;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-placeholder {
  font-weight: 700;
  color: var(--muted);
}

.video-meta h3 {
  margin: 0.15rem 0 0.3rem;
}

.meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.muted {
  color: var(--muted);
}

.video-card.empty {
  text-align: center;
}

.video-card.empty .video-placeholder {
  font-size: 2rem;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.alert.error {
  background: #ffe5e5;
  color: #9b1c1c;
  border: 1px solid #f4c7c7;
}

.alert.success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.rehearsal-hero {
  padding-bottom: 1rem;
}

.admin-hero {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2rem;
}

.admin-panel {
  padding: 1.5rem 0 3rem;
  display: grid;
  gap: 1rem;
}

.admin-tabs {
  display: inline-flex;
  gap: 0.5rem;
  border: 1px solid var(--line);
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.02);
  width: fit-content;
}

.tab-button {
  border: none;
  background: transparent;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-button.active {
  background: var(--rose);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.9rem;
}

.admin-video-grid .media-card {
  aspect-ratio: 16 / 9;
}

.admin-photo-grid .media-card {
  aspect-ratio: 4 / 5;
}

.media-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.media-thumb {
  flex: 1;
  background: #000;
}

.media-thumb video,
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem;
  justify-content: flex-end;
  position: absolute;
  inset: 0;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding-bottom: 0.75rem;
}

.media-card:hover .media-actions,
.media-card:focus-within .media-actions {
  opacity: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.45) 100%);
}

.media-actions .button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.media-actions .button.danger {
  border-color: #c53030;
  color: #c53030;
  background: #fff;
}

.inline-form {
  margin: 0;
}

.button.danger {
  border-color: #c53030;
  color: #c53030;
}

.button.danger:hover {
  background: rgba(197, 48, 48, 0.1);
}

.photos-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.75rem;
}

.photo-upload-admin {
  width: 100%;
}

.site-footer {
  background: rgba(249, 247, 242, 0.9);
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.6rem 0 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.foot-title {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.35rem;
}

.foot-copy {
  margin: 0;
}

.footer-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-meta {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.dot {
  opacity: 0.5;
}

.video-player video {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

@media (max-width: 700px) {
  .header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .file-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .file-row--head {
    display: none;
  }

  .file-row span {
    display: block;
  }

  .photos-header {
    grid-template-columns: 1fr;
  }

  .photo-card-admin .photo-thumb {
    height: 180px;
  }

  .feature-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .wrap {
    width: calc(100% - 1.5rem);
  }
}
