/* Azucar Tequila — mobile tour sign-in.
   Colors and type from the Jastor brand book: Barnule for display, Europa (Outfit stand-in) for body,
   Wilder for the small hand-drawn accent line. */

@font-face { font-family: 'Barnule'; src: url('/fonts/Barnule.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Wilder'; src: url('/fonts/Wilder.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  /* primary palette */
  --cream: #fff9f1;
  --red: #d31c19;
  --pink: #ec76ab;
  --lime: #0f9640;
  --orange: #f28c14;
  --purple: #8a1e81;
  /* accents */
  --deep-blue: #005692;
  --soft-blue: #36a9e1;
  --light-water: #cce9f1;
  --yellow: #fee10b;
  /* navy used for headings and hard shadows throughout the brand book */
  --ink: #12263f;
  --muted: #4d5a6b;

  --display: 'Barnule', 'Outfit', 'Arial Black', sans-serif;
  --body: 'Outfit', 'Europa', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --accent: 'Wilder', var(--body);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.45;
}
[hidden] { display: none !important; }

/* Sunburst rays, lifted from the can and box artwork. */
.sunburst { position: relative; isolation: isolate; }
.sunburst::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 22%, rgba(0, 86, 146, 0.07) 0deg 1.2deg, transparent 1.2deg 4.8deg);
}

.wrap { max-width: 480px; margin: 0 auto; padding: 28px 20px 40px; }

.brand { text-align: center; margin-bottom: 22px; }
.logo { display: block; width: min(250px, 62vw); height: auto; margin: 0 auto 8px; }
.tagline {
  font-family: var(--accent);
  font-size: 21px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep-blue);
  margin: 0;
}

/* Cards: bold navy outline + hard offset shadow, like the brand's shadowed headlines. */
.card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 28px 22px 24px;
}
.card > *:not(.corner) { position: relative; }

.corner { position: absolute; width: 76px; height: auto; pointer-events: none; opacity: 0.26; }
.corner.tl { top: -4px; left: -4px; }
.corner.tr { top: -4px; right: -4px; transform: scaleX(-1); }
.corner.bl { bottom: -4px; left: -4px; transform: scaleY(-1); }
.corner.br { bottom: -4px; right: -4px; transform: scale(-1); }

.h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 8.5vw, 40px);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.h1 em { font-style: normal; color: var(--red); }
.lede { margin: 0 0 20px; color: var(--muted); }

/* Form */
form { position: relative; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { margin-bottom: 16px; }
.lbl {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-blue);
  margin-bottom: 6px;
}
.input {
  display: block;
  width: 100%;
  min-height: 54px;
  font: inherit;
  font-size: 17px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.input:focus { outline: 3px solid var(--soft-blue); outline-offset: 2px; }
input[type='date'].input { min-width: 0; text-align: left; }
input[type='date'].input::-webkit-date-and-time-value { text-align: left; }
.error { display: none; margin: 6px 0 0; font-size: 14px; font-weight: 600; color: var(--red); }
.field.invalid .error { display: block; }
.field.invalid .input { border-color: var(--red); background: #fff3f2; }
.form-error { text-align: center; margin: 0 0 12px; }
.form-error:not(:empty) { display: block; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--cream);
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.check input { width: 26px; height: 26px; flex: none; margin: 0; accent-color: var(--lime); }
.check span { font-size: 15px; line-height: 1.35; padding-top: 2px; }
.check:has(input:checked) { background: var(--light-water); }

.btn {
  display: block;
  width: 100%;
  margin-top: 18px;
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  background: var(--red);
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 15px 16px;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn:disabled { opacity: 0.65; cursor: default; }
.btn.secondary { background: #fff; color: var(--ink); font-size: 18px; }

.alt { text-align: center; margin: 18px 0 0; font-size: 15px; }
.alt a { color: var(--deep-blue); font-weight: 700; }

.foot { text-align: center; margin-top: 28px; font-size: 14px; color: var(--muted); }
.foot p { margin: 0 0 6px; }
.foot .fine { font-size: 12px; color: #6b7686; }

/* Pass */
.loading { text-align: center; padding: 40px 0; color: var(--muted); }
.pass {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 28px;
  box-shadow: 6px 6px 0 var(--ink);
  padding: 26px 20px 22px;
  text-align: center;
  color: var(--cream);
}
.pass.ok { background: var(--lime); }
.pass.no { background: var(--red); }
.pass > *:not(.corner) { position: relative; }
.pass .corner { opacity: 0.35; width: 96px; }
.skull { display: block; width: 78px; height: auto; margin: 0 auto 6px; }
.status {
  font-family: var(--display);
  font-size: clamp(38px, 12vw, 54px);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--ink);
  margin: 4px 0 16px;
}
.name {
  font-family: var(--display);
  font-size: clamp(22px, 7vw, 30px);
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 2px 2px 0 var(--ink);
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.meta { font-size: 16px; font-weight: 500; }
.rule { border: 0; border-top: 2px dashed rgba(255, 249, 241, 0.55); margin: 18px 0 14px; }
.clock { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.date { font-size: 15px; font-weight: 500; margin: 2px 0 10px; }
.code { font-family: var(--display); font-size: 20px; letter-spacing: 0.12em; }
.note { text-align: center; margin: 20px 0 0; font-size: 16px; font-weight: 500; }
.opt { text-align: center; margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--deep-blue); }
#after .btn { margin-top: 20px; }

@media (min-width: 600px) {
  .wrap { padding-top: 40px; }
  .corner { width: 90px; }
}
