/* Stylesheet of the server-rendered welcome, invitation and error pages. No inline style anywhere. */
:root {
  color-scheme: light dark;
  --bg: #f6f7f8;
  --surface: #ffffff;
  --text: #1b2228;
  --muted: #4b5761;
  --line: #d5dbe0;
  --accent: #0b6e69;
  --accent-text: #ffffff;
  --notice: #fff6df;
  --error: #a3261c;
  --focus: #1d5fd1;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12171b;
    --surface: #1a2126;
    --text: #e7ecef;
    --muted: #a9b5bd;
    --line: #34414a;
    --accent: #4cc2b9;
    --accent-text: #0b1a19;
    --notice: #2d2716;
    --error: #ff8a80;
    --focus: #8ab4ff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 0.75rem 1rem;
}

header.site .org {
  margin: 0;
  font-weight: 600;
}

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

h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0 0 1rem;
}

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

.notice {
  background: var(--notice);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.25rem 1rem;
}

.accountability {
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
  font-weight: 600;
}

.steps {
  padding-left: 1.25rem;
}

.steps li {
  margin-bottom: 0.75rem;
}

.steps p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.step-label {
  font-weight: 600;
}

.step-status {
  display: inline-block;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.5rem;
  margin-left: 0.25rem;
}

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

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

.entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.25rem 1rem 1rem;
  margin-top: 1.5rem;
}

form {
  display: grid;
  gap: 0.5rem;
  max-width: 22rem;
}

label {
  font-weight: 600;
}

input {
  font: inherit;
  padding: 0.5rem;
  border: 1px solid var(--muted);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  width: 100%;
}

button,
a.button {
  font: inherit;
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-text);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  justify-self: start;
}

button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--muted);
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.error {
  color: var(--error);
  font-weight: 600;
}

@media (max-width: 400px) {
  h1 {
    font-size: 1.45rem;
  }
}
