:root {
  color-scheme: light dark;
  --paper: #faf9f6;
  --ink: #292927;
  --muted: #62625d;
  --line: #d6d5ce;
  --field: #fffefa;
  --error: #942f2f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181918;
    --ink: #deded8;
    --muted: #a5a59e;
    --line: #44453f;
    --field: #20211f;
    --error: #f0a6a6;
  }
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  font-family: system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
header { margin-bottom: 2.5rem; }
h1, h2 { line-height: 1.35; font-weight: 600; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.25rem; margin: .5rem 0 1rem; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.home-link, .post-title { text-decoration: none; }
.home-link { font-size: 1.25rem; font-weight: 600; }
article { margin-bottom: 3rem; }
article + article { border-top: 1px solid var(--line); padding-top: 2rem; }
.dateline { font-size: .875rem; color: var(--muted); }
.post-body p { margin: 1rem 0; }
.post-body img { display: block; max-width: 100%; height: auto; margin: 1.25rem 0; }
.post-body blockquote { border-left: 2px solid var(--line); margin: 1rem 0; padding-left: 1rem; color: var(--muted); }
.post-body pre { overflow: auto; padding: 1rem; background: var(--field); font-size: .875rem; }
.post-body code { font-family: ui-monospace, monospace; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .875rem; line-height: 1.5; }
.editor header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.editor header h1 { margin: 0; }
.editor label { display: block; margin: 1.25rem 0 .35rem; font-size: .9375rem; }
input[type="text"], textarea {
  width: 100%;
  background: var(--field);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .75rem;
  font: inherit;
  line-height: 1.5;
}
textarea { resize: vertical; min-height: 14rem; }
input[type="file"] { width: 100%; font: inherit; font-size: .875rem; }
.publish-row { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
button {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: .65rem 1.25rem;
  font: inherit;
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: wait; }
.notice { border-left: 2px solid var(--muted); padding-left: 1rem; }
.error { color: var(--error); }
.backup { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); }
.backup h2 { font-size: .875rem; margin-bottom: .5rem; }
.backup p { font-size: .875rem; }
@media (max-width: 480px) {
  body { padding-top: 1.5rem; }
  header { margin-bottom: 1.75rem; }
  .publish-row { align-items: flex-start; }
}
