/* LocalLoop: a light, friendly social network. Its own look, not any real network's. */
:root {
    --bg: #f4f6fb;
    --card: #ffffff;
    --ink: #1f2433;
    --muted: #6a7187;
    --line: #e2e6f0;
    --brand: #6c4ce0;
    --brand-2: #ff7a59;
    --bubble: #f1f2f8;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-inner { max-width: 960px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; color: var(--ink); }
.brand strong { color: var(--brand); }
.brand:hover { text-decoration: none; }
.search { flex: 1; }
.search input {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg);
    font: inherit;
}
.search input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.me { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; white-space: nowrap; }

.page { max-width: 960px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { font-size: 1.4rem; margin: 0 0 8px; }
h2 { font-size: 1.05rem; margin: 22px 0 10px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.empty { color: var(--muted); }
.welcome p { margin: 0; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.85rem; }

.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bubble); flex: none; }
.avatar-small { width: 30px; height: 30px; }
.avatar-large { width: 96px; height: 96px; border: 4px solid var(--card); }

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.person-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.friends .person-row { border: none; padding: 4px 0; }
.name { font-weight: 600; color: var(--ink); }

.profile { padding: 0; overflow: hidden; }
.cover { display: block; width: 100%; height: 200px; object-fit: cover; }
.profile-head { display: flex; align-items: flex-end; gap: 14px; padding: 0 18px; margin-top: -40px; }
.profile:not(:has(.cover)) .profile-head { margin-top: 16px; }
.profile-head h1 { margin: 0; }
.bio { padding: 0 18px; margin: 12px 0 0; white-space: pre-line; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 18px 16px; margin: 0; color: var(--muted); font-size: 0.9rem; }

.profile-body { display: grid; grid-template-columns: 260px 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.friends h2 { margin-top: 0; }
.feed { display: grid; gap: 16px; }

.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.post-head { display: flex; gap: 10px; align-items: center; }
.text { margin: 10px 0; white-space: pre-line; }
.photo { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 10px; background: var(--bubble); }
.photo-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.photo-more .photo { aspect-ratio: 1; max-height: 260px; }
.post-foot { display: flex; gap: 18px; margin-top: 10px; color: var(--muted); font-size: 0.9rem; }
.post-foot a { color: var(--muted); }

.comments { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.comments li { display: flex; gap: 8px; align-items: flex-start; }
.bubble { background: var(--bubble); border-radius: 12px; padding: 8px 12px; }
.bubble p { margin: 2px 0; }

.back { margin: 0 0 10px; }

.foot { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 20px 16px 30px; }

@media (max-width: 720px) {
    .profile-body { grid-template-columns: 1fr; }
    .friends { order: 2; }
    .me-name { display: none; }
    .brand span { display: none; }
}

/* Friend lists: a link to all of them, the full list in columns, and private accounts. */
.see-all { margin: 12px 0 0; font-size: 0.9rem; }
.people-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.private-note { color: var(--muted); }
