/* One small stylesheet for the sign-in page and the console. No outside fonts or files. */

:root {
  color-scheme: light dark;
  --ground: #f6f5f2;
  --card: #ffffff;
  --ink: #1c1b19;
  --muted: #625f58;
  --line: #dedbd3;
  --accent: #1f5fbf;
  --accent-ink: #ffffff;
  --good: #1d6b3a;
  --bad: #a3271f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #151514;
    --card: #1f1f1d;
    --ink: #eeece7;
    --muted: #a6a39b;
    --line: #37362f;
    --accent: #7fb0ff;
    --accent-ink: #10203a;
    --good: #7fd19b;
    --bad: #ff9c92;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-wrap: anywhere;
}

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

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

nav a {
  padding: 0.25rem 0;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

main.narrow {
  max-width: 28rem;
  padding-top: 2rem;
}

h1 {
  margin: 0.5rem 0 1rem;
  font-size: 1.5rem;
  line-height: 1.25;
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

p {
  margin: 0.5rem 0;
}

.lead {
  margin-bottom: 1rem;
}

.card {
  margin: 0 0 1rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.muted {
  color: var(--muted);
  font-size: 0.925rem;
}

.status {
  color: var(--muted);
}

.good {
  color: var(--good);
}

.bad {
  color: var(--bad);
}

.hint {
  font-size: 0.925rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.counter {
  color: var(--muted);
  font-size: 0.925rem;
}

textarea,
select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  background: var(--ground);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

select {
  flex: 1 1 14rem;
  width: auto;
  max-width: 100%;
}

button {
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button.quiet {
  padding: 0.3rem 0.7rem;
  background: transparent;
  color: var(--accent);
  border-color: var(--line);
  font-weight: 400;
}

button.quiet.bad {
  color: var(--bad);
  border-color: var(--bad);
}

button:disabled {
  opacity: 0.55;
  cursor: default;
}

a:focus-visible,
button:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.meter {
  margin: 0.75rem 0;
}

.meter label {
  display: block;
}

progress {
  width: 100%;
  height: 0.6rem;
  accent-color: var(--accent);
}

.facts {
  margin: 0;
}

.facts div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  text-align: right;
}

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

.item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.item:last-child {
  border-bottom: 0;
}

.item-head,
.item-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.item-text {
  white-space: pre-wrap;
}

.tag {
  padding: 0.05rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

/* The landing page and the staff page. */

main.wide {
  max-width: 60rem;
}

.landing h1 {
  font-size: 1.9rem;
}

a.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.qr {
  display: block;
  width: 12.5rem;
  height: 12.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: #ffffff;
}

.points {
  margin: 1.5rem 0;
  padding-left: 1.2rem;
}

.points li {
  margin: 0.5rem 0;
}

.scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}

th,
td {
  padding: 0.4rem 0.75rem 0.4rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 600;
}

input[type="number"] {
  width: 5rem;
  padding: 0.5rem 0.6rem;
  background: var(--ground);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  font: inherit;
}
