/* The public signup page: the loud side of the brand, the way the posts on
   Instagram look. Blush ground, oxblood type, Shrikhand for the headline,
   Archivo for everything you read or operate.

   The page stays blush in both device themes on purpose: this is the
   brand's face. The calm, theme-aware treatment belongs to the admin area,
   which is what the design guide describes. */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--brand-blush);
  color: var(--brand-oxblood);
  font: var(--text-body);
  -webkit-font-smoothing: antialiased;
}

/* --- poster frame ------------------------------------------------------ */

.poster {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-8);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
}

.logo { display: block; height: 30px; width: auto; }

.handle {
  font: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-oxblood);
  text-decoration: none;
  padding-bottom: 2px;
}

.handle:hover { color: var(--brand-chili); }

.rule {
  height: 2px;
  background: var(--brand-oxblood);
  margin: var(--space-3) 0 0;
}

.hairline { height: 1px; background: rgba(110, 13, 28, 0.35); }

.eyebrow {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: var(--space-3) 0 var(--space-8);
}

.content { flex: 1 0 auto; position: relative; z-index: 1; }

.bottom { margin-top: auto; padding-top: var(--space-8); }

.bottom .hairline { margin-bottom: var(--space-3); }

.colophon {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  font: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.colophon a { color: inherit; text-decoration: none; }
.colophon a:hover { color: var(--brand-chili); }

/* --- the mark ----------------------------------------------------------- */

/* Chili and lanes float as one unit, placed after the headline. That way the
   headline always gets the full width (it breaks where the copy says it
   should, not where the screen forces it), and the text below flows around
   the mark instead of leaving a gap above it. */
.mark {
  float: right;
  position: relative;
  width: min(122px, 27vw);
  margin: var(--space-1) 0 var(--space-3) var(--space-6);
}

.mark .chili {
  display: block;
  width: 74%;
  height: auto;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.mark .lanes {
  position: absolute;
  top: -6%;
  right: 8%;
  width: 118%;
  stroke: var(--brand-rose);
  stroke-width: 4;
  z-index: 0;
}

/* --- display type ------------------------------------------------------ */

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  /* The headline breaks where EVENT_HEADLINE says. It has the full column
     to itself, so it only needs to be small enough for its longest line.
     No max-width: the explicit breaks already decide the shape. */
  font-size: clamp(26px, 9vw, 58px);
  line-height: 1.0;
  letter-spacing: 0;
  margin: 0 0 var(--space-4);
}

.claim {
  font: 700 clamp(18px, 4.6vw, 21px) / 1.3 var(--font-sans);
  color: var(--brand-chili);
  margin: 0 0 var(--space-6);
  max-width: 26ch;
}

/* Paragraphs sit closer to each other than to whatever follows the block. */
.lead { margin: 0 0 var(--space-4); max-width: 42ch; }
.lead:last-of-type { margin-bottom: var(--space-8); }

/* --- facts ------------------------------------------------------------- */

.facts { margin: 0 0 var(--space-8); border-top: 1px solid rgba(110, 13, 28, 0.35); }

.fact {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(110, 13, 28, 0.35);
}

.fact dt {
  flex: 0 0 116px;
  font: var(--text-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.fact dd { margin: 0; font: var(--text-body-strong); }

/* --- spots ------------------------------------------------------------- */

.spots {
  display: block;
  background: var(--brand-oxblood);
  color: var(--brand-blush);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  margin: 0 0 var(--space-8);
}

.spots b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 6vw, 30px);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.spots span {
  font: var(--text-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
}

/* --- form -------------------------------------------------------------- */

.field { margin-bottom: var(--space-4); }

label {
  display: block;
  font: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

input[type="text"], input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 0 var(--space-4);
  font: var(--text-body);
  color: var(--brand-oxblood);
  background: var(--on-action);
  border: 1px solid var(--brand-oxblood);
  border-radius: var(--radius-sm);
}

input::placeholder { color: var(--brand-oxblood); opacity: 0.5; }

input[type="text"]:focus, input[type="email"]:focus {
  outline: 3px solid var(--brand-chili);
  outline-offset: 2px;
}

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

.consent {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
  font: var(--text-small);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: var(--space-6);
  opacity: 0.85;
}

.consent input {
  margin-top: 2px;
  flex: 0 0 auto;
  width: 18px; height: 18px;
  accent-color: var(--brand-oxblood);
}

button {
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  /* The action colour is oxblood. Chili red stays reserved for the chili
     and the heat levels, never for buttons. */
  background: var(--brand-oxblood);
  color: var(--on-action);
  font: var(--text-body-strong);
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
}

button:hover { background: var(--action-hover); }

button:focus-visible {
  outline: 3px solid var(--brand-chili);
  outline-offset: 2px;
}

.alert {
  background: var(--danger-bg);
  color: var(--danger);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font: var(--text-body-strong);
  margin-bottom: var(--space-6);
}

/* --- result ------------------------------------------------------------ */

.note {
  border-left: 3px solid var(--brand-chili);
  padding-left: var(--space-4);
  margin: 0 0 var(--space-8);
  max-width: 44ch;
}

.back {
  display: inline-block;
  font: var(--text-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-oxblood);
  text-decoration: none;
  border-bottom: 2px solid var(--brand-chili);
  padding-bottom: 3px;
}

.details-note {
  font: var(--text-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: calc(-1 * var(--space-6)) 0 var(--space-8);
}

/* On very narrow phones the fixed label column squeezes the value onto two
   lines, so label and value stack instead. */
@media (max-width: 380px) {
  .fact { flex-direction: column; gap: 2px; }
  .fact dt { flex: none; }
}

/* --- legal pages -------------------------------------------------------- */

.legal-h {
  font: var(--text-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: var(--space-8) 0 var(--space-2);
}

.legal-p { margin: 0 0 var(--space-4); max-width: 50ch; }

.legal-p a { color: var(--brand-oxblood); }

.colophon .sep { margin-left: var(--space-4); }

