:root {
  color-scheme: light dark;
  --bg: #fcfcfb;
  --text: #1d1d1b;
  --muted: #6b6b66;
  --line: rgba(29, 29, 27, 0.2);
  --accent: #3b4a8f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --text: #e8e8e4;
    --muted: #9c9c96;
    --line: rgba(232, 232, 228, 0.22);
    --accent: #a9b4ea;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
.inner {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 16px;
}
header { border-bottom: 1px solid var(--line); }
header .inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.wordmark {
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}
nav { display: flex; flex-wrap: wrap; gap: 1rem; }
nav a { color: inherit; }
main { padding-top: 2rem; padding-bottom: 3rem; }
h1 {
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0 0 1rem;
}
a { color: var(--accent); }
s { color: var(--muted); }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}
.button {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}
.button.primary {
  border-color: var(--accent);
  color: var(--accent);
}
.draft {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}
form {
  display: grid;
  gap: 0.5rem;
  max-width: 24rem;
  margin: 1.5rem 0;
}
input {
  font: inherit;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: inherit;
}
button {
  font: inherit;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  justify-self: start;
}
button:disabled { opacity: 0.5; cursor: default; }
footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
footer .inner { padding-top: 1rem; padding-bottom: 1.5rem; }
footer nav a { color: inherit; }
