@font-face {
  font-family: Archivo Black;
  src: url('/assets/archivo-black.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: IBM Plex Mono;
  src: url('/assets/ibm-plex-mono.woff2') format('woff2');
  font-display: swap;
}

:root {
  --blue: #082b84;
  --paper: #f8f6f0;
  --muted: #dce5ff;
  --rule: #a7b8e4;
  --display: "Archivo Black", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--blue); font-family: var(--mono); }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .14em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }
.sr-only, .skip:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; inset: .5rem auto auto .5rem; z-index: 3; color: var(--blue); background: var(--paper); padding: .75rem; }
.shell { width: min(100% - clamp(2.5rem, 8.33vw, 8rem), 92rem); margin-inline: auto; min-height: 100svh; display: flex; flex-direction: column; }
.site-header { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: inline-flex; align-items: flex-start; gap: .12em; text-decoration: none; font: .9rem Arial, sans-serif; min-height: 2.75rem; align-content: center; align-self: center; padding-block: .8rem; }
.brand img { display: block; width: clamp(6.6rem, 10vw, 9.25rem); height: auto; }
.brand span { line-height: 1; }
.site-header nav { display: flex; gap: clamp(.85rem, 3.45vw, 3.5rem); }
.site-header nav a { min-height: 2.75rem; display: inline-flex; align-items: center; text-transform: uppercase; text-decoration: none; font: 700 clamp(.75rem, 1.32vw, 1.25rem) Arial, sans-serif; }
.site-header nav a:hover { text-decoration: underline; }

.spread { display: grid; grid-template-columns: minmax(0, 57fr) minmax(0, 43fr); margin: clamp(2.5rem, 3.5vw, 4rem) 0 clamp(2.5rem, 3.2vw, 3.5rem); }
.event, .rsvp { min-width: 0; scroll-margin-top: 1rem; }
.event { padding-right: clamp(1.5rem, 3.8vw, 3.7rem); }
.event h1, .rsvp h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.053em; line-height: .96; }
.event h1 { font-size: clamp(3.35rem, 7.17vw, 7.32rem); }
.event h1 span { display: block; font-size: .865em; letter-spacing: -.048em; }
.artwork { display: block; width: min(93%, 50rem); height: auto; margin: clamp(2rem, 3.15vw, 3.25rem) auto .55rem; }
.event-details { text-transform: uppercase; font-size: clamp(1rem, 1.42vw, 1.4rem); line-height: 1.16; }
.event-details p + p { margin-top: 1.15rem; }
.jump-rsvp { display: none; }

.rsvp { border-left: 2px solid var(--paper); padding-left: clamp(1.65rem, 4.1vw, 4rem); }
.rsvp h2 { font-size: clamp(4.5rem, 8.72vw, 8.8rem); margin-left: -.045em; }
.lede { margin-top: .9rem; font-size: clamp(1.05rem, 1.77vw, 1.72rem); text-transform: uppercase; line-height: 1.16; }
#rsvp-form { margin-top: clamp(1.9rem, 3.05vw, 3rem); display: grid; gap: clamp(.8rem, 1.3vw, 1.22rem); }
input, select, .primary, .secondary {
  border: 2px solid var(--paper);
  border-radius: 2px;
  min-height: 3.25rem;
  padding: .75rem 1rem;
}
input, select {
  color: var(--paper);
  background: var(--blue);
  width: 100%;
}
input::placeholder { opacity: 1; color: var(--paper); }
select { appearance: none; cursor: pointer; padding-right: 3rem; }
.staff-controls > div:has(select) { position: relative; }
.staff-controls > div:has(select)::after {
  content: '';
  position: absolute;
  right: 1.35rem;
  bottom: 1.55rem;
  width: .75rem;
  height: .75rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  pointer-events: none;
}
.field input {
  height: clamp(3.5rem, 4.45vw, 4.3rem);
  font-size: clamp(.98rem, 1.5vw, 1.46rem);
  padding-left: clamp(.9rem, 1.4vw, 1.4rem);
}
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: .5em; text-decoration: none; }
.primary {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1rem, 2.08vw, 1.98rem);
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--paper);
}
.primary:hover:not(:disabled) { background: var(--muted); border-color: var(--muted); }
#rsvp-form .primary { min-height: clamp(4.1rem, 5.4vw, 5.2rem); margin-top: clamp(.35rem, 1.15vw, 1.15rem); }
.arrow { font: 1.25em/1 Arial, sans-serif; }
.rsvp-note { text-transform: uppercase; font-size: clamp(.88rem, 1.19vw, 1.13rem); line-height: 1.28; margin-top: clamp(1.45rem, 2.4vw, 2.35rem); max-width: 39ch; }
.notice { margin-top: 2rem; }
.feedback { line-height: 1.4; max-width: 56ch; }
.feedback:not(:empty) { border-left: 2px solid var(--paper); padding-left: .8rem; margin-block: 1rem; }
#demo-ticket { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .5rem; }
#turnstile:empty { display: none; }

.site-footer {
  border-top: 2px solid var(--paper);
  margin-top: auto;
  min-height: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-links, .footer-mark { display: flex; align-items: center; gap: clamp(.85rem, 1.55vw, 1.5rem); font-size: clamp(.75rem, 1.05vw, 1rem); }
.footer-links a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.footer-mark { white-space: nowrap; }
.world { flex: 0 0 auto; display: inline-grid; place-items: center; position: relative; width: 2.15rem; aspect-ratio: 1; border: 1.5px solid currentColor; border-radius: 50%; overflow: hidden; }
.world::before { content: ''; width: 47%; height: 100%; position: absolute; border: 1.5px solid currentColor; border-radius: 50%; }
.world::after { content: ''; width: 100%; height: 49%; position: absolute; border-block: 1.5px solid currentColor; border-radius: 40%; }
.world i { position: absolute; width: 100%; border-top: 1.5px solid currentColor; }

.single, .staff { margin: 2.75rem 0 4rem; width: 100%; }
.single { max-width: 36rem; margin-inline: auto; }
.single h1, .staff h1 { font: clamp(2.1rem, 5.6vw, 4.5rem)/.98 var(--display); letter-spacing: -.065em; margin: 0 0 1.5rem; }
.single > p { line-height: 1.6; margin-bottom: 1.5rem; }
.ticket-paper { padding: clamp(1.25rem, 4vw, 2.25rem); background: var(--paper); color: var(--blue); display: grid; gap: 1.3rem; }
.ticket-paper header p { font-size: .84rem; margin-bottom: .65rem; }
.ticket-paper h2 { font: clamp(1.55rem, 4.8vw, 2.75rem)/.98 var(--display); letter-spacing: -.06em; }
.ticket-paper p { line-height: 1.5; }
.qr-slot { display: grid; justify-items: center; gap: .75rem; padding-block: 1rem; border-block: 1px dashed var(--blue); text-align: center; }
.qr-slot img { width: min(100%, 15.25rem); height: auto; }
.ticket-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; overflow-wrap: anywhere; }
.wallet-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: flex-start; gap: .65rem; }
.wallet-badge { display: inline-flex; min-height: 3.4375rem; }
.wallet-badge img { display: block; max-width: 100%; height: auto; }
.wallet-actions > .secondary { min-height: 3.4375rem; }
.wallet-demo summary { min-height: 3.4375rem; cursor: pointer; }
.wallet-demo summary::-webkit-details-marker { display: none; }
.wallet-demo p { max-width: 29ch; margin-top: .55rem; font-size: .88rem; line-height: 1.5; }
.secondary { min-height: 2.75rem; color: var(--paper); background: transparent; font-size: .9rem; }
.secondary:hover { color: var(--blue); background: var(--paper); }

#login-form { max-width: 28rem; display: grid; gap: .65rem; }
#login-form .primary { font-size: 1.2rem; margin-top: .45rem; }
.staff-heading { display: flex; align-items: flex-start; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.staff-controls { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 1rem; }
.staff-controls label, .scan-area label { display: block; margin-bottom: .45rem; font-size: .88rem; }
.staff-controls .secondary, .scan-area .secondary { min-height: 3.25rem; }
.staff-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 1.75rem; border-block: 1px solid var(--rule); }
.staff-stats > div { display: grid; gap: .45rem; padding: 1rem .75rem 1rem 0; }
.staff-stats strong { font: 2.1rem/1 var(--display); }
.staff-stats span { font-size: .86rem; }
#scan-panel { margin-bottom: 1.5rem; border-bottom: 1px solid var(--rule); }
#scan-panel summary { cursor: pointer; min-height: 2.75rem; }
.scan-area { display: grid; justify-items: start; gap: 1rem; margin-bottom: 1rem; }
.scan-area video { max-width: min(100%, 26rem); }
#scan-form { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; width: 100%; }
#scan-form label { margin: 0; }
#scan-form input { width: min(100%, 23rem); }
.table-wrap { overflow-x: auto; padding-bottom: .5rem; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: .8rem; text-align: left; border-bottom: 1px solid var(--rule); }
th { color: var(--muted); }
td:nth-child(3) { white-space: nowrap; }

@media (max-width: 920px) and (min-width: 701px) {
  .event { padding-right: 1.5rem; }
  .rsvp { padding-left: 1.65rem; }
  .event h1 { font-size: 7.15vw; }
  .rsvp h2 { font-size: 8.8vw; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 2.5rem); }
  .site-header { min-height: 4.35rem; }
  .spread { display: block; margin-top: 1.65rem; }
  .event { padding: 0 0 1.85rem; }
  .event h1 { font-size: clamp(2.1rem, 10.8vw, 4.6rem); letter-spacing: -.052em; }
  .artwork { width: min(98%, 32rem); margin: 1.65rem auto .7rem; }
  .event-details { display: flex; flex-wrap: wrap; gap: .75rem 1.3rem; font-size: clamp(.82rem, 3.5vw, 1.1rem); }
  .event-details p + p { margin: 0; }
  .jump-rsvp { display: inline-flex; align-items: center; gap: .45rem; margin-top: .75rem; min-height: 2.75rem; font-size: .9rem; }
  .rsvp { border-left: 0; border-top: 2px solid var(--paper); padding: 1.65rem 0 0; }
  .rsvp h2 { font-size: clamp(4.3rem, 16vw, 6.2rem); margin-left: -.035em; }
  .lede { margin-top: .55rem; }
  .lede br { display: none; }
  #rsvp-form { margin-top: 1.5rem; }
  .field input { font-size: 1rem; }
  .site-footer { flex-wrap: wrap; gap: .2rem .75rem; padding-block: .55rem; min-height: 5rem; }
  .footer-mark { font-size: .68rem; min-height: 2.75rem; gap: .55rem; }
  .world { width: 1.5rem; }
  .staff-controls { grid-template-columns: 1fr; }
  .staff-controls .secondary { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
