/* Socialytr — a fictional short-post network. */

:root {
  --brand: #147a6e;
  --ink: #0f1419;
  --body: #4b5563;
  --muted: #8b98a5;
  --line: #e3e8ec;
  --page: #ffffff;
  --hover: #f4f7f8;
}

body { background: var(--page); color: var(--ink); }
a { color: var(--brand); }

.wrap { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 220px minmax(0,1fr) 300px; gap: 0; }
@media (max-width: 1000px) { .wrap { grid-template-columns: 76px minmax(0,1fr); } .rail { display: none; } }
@media (max-width: 620px) { .wrap { grid-template-columns: 1fr; } .side { display: none; } }

/* Left nav */
.side { position: sticky; top: 0; height: 100vh; padding: 14px 10px; border-right: 1px solid var(--line); }
.mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 20px; margin-bottom: 14px;
}
.side nav { display: grid; gap: 2px; }
.side nav span {
  display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 999px;
  font-size: 17px; font-weight: 500; color: var(--ink);
}
.side nav span.on { font-weight: 800; }
.side nav span .ic { width: 22px; text-align: center; font-size: 18px; color: var(--body); }
@media (max-width: 1000px) { .side nav span .lb { display: none; } }
.post-btn {
  margin-top: 14px; width: 100%; background: var(--brand); color: #fff; border: 0;
  border-radius: 999px; padding: 12px; font-weight: 700; font-size: 15.5px;
}
.me { position: absolute; bottom: 16px; display: flex; align-items: center; gap: 9px; }
.me .initials { width: 38px; height: 38px; border-radius: 50%; background: #b4593d; font-size: 14px; }
.me .nm { font-size: 14px; font-weight: 700; line-height: 1.2; }
.me .at { font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) { .me .who { display: none; } }

/* Feed */
.feed { border-right: 1px solid var(--line); }
.feed-head { position: sticky; top: 0; background: rgba(255,255,255,.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 5; }
.feed-head h1 { margin: 0; padding: 14px 16px 8px; font-size: 19px; }
.feed-tabs { display: flex; }
.feed-tabs span { flex: 1; text-align: center; padding: 13px 0; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.feed-tabs span.on { color: var(--ink); box-shadow: inset 0 -3px 0 var(--brand); }

.composer { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 10px solid var(--hover); }
.composer .initials { width: 42px; height: 42px; border-radius: 50%; background: #b4593d; flex: none; font-size: 15px; }
.composer input { flex: 1; border: 0; font: inherit; font-size: 18px; color: var(--muted); background: none; }

.post { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.post .initials { width: 42px; height: 42px; border-radius: 50%; flex: none; font-size: 15px; }
.post .meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: baseline; font-size: 14.5px; margin-bottom: 3px; }
.post .meta b { font-weight: 700; }
.post .meta .at, .post .meta .dot, .post .meta .ago { color: var(--muted); font-weight: 400; }
.post p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.45; }
.post .shot { height: clamp(150px, 22vw, 220px); border-radius: 14px; border: 1px solid var(--line); margin-bottom: 10px; }
.acts { display: flex; justify-content: space-between; max-width: 380px; color: var(--muted); font-size: 13px; }

/* Right rail */
.rail { padding: 12px 16px; }
.rail .search input {
  width: 100%; border: 0; background: var(--hover); border-radius: 999px;
  padding: 11px 16px; font: inherit; font-size: 14.5px; color: var(--muted); margin-bottom: 14px;
}
.box { background: var(--hover); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.box h2 { margin: 0 0 10px; font-size: 18px; }
.trend { padding: 8px 0; }
.trend .k { font-size: 12.5px; color: var(--muted); }
.trend .t { font-size: 14.5px; font-weight: 700; }
.trend .n { font-size: 12.5px; color: var(--muted); }
.who-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.who-row .initials { width: 38px; height: 38px; border-radius: 50%; flex: none; font-size: 13px; }
.who-row .nm { font-size: 14px; font-weight: 700; line-height: 1.25; }
.who-row .at { font-size: 13px; color: var(--muted); }
.follow { margin-left: auto; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 7px 15px; font-size: 13.5px; font-weight: 700; }

/* About page inherits the palette */
.about-body { background: var(--page); color: var(--ink); }
