:root {
  --bg: #f6f6f4;
  --card: #ffffff;
  --text: #1b1b1d;
  --muted: #6b6b72;
  --line: #e4e4e0;
  --accent: #2f5bea;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --card: #17171a;
    --text: #ececee;
    --muted: #9a9aa3;
    --line: #2a2a2f;
    --accent: #8aa4ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8vh 16px;
}

.container {
  width: 100%;
  max-width: 680px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 40px 28px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 700; letter-spacing: 0.02em; color: var(--text); text-decoration: none; }

nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

main { padding: 28px 0 12px; }
h1 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 20px; }
p { margin: 0 0 16px; }
a { color: var(--accent); }
.muted { color: var(--muted); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list time, .tag { flex: 0 0 110px; color: var(--muted); font-size: 0.9rem; }
.list a { color: var(--text); text-decoration: none; }
.list a:hover { color: var(--accent); }

footer { padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

@media (max-width: 520px) {
  body { padding: 16px 12px; font-size: 16px; }
  .container { padding: 20px 18px; }
  .list li { flex-direction: column; gap: 2px; }
  .list time, .tag { flex-basis: auto; }
}
