:root {
  --bg: #0f0f0f;
  --ink: #ededed;
  --quiet: #a0a0a0;
  --faint: #5c5c5c;
  --line: #2a2a2a;
  --hover: #1c1c1c;
  --accent: #ededed;
  --on-accent: #111;
  --danger: #ff7b6e;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: default; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 600; }
.boot { padding: 96px 24px; text-align: center; color: var(--quiet); }

.page { max-width: 760px; margin: 0 auto; padding: 80px 24px; }
.photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; margin-bottom: 16px; }
.host h1 { font-size: 24px; letter-spacing: -.01em; line-height: 1.25; }
.tagline, .where, .type-desc { color: var(--quiet); }
.tagline { margin-top: 4px; }
.type-desc { margin-top: 12px; white-space: pre-wrap; max-width: 60ch; }
.where { margin-top: 12px; }
.types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.type { padding: 8px 14px; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; color: var(--quiet); }
.type:hover { color: var(--ink); }
.type small { font-size: inherit; margin-left: 6px; }
.type[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.solo { margin-top: 24px; font-weight: 500; }
.solo small { font-size: inherit; font-weight: 400; color: var(--quiet); margin-left: 6px; }

.ledger { margin-top: 48px; }
.ledger.split { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 56px; }
.month-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.month-head h2 { font-size: 15px; }
.nav { display: flex; gap: 4px; margin-right: -8px; }
.nav button { width: 36px; height: 36px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--quiet); }
.nav button:hover:not(:disabled) { background: var(--hover); color: var(--ink); }
.nav button:disabled { color: var(--faint); }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.dow { text-align: center; color: var(--quiet); font-size: 12px; padding-bottom: 8px; }
.day { width: 44px; height: 44px; margin: 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--faint); font-variant-numeric: tabular-nums; }
.day.open { color: var(--ink); font-weight: 500; }
.day.open:hover { background: var(--hover); }
.day.today:not([aria-pressed="true"]) { text-decoration: underline; text-underline-offset: 4px; }
.day[aria-pressed="true"], .day[aria-pressed="true"]:hover { background: var(--accent); color: var(--on-accent); }
.tz { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 13px; color: var(--quiet); }
.tz label { margin: 0; color: inherit; font-size: inherit; font-weight: 400; display: flex; align-items: center; gap: 4px; }
.tz select { background: transparent; border: 0; color: inherit; max-width: 200px; min-height: 40px; padding: 0; }
.hour-toggle { text-decoration: underline; text-underline-offset: 3px; min-height: 40px; }

.slots { min-width: 0; }
.slots h3 { font-size: 15px; margin-bottom: 12px; line-height: 36px; }
.slot-scroll { max-height: 432px; overflow-y: auto; scrollbar-width: thin; }
.slot-list { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.slot { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--ink); }
.prompt, .quiet { color: var(--quiet); }
.prompt { line-height: 36px; }

.form-wrap { max-width: 400px; }
.form-wrap h2 { font-size: 15px; }
.chosen { margin: 2px 0 24px; color: var(--quiet); }
.back { display: block; color: var(--quiet); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; margin-bottom: 8px; }
.back:hover { color: var(--ink); }
label { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 500; }
label input, label textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font-size: 15px; font-weight: 400; background: transparent; border: 1px solid var(--line); border-radius: 8px; }
label input:focus, label textarea:focus { outline: 0; border-color: var(--ink); }
textarea { min-height: 88px; resize: vertical; }
.opt { color: var(--quiet); font-weight: 400; }
.trap { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.primary { background: var(--accent); color: var(--on-accent); font-weight: 500; padding: 10px 18px; min-height: 42px; border-radius: 8px; }
.primary:disabled { opacity: .5; }
.danger, .link-btn { text-decoration: underline; text-underline-offset: 3px; min-height: 42px; }
.danger { color: var(--danger); }
.err { color: var(--danger); margin-bottom: 16px; }

.done-page { padding: 96px 24px; }
.done { max-width: 440px; margin: 0 auto; }
.done h1 { font-size: 24px; letter-spacing: -.01em; }
.big { margin-top: 4px; color: var(--quiet); }
.facts { margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--quiet); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 24px; }

@media (max-width: 680px) {
  .page { padding: 40px 16px; }
  .ledger { margin-top: 32px; }
  .ledger.split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .slot-scroll { max-height: none; overflow: visible; }
  .slot-list { grid-template-columns: repeat(3, 1fr); }
  .slots h3, .prompt { line-height: 1.5; }
  .done-page { padding: 56px 16px; }
}

.home { min-height: 100dvh; display: grid; place-items: center; background: #000; color: #fff; }
.home h1 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
