/* ============================================
   Design tokens
   Palette drawn from Zoe's own brand (Captured
   By Zoe): deep plum, dusty rose, warm cream.
   ============================================ */
:root {
  --color-purple-900: #3d1f2e;
  --color-purple-700: #5c2e3e;
  --color-purple-500: #c99a91;
  --color-purple-100: #f4e9e4;

  --color-ink: #2a1c22;
  --color-paper: #fffaf7;
  --color-muted: #7d6a6a;
  --color-link: #6ab0ff;

  --font-body: "Marcellus", Georgia, "Times New Roman", serif;
  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-badge: "Marcellus", Georgia, serif;
  --font-script: "Alex Brush", cursive;
  --font-name: "Cormorant Garamond", Georgia, serif;
  --font-marcellus: "Marcellus", Georgia, serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;

  --max-width: 68rem;
}

/* ============================================
   Reset (minimal)
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  background: var(--color-purple-900);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--color-ink);
  background: var(--color-purple-900);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--color-purple-500); }

/* ============================================
   Layout shell
   ============================================ */
main {
  display: block;
}

.site-footer {
  text-align: center;
  padding: 0 var(--space-3) var(--space-3);
  color: var(--color-purple-100);
  background: var(--color-purple-900);
  font-size: 0.85rem;
}
.site-footer__legacy {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-paper);
  max-width: 28rem;
  margin: 0 auto;
}

/* ============================================
   Color bands
   Each section is a full-bleed band of color;
   content is capped/centered inside .band__inner.
   ============================================ */
.band__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.band--plum,
.band--ink,
.band--rose,
.band--cream {
  background: var(--color-purple-900);
  color: var(--color-purple-100);
}

/* ============================================
   Hero (homepage placeholder)
   ============================================ */
.hero {
  padding: var(--space-3);
}
.hero__layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}
.hero__photo {
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-purple-500);
  margin-bottom: -10px;
  margin-top: -10px;
  flex-shrink: 0;
}
.hero__text {
  flex: 1;
}
.hero h1 {
  margin: 0 0 var(--space-1);
}
.hero__lead {
  display: block;
  font-family: var(--font-marcellus);
  font-weight: 400;
  color: var(--color-purple-500);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
.hero__name {
  display: block;
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--color-paper);
  font-size: clamp(3.25rem, 12vw, 7.5rem);
  line-height: 1.1;
}
.hero__dates {
  font-family: var(--font-marcellus);
  letter-spacing: 0.03em;
  color: var(--color-purple-500);
  font-size: clamp(1.25rem, 4vw, 2.25rem);
  line-height: 1.1;
  margin: -0.875rem 0 0;
}

@media (min-width: 48rem) {
  .hero__layout {
    flex-direction: row;
    text-align: center;
  }
  .hero__photo {
    width: 16rem;
    height: 16rem;
  }
}

/* ============================================
   Login / code entry
   ============================================ */
.login-shell {
  max-width: 24rem;
  margin: 0 auto;
  padding: var(--space-5) var(--space-3);
  text-align: center;
}
.login-shell h1 {
  font-family: var(--font-display);
  color: var(--color-paper);
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}
.login-shell p { color: var(--color-purple-500); }
.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin: var(--space-3) 0;
  text-align: left;
}
.login-form label {
  font-size: 0.85rem;
  color: var(--color-purple-500);
}
.login-form input {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--color-purple-500);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: var(--color-paper);
  color: var(--color-ink);
}
.login-form input:focus {
  outline: 2px solid var(--color-purple-500);
  outline-offset: 1px;
}
.login-form button {
  margin-top: var(--space-1);
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--color-purple-700);
  color: var(--color-paper);
  font-size: 1rem;
  cursor: pointer;
}
.login-form button:hover { background: var(--color-purple-900); }
.login-note { font-size: 0.85rem; }
.login-shell p.login-error {
  font-size: 1rem;
  font-weight: 700;
  color: #b91c1c;
}

/* ============================================
   Page sections
   ============================================ */
.section {
  padding: var(--space-3) var(--space-3);
  scroll-margin-top: var(--space-3);
}
@media (min-width: 40rem) {
  .section { padding: var(--space-3) var(--space-4); }
}
.section--no-bottom { padding-bottom: 0; }
.section--no-top { padding-top: 0; }
.section--tight-bottom { padding-bottom: var(--space-1); }
.section--tight-top { padding-top: var(--space-1); }

/* Modern hairline divider between sections — a short centered gradient
   rule rather than a full-width band border, so it reads as deliberate
   rather than a leftover box edge. */
.divider {
  border: none;
  height: 1px;
  width: min(40rem, 85%);
  margin: var(--space-3) auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(201, 154, 145, 0.5),
    transparent
  );
}
.divider--tight {
  margin: var(--space-1) auto;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-paper);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid rgba(244, 233, 228, 0.25);
  padding-bottom: var(--space-1);
}
.section__title--plain {
  border-bottom: none;
  padding-bottom: 0;
}
.section__subtitle {
  font-family: var(--font-badge);
  font-variant: small-caps;
  letter-spacing: 0.03em;
  color: var(--color-purple-500);
  font-size: 1.25rem;
  margin: var(--space-3) 0 var(--space-2);
}
.section__intro {
  color: var(--color-purple-500);
  margin-bottom: var(--space-2);
}

/* ============================================
   Video feature — outer card pairs the title
   with the player/chapters, mirroring how an
   expanded gallery pairs its title with photos.
   ============================================ */
.video-feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 233, 228, 0.12);
  border-radius: 0.75rem;
  padding: var(--space-2) var(--space-3) var(--space-3);
}
.video-feature__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}
.video-feature__title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--color-paper);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  margin: 0;
}
.video-feature__watch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  border: 1px solid var(--color-purple-500);
  background: transparent;
  color: var(--color-purple-500);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.video-feature__watch:hover {
  background: var(--color-purple-500);
  color: var(--color-purple-900);
}

/* ============================================
   Video playlist — player with a nested
   "chapters" list styled as one attached unit.
   ============================================ */
.playlist {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(244, 233, 228, 0.25);
  border-radius: 0.75rem;
  overflow: hidden;
}
.playlist__player {
  width: 100%;
  flex-shrink: 0;
  background: var(--color-ink);
  aspect-ratio: 16 / 9;
}
.playlist__chapters {
  overflow: hidden;
}
.playlist__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: chapter;
}
.playlist__item {
  counter-increment: chapter;
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(244, 233, 228, 0.1);
  background: transparent;
  color: var(--color-purple-100);
  padding: 0.85rem var(--space-2);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s ease;
}
.playlist__list li:last-child .playlist__item {
  border-bottom: none;
}
.playlist__item::before {
  content: counter(chapter, decimal-leading-zero);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: var(--color-purple-500);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.playlist__item:hover {
  background: rgba(244, 233, 228, 0.06);
}
.playlist__item[aria-current="true"] {
  background: rgba(201, 154, 145, 0.16);
  color: var(--color-paper);
}
.playlist__item[aria-current="true"]::before {
  content: "▸";
  color: var(--color-purple-500);
  font-size: 0.9rem;
}

/* ============================================
   Album accordion
   Each album is a collapsible panel; only one
   open at a time. Height-animated via a wrapper
   whose max-height is driven from JS (measured
   scrollHeight), so it works for variable content.
   ============================================ */
.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.accordion__album {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(244, 233, 228, 0.12);
  border-radius: 0.75rem;
  overflow: hidden;
}
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  border: none;
  background: transparent;
  color: var(--color-paper);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  text-align: left;
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
}
.accordion__trigger:hover {
  color: var(--color-purple-500);
}
.accordion__trigger a:link,
.accordion__trigger a:visited {
  color: var(--color-link);
}
.accordion__trigger a:hover,
.accordion__trigger a:focus {
  color: var(--color-link);
  text-decoration: underline;
}
.accordion__trigger-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.accordion__count {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-purple-500);
  font-variant-numeric: tabular-nums;
}
.accordion__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-purple-500);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg);
}
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}
.accordion__panel-inner {
  padding: 0 var(--space-3) var(--space-3);
}
.accordion__placeholder {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) 0 var(--space-3);
  color: var(--color-purple-500);
  font-size: 0.9rem;
  font-style: italic;
}
.accordion__placeholder::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 2px solid rgba(201, 154, 145, 0.35);
  border-top-color: var(--color-purple-500);
  animation: accordion-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes accordion-spin {
  to { transform: rotate(360deg); }
}
.accordion__panel[data-loaded="true"] .accordion__placeholder {
  display: none;
}

/* ============================================
   Photo galleries
   ============================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-1);
}
.gallery__item {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 0.4rem;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery__grid--portrait .gallery__item {
  aspect-ratio: 1 / 1.5;
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  backface-visibility: hidden;
  transform: translateZ(0) scale(1);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}
.gallery__item:hover img {
  transform: translateZ(0) scale(1.05);
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 32, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.lightbox[hidden] { display: none; }
.lightbox__image {
  width: auto;
  height: auto;
  max-width: 97vw;
  max-height: 97vh;
  object-fit: contain;
  border-radius: 0.4rem;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-paper);
  cursor: pointer;
  border-radius: 999px;
  line-height: 1;
}
.lightbox__close {
  top: var(--space-2);
  right: var(--space-2);
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
}
.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
}
.lightbox__prev { left: var(--space-2); }
.lightbox__next { right: var(--space-2); }
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   Small screens first; nothing extra needed
   below ~480px with this layout. Widen up:
   ============================================ */
@media (min-width: 40rem) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 60rem) {
  .gallery__grid { grid-template-columns: repeat(6, 1fr); }
}
