/* ============================================================
   ALISHA - All Night Long, North & South - ticket signup
   Paper punk-flyer skin sampled from the artwork: off-white
   paper stock, charcoal stencil ink, burnt marker orange.
   Display: Archivo Narrow caps (the flyer's condensed industrial
   caps). Accent: Permanent Marker (the orange NORTH/SOUTH
   handwriting). Body: Barlow.
   ============================================================ */

:root {
  --paper:       #EAE8E4;
  --paper-card:  #F1EFEB;
  --paper-deep:  #DDDAD4;
  --ink:         #363B41;
  --ink-deep:    #24282D;
  --ink-soft:    #4A5058;
  --ink-faint:   #7A8088;
  --orange:      #E75B27;
  --orange-deep: #C24518;
  --band-red:    #8E2020;
  --line:        rgba(54, 59, 65, 0.28);
  --danger:      #B3261E;

  --display: "Archivo Narrow", "Arial Narrow", Arial, sans-serif;
  --marker:  "Permanent Marker", "Comic Sans MS", cursive;
  --body:    "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono:    ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --maxw: 1180px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- paper-stock background (the client's own scans) ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--paper);
  background-image: url("/assets/images/bg-mobile.jpg");
  background-image: image-set(
    url("/assets/images/bg-mobile.webp") type("image/webp"),
    url("/assets/images/bg-mobile.jpg")  type("image/jpeg"));
  background-position: center;
  background-size: cover;
}
@media (min-width: 920px) {
  .bg {
    background-image: url("/assets/images/bg-desktop.jpg");
    background-image: image-set(
      url("/assets/images/bg-desktop.webp") type("image/webp"),
      url("/assets/images/bg-desktop.jpg")  type("image/jpeg"));
  }
}

/* ============================================================
   STAGE LAYOUT - poster above panel (mobile), side by side (desktop)
   ============================================================ */
.stage {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(14px, 3vw, 44px) clamp(16px, 4vw, 40px) clamp(28px, 4vw, 56px);
  display: flex;
  align-items: center;
}
.stage__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(10px, 2.5vw, 48px);
  align-items: center;
}

/* ---------- the flyer ----------
   Transparent cutout on the same paper stock as the page, so it
   sits directly "printed" on the background - no frame, no shadow. */
.poster {
  justify-self: center;
  width: 100%;
  max-width: 560px;
  animation: posterIn .8s cubic-bezier(.16,.84,.36,1) both;
}
.poster img {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes posterIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   SIGNUP PANEL - the "SIGN UP BOX" from the client layout.
   A pasted-on paper slip: card stock, ink rule border, orange
   masking-tape strip across the top edge.
   ============================================================ */
.panel {
  justify-self: center;
  width: 100%;
  max-width: 500px;
  position: relative;
  isolation: isolate;
  background: var(--paper-card);
  border: 1px solid var(--ink);
  box-shadow:
    0 1px 0 rgba(255,255,255,.7) inset,
    0 18px 40px -22px rgba(36, 40, 45, .45);
  animation: panelIn .8s .1s cubic-bezier(.16,.84,.36,1) both;
}
/* orange tape strip, slightly askew like a hand-pasted flyer */
.panel::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 112px;
  height: 18px;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--orange);
  opacity: .92;
  z-index: 1;
  pointer-events: none;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.panel__inner { padding: clamp(26px, 3.4vw, 38px); }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 14px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.eyebrow span {
  flex: 0 0 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange));
}
.eyebrow span:last-child { background: linear-gradient(90deg, var(--orange), transparent); }

/* ---------- titles ---------- */
.panel__title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .98;
  font-size: clamp(2.15rem, 5.6vw, 2.9rem);
  margin: 0 0 14px;
  color: var(--ink-deep);
  text-wrap: balance;
}
/* the one loud thing: the marker word, straight off the artwork */
.panel__title em {
  font-family: var(--marker);
  font-style: normal;
  font-weight: 400;
  font-size: .82em;
  text-transform: uppercase;
  color: var(--orange);
  letter-spacing: .02em;
  white-space: nowrap;
}

.panel__lede {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 46ch;
}
.panel__lede strong { color: var(--ink-deep); font-weight: 600; }

/* ============================================================
   COUNTDOWN - mini versions of the flyer's charcoal date chips
   ============================================================ */
.countdown { margin: 0 0 24px; }
.countdown__label {
  margin: 0 0 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.countdown__clock {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cdseg {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 11px 4px 8px;
  background: var(--ink-deep);
  /* rough-stamped corners, like the 23.10.26 / 20.11.26 blocks */
  border-radius: 5px 3px 6px 3px;
  box-shadow: 0 8px 18px -12px rgba(36, 40, 45, .7);
}
.cdseg b {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.55rem, 5vw, 2rem);
  line-height: 1;
  color: var(--paper-card);
  font-variant-numeric: tabular-nums;
}
.cdseg i {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(241, 239, 235, .55);
}
.cdsep {
  align-self: center;
  margin-top: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 -7px 0 var(--orange);
}
.countdown__live {
  display: none;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.1rem;
  color: var(--paper-card);
  background: var(--orange-deep);
  padding: 11px 16px;
  border-radius: 5px 3px 6px 3px;
}
.countdown.is-live .countdown__clock { display: none; }
.countdown.is-live .countdown__label { display: none; }
.countdown.is-live .countdown__live { display: inline-block; }

/* ============================================================
   FORM
   ============================================================ */
.form__row { margin: 0 0 16px; }
.form__label {
  display: block;
  margin: 0 0 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.form__input {
  width: 100%;
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink-deep);
  background: #FBFAF8;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form__input::placeholder { color: #A6ABB1; }
.form__input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(231, 91, 39, .18);
}
.form__input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, .14);
}
.form__err {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--danger);
}

/* ---------- date select: the flyer's NORTH/SOUTH blocks as ticket stubs ---------- */
.shows { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.shows__legend { padding: 0; }
.shows__hint {
  text-transform: none;
  letter-spacing: .02em;
  font-weight: 500;
  color: var(--ink-faint);
}
.shows__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.show { position: relative; display: block; cursor: pointer; min-width: 0; }
.show__box { position: absolute; opacity: 0; width: 1px; height: 1px; }
.show__card {
  position: relative;
  display: block;
  padding: 12px 12px 11px;
  background: #FBFAF8;
  border: 1px solid var(--line);
  /* rough-stamped corners, like the flyer's charcoal date blocks */
  border-radius: 6px 3px 7px 3px;
  transition: background .12s ease, border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}
.show:last-child .show__card { border-radius: 3px 7px 3px 6px; }
.show__card:hover { border-color: var(--ink-soft); transform: translateY(-1px); }
/* the panel's askew orange tape, stamped on when a date is picked */
.show__card::after {
  content: "";
  position: absolute;
  top: -5px;
  right: 12px;
  width: 34px;
  height: 9px;
  background: var(--orange);
  transform: rotate(-4deg) scaleX(0);
  transform-origin: right center;
  transition: transform .14s ease;
}
.show__region {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.show__city {
  display: block;
  margin-top: 3px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(15px, 4.2vw, 18.5px);
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink-deep);
  white-space: nowrap;
}
.show__venue {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.show__date {
  display: inline-block;
  margin-top: 9px;
  padding: 3px 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--paper-card);
  background: var(--ink-deep);
  border-radius: 4px 2px 5px 2px;
}
/* checked = the card inverts into the flyer's stamped charcoal block */
.show__box:checked + .show__card {
  background: var(--ink-deep);
  border-color: var(--ink-deep);
  box-shadow: 0 10px 22px -12px rgba(36, 40, 45, .7);
}
.show__box:checked + .show__card::after { transform: rotate(-4deg) scaleX(1); }
.show__box:checked + .show__card .show__city { color: var(--paper-card); }
.show__box:checked + .show__card .show__region { color: var(--orange); }
.show__box:checked + .show__card .show__venue { color: #C6C9CC; }
.show__box:checked + .show__card .show__date { background: var(--paper-card); color: var(--ink-deep); }
.show__box:focus-visible + .show__card { outline: 2px solid var(--orange-deep); outline-offset: 2px; }
.shows.is-invalid .show__card { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179, 38, 30, .14); }
@media (prefers-reduced-motion: reduce) {
  .show__card, .show__card::after { transition: none; }
}

/* ---------- honeypot (spam trap) ----------
   display:none, NOT left:-9999px: off-screen honeypots get autofilled by
   Chrome/Edge and silently block real signups. display:none is skipped by
   autofill and by screen readers. */
.hp-field { display: none; }

/* ---------- consent ---------- */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 4px 0 22px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.form__consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--orange);
}
.form__consent a { color: var(--orange-deep); text-underline-offset: 2px; }

/* ---------- submit: one of the flyer's charcoal date chips ---------- */
.btn {
  display: block;
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--ink-deep);
  color: var(--paper-card);
  /* rough-stamped edges, like the 23.10.26 / 20.11.26 blocks */
  border-radius: 6px 3px 7px 3px;
  padding: 0;
  box-shadow: 0 10px 22px -12px rgba(36, 40, 45, .7);
  transition: background .12s ease, transform .12s ease, box-shadow .12s ease;
}
.btn__face {
  display: block;
  padding: 15px 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.btn:hover { background: var(--orange-deep); transform: translateY(-1px); box-shadow: 0 14px 26px -12px rgba(194, 69, 24, .65); }
.btn:active { transform: translateY(0); }
.btn:disabled { background: var(--ink-faint); cursor: default; transform: none; }

/* ---------- signature: the artwork's Manchester/London coordinates ---------- */
.coords {
  margin: 18px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--ink-faint);
}
.coords span { color: var(--orange); }

/* ---------- success state ---------- */
.panel__success { text-align: left; }
.panel__success .panel__lede { margin-bottom: 0; }
.panel__success .coords { margin-top: 22px; }

/* ============================================================
   intl-tel-input (v25) - paper theme + searchable dropdown
   ============================================================ */
.iti { width: 100%; display: block; }
/* flag + dial code sit flush inside the field: no grey box, no divider
   (same treatment the user approved on indira-paganotto) */
.iti__selected-country {
  background: transparent;
  border-radius: 3px 0 0 3px;
}
.iti__selected-country:hover,
.iti__selected-country-primary:hover { background: rgba(54, 59, 65, .06); }
.iti--separate-dial-code .iti__selected-dial-code { color: var(--ink-soft); }
.iti__dropdown-content {
  background: var(--paper-card);
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 0 22px 46px -16px rgba(36, 40, 45, .5);
  color: var(--ink-deep);
}
.iti__search-input {
  background: #FBFAF8;
  color: var(--ink-deep);
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  font-family: var(--body);
  font-size: 15px;
}
.iti__search-input::placeholder { color: #A6ABB1; }
.iti__search-input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--orange); }
.iti__search-icon { display: none; }              /* remove magnifying-glass icon */
.iti__search-input { padding-left: 14px; }        /* reclaim the space it left */
.iti__country-list { background: var(--paper-card); }
.iti__country { color: var(--ink-deep); }
.iti__country:hover,
.iti__country.iti__highlight { background: rgba(231, 91, 39, .12); }
.iti__dial-code { color: var(--ink-faint); font-family: var(--mono); font-size: 12.5px; }
.iti__country-name { color: var(--ink-deep); }
/* the dropdown must sit above the panel and never overflow the viewport */
.iti--inline-dropdown .iti__dropdown-content {
  z-index: 50;
  width: 100%;
  min-width: 260px;
  max-width: min(88vw, 420px);
}

/* ============================================================
   FOOTER - full width (basslayerz layout), inked on the paper
   ============================================================ */
.foot {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  padding: 18px clamp(16px, 4vw, 40px) 26px;
  background: rgba(54, 59, 65, .06);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.foot__left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot__legal { margin: 0; font-size: 12px; color: var(--ink-soft); letter-spacing: .02em; }
.foot__legal a { color: var(--ink-soft); text-decoration: none; }
.foot__legal a:hover { color: var(--orange-deep); }
.site-built { margin: 0; }
.site-built a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.site-built a:hover { border-color: var(--orange); color: var(--ink-deep); }
/* avatar PNG is light teal (drawn for dark footers) - pull to ink for paper */
.site-built img { display: block; filter: grayscale(1) brightness(0.3); opacity: .85; }

/* ============================================================
   RESPONSIVE - two columns on wider screens
   ============================================================ */
@media (min-width: 920px) {
  .stage__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
  }
  /* 52vh ~= 88vh of flyer height at the artwork's 1080:1822 ratio,
     so the whole flyer (incl. the bottom copy lines) fits the fold */
  .poster { justify-self: end; max-width: min(520px, 52vh); }
  .panel  { justify-self: start; }
}

@media (max-width: 919px) {
  .foot { justify-content: center; text-align: center; }
  .foot__left { justify-content: center; }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.iti__selected-country:focus-visible {
  outline: 2px solid var(--orange-deep);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .poster, .panel { animation: none; }
  * { scroll-behavior: auto; }
}

/* ============================================================
   LEGAL PAGE (privacy.html)
   ============================================================ */
body.legal-wrap {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem) clamp(1rem, 4vw, 2.5rem) 4rem;
  display: block;
}
.legal {
  max-width: 740px;
  margin: 0 auto;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  padding: 0.4rem 1.05rem 0.4rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 250, 248, 0.8);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease;
}
.legal__back:hover {
  border-color: var(--orange);
  background: rgba(231, 91, 39, 0.06);
}
.legal__back-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink-deep);
  color: var(--paper-card);
  transition: transform .18s ease, background .18s ease;
}
.legal__back:hover .legal__back-arrow { transform: translateX(-3px); background: var(--orange-deep); }
.legal__back-arrow svg { width: 13px; height: 13px; display: block; }
.legal__back-label {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.12;
}
.legal__back-text {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.legal__back-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  color: var(--ink-deep);
}
.legal h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 2rem;
  color: var(--ink-deep);
  text-wrap: balance;
}
.legal h1::after { content: "."; color: var(--orange); }
.legal h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin: 2.2rem 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
.legal h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 1.8rem 0 0.4rem;
}
.legal p, .legal li {
  font-size: 14.5px;
  color: var(--ink-soft);
}
.legal ul { padding-left: 1.1rem; margin: 0.5rem 0 1rem; }
.legal li { margin-bottom: 0.45rem; }
.legal a:not(.legal__back) { color: var(--orange-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(194, 69, 24, 0.4); }
.legal a:not(.legal__back):hover { text-decoration-color: var(--orange-deep); }
.legal strong { color: var(--ink-deep); font-weight: 600; }
.legal__meta {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
