:root {
  color-scheme: light;
  --wine: #571c2e;
  --wine-hover: #743047;
  --ink: #252322;
  --muted: #686260;
  --paper: #faf8f4;
  --line: #ded8d1;
  --gold: #b8844f;
  font: 16px/1.6 Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: var(--wine); text-underline-offset: .2em; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .site-footer, .row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.header-inner { padding-block: 16px; }
.brand { font: 1.55rem/1 Georgia, serif; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { color: var(--wine); }
.brand small { display: block; font: .58rem Arial, sans-serif; letter-spacing: .2em; margin-top: 7px; }
.header-link { padding: 8px 0; }
h1, h2, h3, p { margin: 0 0 .85rem; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.13; overflow-wrap: break-word; }
h1 { font-size: clamp(2.15rem, 5.4vw, 4.6rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); letter-spacing: -.03em; }
h3 { font-size: 1.3rem; }
em { color: var(--wine); }
.eyebrow { color: var(--wine); font-size: .73rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 56ch; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(24px, 6vw, 72px); align-items: center; padding-block: clamp(32px, 8vw, 90px) 28px; }
.intro-image { width: 100%; height: auto; max-height: 535px; aspect-ratio: 1 / 1.08; object-fit: cover; }
.landing-details { margin-top: 32px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.info-grid article, .panel { border: 1px solid var(--line); background: #fffefa; padding: clamp(16px, 3vw, 30px); min-width: 0; }
.info-grid article p:last-child { margin-bottom: 0; }
.page-heading { margin-block: clamp(28px, 7vw, 64px) 18px; }
.compact { max-width: 480px; }
.notice { color: var(--muted); min-height: 1.4em; overflow-wrap: anywhere; }
.notice.error { color: #a02726; }
.actions, .form-checks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--wine); background: var(--wine); color: #fff; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; }
.btn:hover { background: var(--wine-hover); color: #fff; }
.btn.secondary, .btn.danger { background: transparent; color: var(--wine); }
.btn.secondary:hover, .btn.danger:hover { background: #f4e9e9; }
.btn:disabled { cursor: default; opacity: .5; }
label { display: block; font-weight: 600; }
input:not([type=checkbox]), select { display: block; width: 100%; min-width: 0; min-height: 44px; border: 1px solid #bcb0a6; background: #fff; padding: 7px 10px; margin-block: 4px 12px; border-radius: 0; color: var(--ink); }
input[type=checkbox] { accent-color: var(--wine); width: 19px; height: 19px; margin: 0; flex: 0 0 auto; }
.consent, .form-checks label { display: flex; align-items: center; gap: 9px; min-height: 44px; }
.consent { margin-block: 8px 12px; font-weight: 400; }
.queue, .event-list ul { list-style: none; padding: 0; margin: 0; }
.queue li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 8px; overflow-wrap: anywhere; }
.queue progress { width: 100%; accent-color: var(--wine); }
.queue small { display: block; }
.section-top { margin-block: 32px 16px; }
.section-top h2 { margin: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.photo-grid article { border: 1px solid var(--line); background: #fffefa; min-width: 0; }
.photo-grid article > :not(.photo-thumb) { margin: 8px; }
.photo-thumb { display: block; width: 100%; padding: 0; border: 0; background: #ece5df; }
.photo-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid .btn { font-size: .86rem; padding-inline: 9px; }
.admin-actions { margin-bottom: 14px; }
.admin-grid { display: grid; grid-template-columns: minmax(190px, .35fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.event-list li + li { margin-top: 6px; }
.event-choice { width: 100%; text-align: left; justify-content: flex-start; overflow-wrap: anywhere; }
.event-choice[aria-current=true] { color: #fff; background: var(--wine); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.card-name-help { grid-column: 1 / -1; font-size: .875rem; }
.form-checks { margin-block: 8px 14px; }
#event-tools { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.qr-preview { margin-top: 14px; width: 170px; }
dialog { width: min(94vw, 950px); max-height: 94dvh; border: 1px solid var(--line); padding: 10px; background: #fffefa; }
dialog::backdrop { background: #181316dd; }
dialog form { display: flex; justify-content: flex-end; margin-bottom: 10px; }
dialog img { margin: auto; max-height: 78dvh; object-fit: contain; }
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(32px, 8vw, 75px); padding-block: 18px; color: var(--muted); font-size: .84rem; }
.site-footer nav { display: flex; gap: 14px; }
@media (max-width: 690px) {
  .wrap { width: calc(100% - 28px); }
  .intro-grid, .info-grid, .admin-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .intro-image { max-height: 340px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sr-only:focus-visible { width: auto; height: auto; clip-path: none; }
