@font-face {
  font-family: Plex;
  src: url('/assets/fonts/ibm-plex-sans-latin-var.woff2') format('woff2');
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: Plex Mono;
  src: url('/assets/fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex Mono;
  src: url('/assets/fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f4f4f1;
  --ink: #14171c;
  --muted: #535d68;
  --line: #c9ccce;
  --slate: #1e3f66;
  --wash: #e6edf5;
  --white: #fff;
  background: var(--paper);
  color: var(--ink);
  font:
    100%/1.55 Plex,
    system-ui,
    sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  width: min(calc(100% - 48px), 1120px);
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}
main {
  flex: 1;
  min-width: 0;
  padding: 0;
}
h1,
h2,
h3,
p,
figure,
ul,
ol {
  margin: 0;
}
h1,
h2,
h3,
.wordmark {
  font-family: Plex, system-ui, sans-serif;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.65rem, 6vw, 5rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.055em;
  max-width: 14ch;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.17;
  letter-spacing: -0.034em;
  font-weight: 500;
}
h3 {
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-size: 1.15rem;
}
p {
  max-width: 62ch;
}
p + p {
  margin-top: 1em;
}
a {
  color: var(--slate);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
button,
.button,
.price-entry {
  font:
    500 0.97rem/1.28 Plex,
    system-ui,
    sans-serif;
  color: var(--ink);
  background: #fff;
  border: 1px solid #aeb4b9;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  text-align: center;
  max-width: 100%;
  white-space: normal;
}
button:hover,
.button:hover {
  border-color: var(--slate);
  background: var(--wash);
}
button:disabled {
  opacity: 0.56;
  cursor: default;
}
.button,
.primary,
.price-entry {
  background: var(--slate);
  border-color: var(--slate);
  color: #fff;
}
.button:hover,
.primary:hover,
.price-entry:hover {
  background: #152f4d;
  color: #fff;
}
:focus-visible {
  outline: 3px solid #305e95;
  outline-offset: 3px;
}
.mast,
footer,
.mast nav,
footer nav,
.actions,
.subhead,
.event-bar,
.solve-bar,
.inline {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
}
.mast {
  min-height: 78px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  letter-spacing: -0.055em;
  font-size: 1.55rem;
  text-decoration: none;
}
#language {
  width: auto;
  max-width: 9rem;
  background: transparent;
  padding: 6px;
  border-color: transparent;
  color: var(--muted);
  font-size: 0.94rem;
}
.price-entry {
  padding-inline: 20px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
footer {
  margin-top: 48px;
  padding: 12px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
footer nav a,
.text-link,
.guide-list a,
.clash-note a,
.reading > a,
.price-card p > a,
.band > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.91fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(40px, 7vw, 84px) 0;
}
.lead {
  font-size: clamp(1.08rem, 1.55vw, 1.27rem);
  color: var(--muted);
  line-height: 1.58;
  margin: 22px 0;
}
.actions {
  margin: 16px 0;
}
.offer {
  font-size: 0.98rem;
  color: var(--slate);
  font-weight: 500;
  margin-top: 20px;
}
.window {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 52ch;
}
.chart-proof {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(16px, 3vw, 30px);
  box-shadow: 0 8px 20px #14171c09;
  max-width: 580px;
}
.chart-proof figcaption,
.specimen strong {
  font-size: 1.05rem;
  color: var(--slate);
  font-weight: 600;
}
.tabletop {
  position: relative;
  isolation: isolate;
  margin: 14px auto;
  min-height: 242px;
  max-width: 430px;
  display: grid;
  grid-template: repeat(5, minmax(38px, auto)) / repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 4px;
}
.tablecloth {
  position: absolute;
  z-index: -1;
  inset: 21% 22%;
  border: 1px solid #b6c9da;
  outline: 1px solid #d9e2e9;
  outline-offset: 5px;
  border-radius: 49%;
  background: #f0f4f8;
  display: grid;
  place-items: center;
  color: var(--slate);
}
.tablecloth b {
  font-size: 1.2rem;
  font-weight: 500;
}
.seat {
  background: #fff;
  border-bottom: 2px solid #a5b7c9;
  max-width: 100%;
  width: max-content;
  justify-self: center;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.18;
  padding: 5px 3px;
  box-shadow: 0 1px 4px #14171c0c;
}
.seat-0 {
  grid-area: 1/2;
}
.seat-1 {
  grid-area: 1/3;
}
.seat-2 {
  grid-area: 2/4;
}
.seat-3 {
  grid-area: 4/4;
}
.seat-4 {
  grid-area: 5/3;
}
.seat-5 {
  grid-area: 5/2;
}
.seat-6 {
  grid-area: 4/1;
}
.seat-7 {
  grid-area: 2/1;
}
.proof {
  border-block: 1px solid var(--line);
  padding: 10px 0;
  display: flex;
  gap: 5px 12px;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--slate);
}
.proof i {
  font-style: normal;
  font-weight: 600;
}
.paper-note {
  padding-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
.band {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}
.steps,
.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 22px 0;
}
.steps {
  padding: 0;
  list-style-position: inside;
}
.steps li::marker {
  color: var(--slate);
  font-family:
    Plex Mono,
    monospace;
}
.clash-note {
  border-left: 3px solid var(--slate);
  padding: 0 16px;
}
.clash-note p {
  font-size: 0.93rem;
  color: var(--muted);
}
.gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.specimen {
  min-width: 0;
}
.specimen > div {
  background: #fff;
  border: 1px solid var(--line);
  height: 160px;
  overflow: hidden;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.specimen small {
  border-top: 1px solid #d8dce0;
  line-height: 1.3;
  padding-top: 4px;
}
.specimen.s3 > div {
  clip-path: polygon(7% 12%, 88% 12%, 100% 90%, 0 90%);
  background: var(--wash);
  text-align: center;
  justify-content: center;
}
.specimen figcaption {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 9px;
}
.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
  margin-top: 14px;
}
.reading,
.price-card {
  max-width: 760px;
  padding: clamp(24px, 5vw, 56px) 0;
  margin: 20px auto;
}
.reading h1,
.price-card h1,
#workspace h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
  max-width: 24ch;
  margin: 10px 0 22px;
}
.reading p,
.price-card p {
  margin: 14px 0;
  max-width: 66ch;
}
.price-card {
  max-width: 620px;
  background: white;
  border: 1px solid var(--line);
  border-top: 5px solid var(--slate);
  border-radius: 12px;
  padding: clamp(20px, 5vw, 46px);
  margin: 44px auto;
}
.big-price {
  font:
    500 clamp(2.4rem, 5vw, 3.2rem)/1.1 Plex Mono,
    monospace;
  color: var(--slate);
}
.contents {
  padding: 4px 0 18px 1.4rem;
  line-height: 1.75;
}
#workspace {
  padding-top: 26px;
}
#workspace h1 {
  margin-block: 0 16px;
}
.event-bar,
.solve-bar,
.subhead {
  justify-content: space-between;
}
.event-bar {
  align-items: end;
}
.event-bar .actions,
.solve-bar .actions {
  margin: 0;
}
.event-bar select {
  min-width: min(100%, 210px);
}
label {
  display: grid;
  gap: 5px;
  max-width: 100%;
  min-width: 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
}
input,
select,
textarea {
  font:
    400 1rem/1.3 Plex,
    system-ui,
    sans-serif;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #969fa9;
  color: var(--ink);
  border-radius: 7px;
}
textarea {
  resize: vertical;
}
input[type='checkbox'] {
  min-height: 0;
  min-width: 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--slate);
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  font-weight: 400;
}
.nav-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  border-bottom: 1px solid var(--line);
  margin-top: 24px;
}
.nav-strip button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding-inline: 6px;
  min-height: 48px;
}
.nav-strip [aria-pressed='true'] {
  border-bottom-color: var(--slate);
  color: var(--slate);
}
.solve-bar {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.solve-bar > span,
.summary {
  font-variant-numeric: tabular-nums;
  color: var(--slate);
}
#step {
  display: grid;
  gap: 18px;
  align-content: start;
  margin-top: 28px;
  min-width: 0;
}
#step > button {
  justify-self: start;
}
.form-grid,
.import-grid,
.table-grid {
  display: grid;
  gap: 12px 16px;
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
}
.import-grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.import-grid button {
  margin-top: 12px;
}
.table-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  align-items: start;
}
#dialog-body .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
form > button {
  margin: 12px 8px 4px 0;
}
details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
details > summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  padding: 8px 0;
}
details > p {
  margin: 6px 0 12px;
}
.subpanel,
.report,
.table-card,
.issue {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}
.subpanel h3 {
  margin-bottom: 12px;
}
.issue {
  border-left: 4px solid var(--slate);
  margin: 10px 0;
}
.rule-row,
.guest-list > div,
.review-guest,
.az-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 5px 0;
}
.rule-row > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.guest-list {
  max-height: 28rem;
  overflow: auto;
  overscroll-behavior: contain;
}
[hidden] {
  display: none !important;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  margin: 12px 0;
}
table {
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  border: 1px solid var(--line);
  padding: 8px;
  text-align: start;
  vertical-align: top;
}
th select {
  min-width: 10rem;
}
.report > div {
  display: grid;
  grid-template-columns: minmax(95px, 1fr) 3fr;
  gap: 12px;
  padding: 10px 0;
}
.report > div + div {
  border-top: 1px solid var(--line);
}
.summary,
.review-guest {
  font-size: 0.9rem;
}
.review-guest details {
  border: 0;
  flex: 1;
}
.review-guest button {
  font-size: 0.85rem;
  padding: 6px 9px;
}
.az-row .review-guest {
  flex: 1;
  border: 0;
}
.pack-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: min(600px, calc(100% - 24px));
  max-height: 90svh;
  padding: clamp(16px, 4vw, 30px);
  color: var(--ink);
  background: var(--paper);
  overflow: auto;
}
dialog::backdrop {
  background: #14171c66;
}
.subhead {
  margin-bottom: 12px;
}
#notice {
  min-height: 24px;
  margin-top: 16px;
  color: var(--muted);
}
#planner[aria-busy='true'] {
  opacity: 0.76;
}
@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .chart-proof {
    width: 100%;
    margin: auto;
  }
  .hero h1 {
    max-width: 18ch;
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .guide-list,
  .import-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    align-items: start;
  }
  .solve-bar .actions {
    gap: 6px;
  }
  .event-bar .actions {
    gap: 4px;
  }
}
@media (max-width: 480px) {
  body {
    width: calc(100% - 32px);
  }
  .mast {
    min-height: 65px;
    gap: 4px;
  }
  .mast nav {
    gap: 3px;
  }
  .wordmark {
    font-size: 1.22rem;
    gap: 5px;
  }
  .wordmark img {
    width: 28px;
    height: 28px;
  }
  #language {
    max-width: 82px;
    font-size: 0.86rem;
  }
  .price-entry {
    padding-inline: 10px;
  }
  .subpanel,
  .report,
  .table-card,
  .issue {
    padding: 13px;
  }
  .event-bar button,
  .solve-bar button {
    padding-inline: 10px;
  }
  .nav-strip {
    gap: 0 6px;
  }
  .report > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  #dialog-body .form-grid {
    grid-template-columns: 1fr;
  }
  .specimen > div {
    height: 140px;
  }
  .tabletop {
    min-height: 212px;
  }
  .seat {
    font-size: 0.76rem;
  }
}
