/* THE GAP: styles for the website, the ticket page and the band page.
   Photo-first, like a band's own site: the band's photos large and graded
   to one warm tone, the logo's mustard as the only colour. Type: Teko
   (close to the logo's angular lettering) and Hind for reading. */

:root {
  /* the dark site */
  /* from the logo: navy #00273c, mustard #f1b144, white */
  --night: #011d2d;
  --night-2: #00273c;
  --night-3: #0a3550;
  --cream: #f4efe6;
  --cream-2: rgba(244, 239, 230, 0.76);
  --cream-3: rgba(244, 239, 230, 0.54);
  --line: rgba(244, 239, 230, 0.15);
  --mustard: #f1b144;
  --mustard-2: #f7c56c;

  /* paper surfaces: tickets, forms and the band's list */
  --paper: #f2ead9;
  --paper-2: #e9dfca;
  --card: #faf6ec;
  --ink: #00273c;
  --ink-2: #34515f;
  --ink-3: #6b7f89;
  --rule: rgba(0, 39, 60, 0.16);
  --ok: #2f6b3a;
  --bad: #a3392b;

  --f-head: 'Teko', 'Arial Narrow', sans-serif;
  --f-text: 'Hind', 'Segoe UI', system-ui, sans-serif;

  /* photos are toned navy to white in the files themselves (no filter in the browser) */

  --wrap: 1200px;
  --gutter: clamp(18px, 4.5vw, 52px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.night { background: var(--night); color: var(--cream); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; }
::selection { background: var(--mustard); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--mustard); color: var(--night); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* type */
.label { font: 600 14px/1.2 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mustard); margin: 0 0 12px; }
.title { font: 500 clamp(48px, 7vw, 96px)/0.88 var(--f-head); text-transform: uppercase; letter-spacing: 0.005em; margin-bottom: 26px; }
.title-sm { font-size: clamp(36px, 4.4vw, 54px); margin: 46px 0 16px; }
.lede { font-size: clamp(20px, 2vw, 24px); line-height: 1.5; }
.prose p, .music-text p { max-width: 60ch; }
.night .prose p:not(.lede), .night .music-text p:not(.lede) { color: var(--cream-2); }
figcaption { font-size: 14px; color: var(--cream-3); margin-top: 10px; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 2px 26px 0;
  border: 0;
  border-radius: 2px;
  background: var(--mustard);
  color: var(--night);
  font: 500 24px/1 var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--mustard-2); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 2px 16px 0; font-size: 20px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(127, 127, 127, 0.12); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }

/* ───────── nav ───────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px var(--gutter);
  transition: background 0.25s;
}
.nav.solid { background: rgba(1, 29, 45, 0.94); border-bottom: 1px solid var(--line); }
.nav-logo img { width: 116px; transition: opacity 0.2s; }
.nav.hide-logo .nav-logo img { opacity: 0; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font: 500 22px/1 var(--f-head); text-transform: uppercase; letter-spacing: 0.04em; color: var(--cream-2); padding-top: 3px; }
.nav-links a:hover { color: var(--cream); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ───────── hero: three panels, with the gaps between ───────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--night); }
.panels { flex: 1; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; min-height: 420px; }
.panel { position: relative; overflow: hidden; background: var(--night-3); }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-bass img { object-position: 50% 30%; }
.p-keys img { object-position: 45% 25%; }
.p-guitar img { object-position: 50% 50%; }
.panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(1, 29, 45,0.35) 0%, rgba(1, 29, 45,0) 22%, rgba(1, 29, 45,0) 55%, rgba(1, 29, 45,0.9) 100%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) clamp(30px, 5vh, 56px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-logo { width: min(640px, 92vw); }
.hero-logo img { width: 100%; filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.6)); }
.hero-when { margin: 18px 0 0; font: 500 clamp(24px, 2.6vw, 32px)/1 var(--f-head); text-transform: uppercase; letter-spacing: 0.05em; color: var(--cream-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; }
.hero-when b { font-weight: 500; color: var(--mustard); }
.hero-when .sep { width: 28px; height: 2px; background: var(--cream-3); display: inline-block; }
@media (max-width: 760px) {
  .hero { min-height: 0; }
  .panels { flex: none; height: 64svh; min-height: 360px; gap: 5px; grid-template-columns: 1fr 1.2fr 1fr; }
  .p-keys img { object-position: 40% 22%; }
  .panel::after { background: linear-gradient(180deg, rgba(1, 29, 45,0.4) 0%, rgba(1, 29, 45,0) 25%, rgba(1, 29, 45,0) 60%, rgba(1, 29, 45,1) 100%); }
  .hero-text { position: relative; margin-top: -84px; padding-bottom: 30px; }
  .hero-when { font-size: 23px; }
}

/* ───────── the show, as a tour-date row ───────── */
.dates { padding: clamp(36px, 6vw, 70px) 0; border-bottom: 1px solid var(--line); }
.date-row { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px, 4vw, 48px); align-items: center; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dr-day { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 1; min-width: 74px; }
.dr-day b { font: 500 72px/0.8 var(--f-head); color: var(--mustard); }
.dr-day span { font: 500 24px/1 var(--f-head); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }
.dr-title { font: 500 clamp(30px, 3.2vw, 40px)/1 var(--f-head); text-transform: uppercase; margin: 0 0 6px; }
.dr-where { list-style: none; margin: 0; padding: 0; color: var(--cream-2); font-size: 17px; }
.dr-where a { color: var(--cream); }
.dr-act { text-align: right; }
.dr-count { margin: 8px 0 0; font-size: 15px; color: var(--cream-3); }
@media (max-width: 640px) {
  .date-row { grid-template-columns: auto 1fr; }
  .dr-act { grid-column: 1 / -1; text-align: left; }
  .dr-act .btn { width: 100%; }
}

/* ───────── sections ───────── */
.story, .pass, .music, .philo, .tickets { padding: clamp(70px, 10vw, 130px) 0; }

/* Why THE GAP? */
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.story-head .title { font-size: clamp(56px, 8vw, 110px); }
.wide-photo { margin: clamp(50px, 7vw, 90px) 0 0; }
.wide-photo img { width: 100%; height: clamp(180px, 46vw, 640px); object-fit: cover; object-position: 45% 40%; }
.pull { margin: clamp(46px, 6vw, 80px) 0 0; padding: 0; max-width: 900px; }
.pull p { font: 500 clamp(32px, 4vw, 52px)/1.02 var(--f-head); text-transform: uppercase; margin: 0; }
.pull p::first-line { color: var(--mustard); }
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; } }

/* Palakkad Gap */
.pass { background: var(--night-2); }
.pass-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pass-art svg { width: 100%; height: auto; display: block; }
.aside { font-size: 19px; padding-left: 18px; border-left: 2px solid var(--mustard); color: var(--cream-2); margin-top: 26px; }
@media (max-width: 760px) { .pass-grid { grid-template-columns: 1fr; } }

/* Our Music, Our Inspiration */
.music-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.music-photo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.music-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; }
.music-photo img:last-child { margin-top: 48px; }
@media (max-width: 760px) {
  .music-grid { grid-template-columns: 1fr; }
  .music-photo img:last-child { margin-top: 28px; }
}

/* Our Philosophy */
.philo { background: var(--night-2); }
.philo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.print { background: #f4ecdb; padding: 12px 12px 14px; transform: rotate(-1.5deg); max-width: 540px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8); }
.print img { width: 100%; }
.print figcaption { text-align: center; color: #6d6153; margin-top: 10px; font-size: 15px; }
.statement { font: 500 clamp(34px, 3.6vw, 46px)/0.98 var(--f-head); text-transform: uppercase; margin-bottom: 18px; }
.statement-2 { color: var(--mustard); }
.philo-text p:last-child { margin-top: 26px; color: var(--cream-2); max-width: 54ch; }
.closing { margin-top: clamp(80px, 11vw, 140px); text-align: center; }
.closing p { font: 400 clamp(26px, 3vw, 36px)/1.15 var(--f-head); text-transform: uppercase; letter-spacing: 0.04em; color: var(--cream-3); margin: 0; }
.closing .closing-last { font: 500 clamp(52px, 8.6vw, 124px)/0.88 var(--f-head); color: var(--cream); margin-top: 16px; }
@media (max-width: 760px) { .philo-grid { grid-template-columns: 1fr; } .print { margin: 0 6px; } }

/* ───────── tickets ───────── */
.tickets { border-top: 1px solid var(--line); }
.tickets-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(32px, 6vw, 84px); align-items: start; }
.event-facts { margin: 0 0 34px; max-width: 520px; }
.event-facts dt { font: 600 13px/1 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-3); padding-top: 14px; border-top: 1px solid var(--line); }
.event-facts dd { margin: 6px 0 14px; font-size: 19px; }
.event-facts .muted { color: var(--cream-3); }
.event-facts a { color: var(--mustard); }
.how { margin: 0; padding-left: 22px; display: grid; gap: 10px; max-width: 480px; color: var(--cream-2); }
.how li::marker { font: 500 22px var(--f-head); color: var(--mustard); }
.how b { color: var(--cream); font-weight: 600; }
.map-embed { display: block; width: 100%; max-width: 520px; aspect-ratio: 4 / 3; border: 0; margin: -14px 0 34px; filter: grayscale(0.3); }
@media (max-width: 860px) { .tickets-grid { grid-template-columns: 1fr; } }

/* paper surfaces: the booking box, cards, the ticket */
.tix-box, .card {
  background: var(--card);
  color: var(--ink);
  border-radius: 3px;
  padding: clamp(20px, 3vw, 32px);
  position: relative;
}
.tix-box::before, .card.edge::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--mustard); border-radius: 3px 3px 0 0; }
.tix-box h3, .card h3 { font: 500 38px/0.95 var(--f-head); text-transform: uppercase; margin-bottom: 6px; }
.box-sub { color: var(--ink-3); font-size: 16px; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label, .label-plain { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.field label span { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid rgba(0, 39, 60, 0.35);
  border-radius: 2px;
  outline: none;
  font-size: 17px;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(233, 169, 60, 0.45); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.hint { font-size: 14px; color: var(--ink-3); margin: 6px 0 0; }
.night .tix-info .hint, .night .closed-box .hint { color: var(--ink-3); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.ticket-types { display: grid; gap: 8px; }
.ttype { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid rgba(0, 39, 60, 0.25); border-radius: 2px; background: #fff; cursor: pointer; }
.ttype:has(input:checked), .ttype.single { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--mustard); }
.ttype.single { cursor: default; }
.ttype input { accent-color: var(--ink); width: 18px; height: 18px; }
.ttype .t-name { font-weight: 600; }
.ttype .t-note { display: block; font-size: 14px; color: var(--ink-3); }
.ttype .t-price { margin-left: auto; font: 500 30px/1 var(--f-head); }

.stepper { display: inline-flex; align-items: stretch; border: 1.5px solid rgba(0, 39, 60, 0.35); border-radius: 2px; background: #fff; }
.stepper button { width: 50px; min-height: 48px; background: transparent; border: 0; font-size: 22px; cursor: pointer; color: var(--ink); }
.stepper button:hover:not(:disabled) { background: var(--paper); }
.stepper button:disabled { color: rgba(0, 39, 60, 0.3); cursor: not-allowed; }
.stepper output { min-width: 56px; display: grid; place-items: center; font: 500 30px/1 var(--f-head); padding-top: 3px; border-inline: 1.5px solid rgba(0, 39, 60, 0.15); }
.total { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; margin: 6px 0 18px; border-top: 1px dashed rgba(0, 39, 60, 0.35); border-bottom: 1px dashed rgba(0, 39, 60, 0.35); }
.total span { color: var(--ink-2); }
.total strong { font: 500 46px/1 var(--f-head); }
.err { background: #f6e1da; border-left: 4px solid var(--bad); padding: 10px 14px; font-size: 16px; margin: 0 0 16px; color: #5c1d14; }
.note { background: #f4e6c8; border-left: 4px solid var(--mustard); padding: 12px 14px; font-size: 16px; margin: 0 0 18px; color: var(--ink); }
.fine { font-size: 14px; color: var(--ink-3); text-align: center; margin: 14px 0 0; }
.night .fine { color: var(--cream-3); }
.tix-box .fine, .card .fine { color: var(--ink-3); }
.my-booking { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; margin-bottom: 18px; background: #f4e6c8; border-left: 4px solid var(--mustard); font-size: 16px; }
.my-booking a { font-weight: 600; white-space: nowrap; }
.closed-box .big { font: 500 46px/0.95 var(--f-head); text-transform: uppercase; margin-bottom: 12px; }

/* ───────── footer ───────── */
.foot { border-top: 1px solid var(--line); padding: 46px 0 110px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; }
.foot-logo { width: 180px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { font-size: 16px; color: var(--cream-2); }
.foot-small { font-size: 14px; color: var(--cream-3); margin: 0 0 0 auto; }

/* ───────── phone bar ───────── */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(1, 29, 45, 0.96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.25s ease-out;
}
.mobile-cta span { font-size: 16px; color: var(--cream-2); }
.mobile-cta b { color: var(--cream); }
.mobile-cta.show { transform: none; }
@media (max-width: 860px) { .mobile-cta:not([hidden]) { display: flex; } }

/* ───────── ticket page ───────── */
.tpage { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--night); color: var(--cream); }
.tnav { padding: 14px var(--gutter); display: flex; justify-content: center; border-bottom: 1px solid var(--line); }
.tnav img { width: 132px; }
.tmain { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 26px 16px 60px; }
.tmain h1 { font: 500 clamp(46px, 11vw, 60px)/0.9 var(--f-head); text-transform: uppercase; margin-bottom: 10px; }
.tmain .sub { color: var(--cream-2); margin-bottom: 22px; }
.tmain .kicker { font: 600 13px/1.2 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mustard); margin: 0 0 8px; }
.status-pill { display: inline-block; font: 600 13px/1.2 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; padding-left: 10px; border-left: 4px solid currentColor; }
.status-pill.wait { color: var(--mustard); }
.status-pill.ok { color: #8fd19b; }
.status-pill.bad { color: #ff9b8a; }
.amount-big { font: inherit; color: var(--mustard); }
.qr-box { background: #fff; padding: 14px; width: min(280px, 100%); margin: 4px auto 14px; border: 1px solid var(--rule); }
.qr-box svg, .qr-box img { width: 100%; height: auto; display: block; }
.payee { text-align: center; font-size: 16px; color: var(--ink-2); margin-bottom: 16px; }
.payee b { color: var(--ink); }
.payee code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; background: var(--paper); padding: 2px 8px; color: var(--ink); }
.pay-actions { display: grid; gap: 10px; margin-bottom: 14px; }
.card .btn-ghost { color: var(--ink); }
.help { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 12px 0; margin: 0 0 20px; font-size: 16px; color: var(--ink-2); }
.help p { margin: 0; }
.help b { color: var(--ink); }
.divider { border: 0; border-top: 1px dashed rgba(0, 39, 60, 0.35); margin: 22px 0; }
.rows { display: grid; margin: 0 0 22px; }
.rows div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid currentColor; border-bottom-color: rgba(127, 127, 127, 0.25); padding: 9px 0; font-size: 16px; }
.rows dt { opacity: 0.65; }
.rows dd { margin: 0; text-align: right; }
.actions { display: grid; gap: 10px; }
.tmain > .actions .btn-ghost { color: var(--cream); }

/* the confirmed ticket */
.stub { background: var(--card); color: var(--ink); border-radius: 4px; position: relative; margin: 8px 0 22px; }
.stub-top { padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--night-3); border-radius: 4px 4px 0 0; color: var(--cream); }
.stub-top img { width: 140px; }
.stub-top .admit { font: 500 44px/0.8 var(--f-head); text-align: right; color: var(--mustard); }
.stub-top .admit small { display: block; font: 600 12px/1.3 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-3); }
.stub-body { padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.stub-body .who { font: 500 36px/0.9 var(--f-head); text-transform: uppercase; margin-bottom: 8px; }
.stub-body p { margin: 0 0 4px; font-size: 16px; }
.stub-body .qr { width: 118px; background: #fff; padding: 6px; border: 1px solid var(--rule); }
.stub-foot { border-top: 2px dashed rgba(0, 39, 60, 0.35); padding: 12px 20px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.stub-foot .ref { font: 500 38px/0.9 var(--f-head); letter-spacing: 0.02em; }
.stub-foot span { font: 600 12px/1 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.stub::before, .stub::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--night); bottom: 44px; }
.stub::before { left: -11px; }
.stub::after { right: -11px; }
.entered-badge { display: inline-block; background: var(--ok); color: #fff; font-weight: 600; padding: 3px 10px; font-size: 14px; }

/* band tools on the ticket page */
.band-panel { background: #e6efe0; color: var(--ink); padding: 16px; margin-bottom: 22px; border-radius: 3px; border-left: 5px solid var(--ok); }
.band-panel h2 { font: 600 13px/1 var(--f-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ok); margin-bottom: 10px; }
.band-panel .btn { min-height: 46px; }
.band-panel .btn-ghost { color: var(--ink); }
.band-panel a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
