/* Jenna / Alexa pic archives — phone + monitor */
:root {
  --bg: #070b10;
  --panel: #10161e;
  --line: #243040;
  --text: #eef1f6;
  --muted: #9aa6b8;
  --dim: #6a7588;
  --cyan: #5ee7ff;
  --gold: #d4a84b;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(ellipse 90% 50% at 50% -8%, #1a2830 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  padding-bottom: calc(1rem + var(--safe-b));
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.bar {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: calc(.45rem + var(--safe-t)) 1rem .5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 14, 20, 0.94);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 1.75rem;
}
.bar-top strong {
  color: var(--gold);
  font-weight: 700;
  font-size: clamp(.95rem, 3.5vw, 1.05rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar a.home-link {
  font-weight: 600;
  font-size: .9rem;
  color: var(--cyan);
  flex-shrink: 0;
}
nav.topnav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .15rem;
  width: 100%;
  padding-top: .35rem;
  border-top: 1px solid rgba(36, 48, 64, 0.65);
}
nav.topnav a {
  font-weight: 600;
  font-size: clamp(.78rem, 2.8vw, .88rem);
  color: var(--muted);
  padding: .3rem .55rem;
  border-radius: 7px;
}
nav.topnav a:hover,
nav.topnav a.active {
  color: var(--cyan);
  background: var(--panel);
  text-decoration: none;
}

.wrap {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}
h1 {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  font-weight: 750;
  line-height: 1.2;
  margin: 0 0 .35rem;
}
.lead {
  color: var(--muted);
  font-size: clamp(.92rem, 3.4vw, 1.05rem);
  margin: 0 0 1rem;
  line-height: 1.45;
}
.meta {
  color: var(--dim);
  font-size: clamp(.85rem, 3vw, .95rem);
  margin: 0 0 .85rem;
}
.section-label {
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 1.25rem 0 .5rem;
}

.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.list a.entry {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .25rem .75rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  text-decoration: none;
  color: inherit;
}
.list a.entry:hover {
  border-color: rgba(94, 212, 232, 0.35);
  text-decoration: none;
}
.list .title {
  font-weight: 650;
  font-size: clamp(.95rem, 3.5vw, 1.05rem);
  color: var(--cyan);
  line-height: 1.25;
}
.list .meta-line {
  font-size: clamp(.8rem, 3vw, .9rem);
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.list .count {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
}

/* Album viewer */
.viewer { margin-top: .15rem; }
.filmstrip {
  display: flex;
  gap: .4rem;
  overflow-x: auto;
  padding: .35rem 0 .55rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.film-item {
  flex: 0 0 auto;
  width: clamp(4.25rem, 16vw, 5.5rem);
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #0a1018;
  cursor: pointer;
  overflow: hidden;
  scroll-snap-align: start;
}
.film-item.active { border-color: var(--cyan); }
.film-item img {
  display: block;
  width: 100%;
  height: clamp(3.4rem, 13vw, 4.4rem);
  object-fit: cover;
}
.stage {
  width: 100%;
  text-align: center;
  margin-top: .15rem;
}
.stage-caption {
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  font-weight: 600;
  color: #f0f4fa;
  margin: 0 0 .55rem;
  min-height: 1.3em;
  line-height: 1.35;
}

.stage img {
  max-width: 100%;
  height: auto;
  max-height: min(72vh, 820px);
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a1018;
}

.prose {
  font-size: clamp(.95rem, 3.5vw, 1.08rem);
  color: var(--text);
  line-height: 1.55;
  margin: 0 0 1rem;
}
.prose p { margin: 0 0 .75rem; }
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: .4rem 0;
}
.album-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  margin: 1.25rem 0 .5rem;
  font-size: clamp(.85rem, 3vw, .95rem);
  font-weight: 600;
}
.archive-link {
  display: inline-block;
  margin-top: .75rem;
  font-size: .85rem;
  color: var(--dim);
}

h1.album-head {
  font-size: clamp(1.15rem, 4.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 .85rem;
  color: var(--text);
}
nav.topnav a.nav-album {
  color: var(--gold);
  font-weight: 650;
}
.stage-caption {
  font-size: clamp(1.05rem, 4vw, 1.25rem) !important;
  font-weight: 600;
  color: #f0f4fa !important;
  margin: 0 0 .55rem !important;
  line-height: 1.35 !important;
}
.album-nav, .archive-link { display: none !important; }


/* Album nav: prev left · kids center · next right */
nav.topnav.topnav-album {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .2rem .35rem;
  width: 100%;
}
nav.topnav.topnav-album .nav-slot {
  display: flex;
  align-items: center;
  min-width: 0;
}
nav.topnav.topnav-album .nav-prev { justify-content: flex-start; }
nav.topnav.topnav-album .nav-kids {
  justify-content: center;
  gap: .15rem;
  flex-shrink: 0;
}
nav.topnav.topnav-album .nav-next { justify-content: flex-end; }
nav.topnav.topnav-album a.nav-album {
  color: var(--gold);
  font-weight: 650;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
nav.topnav.topnav-album .nav-ph {
  display: inline-block;
  min-width: 1px;
  min-height: 1em;
  visibility: hidden;
  pointer-events: none;
}
/* Caption line always same height (blank if no caption) */
.stage-caption {
  font-size: clamp(1.05rem, 4vw, 1.25rem) !important;
  font-weight: 600 !important;
  color: #f0f4fa !important;
  margin: 0 0 .55rem !important;
  min-height: 1.45em !important;
  line-height: 1.35 !important;
  display: block !important;
}
.stage-caption:empty {
  display: block !important;
  visibility: hidden;
  min-height: 1.45em !important;
}
