/* Cliqface — a fictional social network.
   Its own palette on purpose: close enough to read as "a social network" at a
   glance on camera, far enough from any real one to be its own thing. */

:root {
  --brand: #2f57d3;
  --brand-dark: #24469f;
  --ink: #12141a;
  --body: #4a4f5c;
  --muted: #8a8f9c;
  --line: #dfe2e8;
  --page: #eef0f4;
  --card: #ffffff;
  --radius: 10px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--page); color: var(--ink); font-family: var(--sans); font-size: 15px; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }

/* Top bar ----------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  padding: 9px clamp(12px, 3vw, 22px);
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 19px; letter-spacing: -0.03em;
}
.logo-word { font-weight: 800; font-size: 19px; letter-spacing: -0.03em; color: var(--brand); }
.logo-word span { color: var(--ink); }

.search { flex: 1; max-width: 300px; position: relative; }
.search input {
  width: 100%; border: 0; border-radius: 999px; background: var(--page);
  padding: 9px 14px 9px 34px; font: inherit; font-size: 14px; color: var(--body);
}
.search::before {
  content: "⌕"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 16px;
}
.top-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top-nav .pill {
  width: 36px; height: 36px; border-radius: 50%; background: var(--page);
  display: grid; place-items: center; color: var(--body); font-size: 15px;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--brand), #6f4fd8);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px;
}

/* Cover and identity ------------------------------------------------------ */
.shell { max-width: 1040px; margin: 0 auto; padding: 0 clamp(12px, 3vw, 22px); }
.cover {
  background: var(--card); border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid var(--line); border-top: 0; overflow: hidden; margin-bottom: 16px;
}
.cover-art {
  height: clamp(140px, 26vw, 240px);
  background:
    radial-gradient(120% 140% at 18% 0%, #4a6fe3 0%, rgba(74,111,227,0) 55%),
    radial-gradient(100% 120% at 92% 10%, #7b5ae0 0%, rgba(123,90,224,0) 60%),
    linear-gradient(160deg, #24469f, #16224a);
}
.identity {
  display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap;
  padding: 0 clamp(14px, 3vw, 26px) 16px;
}
.identity .big-avatar {
  width: clamp(96px, 16vw, 140px); height: clamp(96px, 16vw, 140px);
  border-radius: 50%; margin-top: clamp(-48px, -8vw, -70px);
  border: 4px solid var(--card); flex: none;
  background: linear-gradient(135deg, var(--brand), #6f4fd8);
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: clamp(32px, 6vw, 46px); letter-spacing: -0.02em;
}
.identity-text { padding-bottom: 4px; }
.identity h1 { margin: 0; font-size: clamp(22px, 3.2vw, 30px); letter-spacing: -0.02em; }
.identity .sub { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.identity-actions { margin-left: auto; display: flex; gap: 8px; padding-bottom: 6px; }
.btn {
  border: 1px solid var(--line); background: var(--page); color: var(--ink);
  border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600;
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }

.tabs {
  display: flex; gap: 2px; padding: 0 clamp(14px, 3vw, 26px);
  border-top: 1px solid var(--line); overflow-x: auto;
}
.tabs span {
  padding: 13px 14px; font-size: 14.5px; font-weight: 600; color: var(--muted);
  white-space: nowrap; border-bottom: 3px solid transparent;
}
.tabs span.on { color: var(--brand); border-bottom-color: var(--brand); }

/* Columns ----------------------------------------------------------------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; padding-bottom: 28px; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
}
.card h2 { margin: 0 0 12px; font-size: 17px; letter-spacing: -0.01em; }
.intro-row { display: flex; gap: 10px; align-items: baseline; margin-bottom: 9px; font-size: 14.5px; color: var(--body); }
.intro-row .k { color: var(--muted); flex: none; width: 70px; }

.friends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.friend { text-align: center; }
.friend .face {
  aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 20px; margin-bottom: 5px;
}
.friend .nm { font-size: 12.5px; font-weight: 600; color: var(--body); line-height: 1.3; }

/* Composer and posts ------------------------------------------------------ */
.composer { display: flex; gap: 10px; align-items: center; }
.composer input {
  flex: 1; border: 0; background: var(--page); border-radius: 999px;
  padding: 11px 16px; font: inherit; font-size: 14.5px; color: var(--muted);
}
.post-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.post-head .who { font-weight: 650; font-size: 14.5px; }
.post-head .when { color: var(--muted); font-size: 12.5px; }
.post-body { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.post-art {
  height: clamp(150px, 24vw, 230px); border-radius: 8px; margin-bottom: 12px;
  background: linear-gradient(140deg, #cfd6e6, #aab6d0);
}
.post-art.b { background: linear-gradient(140deg, #f0d8c0, #d9b48c); }
.counts { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.acts { display: flex; padding-top: 6px; }
.acts span { flex: 1; text-align: center; padding: 7px; font-size: 14px; font-weight: 600; color: var(--body); border-radius: 6px; }
