/* Queen City Nights — site styles
   Colours and type follow the brand guide. Lilac only, no accent colour. */

@font-face {
  font-family: "Anybody";
  src: url("/assets/fonts/anybody.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --night: #0C0A16;
  --dusk: #171329;
  --lilac: #CDBEFF;
  --violet: #8B6FE8;
  --deep-violet: #5A40B8;
  --ivory: #F4EFE6;
  --line: #2A2540;
  --muted: #B8B2CC;

  --display: "Anybody", "Arial Black", "Helvetica Neue", sans-serif;
  --spanish: "Instrument Serif", "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --wide: 1200px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  /* No grey flash on tap; buttons and links have their own pressed state. */
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

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

a { color: var(--lilac); text-underline-offset: 0.18em; }

:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wide) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--lilac);
  color: var(--night);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- Type ---------- */

.headline {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 120%;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.005em;
  margin: 0;
  font-size: clamp(2.1rem, 7.2vw, 5.5rem);
  text-wrap: balance;
}
.headline--page { font-size: clamp(2rem, 6vw, 4.25rem); }
.headline--section { font-size: clamp(1.5rem, 3.6vw, 2.5rem); }

.voz {
  font-family: var(--spanish);
  font-style: italic;
  font-weight: 400;
  color: var(--lilac);
  line-height: 1.05;
  margin: 0.18em 0 0;
  font-size: clamp(2.1rem, 6.4vw, 4.75rem);
}
.voz--page { font-size: clamp(1.9rem, 5vw, 3.5rem); }
.voz--section { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
.voz--inline { font-size: 1.3em; margin: 0; display: inline; line-height: 1; }

.label {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  /* The brand keeps violet for large text, so small labels use lilac. */
  color: var(--lilac);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 34em;
  margin: 1.4rem 0 0;
}

.muted { color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  background: var(--night);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 32px;
  padding-block: 18px;
}
.brand { display: inline-flex; flex: none; }
.brand img { height: 34px; width: auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0 -10px;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 8px 10px;
  color: var(--ivory);
  text-decoration: none;
  font-weight: 500;
  border-radius: 999px;
}
.nav a[aria-current="page"] { color: var(--lilac); font-weight: 700; }

/* ---------- Buttons and tags ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 2px solid var(--lilac);
  background: var(--lilac);
  color: var(--night);
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}
.btn--line { background: transparent; color: var(--lilac); }

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1.1em 0.42em;
  border-radius: 999px;
  background: var(--lilac);
  color: var(--night);
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 1;
  white-space: nowrap;
  border: 2px solid var(--lilac);
}
.tag--line { background: transparent; color: var(--lilac); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(56px, 11vw, 140px) clamp(72px, 13vw, 170px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .headline { max-width: 11em; }

.ripples {
  position: absolute;
  right: clamp(-340px, -22vw, -120px);
  bottom: clamp(-150px, -9vw, -60px);
  width: clamp(520px, 78vw, 1100px);
  aspect-ratio: 10 / 3;
  pointer-events: none;
}
.ripples ellipse {
  fill: none;
  transform-origin: 50% 50%;
  transform-box: fill-box;
}
@media (prefers-reduced-motion: no-preference) {
  .ripples ellipse { animation: ripple 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .ripples ellipse:nth-child(2) { animation-delay: 0.18s; }
  .ripples ellipse:nth-child(3) { animation-delay: 0.36s; }
  @keyframes ripple {
    from { transform: scale(0.35); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
}

.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(44px, 8vw, 96px) clamp(36px, 6vw, 72px);
}
.page-head .wrap { position: relative; z-index: 1; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(48px, 8vw, 104px); }
.section--line { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-head p { margin: 0; }

/* ---------- El Plan ---------- */

.plan { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.plan-day {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--lilac);
  margin: 2.4rem 0 0.8rem;
}
.plan-day:first-child { margin-top: 0; }
.plan li {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.plan .tag { justify-self: start; min-width: 8.6rem; }
.plan h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
}
.plan .where { color: var(--muted); margin: 4px 0 0; }
.plan .extra { color: var(--muted); margin: 4px 0 0; font-size: 0.95rem; }
.plan .go { justify-self: end; white-space: nowrap; font-weight: 700; }
.plan .is-sold-out h3 { color: var(--muted); }

@media (max-width: 640px) {
  .plan li { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 20px 0; }
  .plan .go { justify-self: start; }
}

.week {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 110%;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lilac);
  font-size: 0.95rem;
  margin: 1.6rem 0 0;
}
.week:empty { display: none; }

.plan-note { color: var(--muted); margin: 20px 0 0; max-width: 40em; }
.plan-note:empty { display: none; }

/* Shown until the data files are filled in, or if they fail to load. */
.empty {
  border: 1px solid var(--line);
  background: var(--dusk);
  border-radius: 10px;
  padding: clamp(24px, 4vw, 44px);
}
.empty h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  line-height: 1.2;
  margin: 0;
}
.empty p { color: var(--muted); margin: 0.9rem 0 0; max-width: 36em; }

/* ---------- Two sounds ---------- */

.sounds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 72px);
}
.sounds h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 120%;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.05;
  margin: 0;
}
.sounds p { color: var(--muted); margin: 0.9rem 0 0; max-width: 28em; }
@media (max-width: 640px) { .sounds { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Venues ---------- */

.hoods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}
.hoods:empty { display: none; }
.hoods a { text-decoration: none; }

.hood { padding-block: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.hood h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 120%;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  line-height: 1.05;
  margin: 0 0 clamp(18px, 3vw, 28px);
}
.venues {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.venues li {
  background: var(--dusk);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
}
.venues h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.3rem;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
}
.venues p { margin: 6px 0 0; color: var(--muted); }
.venues .music { color: var(--lilac); }
.venues .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-weight: 700; }

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.prose { max-width: 36em; }
.prose p { margin: 0 0 1.1em; color: var(--muted); }
.prose p strong { color: var(--ivory); font-weight: 700; }
.prose h2 { margin: 2.2rem 0 0.9rem; }
.prose .voz { margin: 1.6rem 0; }
.reel { margin: 0; }
.reel video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--dusk);
}
.reel figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 10px; }
@media (max-width: 760px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .reel { max-width: 320px; }
}

/* ---------- Contact ---------- */

.send { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 44em; }
.send li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 4px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.send strong { font-weight: 700; }
.send span { color: var(--muted); }
@media (max-width: 560px) { .send li { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Follow band and footer ---------- */

.follow { border-top: 1px solid var(--line); background: var(--dusk); }
.follow .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-block: clamp(40px, 6vw, 72px);
}
.follow .actions { margin-top: 0; }

.site-footer { border-top: 1px solid var(--line); padding-block: 40px 48px; color: var(--muted); font-size: 0.95rem; }
.soundbars { height: 44px; width: auto; margin-bottom: 28px; }
.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer p { margin: 0; }

/* ---------- Work with us ---------- */

.section--flush { padding-top: 0; }
.voz--spaced { margin-bottom: 1.6rem; }

.roles {
  list-style: none;
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.roles li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 8px clamp(24px, 5vw, 72px);
  align-items: start;
  padding: clamp(20px, 3vw, 30px) 0;
  border-bottom: 1px solid var(--line);
}
.roles h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 120%;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
.roles p { margin: 0; color: var(--muted); max-width: 34em; }
.roles .ask { margin-top: 8px; color: var(--lilac); }
.roles-note { margin: 1.6rem 0 0; }
.roles .role-go { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.role-go a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid var(--lilac);
  border-radius: 999px;
  color: var(--lilac);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 105%;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
  transition: background-color 0.15s, color 0.15s, transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}
.role-go a::after { content: "\2192"; margin-left: 8px; }
.role-go a:active { transform: scale(0.97); }
.role-go a.role-form { background: var(--lilac); color: var(--night); }
@media (hover: hover) and (pointer: fine) {
  .role-go a:hover { background: var(--lilac); color: var(--night); }
  .role-go a.role-form:hover { background: var(--ivory); border-color: var(--ivory); }
}

@media (max-width: 700px) {
  .roles li { grid-template-columns: minmax(0, 1fr); }
}

/* Keeps the four menu items on one row on small phones. */
@media (max-width: 420px) {
  .nav { gap: 4px; margin: 0 -7px; }
  .nav a { padding: 8px 7px; }
}

/* ---------- Touch and hover ---------- */

/* Taps register straight away (no double-tap zoom wait). */
a, button { touch-action: manipulation; }

/* Long-pressing a button doesn't select its label. */
.btn, .tag {
  -webkit-user-select: none;
  user-select: none;
}

/* Pressed state, so a tap shows on the finger, not after it lifts. */
.btn:active { transform: scale(0.97); }
.hoods a:active { background: var(--lilac); color: var(--night); }

/* Hover only on devices that really hover, so it doesn't stick after a tap. */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--ivory); }
  .nav a:hover { color: var(--lilac); }
  .btn:hover { background: var(--ivory); border-color: var(--ivory); color: var(--night); }
  .btn--line:hover { background: transparent; border-color: var(--ivory); color: var(--ivory); }
  .hoods a:hover { background: var(--lilac); color: var(--night); }
  .site-footer a:hover { color: var(--lilac); }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
}

/* =========================================================
   Redesign, October 2026: image-led, inspired by fabric London
   ========================================================= */

/* Menu in capitals, like a club's programme */
.nav a {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 105%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.more {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 105%;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
}

/* ---------- Home cover: headline beside the next big night ---------- */

.hero--cover { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 8vw, 112px); }
.cover {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.cover .headline { max-width: 9em; }
.cover-feature:empty { min-height: 200px; }
@media (max-width: 860px) {
  .cover { grid-template-columns: minmax(0, 1fr); }
}

.feature {
  background: var(--dusk);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(90, 64, 184, 0.55), 0 2px 0 rgba(205, 190, 255, 0.04) inset;
}
.feature-media { display: block; color: inherit; text-decoration: none; }
.feature-media .ev-media { aspect-ratio: 4 / 5; max-height: 560px; border-radius: 0; }
.feature-body { padding: clamp(20px, 3vw, 28px); }
.feature-body .label { margin-bottom: 0.6rem; }
.feature-title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 115%;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.02;
  margin: 0;
  overflow-wrap: anywhere;
}
.feature-when {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 90%;
  color: var(--lilac);
  margin: 0.7rem 0 0;
  font-size: 1.05rem;
}
.feature-where { color: var(--muted); margin: 0.2rem 0 0; }
.feature .actions { margin-top: 1.4rem; }

/* ---------- Image area shared by cards and the feature ---------- */

.ev-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--dusk);
  border-radius: 8px;
}
.ev-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 500ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms ease;
}
/* Bottom shade so chips and edges sit well on bright flyers */
.ev-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12, 10, 22, 0.45), rgba(12, 10, 22, 0) 28%);
  pointer-events: none;
}

.ev-chips {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 1;
}
.chip {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 100%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  line-height: 1;
  padding: 6px 9px 5px;
  border-radius: 999px;
  background: rgba(12, 10, 22, 0.78);
  color: var(--ivory);
  border: 1px solid rgba(205, 190, 255, 0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.chip--pick { background: var(--lilac); color: var(--night); border-color: var(--lilac); }

/* Poster for nights without a flyer: the date, big, on the brand rings */
.ev-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 18px 20px;
  background:
    radial-gradient(120% 80% at 100% 100%, rgba(90, 64, 184, 0.55), rgba(90, 64, 184, 0) 60%),
    linear-gradient(160deg, #1d1736, #110e1f);
  overflow: hidden;
}
.ev-poster-day {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 130%;
  font-size: clamp(4.5rem, 9vw, 6.5rem);
  line-height: 0.82;
  color: var(--ivory);
  position: relative;
  z-index: 1;
}
.ev-poster-month {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  color: var(--lilac);
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.ev-poster-venue {
  font-family: var(--spanish);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--muted);
  margin-top: 6px;
  position: relative;
  z-index: 1;
  overflow-wrap: anywhere;
}
.ev-poster-rings {
  position: absolute;
  width: 150%;
  right: -55%;
  top: 14%;
  fill: none;
  stroke: var(--deep-violet);
  stroke-width: 1.5;
  opacity: 0.8;
}

/* ---------- Event cards ---------- */

.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.ev { display: flex; flex-direction: column; min-width: 0; }
.ev-top { display: block; color: inherit; text-decoration: none; border-radius: 8px; }
.ev-body { padding: 14px 2px 0; display: flex; flex-direction: column; flex: 1; }
.ev-when {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 90%;
  color: var(--lilac);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  margin: 0;
}
.ev-title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 110%;
  font-size: 1.22rem;
  line-height: 1.12;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.ev-where { color: var(--ivory); opacity: 0.86; margin: 6px 0 0; font-size: 0.97rem; }
.ev-extra { color: var(--muted); margin: 3px 0 0; font-size: 0.9rem; }
.ev-go {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  align-self: flex-start;
}
.ev-go--off { color: var(--muted); }
.is-sold-out .ev-media img { opacity: 0.5; }

@media (hover: hover) and (pointer: fine) {
  .ev-top:hover .ev-media img,
  .feature-media:hover .ev-media img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .ev-media img { transition: none; }
}

/* ---------- Home: the next nights as a list ---------- */

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.row-link {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr) minmax(0, 14rem);
  gap: 6px 24px;
  align-items: baseline;
  padding: 18px 0;
  color: var(--ivory);
  text-decoration: none;
}
.row-when {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 90%;
  color: var(--lilac);
  white-space: nowrap;
}
.row-title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.row-where { color: var(--muted); text-align: right; }
@media (hover: hover) and (pointer: fine) {
  .row-link:hover .row-title { color: var(--lilac); }
}
@media (max-width: 680px) {
  .row-link { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px 0; }
  .row-where { text-align: left; }
}

/* ---------- El Plan: filters ---------- */

.filters {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 14px 0;
  margin-bottom: clamp(20px, 3vw, 32px);
  background: rgba(12, 10, 22, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 2px var(--gutter);
  max-width: calc(100% + var(--gutter) * 2);
}
.filter-tabs::-webkit-scrollbar { display: none; }
.filter {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory);
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 105%;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}
.filter-n { font-family: var(--body); font-weight: 500; letter-spacing: 0; opacity: 0.7; }
.filter[aria-pressed="true"] { background: var(--lilac); border-color: var(--lilac); color: var(--night); }
.filter:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .filter:hover { border-color: var(--lilac); }
}
.filter-count { margin: 0; color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
@media (max-width: 640px) { .filter-count { display: none; } }

.plan-days .plan-day {
  margin: clamp(32px, 5vw, 52px) 0 16px;
  padding-top: 0;
}
.plan-days .plan-day:first-child { margin-top: 0; }

/* ---------- Round 2 fixes ---------- */

/* Headline must not run into the feature card */
.cover .headline { font-size: clamp(2.1rem, 5.2vw, 4.6rem); }

/* Feature image fills the card */
.feature-media .ev-media { max-height: none; }

/* Menu fits on one line on phones */
@media (max-width: 480px) {
  .nav a { font-size: 0.7rem; letter-spacing: 0.04em; padding: 8px 6px; }
  .nav { gap: 0; margin: 0 -6px; }
}

/* Phones: compact cards, flyer on the left, so a month of nights isn't endless */
@media (max-width: 600px) {
  .plan-days .ev-grid { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
  .plan-days .ev {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .plan-days .ev-body { padding: 0; }
  .plan-days .ev-media { border-radius: 6px; }
  .plan-days .ev-chips { top: 6px; left: 6px; right: 6px; }
  .plan-days .chip { font-size: 0.56rem; padding: 4px 6px 3px; }
  .plan-days .ev-chips .chip:not(:first-child) { display: none; }
  .plan-days .ev-poster { padding: 8px 8px 10px; }
  .plan-days .ev-poster-day { font-size: 2.6rem; }
  .plan-days .ev-poster-month { font-size: 0.6rem; margin-top: 4px; letter-spacing: 0.1em; }
  .plan-days .ev-poster-venue { display: none; }
  .plan-days .ev-title { font-size: 1.05rem; margin-top: 4px; }
  .plan-days .ev-when { font-size: 0.82rem; }
  .plan-days .ev-where, .plan-days .ev-extra { font-size: 0.88rem; margin-top: 3px; }
  .plan-days .ev-go { padding-top: 8px; font-size: 0.88rem; }
  .plan-days .plan-day { margin: 28px 0 0; padding-bottom: 10px; }
}

/* ---------- "Send us your info" form ---------- */

.form-lede { margin-bottom: clamp(24px, 4vw, 36px); }
.qcn-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px clamp(16px, 3vw, 28px);
  max-width: 760px;
}
.qcn-form .field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.qcn-form .field--full { grid-column: 1 / -1; }
.qcn-form label, .qcn-form .label, .qcn-form legend {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 105%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--ivory);
}
.qcn-form .opt {
  font-family: var(--body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 4px;
}
.qcn-form .hint { color: var(--muted); font-size: 0.9rem; margin: 0; }
.qcn-form .form-reach { margin-top: -8px; }
.qcn-form input[type="text"],
.qcn-form input[type="email"],
.qcn-form input[type="tel"],
.qcn-form input[type="url"],
.qcn-form input[type="date"],
.qcn-form select,
.qcn-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--dusk);
  color: var(--ivory);
  font: inherit;
  font-size: 1rem; /* 16px keeps iPhones from zooming in */
  transition: border-color 0.15s, box-shadow 0.15s;
}
.qcn-form textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.qcn-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23CDBEFF' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.qcn-form input::placeholder, .qcn-form textarea::placeholder { color: #7d7696; }
.qcn-form input:focus, .qcn-form select:focus, .qcn-form textarea:focus {
  outline: none;
  border-color: var(--lilac);
  box-shadow: 0 0 0 3px rgba(205, 190, 255, 0.22);
}
.qcn-form [aria-invalid="true"] { border-color: #ff8fa3; }
.qcn-form .field-error { color: #ff8fa3; font-size: 0.9rem; margin: 0; }

.qcn-form .event {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px clamp(14px, 3vw, 22px) 22px;
  margin: 0;
  min-width: 0;
}
.qcn-form .event legend { padding: 0 8px; margin-left: -8px; }
.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px clamp(14px, 3vw, 24px);
}

.drop {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 120px;
  padding: 16px;
  border: 1.5px dashed var(--violet);
  border-radius: 10px;
  background: rgba(139, 111, 232, 0.06);
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: var(--body) !important;
  font-weight: 400 !important;
  font-size: 1rem !important;
  transition: background-color 0.15s, border-color 0.15s;
}
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:focus-within { border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(205, 190, 255, 0.22); }
.drop.is-over { background: rgba(139, 111, 232, 0.16); border-color: var(--lilac); }
.drop-empty { display: flex; flex-direction: column; gap: 4px; }
.drop-empty strong { color: var(--lilac); font-weight: 700; }
.drop-empty span { color: var(--muted); font-size: 0.92rem; }
.drop-full { display: flex; align-items: center; gap: 16px; min-width: 0; }
.drop-full img { width: 72px; height: 90px; object-fit: cover; border-radius: 6px; flex: none; }
.drop-name { color: var(--ivory); overflow-wrap: anywhere; font-size: 0.95rem; }
.link-btn {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--lilac);
  text-decoration: underline;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .drop:hover { background: rgba(139, 111, 232, 0.12); }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-family: var(--body) !important;
  font-weight: 400 !important;
  font-size: 0.97rem !important;
  color: var(--muted) !important;
  cursor: pointer;
}
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--lilac); cursor: pointer; }

.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-end .btn { min-width: 160px; justify-content: center; }
.form-end .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-status { margin: 0; color: var(--muted); }
.form-status.is-error { color: #ff8fa3; }

.form-done {
  max-width: 760px;
  border: 1px solid var(--violet);
  background: var(--dusk);
  border-radius: 10px;
  padding: clamp(20px, 4vw, 32px);
}
.form-done:focus { outline: none; }
.form-done h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 115%;
  text-transform: uppercase;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin: 0 0 8px;
}
.form-done p { color: var(--muted); margin: 0 0 18px; max-width: 34em; }

@media (max-width: 640px) {
  .qcn-form, .event-grid { grid-template-columns: minmax(0, 1fr); }
}
.qcn-form .btn, .form-done .btn { cursor: pointer; font-family: var(--body); }
.qcn-form[hidden], .form-done[hidden], .qcn-form [hidden] { display: none !important; }
.check .field-error { grid-column: 2; }
.form-done h3 .voz { text-transform: none; font-weight: 400; }

/* ---------- The Scene ---------- */

.scene-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 14px;
  margin-top: clamp(24px, 4vw, 40px);
}
.scene-tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--dusk);
  color: var(--ivory);
  text-decoration: none;
  transition: border-color 0.15s, transform 160ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.2s;
}
.scene-tile:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .scene-tile:hover { border-color: var(--lilac); box-shadow: 0 20px 50px -30px rgba(90, 64, 184, 0.7); }
}
.tile-stack { display: flex; }
.tile-stack .pic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--dusk);
  flex: none;
  margin-right: -12px;
}
.tile-stack .pic-mono span { font-size: 0.8rem; letter-spacing: 0; }
.tile-stack:empty { display: none; }
.tile-body { display: flex; flex-direction: column; gap: 2px; }
.tile-title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 115%;
  text-transform: uppercase;
  font-size: 1.05rem;
  line-height: 1.12;
}
.tile-voz { font-family: var(--spanish); font-style: italic; color: var(--lilac); font-size: 1.15rem; }
.tile-count { color: var(--muted); font-size: 0.9rem; margin-top: 4px; }

.scene-cat { scroll-margin-top: 8px; }
.scene-blurb { color: var(--muted); max-width: 40em; margin: 0.8rem 0 0; }
.scene-join { margin: 0; }
.scene-group {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 105%;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--lilac);
  margin: clamp(28px, 4vw, 40px) 0 16px;
}
.scene-empty { color: var(--muted); }

.people {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: clamp(16px, 2.4vw, 24px);
}
.person { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.person .pic { aspect-ratio: 1; border-radius: 10px; }
.pic { position: relative; overflow: hidden; background: var(--dusk); max-width: 100%; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic-mono {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(90% 70% at 85% 100%, rgba(90, 64, 184, 0.75), rgba(90, 64, 184, 0) 70%),
    linear-gradient(var(--tilt, 160deg), #241c45, #110e1f);
}
.pic-mono span {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 130%;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--lilac);
  letter-spacing: 0.02em;
}
.person-body h4 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 110%;
  font-size: 1.08rem;
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
}
.person-what { color: var(--ivory); opacity: 0.86; margin: 4px 0 0; font-size: 0.95rem; }
.person-area { color: var(--muted); margin: 2px 0 0; font-size: 0.9rem; }
.person-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-weight: 700; font-size: 0.92rem; }
.person-links a { overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .scene-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .scene-tile { flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; }
  .tile-stack .pic { width: 40px; height: 40px; margin-right: -14px; }
  .tile-stack .pic:nth-child(n+4) { display: none; }
  .tile-stack { flex: none; width: 80px; }
  .tile-stack .pic-mono span { font-size: 0.68rem; }
  .tile-body { min-width: 0; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .person-body h4 { font-size: 0.98rem; }
  .person-what { font-size: 0.88rem; }
  .person-links { font-size: 0.85rem; flex-direction: column; }
}
.pic--logo { background: #f4efe6; }
.pic--logo img { object-fit: contain; padding: 14%; }
.tile-stack .pic--logo img { padding: 8%; }

/* ---------- Like / Dislike ---------- */

.votes { display: flex; gap: 8px; margin-top: 12px; }
.ev-go + .votes, .person-links + .votes { margin-top: 10px; }
.vote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 700 0.8rem/1 var(--body);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}
.vote svg { flex: none; }
.vote--down svg { transform: rotate(180deg); }
.vote-n { font-variant-numeric: tabular-nums; color: var(--ivory); }
.vote-n:empty { display: none; }
.vote:active { transform: scale(0.95); }
.vote--up[aria-pressed="true"] { background: var(--lilac); border-color: var(--lilac); color: var(--night); }
.vote--up[aria-pressed="true"] .vote-n { color: var(--night); }
.vote--down[aria-pressed="true"] { background: #3a2a4a; border-color: #8a6f9e; color: var(--ivory); }
@media (hover: hover) and (pointer: fine) {
  .vote:hover { border-color: var(--lilac); color: var(--ivory); }
}
.feature .votes { margin-top: 16px; }

/* On phone El Plan cards, keep the buttons compact. */
@media (max-width: 600px) {
  .plan-days .votes { margin-top: 8px; }
  .plan-days .vote { min-height: 34px; padding: 5px 10px; }
  .plan-days .vote-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

.vote-sheet {
  width: min(420px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--dusk);
  color: var(--ivory);
  padding: 24px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.vote-sheet::backdrop { background: rgba(12, 10, 22, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.vote-sheet[open] { animation: sheet-in 220ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vote-sheet[open] { animation: none; } }
.vote-form { display: flex; flex-direction: column; gap: 10px; }
.vote-form h2 {
  font-family: var(--display); font-weight: 800; font-stretch: 115%; text-transform: uppercase;
  font-size: 1.4rem; line-height: 1.05; margin: 0;
}
.vote-form .voz { margin: 0; font-size: 1.3rem; }
.vote-help { color: var(--muted); margin: 0 0 6px; font-size: 0.95rem; }
.vote-form label[for] {
  font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem;
}
.vote-form input[type="text"] {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--night); color: var(--ivory); font: inherit; font-size: 1rem;
}
.vote-form input[type="text"]:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(205, 190, 255, 0.22); }
.vote-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--muted); font-size: 0.9rem; cursor: pointer; }
.vote-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--lilac); }
.vote-error { color: #ff8fa3; margin: 0; min-height: 1.2em; font-size: 0.9rem; }
.vote-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vote-actions .btn { cursor: pointer; font-family: var(--body); }
.vote-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* Votes are final: once voted, the bar shows the choice and stops reacting. */
.votes.is-voted .vote { cursor: default; }
.votes.is-voted .vote:active { transform: none; }
.votes.is-voted .vote[aria-pressed="false"] { opacity: 0.45; }
@media (hover: hover) and (pointer: fine) {
  .votes.is-voted .vote[aria-pressed="false"]:hover { border-color: var(--line); color: var(--muted); }
}
