:root {
  --bg: #f7f5f1;
  --text: #161412;
  --muted: #6f6a63;
  --line: #e2ded7;
  --ok: #2f7d4f;
  --warn: #a86a12;
  --bad: #b3362b;
  --field: #ffffff;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --text: #ece8e1;
    --muted: #9a948b;
    --line: #2b2926;
    --ok: #6cc28f;
    --warn: #e0a64a;
    --bad: #ef7a6e;
    --field: #1d1b19;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page {
  width: min(760px, 100% - 32px);
  margin: 0 auto;
  padding: 40px 0 48px;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.who {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  min-width: 0;
}

.who form {
  margin: 0;
}

#viewer {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

button.link:hover {
  color: var(--text);
}

.summary {
  margin: 36px 0 8px;
}

.headline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.dot.ok {
  background: var(--ok);
}

.dot.warn {
  background: var(--warn);
}

.dot.bad {
  background: var(--bad);
}

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

.small {
  font-size: 13px;
}

.summary .small {
  margin: 4px 0 0 19px;
}

h2 {
  margin: 36px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.rows > li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.rows > li.empty {
  display: block;
  color: var(--muted);
}

.main {
  min-width: 0;
  overflow-wrap: anywhere;
}

.sub {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

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

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.right {
  text-align: right;
  white-space: nowrap;
}

.ok-text {
  color: var(--ok);
}

.warn-text {
  color: var(--warn);
}

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

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 13px;
}

.facts dd {
  margin: 0;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

details summary {
  cursor: pointer;
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: "+";
  display: inline-block;
  width: 1.2em;
  color: var(--muted);
}

details[open] summary::before {
  content: "−";
}

.tags {
  margin: 6px 0 0 1.2em;
  color: var(--muted);
}

.foot {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

/* Sign-in pages */

.auth {
  width: min(360px, 100% - 32px);
  margin: 0 auto;
  padding: 80px 0;
}

.auth .wordmark {
  display: inline-block;
  margin-bottom: 40px;
}

.auth h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.auth p {
  margin: 0 0 20px;
}

.auth form {
  display: grid;
  gap: 8px;
}

.auth label {
  font-size: 13px;
  color: var(--muted);
}

.auth input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  color: var(--text);
  font: inherit;
}

.auth input:focus,
.auth button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

.auth button {
  margin-top: 8px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

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