:root {
  --bg: #12151a;
  --panel: #191d25;
  --text: #e6e8ec;
  --muted: #8b93a1;
  --accent: #5b9dd9;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, sans-serif;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #262b35;
}
.brand { font-weight: 700; letter-spacing: .02em; }
nav a { margin-left: 18px; color: var(--muted); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: 720px; margin: 0 auto; padding: 32px 24px 64px; }
h1 { font-size: 1.7rem; margin: 0 0 24px; }
h2 { font-size: 1.15rem; margin: 4px 0 6px; }
time { color: var(--muted); font-size: .8rem; text-transform: uppercase; }
.posts { list-style: none; padding: 0; }
.posts li { padding: 18px 0; border-bottom: 1px solid #262b35; }
.posts p { color: var(--muted); margin: 0; }
article p { margin-top: 16px; }
.back { display: inline-block; margin-top: 32px; }
.flash {
  background: var(--panel);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
}
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
figure { margin: 0; background: var(--panel); padding: 8px; border-radius: 6px; }
figure img { width: 100%; height: 150px; object-fit: cover; border-radius: 4px; }
figcaption { color: var(--muted); font-size: .75rem; margin-top: 6px; word-break: break-all; }
input[type=file] { display: block; margin-bottom: 16px; color: var(--muted); }
button {
  background: var(--accent);
  color: #0d1117;
  border: 0;
  padding: 10px 18px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
}
footer { border-top: 1px solid #262b35; padding: 20px 24px; color: var(--muted); font-size: .85rem; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
