/* ============================================================
   Julian Fijma — North America Tour
   Shared design system. Aesthetic sourced from the artwork:
   brick wall + US-style green wayfinding signs + Helvetica Neue.
   ============================================================ */

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

:root {
  /* Palette sampled from the supplied artwork */
  --brick:        #1b1310;            /* deep brick shadow — page base */
  --cream:        #f2efe9;            /* off-white type (sign text)    */
  --cream-dim:    rgba(242,239,233,0.74);
  --cream-faint:  rgba(242,239,233,0.46);
  --sign:         #0a5345;            /* street-sign green body         */
  --sign-deep:    #00352f;            /* darkest green in the signs     */
  --sign-bright:  #157a60;            /* hover                          */
  --sign-edge:    rgba(255,255,255,0.92); /* white retroreflective rim  */

  --panel-bg:     rgba(16,18,16,0.72);
  --panel-border: rgba(255,255,255,0.13);
  --input-bg:     rgba(255,255,255,0.05);
  --input-border: rgba(255,255,255,0.20);
  --input-focus:  rgba(21,122,96,0.55);
  --error:        #e2654f;

  /* Helvetica Neue stack — true faces on Apple, graceful fallback.
     Condensed Black is targeted by family name first, then weight+stretch. */
  --title: "Helvetica Neue", "HelveticaNeue-CondensedBlack", "Arial Narrow", Helvetica, Arial, sans-serif;
  --body:  "Helvetica Neue", Helvetica, Arial, "Nimbus Sans", "Liberation Sans", sans-serif;
}

html { scroll-behavior: smooth; }
html, body {
  min-height: 100%;
  font-family: var(--body);
  font-weight: 400;
  background: var(--brick);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Title / subtitle / body weights (per artwork) ───────────── */
.t-title {
  font-family: var(--title);
  font-weight: 900;
  font-stretch: condensed;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 0.98;
}
.t-sub {
  font-family: var(--body);
  font-weight: 500;          /* Helvetica Neue Medium */
}

/* ── Brick background (art-directed per breakpoint) ──────────── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg picture, .bg picture img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.bg picture img { filter: brightness(0.46) contrast(1.04) saturate(0.92); }
.bg-desktop { display: block; }
.bg-mobile  { display: none; }
@media (max-width: 768px) {
  .bg-desktop { display: none; }
  .bg-mobile  { display: block; }
}
/* Vignette to seat content against the wall */
.bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 42%,
      transparent 0%, transparent 46%,
      rgba(10,7,6,0.45) 78%, rgba(10,7,6,0.85) 100%),
    linear-gradient(to bottom,
      rgba(10,7,6,0.55) 0%, transparent 20%,
      transparent 70%, rgba(10,7,6,0.78) 100%);
}

/* Film grain — subtle, matches gritty street aesthetic */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* ── Street-sign button (the core motif) ─────────────────────── */
.sign-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 17px 22px;
  font-family: var(--title);
  font-weight: 900;
  font-stretch: condensed;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  background: linear-gradient(177deg, var(--sign) 0%, var(--sign-deep) 100%);
  border: 0;
  border-radius: 9px;
  /* white retroreflective rim, inset like a real road sign */
  box-shadow:
    inset 0 0 0 2.5px var(--sign-edge),
    inset 0 0 0 4px var(--sign-deep),
    0 12px 26px -10px rgba(0,0,0,0.8),
    0 0 0 1px rgba(0,0,0,0.4);
  cursor: pointer;
  position: relative;
  transition: transform .18s ease, box-shadow .25s ease, filter .25s ease;
}
.sign-btn .arrow {
  width: 22px; height: 22px; flex: 0 0 22px;
  fill: currentColor;
}
.sign-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    inset 0 0 0 2.5px #fff,
    inset 0 0 0 4px var(--sign-deep),
    0 18px 38px -10px rgba(0,0,0,0.85),
    0 0 40px -14px rgba(21,122,96,0.7),
    0 0 0 1px rgba(0,0,0,0.4);
}
.sign-btn:active:not(:disabled) { transform: translateY(0) scale(0.99); }
.sign-btn:disabled { opacity: 0.8; cursor: progress; }

/* ── Footer "built by" pill ──────────────────────────────────── */
.built-by {
  position: relative; z-index: 2;
  text-align: center;
  padding: 8px 24px 30px;
}
.built-by a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--body); font-size: 0.7rem;
  color: var(--cream-faint); text-decoration: none;
  background: rgba(255,255,255,0.05);
  padding: 6px 12px; border-radius: 6px;
  opacity: 0.75; transition: opacity .25s;
}
.built-by a:hover { opacity: 1; }
.built-by img { height: 15px; width: auto; }

/* ── fade-in ─────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform: translateY(20px);} to {opacity:1; transform:none;} }
@keyframes popIn  { from { opacity:0; transform: scale(0);}        to {opacity:1; transform: scale(1);} }

/* ============================================================
   Ticket pages (/presale, /gensale) — date list + buy buttons
   ============================================================ */
.ticket-wrap {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  padding: clamp(54px, 9vh, 96px) clamp(20px, 5vw, 40px) 40px;
}
.ticket-head { text-align: center; margin-bottom: clamp(26px, 4vh, 40px); }
.ticket-head .eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: #4fbf9e; margin-bottom: 14px;
}
.ticket-head .eyebrow::before, .ticket-head .eyebrow::after {
  content: ''; flex: 0 0 28px; height: 1px; background: var(--sign-bright);
}
.ticket-head h1 {
  font-family: var(--title); font-weight: 900; font-stretch: condensed;
  letter-spacing: -0.01em; text-transform: uppercase; line-height: 0.94;
  font-size: clamp(40px, 9vw, 76px); color: var(--cream);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.ticket-head .lede {
  font-family: var(--body); font-weight: 500;
  font-size: clamp(14px, 1.8vw, 16px); color: var(--cream-dim);
  margin-top: 12px; text-wrap: balance;
}

/* Pre-sale access-code callout */
.presale-code {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px 13px;
  text-align: center;
  background: linear-gradient(177deg, var(--sign) 0%, var(--sign-deep) 100%);
  border-radius: 12px;
  box-shadow: inset 0 0 0 2.5px var(--sign-edge), inset 0 0 0 4px var(--sign-deep), 0 14px 30px -14px rgba(0,0,0,0.75);
  padding: 16px 22px; margin-bottom: 22px;
}
.presale-code__text {
  font-family: var(--body); font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream);
}
.presale-code__code {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--title); font-weight: 900; font-stretch: condensed;
  font-size: 22px; line-height: 1; letter-spacing: 0.06em; color: var(--cream);
  background: rgba(0,0,0,0.30); border: 1.5px dashed var(--sign-edge);
  border-radius: 8px; padding: 6px 13px 6px 14px;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: background .15s, border-color .15s, transform .1s, color .15s;
}
.presale-code__code:hover { background: rgba(0,0,0,0.45); border-color: #fff; }
.presale-code__code:active { transform: scale(0.97); }
.presale-code__code:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--input-focus); }
.presale-code__code svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.presale-code__code .ico-check { display: none; }
.presale-code__code.copied { border-style: solid; border-color: #5fd0ab; color: #aef0db; }
.presale-code__code.copied .ico-copy { display: none; }
.presale-code__code.copied .ico-check { display: inline; opacity: 1; }

/* Pre-sale schedule notice */
.schedule {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border); border-radius: 12px;
  padding: 18px clamp(16px, 3vw, 26px); margin-bottom: 30px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.schedule h2 {
  font-family: var(--body); font-weight: 700;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream-faint); margin-bottom: 12px; text-align: center;
}
.schedule ul { list-style: none; display: grid; gap: 8px; }
.schedule li {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 14px; padding: 7px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.schedule li:last-child { border-bottom: 0; }
.schedule li .k { color: var(--cream-dim); font-weight: 500; }
.schedule li .v { color: var(--cream); font-weight: 700; text-align: right; white-space: nowrap; }
.schedule li .v small { display:block; font-weight:500; font-size:11px; color:var(--cream-faint); }

/* Date list */
.dates { list-style: none; display: grid; gap: 12px; }
.date-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: clamp(12px, 2.5vw, 22px);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border); border-radius: 12px;
  padding: 14px clamp(14px, 2.5vw, 20px);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: border-color .2s, transform .2s;
}
.date-row:hover { border-color: rgba(255,255,255,0.22); transform: translateY(-1px); }
/* Date chip — mini street sign */
.date-chip {
  flex: 0 0 auto; min-width: 78px; text-align: center;
  font-family: var(--title); font-weight: 900; font-stretch: condensed;
  text-transform: uppercase; letter-spacing: 0.01em; line-height: 1;
  color: var(--cream); padding: 12px 12px;
  background: linear-gradient(177deg, var(--sign) 0%, var(--sign-deep) 100%);
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px var(--sign-edge), inset 0 0 0 3px var(--sign-deep);
}
.date-chip b { display: block; font-size: 20px; }
.date-chip span { display: block; font-size: 12px; color: rgba(255,255,255,0.72); margin-top: 2px; }
.date-info { min-width: 0; }
.date-info b {
  display: block; font-family: var(--title); font-weight: 900; font-stretch: condensed;
  text-transform: uppercase; letter-spacing: -0.005em;
  font-size: clamp(18px, 2.6vw, 23px); color: var(--cream); line-height: 1.05;
}
.date-info span { display: block; font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--cream-dim); margin-top: 3px; }

/* Smaller sign-button variant for the rows */
.sign-btn--sm { width: auto; padding: 12px 18px; font-size: 14px; gap: 9px; }
.sign-btn--sm .arrow { width: 17px; height: 17px; flex: 0 0 17px; }
.sign-btn[aria-disabled="true"] {
  pointer-events: none; opacity: 0.5; filter: grayscale(0.4);
}

@media (max-width: 560px) {
  .date-row { grid-template-columns: auto 1fr; }
  .date-row .sign-btn--sm { grid-column: 1 / -1; }
}
