
/* nights at The Ship: the pub's own photos of karaoke, bands, open mic and the piano */
.nights { background: var(--navy); color: var(--on-dark); padding: 4rem var(--gutter) 4.5rem; }
.nights-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; padding-bottom: 1.1rem; border-bottom: 1px solid oklch(97% 0.01 250 / .22); }
.nights h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.nights-head a { font-weight: 600; text-underline-offset: .3em; }
.nights ul { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 1.5rem clamp(1rem, 2vw, 1.75rem); }
.nights .wide { grid-column: span 2; }
.nights .ph { display: block; overflow: hidden; border: 5px solid #fff; border-radius: 20px; background: #fff; box-shadow: var(--frame-shadow); aspect-ratio: 3 / 4; }
.nights .wide .ph { aspect-ratio: 3 / 2; }
.nights .ph img { display: block; width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--y, 0px)) scale(var(--zoom, 1)); }
.nights p { margin: .6rem 0 0; font-weight: 600; color: var(--on-dark-2); }
@media (max-width: 900px) { .nights ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nights .wide .ph { aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .nights ul { gap: 1.1rem .75rem; } .nights p { font-size: .95rem; } }

/* inner pages: a navy head under the same header, current page underlined */
.top nav a[aria-current] { text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 2px; }
.page-head { background: var(--navy); color: var(--on-dark); padding: clamp(6.5rem, 12vw, 9rem) var(--gutter) clamp(2.5rem, 5vw, 3.5rem); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -.02em; }
.page-head p { max-width: 38rem; margin: 1rem 0 0; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--on-dark-2); text-wrap: pretty; }
.tag { display: inline-block; margin-left: .45rem; padding: .05rem .45rem; background: var(--purple); color: var(--on-dark); font-size: .85rem; font-style: normal; font-weight: 600; vertical-align: .15em; }
@media (max-width: 760px) { .page-head { padding-top: 5.5rem; } }

/* C: tonight first, the room at full stretch and the next night set big over it */
.stage-head { position: relative; min-height: min(80svh, 46rem); display: flex; align-items: flex-end; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.stage-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(oklch(22% 0.07 255 / .55), oklch(22% 0.07 255 / .15) 35%, oklch(22% 0.07 255 / .55) 65%, oklch(22% 0.07 255 / .92)); }
.stage-text { position: relative; z-index: 1; text-shadow: var(--lift); }
.stage-head h1 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: 0; }
.stage-text .up-label { margin: 1.5rem 0 0; font-weight: 600; color: var(--lilac); }
.stage-text .up-title { margin: .2rem 0 0; font-family: var(--display); font-size: clamp(3rem, 8vw, 6.5rem); line-height: 1; letter-spacing: -.02em; color: var(--on-dark); }
.stage-text .up-meta { margin: .6rem 0 0; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--on-dark); }
.coming { padding: 3.5rem var(--gutter) 4.5rem; }
.coming-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--navy); }
.coming h2 { font-size: clamp(2rem, 3.4vw, 3rem); color: var(--navy); }
.coming-head p { margin: 0; max-width: 30rem; color: var(--ink-2); }
.coming ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); column-gap: clamp(1.5rem, 3vw, 3rem); }
.coming li { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.2rem 0; border-bottom: 1px solid oklch(25% 0.085 255 / .16); }
.coming time { display: grid; justify-items: center; font-family: var(--display); line-height: 1; color: var(--navy); }
.coming time small { font: 600 .78rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .25rem; }
.coming time big { font-size: 2.6rem; }
.coming h3 { font-size: 1.35rem; color: var(--navy); }
.coming .who { margin: .2rem 0 0; color: var(--ink-2); }
.coming .note { margin: .35rem 0 0; font-weight: 600; }
.coming .past { opacity: .45; }
@media (max-width: 760px) { .stage-head { min-height: 34rem; } }

/* the tonight hero, refined: no labels stacked over the title, one plain line under it, photo drifts a little */
.stage-head { position: relative; min-height: min(82svh, 48rem); display: flex; align-items: flex-end; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; }
.stage-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--drift, 0px)) scale(1.12); }
.stage-head::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(oklch(22% 0.07 255 / .6), oklch(22% 0.07 255 / 0) 22%),
  linear-gradient(90deg, oklch(22% 0.07 255 / .82), oklch(22% 0.07 255 / .45) 42%, oklch(22% 0.07 255 / .05) 78%),
  linear-gradient(oklch(22% 0.07 255 / 0) 60%, oklch(22% 0.07 255 / .55)); }
.stage-text { position: relative; z-index: 1; width: 100%; max-width: 60rem; text-shadow: var(--lift); }
.stage-text .up-title { margin: 0; max-width: none; font-family: var(--display); font-size: clamp(3rem, 8vw, 6.75rem); line-height: .98; letter-spacing: -.02em; color: var(--on-dark); text-wrap: balance; }
.stage-text .up-meta { margin: .9rem 0 0; max-width: none; font-size: clamp(1.1rem, 1.7vw, 1.45rem); color: var(--on-dark); }
.stage-text .up-meta b { color: var(--lilac); font-weight: 600; }
.stage-head.tall { background: var(--navy-deep); }
.stage-head.tall .stage-pic { left: auto; width: min(50%, 44rem); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
@media (max-width: 760px) {
  .stage-head.tall .stage-pic { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .stage-head { min-height: 36rem; }
  .stage-head::after { background: linear-gradient(oklch(22% 0.07 255 / .6), oklch(22% 0.07 255 / .1) 25%, oklch(22% 0.07 255 / .25) 50%, oklch(22% 0.07 255 / .9)); }
}

/* hero polish: soft shadow under the title, a typeset line beneath, two clear actions, lighter shade, slow settle */
.stage-head { min-height: min(74svh, 44rem); }
.stage-pic { transform: translateY(var(--drift, 0px)) scale(1.06); animation: settle 2.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes settle { from { scale: 1.06; opacity: .6; } to { scale: 1; opacity: 1; } }
.stage-head::after { background:
  linear-gradient(oklch(22% 0.07 255 / .55), oklch(22% 0.07 255 / 0) 20%),
  linear-gradient(90deg, oklch(22% 0.07 255 / .78), oklch(22% 0.07 255 / .32) 46%, oklch(22% 0.07 255 / 0) 76%),
  linear-gradient(oklch(22% 0.07 255 / 0) 55%, oklch(22% 0.07 255 / .5)); }
.stage-text { text-shadow: none; }
.stage-text .up-title { font-size: clamp(3rem, 7.6vw, 6.5rem); letter-spacing: -.025em; line-height: .95;
  text-shadow: 0 1px 1px oklch(18% 0.06 255 / .35), 0 4px 14px oklch(18% 0.06 255 / .45), 0 16px 48px oklch(18% 0.06 255 / .5); }
.stage-text .up-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 0; margin-top: 1.1rem; font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 600; letter-spacing: .01em; color: var(--on-dark);
  text-shadow: 0 1px 2px oklch(18% 0.06 255 / .55), 0 2px 12px oklch(18% 0.06 255 / .45); }
.stage-text .up-meta span + span { margin-left: .9rem; padding-left: .9rem; border-left: 1px solid oklch(97% 0.01 250 / .45); }
.stage-text .up-meta .when { color: var(--lilac); }
.up-go { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.75rem; }
.up-go .btn { box-shadow: 0 10px 30px oklch(18% 0.06 255 / .35); }
.up-all { color: var(--on-dark); font-weight: 600; text-underline-offset: .3em; text-shadow: 0 1px 2px oklch(18% 0.06 255 / .6); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { .stage-pic { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 760px) {
  .stage-head { min-height: 38rem; }
  .stage-text .up-meta span + span { margin-left: .7rem; padding-left: .7rem; }
}

/* Coming up, A: the running order. One ruled row per night, a small photo of that kind of night on the right */
.run .coming-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--navy); }
.run .coming-head a { color: var(--navy); font-weight: 600; text-underline-offset: .3em; }
.run ol { display: block; }
.run li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) 11rem; align-items: center; gap: 1rem clamp(1rem, 2.5vw, 2.25rem); padding: 1rem 0; border-bottom: 1px solid oklch(25% 0.085 255 / .16); }
.run li.past { display: none; }
.run time big { font-size: 3rem; }
.run h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
.run .who { font-size: 1.05rem; }
.run .at { margin: 0; font-family: var(--display); font-size: 1.35rem; color: var(--navy); text-align: right; }
.run .thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; border: 3px solid #fff; border-radius: 14px; background: #fff; box-shadow: var(--frame-shadow); }
.run .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.run li:hover .thumb img { transform: scale(1.05); }
.run .tag { vertical-align: .2em; }
@media (max-width: 760px) {
  .run li { grid-template-columns: 3.6rem minmax(0, 1fr) 5.5rem; }
  .run time big { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) { .run .thumb img { transition: none; } }
.run .none-left { margin: 1.5rem 0 0; font-size: 1.15rem; color: var(--ink-2); }
.run .none-left a { color: var(--navy); font-weight: 600; text-underline-offset: .3em; }

/* the photo viewer */
.nights .shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.nights .shot:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.box { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: oklch(14% 0.04 255 / .985); color: var(--on-dark); }
.box::backdrop { background: transparent; }
.box figure { display: grid; place-items: center; height: 100%; margin: 0; padding: 4rem clamp(1rem, 6vw, 6rem) 3.5rem; }
.box img { max-width: 100%; max-height: calc(100dvh - 9rem); object-fit: contain; border: 5px solid #fff; border-radius: 22px; }
.box figcaption { margin-top: 1rem; font-weight: 600; text-align: center; color: var(--on-dark-2); }
.box button { position: absolute; border: 0; background: none; color: var(--on-dark); font: 600 1rem var(--body); cursor: pointer; }
.box .box-x { top: 1rem; right: clamp(1rem, 3vw, 2rem); padding: .6rem .9rem; text-decoration: underline; text-underline-offset: .3em; }
.box .box-prev, .box .box-next { top: 50%; translate: 0 -50%; width: 3rem; height: 4rem; font-size: 2.6rem; line-height: 1; }
.box .box-prev { left: clamp(.25rem, 2vw, 1.5rem); } .box .box-next { right: clamp(.25rem, 2vw, 1.5rem); }
.box button:focus-visible { outline: 3px solid var(--lilac); outline-offset: 2px; }

/* Nights, A: the contact sheet. An even grid, every frame the same shape, so it reads tidy at any width */
.sheet ul { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; gap: 1.75rem clamp(1rem, 2vw, 1.75rem); }
.sheet .ph { aspect-ratio: 4 / 5; }
.sheet p { margin-top: .55rem; }
.sheet .shot img { transition: transform .5s ease; }
.sheet .shot:hover img { transform: translateY(var(--y, 0px)) scale(calc(var(--zoom, 1) * 1.04)); }
@media (max-width: 900px) { .sheet ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .sheet .shot img { transition: none; } }
/* no captions on the photos; soft rounded corners on the frames and in the viewer */
.nights .shot { border-radius: 20px; }
.nights .shot:focus-visible { outline-offset: 4px; }
.nights ul { row-gap: clamp(1rem, 2vw, 1.75rem); }
.box img { max-height: calc(100dvh - 7rem); }

/* Gallery C, the photo-booth: the night's photos printed in strips of three, laid down slightly askew */
.strips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem); align-items: start; margin-top: 2.5rem; }
.booth .strip { display: grid; grid-template-columns: 1fr; gap: .6rem; margin: 0; padding: .7rem .7rem 2.6rem; background: #fbfaf6; border-radius: 6px; transform: rotate(var(--tilt)); box-shadow: 0 2px 4px oklch(14% 0.04 255 / .35), 0 18px 40px oklch(14% 0.04 255 / .45); transition: transform .5s ease; }
.booth .strip:nth-child(even) { margin-top: 2.5rem; }
.booth .strip:hover { transform: rotate(0deg) translateY(-4px); }
.booth .ph { aspect-ratio: 1 / 1; border: 0; border-radius: 3px; box-shadow: none; background: #222; }
.booth .shot { border-radius: 3px; }
@media (max-width: 600px) { .strips { grid-template-columns: repeat(2, minmax(0, 1fr)); } .booth .strip:nth-child(even) { margin-top: 2rem; } }
@media (min-width: 601px) and (max-width: 900px) { .booth .strip { padding: .5rem .5rem 1.8rem; gap: .45rem; } }
@media (max-width: 560px) { .strips { gap: 1.1rem; } .booth .strip { padding: .45rem .45rem 1.6rem; gap: .4rem; } }
@media (prefers-reduced-motion: reduce) { .booth .strip { transition: none; } }
