/* Seating Plan: a printed plan and a stall ticket. Square corners, hairlines, no shadows. */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}
h1, h2, p, dl, dd, ul { margin: 0; padding: 0; }
[hidden] { display: none !important; }
::selection { background: var(--c-peach); color: #1A1A1A; }
:focus-visible { outline: 3px solid var(--c-peach); outline-offset: 2px; }

button, input {
  font: inherit;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: 0;
  min-height: 48px;
}
button { padding: 0 18px; cursor: pointer; }
input { padding: 0 10px; }

/* The plan */

.plan { padding: 22px 40px 28px; }
.masthead { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.wordmark { display: block; height: 28px; width: auto; }
.masthead h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1.1;
  padding-bottom: 6px;
  border-bottom: 6px solid var(--c-brick);
}
#loading { margin-top: 24px; font-size: 1.25rem; }

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-top: 18px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.fields > div { padding: 8px 14px 9px 0; }
.fields > div + div { padding-left: 14px; border-left: 1px solid var(--ink); }
.fields dt { font-size: 14px; color: var(--ink-soft); }
.fields dd { font-size: 1.15rem; font-weight: var(--fw-bold); }

.address { margin-top: 16px; }
.address h2, .stalls, .host h2 { font-size: 14px; font-weight: var(--fw-medium); color: var(--ink-soft); }
.addr {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  user-select: all;
}

.stage {
  margin-top: 20px;
  padding: 7px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.stalls { margin-top: 14px; font-family: var(--font-body); }

.seats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  margin-top: 6px;
  padding: 1px 0 0 1px;
}
.seats li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  align-content: start;
  column-gap: 12px;
  margin: -1px 0 0 -1px;
  padding: 6px 12px 9px;
  border: 1px solid var(--ink);
}
.seats .n { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 2rem; line-height: 1.1; }
.seats .st { font-weight: var(--fw-bold); font-size: 15px; }
.seats .hz, .seats .cap { grid-column: 1 / -1; font-size: 14px; }
.seats .cap { color: var(--ink-soft); }
.seats li[data-state="taken"] { background: var(--c-mustard); color: #1A1A1A; position: relative; }
.seats li[data-state="taken"] .cap { color: #1A1A1A; }
.seats li[data-state="away"] { border-style: dashed; position: relative; z-index: 1; background: var(--bg); }

.legend { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.legend p + p { margin-top: 2px; }

.host { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 18px; }
.host h2 { flex-basis: 100%; }
.keys { display: flex; flex-wrap: wrap; gap: 6px; }
.key { display: flex; flex-direction: column; justify-content: center; padding: 2px 10px; line-height: 1.1; min-width: 72px; }
.key .kn { font-weight: var(--fw-bold); }
.key .kh { font-size: 14px; }
.key[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.hz-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hz-form label { font-size: 14px; color: var(--ink-soft); }
.hz-form input { width: 9.5rem; }
#hz-msg { font-size: 14px; }

/* the wordmark is plum ink: on the dark ground it sits on a cream label */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wordmark { background: var(--c-cream); padding: 3px 6px; height: 34px; }
}
[data-theme="dark"] .wordmark { background: var(--c-cream); padding: 3px 6px; height: 34px; }

@media (max-width: 640px) {
  .plan { padding: 16px 16px 24px; }
  .masthead h1 { font-size: 1.75rem; }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .fields > div:nth-child(n + 3) { border-top: 1px solid var(--ink); }
  .seats { grid-template-columns: repeat(2, 1fr); }
  .seats li { padding: 6px 8px 9px; }
}

/* The phone */

.phone main { max-width: 28rem; margin: 0 auto; padding: 24px 16px 32px; }
.ticket {
  background: var(--c-mustard);
  color: #1A1A1A;
  border: 2px solid var(--ink);
  padding: 16px 18px 0;
}
.t-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; }
.t-mark { display: block; height: 24px; width: auto; }
.t-seat { margin-top: 18px; font-family: var(--font-display); font-weight: var(--fw-bold); font-size: 3rem; line-height: 1; }
.t-admit { margin-top: 6px; font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; }
.t-hz { margin-top: 16px; font-size: 1.5rem; font-weight: var(--fw-bold); }
.t-cap { font-size: 1rem; }
.t-status { margin-top: 16px; font-size: 1.15rem; font-weight: var(--fw-bold); }
.t-sub { font-size: 1rem; }
.t-stub {
  margin: 20px -18px 0;
  padding: 12px 18px 14px;
  border-top: 2px dashed #1A1A1A;
  font-size: 14px;
}
.take { display: block; width: 100%; min-height: 56px; margin-top: 20px; font-size: 1.25rem; font-weight: var(--fw-bold); background: var(--ink); color: var(--bg); }
.note { margin-top: 12px; font-size: 1rem; }
#leave { display: block; width: 100%; margin-top: 20px; }

/* Spectrum (QA) */

.spectrum { padding: 24px 16px; max-width: 48rem; margin: 0 auto; }
.spectrum h1 { font-family: var(--font-display); font-size: 1.75rem; }
.spectrum p { margin-top: 10px; }
.spectrum pre { margin-top: 16px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.spectrum button { margin-top: 16px; }
