/* Comet Play. Same family as cometos.net: cool grey, one red, the logo's discs.
   The discs are the page's one loud thing: every seat at every table is one. */
:root {
  --bg: #f1f2f4;
  --surface: #ffffff;
  --ink: #17191e;
  --muted: #5b616d;
  --line: #d6d9df;
  --comet: #d3202c;
  --comet-ink: #ffffff;
  --ok: #1f8a4c;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111317; --surface: #1a1d23; --ink: #eceef1; --muted: #9aa1ad; --line: #2c3038;
    --comet: #e5333e; --ok: #4cc27a;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--comet); outline-offset: 3px; border-radius: 6px; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.94em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* top */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0; }
.logo { display: inline-flex; align-items: center; gap: 0.12em; font-size: 20px; text-decoration: none; }
.logo span {
  width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--comet); color: var(--comet-ink);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; line-height: 1; padding-bottom: 0.08em;
}
.logo b { font-family: var(--font-display); font-weight: 700; font-size: 1.15em; margin-left: 0.4em; letter-spacing: -0.01em; }
nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 4px 0; }
nav a:hover { color: var(--ink); }
nav a[aria-current] { color: var(--ink); box-shadow: 0 2px 0 var(--comet); }

h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 6vw, 58px);
  line-height: 1.04; letter-spacing: -0.02em; margin: 40px 0 14px;
}
.summary { font-size: 19px; color: var(--muted); max-width: 38em; margin: 0 0 36px; }

/* a label on the left, the content on the right */
.row { display: grid; grid-template-columns: 210px 1fr; gap: 16px 32px; padding: 26px 0 30px; border-top: 1px solid var(--line); }
.row > h2 { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
.row > div { min-width: 0; }
.row p { margin: 0 0 12px; max-width: 40em; }
.empty { color: var(--muted); }

.list, .people { list-style: none; margin: 0; padding: 0; }
.list li { display: grid; grid-template-columns: 150px 1fr; gap: 6px 20px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.list li:first-child { padding-top: 0; }
.list li:last-child { border-bottom: 0; padding-bottom: 0; }
.who { font-weight: 600; overflow-wrap: anywhere; }
.what { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.chip { font-size: 14px; font-weight: 500; padding: 2px 11px; border-radius: 999px; border: 1.5px solid var(--ink); white-space: nowrap; }
.note { color: var(--muted); overflow-wrap: anywhere; }

/* tables */
.table { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 14px; margin: 0 0 14px; }
.table header { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; }
.table h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin: 0; letter-spacing: -0.01em; }
.table .title { font-family: var(--font-body); font-weight: 400; font-size: 16px; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.state { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.table.open .state { color: var(--ok); }
.table.playing .seat.taken { background: var(--ink); color: var(--bg); }
.seats { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 12px; }
.seat {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 2px dashed var(--line); font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1;
}
.seat.taken { border: 0; background: var(--comet); color: var(--comet-ink); padding-bottom: 2px; }
.table .meta { font-size: 14px; color: var(--muted); margin: 0; }

.people { display: flex; flex-wrap: wrap; gap: 8px; }
.people li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 15px; }
.people .where { color: var(--muted); }

.steps { margin: 0 0 14px; padding-left: 1.3em; max-width: 40em; }
.steps li { padding: 3px 0 3px 4px; }

.fresh { font-size: 14px; color: var(--muted); margin: 6px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.fresh.stale { color: var(--comet); }
footer { padding: 26px 0 48px; font-size: 14px; color: var(--muted); }
footer p { margin: 0; }
.fresh + footer, main + footer { border-top: 0; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .row { grid-template-columns: 1fr; gap: 12px; }
  .list li { grid-template-columns: 1fr; gap: 4px; }
  .seat { width: 30px; height: 30px; font-size: 15px; }
}
