/* ==========================================================================
   Re'Mind — Amsterdam
   The flyer is the layout system: corner tags, giant dates, stage-split
   lineups, sticker blobs. English throughout.
   ========================================================================== */

:root {
  --ink: #0e0e0e;
  --ink-2: #161616;
  --ink-3: #1f1f1f;
  --paper: #ffffff;
  --smoke: rgba(255, 255, 255, 0.62);
  --hush: rgba(255, 255, 255, 0.38);
  --line: rgba(255, 255, 255, 0.14);

  /* The wordmark's own colours, sampled from assets/logo-colour.png rather than
     eyeballed. Percentages are how much of the mark each one paints. */
  --yellow: #ffe92c;   /* the R      27% */
  --red: #dc3023;      /* the M      27% */
  --maroon: #9d2933;   /* the d      16% */
  --purple: #3b2e7e;   /* the n      15% */
  --green: #057748;    /* the e       7% */
  --cyan: #44cef6;     /* the i       3% */

  /* One accent, and it is the R. The wordmark's yellow lands within a hair of
     ADE's own #fef200, so the festival mark sits in the palette rather than on
     top of it — black, white and yellow, the whole way down. */
  --accent: var(--yellow);

  --display: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --jp: "Noto Sans JP", var(--body);

  --gut: clamp(1.25rem, 4vw, 4rem);
  --rule: 2px solid var(--paper);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* Film grain over the whole page — keeps the flat blacks from looking digital. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------- primitives */

.wrap {
  width: min(100% - (var(--gut) * 2), 1320px);
  margin-inline: auto;
}

.tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hush);
}

.jp {
  font-family: var(--jp);
  font-weight: 400;
  line-height: 1.85;
  color: var(--smoke);
  font-size: 0.94em;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gut);
  top: 0.75rem;
  z-index: 300;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Buttons carry the flyer's sticker logic: hard edge, hard shadow, no gradient. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--display);
  font-size: clamp(0.85rem, 0.8rem + 0.2vw, 1rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--paper);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.btn:hover,
.btn:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--paper);
}
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
  box-shadow: 5px 5px 0 var(--accent);
}
.btn--quiet {
  background: transparent;
  color: var(--paper);
  border-color: var(--line);
  box-shadow: none;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}
.btn--quiet:hover {
  border-color: var(--paper);
  transform: none;
  box-shadow: none;
}
.btn[aria-disabled="true"] {
  background: var(--ink-3);
  color: var(--hush);
  border-color: var(--line);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

/* Section scaffolding ------------------------------------------------------ */

.section {
  padding-block: clamp(4.5rem, 9vw, 9rem);
  position: relative;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: 1.1rem;
  border-bottom: var(--rule);
}

.section__title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.1rem + 3.6vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
}

.section__note {
  margin: 0;
  max-width: 34ch;
  color: var(--smoke);
  font-size: 0.95rem;
  margin-left: auto;
}

/* ------------------------------------------------------------------ topbar */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--gut);
  background: rgba(14, 14, 14, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform 0.3s ease;
}
.topbar.is-visible {
  transform: none;
}
.topbar__mark img {
  height: 24px;
  width: auto;
}
.topbar__meta {
  display: none;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hush);
}
@media (min-width: 720px) {
  .topbar__meta { display: block; }
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.1rem, 3vw, 2.25rem) var(--gut) clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.08) brightness(1.18);
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 85% at 50% 24%, rgba(14, 14, 14, 0.18), rgba(14, 14, 14, 0.86) 74%),
    linear-gradient(180deg, rgba(14, 14, 14, 0.72), rgba(14, 14, 14, 0.26) 44%, var(--ink));
}

.hero__corners {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.hero__corners .tag {
  color: var(--paper);
}

.hero__core {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.hero__h1 {
  margin: 0;
  width: min(100%, 780px);
  line-height: 0;
}

.hero__mark {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.65));
}

/* The concept line. It was set in wide-tracked mono, which reads as a caption
   or a system label — quieter than the countdown, on a page where it is meant
   to say what the party is. Body face, sentence case, room to breathe. */
.hero__kicker {
  /* Italic is the only voice on the hero that isn't Archivo Black — the date,
     the venue row and the buttons are all display face. Set in that too, the
     motto read as another label; italic makes it sound like someone saying it.
     It also echoes the stage labels in the archive, so it belongs to the system. */
  font-family: var(--body);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.05rem, 0.85rem + 0.9vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  max-width: 34ch;
  margin: 0 auto;
  color: var(--paper);
  text-wrap: balance;
}
/* The two words that carry the idea. Marked with *stars* in data/site.json. */
.hero__kicker em {
  font-style: italic;
  color: var(--accent);
}

.hero__date {
  font-family: var(--display);
  font-size: clamp(4rem, 2rem + 14vw, 12rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  margin: 0;
  /* The date is the loudest thing on the page, so it is where the wordmark's
     own red-to-yellow run belongs. Paper stays as the fallback for engines
     that won't clip a background to text. */
  color: var(--paper);
  color: var(--accent);
  padding-inline: 0.06em;
}

.hero__where {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(0.95rem, 0.85rem + 0.7vw, 1.55rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.hero__where span:not(:last-child)::after {
  content: "*";
  margin-left: 1rem;
  color: var(--accent);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

/* Countdown ---------------------------------------------------------------- */

.count {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.75rem);
  margin: 0;
}
.count div {
  text-align: left;
}
.count dt {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hush);
}
.count dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hush);
}

/* The eye from the wordmark, blinking. Brand mark, not decoration. */
.eye {
  width: 30px;
  height: 20px;
  flex: none;
}
.eye__lid {
  transform-origin: center;
  animation: blink 6.4s infinite;
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(0); }
  94%, 97% { transform: scaleY(1); }
}

/* ----------------------------------------------------------------- ticker */

.ticker {
  border-block: var(--rule);
  background: var(--accent);
  color: var(--ink);
  overflow: hidden;
  padding-block: 0.55rem;
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: slide 38s linear infinite;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
.ticker span {
  font-family: var(--display);
  font-size: clamp(0.85rem, 0.8rem + 0.4vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@keyframes slide {
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------- next edition */

.next {
  background: var(--ink);
}

.next__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 900px) {
  .next__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

.next__lede {
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.75rem);
  line-height: 1.35;
  margin: 0 0 1.5rem;
  max-width: 32ch;
  font-weight: 600;
}

/* The detail slab reads like the bottom third of a flyer. */
.slab {
  border: var(--rule);
  background: var(--ink-2);
}
.slab dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(7rem, auto) 1fr;
}
.slab dt,
.slab dd {
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.slab dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hush);
  border-right: 1px solid var(--line);
}
.slab dd {
  font-family: var(--display);
  font-size: clamp(0.9rem, 0.85rem + 0.3vw, 1.1rem);
  text-transform: uppercase;
}
.slab dd small {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--smoke);
  margin-top: 0.2rem;
}
.slab dd a {
  color: var(--accent);
  text-underline-offset: 3px;
}
.slab > :last-child dt,
.slab dl > :nth-last-child(-n + 2) {
  border-bottom: 0;
}

/* Calendar handoff. Two links that share the row, so the wider label doesn't
   leave a ragged stack once the slab narrows on a phone. */
.slab__save {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.slab__save .btn {
  flex: 1 1 8rem;
  justify-content: center;
  padding: 0.6rem 0.7rem;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

/* Sticker: the purple starburst / yellow blob logic from the flyers. */
.sticker {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  transform: rotate(-2.5deg);
  border-radius: 42% 58% 46% 54% / 55% 44% 56% 45%;
}
.sticker--purple { background: var(--purple); color: var(--paper); }
.sticker--green { background: var(--green); color: var(--paper); }
.sticker--cyan { background: var(--cyan); }

/* The hero corner stacks the edition and the curator credit; the ADE mark holds
   the opposite side. */
.hero__corner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-start;
}
.hero__curator a {
  color: var(--accent);
  text-decoration: none;
}
.hero__curator a:hover,
.hero__curator a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Where it started. Legible in the source and to a screen reader, and it opens
   up on hover or keyboard focus for anyone who goes looking. */
.origin {
  margin: 0.9rem 0 0;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hush);
  cursor: default;
}
.origin__val {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.5s ease, opacity 0.4s ease;
}
.origin:hover .origin__val,
.origin:focus .origin__val,
.origin:focus-visible .origin__val {
  max-width: 22rem;
  opacity: 1;
  color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .origin__val { transition: none; }
}

/* A card whose write-up hasn't been written yet. Visibly provisional rather
   than quietly blank, so it doesn't read as finished. */
.card__bio--empty {
  color: var(--hush);
  font-style: italic;
}

/* ------------------------------------------------------------------- 404 */

.notfound__wrap {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: var(--gut);
  text-align: center;
}
.notfound__mark {
  width: min(340px, 62vw);
  height: auto;
}
.notfound__code {
  font-family: var(--display);
  font-size: clamp(3.5rem, 2rem + 9vw, 7rem);
  line-height: 0.9;
  margin: 0;
  color: var(--accent);
}
.notfound__copy {
  font-family: var(--body);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  margin: 0;
  color: var(--smoke);
}

/* --------------------------------------------------------------------- ADE */

/* Typographic stand-in until assets/ade-logo.svg exists — see adeMark() in
   scripts/build-site.mjs. Sized so the official mark can drop straight in. */
.ade {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  text-decoration: none;
  line-height: 1;
}
.ade__word {
  font-family: var(--display);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.ade__sub {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hush);
}
.ade--asset img {
  display: block;
  height: clamp(26px, 2.6vw, 38px);
  width: auto;
}
/* The band can carry it larger — that is the moment the page states the tie. */
.ade-band__mark.ade--asset img {
  height: clamp(38px, 4vw, 60px);
}
/* The mark is a solid yellow field. If the supplied file has its own dark
   background baked in it will still sit flush against the page, but a
   transparent PNG or SVG is what actually looks right. */
.ade--asset {
  line-height: 0;
}
.ade:hover .ade__sub,
.ade:focus-visible .ade__sub {
  color: var(--paper);
}

/* The festival tie stated once, loudly, so the page reads as an ADE night
   rather than a Re'Mind night that happens to fall in October. */
.ade-band {
  border-block: var(--rule);
  background: var(--ink-2);
  padding: clamp(1.1rem, 2.4vw, 1.7rem) var(--gut);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem clamp(0.9rem, 2vw, 2rem);
  text-align: center;
}
.ade-band__lockup {
  font-family: var(--display);
  font-size: clamp(1.1rem, 0.7rem + 1.9vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--accent);
}
.ade-band__meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smoke);
  margin: 0;
}

/* Save the date. It used to be the last row of the details table, which is a
   quiet place for what is currently the only thing a visitor can actually do —
   tickets are not on sale yet. Sitting under the copy it also gives the short
   column something to end on. */
.save {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--line);
}
.save__label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hush);
  margin: 0 0 0.9rem;
}
.save__actions {
  display: flex;
  flex-wrap: wrap;
  /* Wide enough that the buttons' 5px offset shadows don't collide. */
  gap: 1rem 1.1rem;
}
.save__actions .btn {
  flex: 0 1 auto;
}

/* ------------------------------------------------------------------ lineup */

.lineup {
  border: var(--rule);
  padding: clamp(1.15rem, 2.6vw, 1.9rem) clamp(1.5rem, 4vw, 2.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 22px,
      rgba(255, 255, 255, 0.03) 22px 24px
    );
  text-align: center;
}
.lineup__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hush);
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
}

/* The flyers set the main room larger than the floors below it. */
.lineup__stage:first-of-type .lineup__names {
  font-size: clamp(1.25rem, 0.85rem + 2.2vw, 2.6rem);
}

.lineup > :last-child {
  margin-bottom: 0;
}
.lineup__pending {
  margin-bottom: 0.55rem;
  font-family: var(--display);
  /* Archivo Black ships one weight; as an <h3> it would inherit UA bold and
     invite a synthesised faux-bold in engines that do that. */
  font-weight: 400;
  font-size: clamp(1.6rem, 1rem + 3.6vw, 3.75rem);
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.lineup__pending em {
  font-style: normal;
  color: var(--accent);
}
.lineup__stage {
  margin-bottom: 1.75rem;
}
.lineup__stage h4 {
  font-family: var(--body);
  font-style: italic;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.lineup__names {
  font-family: var(--display);
  font-size: clamp(1.1rem, 0.8rem + 1.7vw, 2.1rem);
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0;
}
.lineup__names i {
  font-style: normal;
  color: var(--accent);
}

/* Full-bleed photo band. Fixed aspect so it reserves its own box and the
   signup below it never jumps as the image arrives. */
.band {
  position: relative;
  margin: 0;
  border-block: var(--rule);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: var(--ink-2);
}
@media (max-width: 720px) {
  .band { aspect-ratio: 4 / 3; }
}
.band img,
.band picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.6rem clamp(1rem, 3vw, 2rem);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(transparent, rgba(14, 14, 14, 0.82));
  width: 100%;
}

/* ------------------------------------------------------------------ signup */

/* Honeypot. Off-screen rather than display:none — a few bots skip anything
   that is outright hidden, and this still never reaches keyboard or reader.
   Scoped to beat `.signup__form input`, which would otherwise stretch it to
   the full width of the viewport it is absolutely positioned against. */
.signup__form input.signup__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.signup {
  background: var(--accent);
  color: var(--ink);
  border-block: var(--rule);
}
.signup .section__head {
  /* White rule would disappear into the yellow block. */
  border-bottom-color: var(--ink);
}
.signup .section__note {
  color: rgba(14, 14, 14, 0.78);
}
.signup__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 860px) {
  .signup__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }
}
.signup__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.signup__form label {
  flex: 1 1 16rem;
}
.signup__form span {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.signup__form input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
}
.signup__form input::placeholder {
  color: rgba(14, 14, 14, 0.4);
}
.signup__form .btn {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 5px 5px 0 var(--paper);
}
.signup__status {
  flex: 1 0 100%;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  min-height: 1.4em;
}
.signup__jp {
  color: rgba(14, 14, 14, 0.72);
}

/* -------------------------------------------------------------- introduces */

.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  background: var(--ink);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s ease;
}
.card:hover {
  background: var(--ink-2);
}
.card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.card__name {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  margin: 0;
}
.card__name a {
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 3px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.24s ease;
}
.card__name a:hover,
.card__name a:focus-visible {
  background-size: 100% 3px;
}
.card__origin {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
}
.card__bio {
  margin: 0;
  font-size: 0.94rem;
  color: var(--smoke);
  line-height: 1.65;
}
.card__ep {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ----------------------------------------------------------------- archive */

.editions {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.edition {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  background: var(--ink-2);
  position: relative;
}
@media (min-width: 820px) {
  .edition {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    align-items: start;
  }
}
@media (max-width: 819px) {
  /* Stacked, the flyer would otherwise eat a whole screen before the lineup. */
  .edition__flyer {
    max-width: 380px;
  }
}
.edition::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent, var(--accent));
}
.edition__flyer {
  border: 2px solid var(--paper);
  width: 100%;
  height: auto;
  background: var(--ink-3);
}
.edition__flyer--none {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hush);
  border: 2px dashed var(--line);
}
.edition__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent, var(--accent));
}
.edition__title {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1rem + 1.8vw, 2.5rem);
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0.35rem 0 0.35rem;
}
.edition__sub {
  margin: 0 0 1rem;
  color: var(--smoke);
  font-size: 0.95rem;
}
.edition__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0 0 1.4rem;
  padding: 0.7rem 0;
  border-block: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smoke);
}
.edition__stage {
  margin-bottom: 0.9rem;
}
.edition__stage h4 {
  font-family: var(--body);
  font-style: italic;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hush);
  margin: 0 0 0.25rem;
}
.edition__artists {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(0.92rem, 0.85rem + 0.4vw, 1.2rem);
  line-height: 1.3;
  text-transform: uppercase;
}
.edition__artists i {
  font-style: normal;
  color: var(--accent, var(--accent));
}
.edition__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

/* ----------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery > :first-child { grid-column: span 2; grid-row: span 2; }
}
.gallery figure {
  margin: 0;
  position: relative;
  background: var(--ink);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.gallery img,
.gallery video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.4s ease;
  filter: saturate(0.9);
}
.gallery figure:hover img,
.gallery figure:hover video {
  transform: scale(1.04);
  filter: saturate(1.05);
}
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.5rem 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(14, 14, 14, 0.9));
  color: var(--smoke);
}

/* ----------------------------------------------------------------- contact */

.contact__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}
@media (min-width: 800px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.contact__mail {
  font-family: var(--display);
  font-size: clamp(1.1rem, 0.8rem + 1.8vw, 2.4rem);
  line-height: 1.1;
  text-decoration: none;
  word-break: break-word;
  display: inline-block;
  border-bottom: 3px solid var(--accent);
}
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-family: var(--display);
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.35rem);
  text-transform: uppercase;
  transition: color 0.18s ease, padding-left 0.18s ease;
}
.links a:hover,
.links a:focus-visible {
  color: var(--accent);
  padding-left: 0.5rem;
}
.links span {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--hush);
}

/* ------------------------------------------------------------------ footer */

.footer {
  padding: 2.5rem var(--gut) 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer img {
  height: 46px;
  width: auto;
  opacity: 0.85;
}

/* --------------------------------------------------- narrow-width hardening */
/* Grid and flex children default to min-content width, so a long unbreakable
   name (RE'MIND × WEGOING.SOUND) can blow the column past the viewport and
   clip the flyer beside it. Let them shrink, and let long names wrap. */

.edition > *,
.card,
.next__grid > *,
.signup__grid > *,
.contact__grid > * {
  min-width: 0;
}

.section__title,
.edition__title,
.card__name,
.lineup__pending {
  overflow-wrap: anywhere;
}

.edition__artists,
.lineup__names,
.card__bio,
.slab dd {
  overflow-wrap: break-word;
}

.contact__mail {
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .btn {
    padding: 0.75rem 1.1rem;
  }
  .slab dl {
    grid-template-columns: minmax(5.5rem, auto) 1fr;
  }
  .slab dt,
  .slab dd {
    padding: 0.7rem 0.8rem;
  }
}

/* ------------------------------------------------------------------ reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
