/* Archive edition pages — aligned with festival redesign family. */

.back-link {
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.04em;
}

/* —— Edition header —— */
.edition-header {
  color: #fff;
}

.edition-header.is-scrolled {
  color: var(--ink);
}

.edition-header .brand-mark {
  background: var(--coral);
  color: #fff;
}

.edition-header.is-scrolled .brand-mark {
  background: var(--acid);
  color: var(--ink);
}

.edition-header .dark-cta {
  border-color: currentColor;
}

/* —— Hero —— */
.edition-hero {
  background: var(--ink);
  color: #fff;
  isolation: isolate;
  min-height: min(100svh, 860px);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.edition-hero__image {
  background-position: center 30%;
  background-size: cover;
  inset: 0;
  opacity: 0.55;
  position: absolute;
  z-index: -3;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.edition-hero__overlay {
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.22) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 42%);
  inset: 0;
  position: absolute;
  z-index: -2;
}

.edition-hero__glow {
  position: absolute;
  width: 55vw;
  height: 55vw;
  right: -12vw;
  bottom: -18vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 255, 72, 0.22), transparent 68%);
  z-index: -1;
  pointer-events: none;
}

.edition-hero__copy {
  max-width: 820px;
  padding: calc(var(--header-h) + 72px) 9vw 96px;
  position: relative;
  z-index: 1;
}

.edition-hero .eyebrow {
  color: var(--acid);
  margin: 0 0 22px;
}

.edition-hero h1 {
  font: 700 clamp(2.8rem, 8vw, 5.5rem) / 0.9 var(--space);
  letter-spacing: -0.07em;
  margin: 0;
  max-width: 14ch;
  text-transform: uppercase;
  text-wrap: balance;
}

.edition-date {
  color: var(--acid);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.08em;
  margin: 28px 0 16px;
  text-transform: uppercase;
}

.edition-intro {
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.45;
  margin: 0 0 32px;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}


.hero-year {
  bottom: -0.12em;
  color: rgba(255, 255, 255, 0.08);
  font: 700 clamp(9rem, 26vw, 24rem) / 0.78 var(--space);
  letter-spacing: -0.12em;
  margin: 0;
  position: absolute;
  right: 2vw;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

@keyframes hero-drift {
  to {
    transform: scale(1.1) translate(-1.5%, 1%);
  }
}


/* —— Sticky day mini-nav —— */
.program-day-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 0 28px;
  padding: 10px 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.program-day-nav::-webkit-scrollbar {
  display: none;
}

.program-day-nav a {
  flex: 0 0 auto;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  font: 700 12px/1 var(--mono);
  letter-spacing: 0.04em;
  padding: 10px 14px;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--paper);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.program-day-nav a:hover,
.program-day-nav a.is-active {
  background: var(--ink);
  color: var(--acid);
}

.program-day-nav a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

.program-day[id] {
  scroll-margin-top: calc(var(--header-h) + 56px);
}

/* —— Program —— */
.program {
  padding-bottom: 120px;
  padding-top: 120px;
}

.program-head {
  align-items: end;
  display: grid;
  gap: 3%;
  grid-template-columns: 12% minmax(0, 1fr) minmax(180px, 28%);
  margin-bottom: 64px;
}

.program-head h2 {
  font: 700 clamp(2.8rem, 5.6vw, 5.6rem) / 0.88 var(--space);
  letter-spacing: -0.06em;
  margin: 0;
  text-transform: uppercase;
}

.program-head h2 em {
  color: var(--coral);
  font-style: normal;
}

.program-head > p:last-child {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 6px;
  max-width: 280px;
}

.program-list {
  border-top: 1px solid var(--line);
}

.program-day {
  background: var(--ink);
  color: var(--acid);
  display: inline-flex;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
  margin: 36px 0 0;
  padding: 10px 14px;
  text-transform: uppercase;
  border-radius: 4px 4px 0 0;
}

.program-day + .program-item {
  border-top: 3px solid var(--ink);
}

.program-item {
  border-bottom: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  gap: 4% 10px;
  grid-template-columns: minmax(110px, 15%) minmax(0, 1fr);
  padding: 28px 8px;
  margin: 0 -8px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.program-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--ink);
  background: rgba(246, 242, 236, 0.85);
}

.program-item:focus-within {
  outline: 2px solid var(--acid);
  outline-offset: 2px;
}

.program-item--full {
  align-items: start;
}

.program-time {
  color: var(--coral);
  font: 700 16px/1.4 var(--mono);
  letter-spacing: 0.02em;
  padding-top: 6px;
  min-width: 0;
}

.program-index {
  color: #87817b;
  font: 400 10px var(--mono);
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.program-label {
  display: inline-block;
  background: var(--pink);
  color: var(--ink);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.06em;
  margin: 0 0 12px;
  padding: 6px 10px;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}

.program-title-row {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 18px;
}

.program-item h3 {
  font: 600 clamp(1.75rem, 3.1vw, 3.25rem) / 1.05 var(--space);
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
  flex: 1;
  min-width: 0;
}

.program-full-content {
  min-width: 0;
}

.program-full-body {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(96px, 140px) minmax(0, 1fr);
  align-items: start;
}

.program-full-body.no-portrait {
  grid-template-columns: 1fr;
}

/* Desktop: even sessions — portrait on the right */
@media (min-width: 761px) {
  .program-item--flip .program-full-body:not(.no-portrait) {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 140px);
  }

  .program-item--flip .program-full-body:not(.no-portrait) > .speaker-portraits {
    order: 2;
  }

  .program-item--flip .program-full-body:not(.no-portrait) > :last-child {
    order: 1;
  }
}

.speaker-portraits {
  display: grid;
  gap: 8px;
}

.speaker-portraits img {
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
  width: 100%;
  background: #ddd6cc;
  box-shadow: 6px 6px 0 rgba(13, 13, 13, 0.12);
}

.speaker-portraits--group {
  grid-template-columns: 1fr 1fr;
}

.speaker-portraits--group img {
  border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(13, 13, 13, 0.12);
}

.speaker-portraits--3 {
  grid-template-columns: 1fr 1fr;
}

.speaker-portraits--3 img:first-child {
  grid-column: 1 / -1;
}

.speaker-list {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.speaker h4 {
  font: 700 15px/1.25 var(--space);
  letter-spacing: -0.03em;
  margin: 0 0 2px;
}

.speaker p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  max-width: 52ch;
}

.program-description {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 52ch;
}

.program-description p {
  margin: 0 0 0.7em;
}

.program-description p:last-child {
  margin-bottom: 0;
}

.program-guest {
  font: 500 12px var(--mono);
  letter-spacing: 0.02em;
  margin: 12px 0;
}

.program-symbol {
  color: var(--lilac);
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.3s var(--ease), color 0.3s ease;
}

.program-item:hover .program-symbol {
  color: var(--coral);
  transform: rotate(12deg);
}

/* Event galleries inside program */
.event-gallery {
  margin-top: 22px;
}

.gallery-label {
  font: 500 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lilac);
  margin: 0 0 10px;
}

.gallery-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  max-width: 420px;
}

.gallery-image {
  appearance: none;
  background: #ddd6cc;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  aspect-ratio: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(13, 13, 13, 0.16);
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.image-lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 960px);
}

.image-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.image-lightbox img {
  border-radius: 12px;
  max-height: 85vh;
  width: auto;
  margin: auto;
}

.lightbox-close {
  appearance: none;
  background: var(--acid);
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  height: 44px;
  line-height: 1;
  position: absolute;
  right: -8px;
  top: -8px;
  width: 44px;
  z-index: 2;
}

/* —— Gallery strip —— */
.gallery-strip {
  background: var(--pink);
  display: grid;
  grid-template-columns: 1fr 1fr minmax(240px, 0.9fr);
  min-height: 380px;
  position: relative;
}

.gallery-strip::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, var(--coral), var(--acid), var(--lilac));
}

.gallery-strip figure {
  background-position: center;
  background-size: cover;
  margin: 0;
  min-height: 380px;
  position: relative;
}

.gallery-strip figure::after {
  content: "";
  inset: 0;
  position: absolute;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18));
}

.gallery-strip > div {
  align-self: center;
  padding: clamp(32px, 6vw, 72px);
}

.gallery-strip .eyebrow {
  margin: 0 0 14px;
  color: var(--ink);
}

.gallery-heading {
  font: 700 clamp(1.8rem, 3vw, 2.8rem) / 1.05 var(--space);
  letter-spacing: -0.05em;
  margin: 0 0 14px;
}

.gallery-strip > div > p:last-child {
  font: 500 clamp(1rem, 1.4vw, 1.2rem) / 1.35 var(--sans);
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 28ch;
  color: rgba(13, 13, 13, 0.78);
}

/* —— Next / archive CTA —— */
.next-edition {
  background: var(--ink);
  color: #fff;
  padding: 110px 8vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.next-edition::before {
  content: "";
  position: absolute;
  width: 42vw;
  height: 42vw;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  left: -14vw;
  top: -18vw;
  opacity: 0.55;
  pointer-events: none;
}

.next-edition::after {
  content: "";
  position: absolute;
  width: 28vw;
  height: 28vw;
  border: 1px solid rgba(230, 255, 72, 0.12);
  border-radius: 50%;
  right: -8vw;
  bottom: -12vw;
  opacity: 0.5;
  pointer-events: none;
}

.next-edition .eyebrow {
  color: var(--acid);
  margin: 0 0 22px;
  position: relative;
}

.next-edition h2 {
  font: 700 clamp(3.4rem, 8vw, 7.2rem) / 0.88 var(--space);
  letter-spacing: -0.08em;
  margin: 0 0 22px;
  position: relative;
  text-transform: uppercase;
}

.next-edition h2 span {
  color: var(--coral);
}

.next-edition__copy {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin: 0 auto 32px;
  max-width: 36ch;
  position: relative;
}

.next-edition .button {
  position: relative;
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .program-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .program-head .section-number {
    margin-bottom: 4px;
  }

  .program-head > p:last-child {
    max-width: 42ch;
  }

  .program-item {
    grid-template-columns: minmax(90px, 18%) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .edition-hero {
    min-height: 680px;
    align-items: stretch;
  }

  .edition-hero__overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.28) 100%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.35) 100%);
  }

  .edition-hero__copy {
    padding: calc(var(--header-h) + 48px) 16px 64px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .edition-hero h1 {
    font-size: clamp(2.8rem, 11vw, 4.2rem);
    max-width: none;
  }

  .edition-intro {
    font-size: 15px;
    max-width: 38ch;
    line-height: 1.45;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
  }

  .hero-actions .button--light {
    width: 100%;
    justify-content: center;
  }

  .hero-actions .text-link {
    align-self: flex-start;
  }

  .hero-year {
    font-size: 9.5rem;
    right: -12px;
    bottom: -0.18em;
  }

  .program {
    padding-bottom: 72px;
    padding-top: 72px;
  }

  .program-head {
    margin-bottom: 36px;
  }

  .program-head h2 {
    font-size: clamp(2.6rem, 12vw, 3.6rem);
  }

  .program-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 4px;
    margin: 0 -4px;
  }

  .program-time {
    padding: 0;
    margin-bottom: 2px; /* +8–12px total with gap to title block */
  }

  .program-full-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .program-full-body .speaker-portraits {
    max-width: 160px;
  }

  .program-symbol {
    display: none;
  }

  .speaker-portraits--group {
    grid-template-columns: 1fr;
  }

  .speaker-portraits--3 img:first-child {
    grid-column: auto;
  }

  .program-item h3 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
    max-width: none;
  }

  .program-title-row {
    margin-bottom: 16px;
  }

  .gallery-strip {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-strip figure {
    min-height: 200px;
  }

  .gallery-strip > div {
    grid-column: 1 / -1;
    padding: 40px 16px 48px;
  }

  .next-edition {
    padding: 72px 16px;
  }

  .next-edition .button--acid {
    min-height: 48px;
  }

  .next-edition h2 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }
}

@media (min-width: 761px) {
  .edition-header {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  }

  .edition-header .brand {
    justify-self: start;
  }

  .edition-header .desktop-nav {
    justify-self: center;
  }

  .edition-header .nav-cta {
    justify-self: end;
  }
}


/* Fallback gallery photos when JS does not override (legacy paths via deployment.css). */
.gallery-one {
  background-image: url("Foto%20NOTABOO/Ridimensionate/notaboo%20057.JPG");
}

.gallery-two {
  background-image: url("Foto%20NOTABOO/Ridimensionate/notaboo%20069.JPG");
}

/* Archive CTA copy under next-edition heading */
.next-edition__copy {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  margin: 0 auto 32px;
  max-width: 36ch;
  position: relative;
}

/* Year-to-year archive links in next-edition */
.next-edition__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  position: relative;
}

.next-edition .text-link {
  color: #fff;
  align-self: center;
}

.next-edition .text-link:hover {
  color: var(--acid);
}
