:root {
  --ink: #111213;
  --muted: #6b7280;
  --canvas: #ffffff;
  --sand: #f4f5f7;
  --hairline: #e5e7eb;
  --secondary: #0d3d4d;
  --on-primary: #ffffff;
  --error: #ba1a1a;
  --nav: 244px;
  --rail: 320px;
  --col: 680px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "Plus Jakarta Sans", Inter, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

.shell {
  display: grid;
  grid-template-columns: var(--nav) minmax(0, 1fr) var(--rail);
  min-height: 100vh;
}

.nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 16px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand { font-weight: 700; font-size: 22px; letter-spacing: -0.03em; padding: 0 12px 24px; }
.nav a, .nav button.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
}
.nav a:hover, .nav button.nav-item:hover { background: var(--sand); }
.nav a.on { font-weight: 700; }
.glyph {
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.glyph svg { width: 20px; height: 20px; }

.main {
  max-width: var(--col);
  width: 100%;
  margin: 0 auto;
  border-left: 1px solid var(--hairline);
  border-right: 1px solid var(--hairline);
  min-height: 100vh;
}
.main h1 {
  margin: 0;
  padding: 18px 20px;
  font-size: 22px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  background: var(--canvas);
}

.post { padding: 16px 20px 20px; border-bottom: 1px solid var(--hairline); }
.post-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.avatar {
  width: 36px; height: 36px; border-radius: 999px; background: var(--sand);
  display: grid; place-items: center; font-weight: 600; font-size: 13px;
}
.who { font-weight: 600; }
.meta { color: var(--muted); font-size: 13px; }
.body { font-size: 16px; line-height: 24px; margin: 0 0 12px; white-space: pre-wrap; }
.media { width: 100%; border-radius: 4px; display: block; background: var(--sand); max-height: 720px; object-fit: cover; }
.actions { display: flex; gap: 8px; margin-top: 12px; }
.act {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--hairline);
  display: grid; place-items: center;
}
.act svg { width: 20px; height: 20px; }
.act.on { color: #c2410c; border-color: #c2410c; }
.count { color: var(--muted); font-size: 13px; align-self: center; }

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 36px 28px;
}
.me { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.empty, .soon, .err { padding: 40px 20px; color: var(--muted); }

@media (max-width: 1160px) {
  .shell { grid-template-columns: 72px minmax(0, 1fr); }
  .rail, .nav span { display: none; }
  .nav { padding: 20px 8px; }
  .brand { font-size: 0; padding: 0 0 16px; }
  .brand::first-letter { font-size: 22px; }
}
