:root {
  --cream: #f4e9d0;
  --paper: #fbf3e3;
  --maroon: #7a2323;
  --maroon-dark: #5e1a1a;
  --rust: #c1602b;
  --gold: #d9a125;
  --ink: #2e1d12;

  --font-display: 'Bevan', 'Alfa Slab One', serif;
  --font-body: 'Vollkorn', Georgia, serif;

  --content-width: 46rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  background-image: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(217, 161, 37, 0.16), transparent 70%);
  font-family: var(--font-body);
  color: var(--ink);
  margin: 0;
  line-height: 1.6;
}

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

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

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

/* ---------- Hero ---------- */

.hero {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1;
  margin: 0 0 1.75rem;
  letter-spacing: 0.01em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Ribbon banner — echoes the printed flyer's "1st Weekend in October" banner device */
.ribbon {
  display: inline-block;
  position: relative;
  margin: 0 0 1.5rem;
  padding: 0.65rem 2.5rem;
  background: var(--maroon);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  letter-spacing: 0.02em;
  box-shadow: 0 3px 0 var(--maroon-dark);
}

.ribbon::before,
.ribbon::after {
  content: '';
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-top: 1.15rem solid var(--maroon-dark);
  border-bottom: 1.15rem solid var(--maroon-dark);
}

.ribbon::before {
  left: -1.15rem;
  border-left: 1.15rem solid transparent;
}

.ribbon::after {
  right: -1.15rem;
  border-right: 1.15rem solid transparent;
}

.hero .location {
  margin: 0;
  font-size: 1.15rem;
  color: var(--maroon-dark);
  font-style: italic;
}

/* ---------- Highlights ---------- */

.highlights {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.highlights ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 2rem;
}

.highlights li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 1.1rem;
}

.highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.15rem;
  background: var(--rust);
}

@media (max-width: 32rem) {
  .highlights ul {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA band ---------- */

.cta {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(122, 35, 35, 0.2);
}

.cta p {
  margin: 0 0 1.25rem;
  color: var(--maroon-dark);
}

.button {
  display: inline-block;
  background: var(--maroon);
  color: var(--paper);
  padding: 0.9rem 2rem;
  text-decoration: none;
  border-radius: 3px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 0 var(--maroon-dark);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--maroon-dark);
}

.button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--maroon-dark);
}

/* ---------- Footer ---------- */

footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
  border-top: 1px solid rgba(122, 35, 35, 0.2);
  text-align: center;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--maroon-dark);
}

/* ---------- Page shell (vendors / admin) ---------- */

.page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.page-header p {
  margin: 0;
  color: var(--maroon-dark);
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--maroon-dark);
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------- Step indicator ---------- */

.steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 8rem;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: 60%;
  width: 80%;
  height: 2px;
  background: rgba(122, 35, 35, 0.2);
}

.step-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.95rem;
  background: var(--paper);
  border: 2px solid rgba(122, 35, 35, 0.3);
  color: var(--maroon-dark);
  z-index: 1;
}

.step-label {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--maroon-dark);
  opacity: 0.7;
}

.step-active .step-marker {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--paper);
}

.step-active .step-label {
  opacity: 1;
  font-weight: 600;
}

.step-complete .step-marker {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--paper);
}

@media (max-width: 30rem) {
  .step {
    width: auto;
    flex: 1;
  }
  .step-label {
    display: none;
  }
}

/* ---------- Card ---------- */

.card {
  background: var(--paper);
  border: 1px solid rgba(122, 35, 35, 0.15);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(46, 29, 18, 0.06);
}

@media (max-width: 30rem) {
  .card {
    padding: 1.25rem;
  }
}

.card h2 {
  font-family: var(--font-display);
  color: var(--maroon);
  font-size: 1.4rem;
  margin: 0 0 1.25rem;
}

/* ---------- Terms checklist ---------- */

.clause-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.clause-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(122, 35, 35, 0.15);
  border-radius: 6px;
  background: var(--cream);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.clause-row:has(input:checked) {
  background: rgba(217, 161, 37, 0.16);
  border-color: var(--gold);
}

.clause-row input[type='checkbox'] {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--maroon);
  flex-shrink: 0;
}

.clause-text {
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ---------- Forms ---------- */

.field {
  display: block;
  margin-bottom: 1.1rem;
}

.field span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--maroon-dark);
  margin-bottom: 0.35rem;
}

.field input,
.field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(122, 35, 35, 0.3);
  border-radius: 5px;
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 1px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 1.25rem;
}

@media (max-width: 30rem) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

fieldset {
  border: 1px solid rgba(122, 35, 35, 0.2);
  border-radius: 6px;
  padding: 1rem 1.25rem 1.25rem;
  margin: 0 0 1.25rem;
}

legend {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--maroon-dark);
  padding: 0 0.4rem;
}

.merchandise-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.merchandise-row .field {
  flex: 1;
  margin-bottom: 0;
}

.button-secondary {
  display: inline-block;
  background: transparent;
  color: var(--maroon-dark);
  border: 1px solid rgba(122, 35, 35, 0.35);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}

.button-secondary:hover {
  background: rgba(122, 35, 35, 0.06);
}

button.button {
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

button.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 3px 0 var(--maroon-dark);
}

/* ---------- Price callout ---------- */

.price-callout {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: rgba(217, 161, 37, 0.16);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.price-callout .amount {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--maroon);
}

.price-callout .note {
  font-size: 0.85rem;
  color: var(--maroon-dark);
}

/* ---------- Alerts ---------- */

.alert {
  background: rgba(122, 35, 35, 0.08);
  border: 1px solid var(--maroon);
  color: var(--maroon-dark);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

/* ---------- Notice card (closed / thank-you messages) ---------- */

.notice {
  text-align: center;
  padding: 3rem 2rem;
}

.notice p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Payment step ---------- */

.payment-element-wrap {
  background: var(--cream);
  border: 1px solid rgba(122, 35, 35, 0.2);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.signature-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--maroon-dark);
  margin: -0.6rem 0 1.25rem;
}

/* ---------- Admin ---------- */

.admin-status {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.admin-status strong {
  color: var(--maroon);
}
