:root {
  color-scheme: light;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: #242820;
  background: #f6f3ed;
  --ink: #242820;
  --muted: #5f655d;
  --forest: #1d3c31;
  --line: #deded3;
  --paper: #fffefa;
  --gold: #d8b775;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: #23543f; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 3px solid #9d640d; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Iowan Old Style", Georgia, serif; font-weight: 500; line-height: 1.05; }
h1 { font-size: clamp(2.4rem, 5.8vw, 4.1rem); margin-bottom: .45rem; letter-spacing: -.05em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); letter-spacing: -.04em; margin-bottom: .35rem; }
h3 { font-size: 1.08rem; margin-bottom: .6rem; }
p { line-height: 1.55; }
.site-header, .site-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(1.25rem, 6vw, 6rem); }
.site-header { padding-block: .55rem; border-bottom: 1px solid #e0ded3; background: white; }
.site-footer { border-top: 1px solid #e0ded3; color: var(--muted); font-size: .8rem; margin-top: auto; }
.brand img { display: block; width: clamp(130px, 20vw, 185px); height: auto; }
.header-link { font-size: .84rem; font-weight: 650; }
.loading { text-align: center; margin: 3rem; }
.event-layout { max-width: 1230px; margin: clamp(1.2rem, 5vw, 4.4rem) auto; padding: 0 clamp(1rem, 4vw, 2.6rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.event-intro, .order-panel, .panel, .simple-card { border-radius: 17px; overflow: hidden; }
.event-intro { color: #fffaf0; background: #1b362c; position: relative; isolation: isolate; min-height: 550px; }
.event-content { z-index: 1; position: relative; padding: clamp(1.7rem, 4.3vw, 3.7rem); }
.eyebrow { font-size: .74rem; text-transform: uppercase; font-weight: 750; letter-spacing: .14em; color: #42624f; margin-bottom: .8rem; }
.event-heading { display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.event-heading .eyebrow { color: #f0cd89; margin: 0; }
.event-mark { flex: none; width: clamp(2.75rem, 5vw, 3.8rem); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.event-intro h1 { font-size: clamp(3.6rem, 8vw, 7.5rem); line-height: .91; margin: 1.4rem 0 1.2rem; }
.event-intro h1 span { color: var(--gold); }
.event-description { color: #dce7dc; max-width: 28ch; font-size: 1.04rem; }
.event-details { display: flex; flex-wrap: wrap; gap: 1.05rem 2rem; margin: 2.5rem 0 0; border-top: 1px solid #6f8373; padding-top: 1.2rem; }
dt { font-weight: 700; font-size: .71rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .3rem; }
.event-details dt { color: #e0b976; }
dd { margin: 0; font-weight: 650; }
.event-decoration { position: absolute; z-index: 0; bottom: -100px; right: -110px; width: 420px; height: 420px; opacity: .22; pointer-events: none; }
.event-decoration i { position: absolute; inset: 18%; border: 1px solid var(--gold); transform: rotate(45deg); }
.event-decoration i:nth-child(2) { inset: 10%; border-radius: 50%; }
.event-decoration i:nth-child(3) { inset: 1%; border-radius: 50%; }
.order-panel, .panel, .simple-card { background: var(--paper); border: 1px solid var(--line); }
.order-panel { padding: clamp(1.25rem, 3.5vw, 2.6rem); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.15rem; margin-bottom: 1.2rem; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: .91rem; }
.availability { background: #e7eee4; color: #2e533f; border-radius: 999px; padding: .32rem .68rem; font-size: .74rem; font-weight: 750; white-space: nowrap; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.ticket-fields { border: 0; margin: 0; min-inline-size: 0; padding: 0; }
.sales-notice { color: var(--muted); font-size: .9rem; }
.wide { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: .34rem; font-size: .84rem; color: #26322a; font-weight: 700; }
label small, td small { color: var(--muted); font-weight: 500; }
label small { font-size: .74rem; }
input:not([type="checkbox"]), select, textarea { border: 1px solid #c2c9bc; border-radius: 7px; padding: .64rem .7rem; color: var(--ink); background: white; min-width: 0; max-width: 100%; min-height: 42px; }
input[type="checkbox"] { width: 1.1rem; height: 1.1rem; accent-color: var(--forest); }
textarea { resize: vertical; }
.quantity { width: 6.5rem; }
.order-total { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 1.3rem; padding: .9rem 0; }
.order-total strong { font-size: 1.36rem; }
.button { border: 1px solid transparent; border-radius: 8px; display: inline-flex; justify-content: center; align-items: center; gap: .6rem; padding: .64rem .94rem; font-size: .85rem; font-weight: 750; text-decoration: none; text-align: center; min-height: 42px; }
.primary { background: var(--forest); color: white; }
.primary:hover:not(:disabled) { background: #2b5341; }
.secondary { background: var(--paper); color: var(--forest); border-color: #b9c7ba; }
.secondary:hover { background: #ecf2e8; }
.full { width: 100%; justify-content: space-between; }
.fine-print { font-size: .76rem; color: var(--muted); margin: .7rem 0 0; }
.message { margin: .75rem 0 0; color: #8b321d; font-size: .86rem; }
.message:empty { display: none; }
.simple-card { margin: 3.5rem auto; width: min(600px, calc(100% - 2rem)); padding: clamp(1.25rem, 4vw, 2.5rem); }
.login { max-width: 420px; }
.login form { margin-top: 1.15rem; }
.login label + label { margin-top: .75rem; }
.login button, .inline-card button, form[data-form="options"] button, form[data-form="qr-url"] button { margin-top: .9rem; }
.receipt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; background: #f4f4ed; border-radius: 8px; padding: 1rem; }
.back-link { margin-top: 1.15rem; }
.desk { max-width: 1190px; padding: clamp(1rem, 4vw, 2.6rem); margin: 0 auto; }
.desk-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.desk-account { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; font-size: .8rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.stat { background: #e9eee5; border: 1px solid #d8e1d4; border-radius: 10px; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .28rem; color: var(--forest); }
.stat strong { font: 500 2rem/1 Georgia, serif; }
.stat span { font-size: .79rem; }
.tabs { display: flex; overflow: auto; border-bottom: 1px solid #c8d0c3; margin-top: 1.2rem; }
.tabs button { border: 0; border-bottom: 3px solid transparent; color: var(--muted); background: transparent; padding: .7rem .95rem; white-space: nowrap; font-size: .86rem; }
.tabs button[aria-current="page"] { color: var(--forest); border-bottom-color: var(--forest); font-weight: 800; }
.desk-notice { font-size: .84rem; color: #36523d; margin: .65rem 0; min-height: .2rem; }
.panel { padding: clamp(.9rem, 2.6vw, 1.6rem); margin-bottom: .9rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.filter-bar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; }
.filter-bar label:first-child { flex: 1 1 210px; }
.filter-bar label:nth-child(2) { flex: 0 1 190px; }
.filter-bar .message { width: 100%; }
.filter-bar.compact label:first-child { flex: 0 1 160px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: .85rem; }
th, td { padding: .7rem .62rem; border-bottom: 1px solid var(--line); }
thead th { background: #eff2e9; color: #334639; font-size: .72rem; letter-spacing: .045em; white-space: nowrap; }
tfoot { font-weight: 750; }
td small { display: block; margin-top: .25rem; }
.empty { color: var(--muted); padding: 1.1rem .62rem; }
.badge { display: inline-block; background: #eaece6; color: #38453c; border-radius: 999px; font-size: .7rem; font-weight: 720; padding: .27rem .57rem; white-space: nowrap; }
.badge.green { background: #e4f0e2; color: #244d37; }
.badge.warm { background: #f6ebd5; color: #694919; }
.actions, .stepper { display: flex; align-items: center; gap: .65rem; flex-wrap: wrap; }
.stepper { flex-wrap: nowrap; }
.stepper button { background: white; color: var(--forest); border: 1px solid #b9c7ba; border-radius: 7px; width: 38px; height: 38px; font-size: 1.15rem; }
.text-button { border: 0; padding: .4rem 0; background: transparent; color: #27513d; text-decoration: underline; text-underline-offset: .18em; font-size: .83rem; }
.inline-card { border-radius: 8px; border: 1px solid var(--line); background: #f6f7f0; padding: 1rem; margin: 1rem 0; }
.city-form { display: grid; gap: .8rem; margin-bottom: 1.15rem; }
.city-form button { justify-self: start; }
.qr-preview { margin-top: 1rem; border: 1px solid var(--line); border-radius: 10px; text-align: center; padding: 1rem; background: white; }
.qr-preview img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.qr-preview .actions { justify-content: center; }
.qr-address { overflow-wrap: anywhere; font-size: .84rem; }
.activity { margin: 0; padding: 0; list-style: none; }
.activity li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.activity time { color: var(--muted); }
@media (max-width: 730px) {
  .event-layout, .split { grid-template-columns: 1fr; }
  .split { gap: 0; }
  .event-intro { min-height: 0; }
  .event-intro h1 { font-size: clamp(3.35rem, 12vw, 5.7rem); }
  .event-intro h1 br { display: none; }
  .event-details { margin-top: 1.2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .form-grid { grid-template-columns: 1fr; }
  .receipt { grid-template-columns: 1fr; }
  .site-footer { font-size: .7rem; }
}
@media print {
  body { background: white; }
  body * { visibility: hidden; }
  #qr-print, #qr-print * { visibility: visible; }
  #qr-print { position: absolute; top: 0; left: 0; right: 0; border: 0; font-size: 18pt; }
  #qr-print h3 { font-size: 32pt; }
  #qr-print img { width: 3in; height: 3in; }
  #qr-print .no-print, #qr-print .no-print * { display: none; }
}
