:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #081a33;
  --muted: #5b6b82;
  --line: #d5deea;
  --blue: #155eef;
  --blue-soft: #dce8ff;
  --warn: #7a4b00;
  --warn-bg: #ffedc2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #050d19;
    --surface: #0a1626;
    --text: #f6f8fc;
    --muted: #a8b6ca;
    --line: #2a3d56;
    --blue: #6aa8ff;
    --blue-soft: #153c6a;
    --warn: #ffe8a8;
    --warn-bg: #49380d;
  }
}
* { box-sizing: border-box; }
html { font-family: Inter, "Segoe UI", Arial, sans-serif; background: var(--bg); color: var(--text); }
body { margin: 0; min-height: 100vh; }
a { color: var(--blue); }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header__inner, main, footer { width: min(100% - 32px, 760px); margin: 0 auto; }
.site-header__inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--text); text-decoration: none; font-size: 22px; font-weight: 800; }
.brand span { color: var(--blue); }
.back { min-height: 44px; display: inline-flex; align-items: center; }
main { padding: 32px 0 56px; display: grid; gap: 20px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(28px, 7vw, 42px); line-height: 1.12; }
h2 { font-size: 20px; margin-top: 6px; }
p, li { line-height: 1.55; }
.muted { color: var(--muted); }
.draft {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--warn), transparent 25%);
  border-radius: 8px;
  background: var(--warn-bg);
  color: var(--warn);
}
.panel { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: grid; gap: 12px; }
.link-list { display: grid; gap: 10px; }
.link-list a { min-height: 52px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; }
.link-list a span { color: var(--blue); }
footer { padding: 24px 0 40px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 390px) {
  .site-header__inner { align-items: flex-start; flex-direction: column; padding-block: 12px; }
  .link-list a { align-items: flex-start; flex-direction: column; }
}
