:root {
  color-scheme: light;
  --ink: #272237;
  --muted: #625c73;
  --paper: #f6f4fa;
  --surface: #fff;
  --violet: #493977;
  --line: #ded8e9;
  font: 16px/1.6 "Instrument Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--violet); text-underline-offset: .22em; }
header { border-bottom: 1px solid var(--line); }
nav, main { width: min(calc(100% - 40px), 760px); margin-inline: auto; }
nav { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-weight: 720; text-decoration: none; }
main { padding-block: clamp(36px, 8vw, 82px); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.22; margin: 0 0 20px; letter-spacing: -.04em; overflow-wrap: anywhere; }
p { margin: 0 0 1rem; }
.muted, time { color: var(--muted); }
.login {
  max-width: 500px;
  padding: clamp(24px, 6vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 55px #49397712;
}
.login::before { content: ""; display: block; width: 38px; height: 5px; background: var(--violet); border-radius: 4px; margin-bottom: 28px; }
form { margin: 0; }
label { font-weight: 650; display: block; margin-block: 18px 6px; }
input, textarea, button, .button { font: inherit; }
input, textarea {
  color: inherit;
  background: var(--surface);
  border: 1px solid #aaa0bb;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
}
textarea { min-height: 42vh; resize: vertical; line-height: 1.75; }
button, .button { display: inline-block; padding: 8px 15px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.primary { background: var(--violet); color: var(--surface); }
.secondary { background: transparent; color: var(--violet); border-color: var(--line); }
.login button, .editor button { margin-top: 18px; }
:focus-visible { outline: 3px solid #7860b1; outline-offset: 3px; }
.heading { display: flex; align-items: baseline; gap: 16px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.heading h1 { margin: 0; }
.entries { list-style: none; padding: 0; }
.entries li { display: flex; justify-content: space-between; gap: 12px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.entries a { overflow-wrap: anywhere; }
.entries time { flex: none; font-variant-numeric: tabular-nums; }
.article { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.9; }
.error { color: #962943; }
