/* ==========================================================================
   styles.css — the shop around the ticket.
   ========================================================================== */

:root {
  --green: #14472e;
  --green-deep: #0d3020;
  --gold: #b8912f;
  --red: #b5252c;
  --cream: #f6f3ea;
  --paper: #fffdf8;
  --ink: #1d2a22;
  --muted: #5d6b62;
  --line: #ddd6c6;
  --shadow: 0 1px 2px rgba(13, 48, 32, .05), 0 8px 24px rgba(13, 48, 32, .07);
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, legend {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
}

a { color: var(--green); }

/* ---------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem clamp(1rem, 4vw, 3rem);
  background: rgba(246, 243, 234, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: .01em;
  color: var(--green);
  text-decoration: none;
}
.brand__mark {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 50%, var(--red) 50%);
  box-shadow: 0 0 0 2px var(--gold);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.6rem);
}
.site-nav a {
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .92rem;
}
.site-nav a:not(.btn):hover { color: var(--red); }

/* ---------------------------------------------------------------- buttons -- */
.btn {
  display: inline-block;
  padding: .62em 1.5em;
  font: inherit;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  background: var(--green);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn--sm { padding: .42em 1.1em; font-size: .9rem; }
.btn--lg { padding: .78em 2.2em; font-size: 1.12rem; }

/* ------------------------------------------------------------------- hero -- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem);
  max-width: 1400px;
  margin-inline: auto;
}
.eyebrow {
  margin: 0 0 .8rem;
  font-size: .95rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
/* Scoped to .hero__copy, not .hero — the ticket artwork lives in .hero too and
   must never inherit page typography. */
.hero__copy h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  color: var(--green);
}
.hero__copy h1 em {
  font-style: normal;
  color: var(--red);
}
.lede {
  max-width: 46ch;
  margin: 1.2rem 0 0;
  font-size: 1.16rem;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2rem;
}
.hero__price {
  font-size: 1.02rem;
  color: var(--muted);
}
.hero__price strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.4rem;
  color: var(--green);
}
.hero__ticket { margin: 0; }
.hero__ticket figcaption {
  margin-top: 1rem;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ------------------------------------------------------------------- how -- */
.how {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 3rem);
  background: var(--green);
  color: var(--cream);
}
.how h2 {
  max-width: 1200px;
  margin: 0 auto 2.4rem;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  text-align: center;
  color: var(--cream);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.4rem, 3vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.steps h3 { margin: .5rem 0 .4rem; font-size: 1.35rem; color: var(--cream); }
.steps p { margin: 0; color: rgba(246, 243, 234, .78); }
.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
}

/* ----------------------------------------------------------------- order -- */
.order {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
  max-width: 1400px;
  margin-inline: auto;
}
.order__intro { text-align: center; margin-bottom: 2.6rem; }
.order__intro h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: var(--green); }
.order__intro p { color: var(--muted); margin: .6rem 0 0; }

.order__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(1.6rem, 4vw, 3.5rem);
}

/* --- form --- */
.order__form fieldset {
  margin: 0 0 1.4rem;
  padding: 1.4rem 1.5rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.order__form legend {
  padding: 0 .6rem;
  font-size: 1.25rem;
  color: var(--green);
}
.order__form legend .opt {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 400;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.order__form label {
  display: block;
  margin-bottom: 1rem;
  font-size: .92rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.order__form label:last-child { margin-bottom: 0; }
.order__form input,
.order__form select,
.order__form textarea {
  display: block;
  width: 100%;
  margin-top: .28rem;
  padding: .5rem .7rem;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.06rem;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.order__form input:focus,
.order__form select:focus,
.order__form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}
.order__form input[type="file"] { padding: .42rem; font-size: .95rem; }
.order__form input:invalid:not(:placeholder-shown):not([type="checkbox"]) { border-color: var(--red); }
.order__form small {
  display: block;
  margin-top: .25rem;
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--muted);
}

.row { display: grid; gap: 0 1rem; }
.row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.check {
  display: flex !important;
  align-items: flex-start;
  gap: .6rem;
  text-transform: none !important;
  letter-spacing: .01em !important;
  font-size: .96rem !important;
}
.check input {
  width: auto !important;
  margin: .25rem 0 0 !important;
  flex: 0 0 auto;
}

/* Statement of the details that are the same on every ticket. */
.fixed-note {
  margin: 0 0 1.4rem;
  padding: .8rem 1.1rem;
  font-size: .98rem;
  line-height: 1.4;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}
.fixed-note strong { color: var(--green); }

.terms-link {
  display: block;
  margin-top: .5rem;
  font-size: .88rem;
  line-height: 1.4;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--muted);
}

.submit-bar { text-align: center; }
.submit-note {
  margin: .8rem 0 0;
  font-size: .95rem;
  color: var(--muted);
}
.form-msg {
  margin: .9rem 0 0;
  min-height: 1.4em;
  font-size: 1rem;
  letter-spacing: .03em;
}
.form-msg[data-state="error"] { color: var(--red); }
.form-msg[data-state="ok"] { color: var(--green); }
.form-msg[data-state="busy"] { color: var(--muted); }

/* --- sticky preview --- */
.order__preview { position: sticky; top: 5.2rem; }
.preview-card {
  padding: 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.preview-card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  letter-spacing: .02em;
  color: var(--green);
}
.preview-note {
  margin: 1rem 0 0;
  font-size: .92rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------- footer -- */
.site-footer {
  padding: 2.4rem clamp(1rem, 4vw, 3rem) 3rem;
  text-align: center;
  color: rgba(246, 243, 234, .8);
  background: var(--green-deep);
}
.site-footer p { margin: 0 0 .6rem; }
.site-footer strong { color: var(--cream); }
.site-footer .small {
  max-width: 62ch;
  margin-inline: auto;
  font-size: .88rem;
  line-height: 1.45;
  opacity: .72;
}

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero,
  .order__layout { grid-template-columns: minmax(0, 1fr); }
  .hero__ticket { order: -1; }
  .order__preview { position: static; }
  /* column-reverse puts the preview above the form on narrow screens.
     align-items must go back to stretch or the items collapse to fit-content. */
  .order__layout {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
  }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .site-nav a:not(.btn) { display: none; }
  .row--3, .row--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
