:root {
  --text: #1b1b1b;
  --muted: #5c5c5c;
  --background: #ffffff;
  --line: #d8d8d8;
  --accent: #1f5fbf;
  --error: #a32020;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #ececec;
    --muted: #a8a8a8;
    --background: #161616;
    --line: #3a3a3a;
    --accent: #7fb0ff;
    --error: #ff8a8a;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
}

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}

.top nav { display: flex; gap: 1rem; align-items: center; }
.brand { font-weight: 600; color: var(--text); text-decoration: none; }
a { color: var(--accent); }
main { max-width: 48rem; margin: 0 auto; padding: 1rem; }
form.inline { display: inline; }

button {
  font: inherit;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--background);
  color: var(--text);
  cursor: pointer;
}

button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.error { color: var(--error); }
