:root {
  color-scheme: dark;
  --bg: #111113;
  --panel: #18181b;
  --line: #2a2a2e;
  --text: #eeeae3;
  --muted: #9c9890;
  --accent: #eeeae3;
  --accent-ink: #111113;
  --danger: #e5877b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
a { color: inherit; }
.top { padding: 1.5rem 1.5rem 0; max-width: 62rem; margin: 0 auto; }
.wordmark { text-decoration: none; font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; }
.wordmark span { color: var(--muted); font-weight: 400; }
main { max-width: 62rem; margin: 0 auto; padding: 1.5rem; }
h1 { font-weight: 500; font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 0.5rem; }
h2 { font-weight: 500; font-size: 1rem; margin-bottom: 0.75rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sub { color: var(--muted); margin-bottom: 1.75rem; }

/* meeting type cards */
.cards { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card {
  display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.1rem 1.2rem; transition: border-color .15s, transform .15s;
}
.card:hover, .card:focus-visible { border-color: var(--muted); outline: none; }
.card h3 { font-weight: 500; font-size: 1.1rem; margin-bottom: 0.25rem; }
.card p { color: var(--muted); font-size: 0.92rem; margin-top: 0.5rem; }
.pill { display: inline-block; font-size: 0.78rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.55rem; }

/* picker */
.picker { display: grid; gap: 1.5rem; grid-template-columns: 17rem minmax(0, 1fr) 13rem; align-items: start; }
.side p { color: var(--muted); font-size: 0.92rem; margin: 0.5rem 0 1rem; }
.back { background: none; border: 0; color: var(--muted); font: inherit; font-size: 0.9rem; cursor: pointer; padding: 0; margin-bottom: 1rem; }
.back:hover { color: var(--text); }
label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.3rem; }
select, input, textarea {
  width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.6rem 0.7rem; font: inherit; font-size: 1rem;
}
select:focus, input:focus, textarea:focus { outline: 2px solid var(--muted); outline-offset: 1px; }
textarea { min-height: 5rem; resize: vertical; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.cal-head strong { font-weight: 500; }
.nav { display: flex; gap: 0.25rem; }
.nav button { background: var(--panel); border: 1px solid var(--line); color: var(--text); width: 2.2rem; height: 2.2rem; border-radius: 8px; font-size: 1.1rem; cursor: pointer; }
.nav button:disabled { opacity: 0.3; cursor: default; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow { text-align: center; font-size: 0.72rem; color: var(--muted); padding: 0.3rem 0; text-transform: uppercase; letter-spacing: 0.04em; }
.day {
  aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted);
  font: inherit; font-size: 0.95rem; cursor: default;
}
.day.avail { color: var(--text); background: var(--panel); border-color: var(--line); cursor: pointer; }
.day.avail:hover { border-color: var(--muted); }
.day.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.day.today:not(.sel) { text-decoration: underline; text-underline-offset: 3px; }

.times h2 { white-space: nowrap; }
.times ul { list-style: none; display: grid; gap: 0.4rem; max-height: 22rem; overflow-y: auto; padding-right: 2px; }
.slot {
  width: 100%; padding: 0.6rem; border-radius: 8px; border: 1px solid var(--line); background: var(--panel);
  color: var(--text); font: inherit; cursor: pointer; text-align: center;
}
.slot:hover, .slot:focus-visible { border-color: var(--text); outline: none; }

/* form */
.formwrap { max-width: 34rem; }
.summary { border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 1.25rem; }
.summary strong { font-weight: 500; }
.field { margin-bottom: 1rem; }
.err { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; }
.banner { border: 1px solid var(--danger); color: var(--danger); border-radius: 8px; padding: 0.7rem 0.9rem; margin-bottom: 1rem; font-size: 0.92rem; }
.actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 1.25rem; }
.btn {
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 0.7rem 1.2rem;
  font: inherit; font-weight: 500; cursor: pointer;
}
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done a.btn { display: inline-block; text-decoration: none; margin-top: 1rem; }

@media (max-width: 52rem) {
  .picker { grid-template-columns: 1fr; gap: 1.25rem; }
  .times ul { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); max-height: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

footer.legal { max-width: 62rem; margin: 0 auto; padding: 2rem 1.5rem 2.5rem; color: var(--muted); font-size: 0.85rem; display: flex; gap: 1rem; }
footer.legal a { color: inherit; text-decoration: none; }
footer.legal a:hover { color: var(--text); }
