:root {
  font-family: Montserrat, Arial, sans-serif;
  color: #2b2529;
  background: #faf7f5;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
}

/* The color wash belongs to the photograph, not to the form or its text. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(250, 247, 245, .75), rgba(250, 247, 245, .75)),
    url("background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23grain)' opacity='.2'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(100%, 820px);
  margin-inline: auto;
  padding: 28px clamp(18px, 4vw, 32px) max(48px, env(safe-area-inset-bottom));
}

header { padding: clamp(20px, 4vw, 42px) 0 20px; }
.eyebrow {
  color: #8c335b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: none;
}
h1, h2, h3 { color: #742c4d; }
h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.3rem, 6.4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.08;
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(1.32rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
}
h3 { font-weight: 700; }
p {
  margin: 10px 0;
  color: #534b50;
  font-size: clamp(.9rem, 2vw, 1rem);
  font-weight: 500;
  line-height: 1.6;
}
header > p { max-width: 52ch; font-weight: 600; }
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 22px;
  font-size: .9rem;
  font-weight: 700;
}
a { color: #8c335b; }
a:hover { color: #682846; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #b66c8f;
  outline-offset: 3px;
}

.panel {
  margin: 18px 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #eee3e8;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(68, 33, 49, .12);
}
.availability {
  display: inline-block;
  margin: 8px 0 2px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f8eef2;
  color: #742c4d;
  font-size: .87rem;
  font-weight: 700;
}
label {
  display: block;
  margin: 20px 0;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.45;
}
input, select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #d9ccd2;
  border-radius: 10px;
  background: #fff;
  color: #2b2529;
  font: 500 16px/1.3 Montserrat, Arial, sans-serif;
}
input::placeholder { color: #887e83; opacity: 1; }
button {
  min-height: 48px;
  padding: 12px 19px;
  border: 0;
  border-radius: 10px;
  background: #813455;
  color: #fff;
  font: 700 .91rem/1.3 Montserrat, Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
button:hover:not(:disabled) { background: #6e2849; }
button:disabled { cursor: default; opacity: .5; }
.secondary { background: #6b6267; }
.message { font-weight: 700; }
.confirmation-message {
  margin: 12px 0 26px;
  color: #742c4d;
  font-weight: 700;
}
.pass-date { margin: 4px 0 12px; font-weight: 600; }
.pass-name {
  display: block;
  margin: 14px 0 8px;
  color: #742c4d;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.pass-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.save-help { font-size: .83rem; }

.ticket {
  margin: 16px 0;
  padding: 22px;
  border: 1px solid #e8d7df;
  border-radius: 14px;
  text-align: center;
  break-inside: avoid;
}
.ticket img { display: block; width: 230px; max-width: 100%; margin: 12px auto; }
.ticket h3 { margin: 0; font-size: clamp(1.2rem, 3vw, 1.5rem); }
.ticket button { margin-top: 10px; }
.ticket a { font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stats > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid #eee3e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(68, 33, 49, .08);
}
.stats strong { display: block; color: #742c4d; font-size: clamp(1.55rem, 4vw, 2rem); font-weight: 800; }
.stats small { color: #534b50; font-size: .76rem; font-weight: 600; }
.guest {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-size: .88rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.guest button { flex: none; white-space: nowrap; }
#reader { width: 100%; max-width: 500px; margin: auto; overflow: hidden; }
#reader button { max-width: 100%; }
footer { margin-top: 22px; color: #534b50; font-size: .78rem; font-weight: 600; line-height: 1.5; }

@media (max-width: 600px) {
  .shell { padding-top: 12px; }
  header { padding-top: 22px; }
  .panel { margin: 16px 0; border-radius: 16px; }
  .stats { gap: 7px; }
  .stats > div { padding: 12px 8px; }
  .stats small { font-size: .68rem; }
  .guest { align-items: flex-start; }
  .guest button { min-height: 44px; padding-inline: 10px; }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats strong { font-size: 1.45rem; }
  .stats small { font-size: .64rem; }
  .guest { flex-wrap: wrap; }
}
@media print {
  body::before, body::after, header nav, button, footer, #registration { display: none !important; }
  .shell { width: 100%; padding: 0; }
  .panel { box-shadow: none; border: 0; }
  .ticket { display: inline-block; width: 47%; margin: 1%; }
}
