:root {
  --ink: #1b1a3a;
  --ink-soft: #55536f;
  --paper: #fbfbfd;
  --rule: #d8d7e4;
  --violet: #453a9c;
  --teal: #1a6558;
  --alert: #9a3427;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 Charter, "Bitstream Charter", Georgia, "Times New Roman", serif;
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.masthead {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

.masthead a { color: var(--ink); text-decoration: none; }

.masthead p {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
}

p { margin: 0 0 1rem; }

a { color: var(--violet); }

.lede { color: var(--ink-soft); }

.identity {
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin: 0 0 0.25rem;
}

.identity + p { color: var(--ink-soft); font-size: 0.9375rem; }

/* Forms ------------------------------------------------------------------ */

form { margin-top: 1.5rem; }

.field { margin-bottom: 1.5rem; }

label {
  display: block;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

input:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.help {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

.availability {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  margin-top: 0.4rem;
  min-height: 1.25rem;
}

.availability.free { color: var(--teal); }
.availability.taken { color: var(--alert); }

.availability button {
  font: inherit;
  background: none;
  border: none;
  border-bottom: 1px solid currentColor;
  color: var(--violet);
  padding: 0;
  cursor: pointer;
}

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem 0;
}

.consent label { font-weight: 400; margin: 0; }

.consent input { margin-top: 0.35rem; }

button.go {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--violet);
  border: none;
  border-radius: 3px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
}

button.go:hover { background: #372e83; }

.errors {
  color: var(--alert);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.notes { list-style: none; padding: 0; margin: 0 0 1.5rem; }

.notes li {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  padding: 0.6rem 0.8rem;
  border-left: 3px solid var(--violet);
  background: #f2f1f8;
  margin-bottom: 0.5rem;
}

.notes li.error { border-left-color: var(--alert); background: #faf0ee; }

/* Conduct summary -------------------------------------------------------- */

.conduct {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--rule);
  padding-left: 1rem;
  margin: 1.5rem 0;
}

.conduct ul { padding-left: 1.1rem; margin: 0.5rem 0 0; }
.conduct li { margin-bottom: 0.3rem; }

.role-badge {
  display: inline-block;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  color: var(--violet);
}

.foot {
  margin-top: 4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.foot a { color: var(--ink-soft); }

@media (max-width: 30rem) {
  .page { padding-top: 2rem; }
  .identity { font-size: 2rem; }
}
