/* slacker.chat/f: public feeds (website/api/_render.mjs). On top of style.css. */

.feed{padding-block:8px 56px}
.feed .head{display:flex;gap:16px;align-items:flex-start;padding-bottom:22px;border-bottom:1px solid var(--line)}
.feed .head h1{font-size:clamp(32px,6vw,44px)}
.feed .head .lede{margin-top:8px;font-size:18px}
.feed .head .cta{margin-top:16px}
.feed .head.plain{display:block}
.small{font-size:14px;margin-top:8px}
.empty{padding-block:32px}

.emoji{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.big{flex:none;display:grid;place-items:center;width:64px;height:64px;border-radius:16px;background:var(--panel);
  font-size:36px;line-height:1}

.post{padding-block:20px;border-bottom:1px solid var(--line)}
/* the post a link pointed at (a bubble on the home page, /f/<slug>#p-<id>): lit up green for a moment */
.post:target{scroll-margin-top:24px;animation:lit 2.4s ease-out both;border-radius:14px;margin-inline:-12px;padding-inline:12px}
@keyframes lit{from{background:rgba(158,242,159,.65)}to{background:rgba(158,242,159,.18)}}
@media (prefers-reduced-motion:reduce){.post:target{animation:none;background:rgba(158,242,159,.25)}}
.post .by{display:flex;align-items:center;gap:8px;font-size:15px}
.post .who{font-weight:700}
.post time{color:var(--muted)}
.post h2{font-family:var(--body);font-weight:700;font-size:19px;letter-spacing:0;line-height:1.3;margin-top:8px}
.post h2 a{text-decoration:none}
.post h2 a:hover{text-decoration:underline}
.post .sum{margin-top:6px;color:var(--ink)}
.post .meta{margin-top:10px;font-size:14px;color:var(--muted)}
.post .meta a{color:var(--muted)}

.face{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;font-size:14px;font-weight:700;
  color:#fff;background:#8B8D98}
.face.emoji{background:var(--panel);font-size:15px}
.c-blue{background:#3B82F6}.c-teal{background:#14B8A6}.c-green{background:#22A55A}.c-yellow{background:#D9A400}
.c-orange{background:#F08A24}.c-red{background:#E5484D}.c-pink{background:#E54D9A}.c-purple{background:#8E4EC6}
.c-indigo{background:#5B5BD6}.c-gray{background:#8B8D98}.c-cyan{background:#0EA5C6}

/* An embedded post: the platform's own blockquote, styled until (and if) its script turns it into a card. */
.embed{margin-top:12px}
.embed blockquote{margin:0;padding:12px 16px;border:1px solid var(--line);border-radius:14px;background:var(--window);
  font-size:15px}
.embed blockquote p{margin-bottom:6px}
.embed.out{display:inline-block;font-size:14px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;
  background:var(--window);text-decoration:none}

.card{display:flex;gap:16px;align-items:center;padding-block:18px;border-bottom:1px solid var(--line);text-decoration:none}
.card .text{display:flex;flex-direction:column;min-width:0}
.card .name{font-weight:700;font-size:19px}
.card .about{color:var(--ink)}
.card .small{margin-top:4px}
.card:hover .name{text-decoration:underline}

.more{padding-top:24px;text-align:center}

/* Any topic (api/_render.mjs topicBox, topicPage): a box on /f, and a page for a topic nobody watches yet. */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.topic{display:flex;gap:8px;margin-top:22px;max-width:560px}
.topic input{flex:1;min-width:0;font:inherit;font-size:17px;padding:12px 18px;border-radius:999px;border:1px solid var(--line);
  background:var(--window);color:var(--ink)}
.topic input:focus{outline:2px solid var(--accent-ink);outline-offset:1px}
.topic .btn{flex:none}
.hint{margin-top:10px}.hint a{color:var(--muted)}
.kicker{font-size:14px;color:var(--muted);margin-bottom:6px}
.preview{list-style:none;margin:8px 0 0;padding:0;counter-reset:n}
.preview li{display:flex;flex-direction:column;gap:2px;padding:14px 0 14px 34px;border-bottom:1px solid var(--line);position:relative;counter-increment:n}
.preview li::before{content:counter(n);position:absolute;left:0;top:15px;width:22px;text-align:right;color:var(--muted);font-size:15px}
.preview .pt{font-weight:700;font-size:18px;line-height:1.3;text-decoration:none}
.preview .pt:hover{text-decoration:underline}
.preview .small{margin-top:2px}
.label{margin-top:12px}
.start{margin-top:32px;padding:24px;border-radius:20px;background:var(--panel)}
.start h2{font-size:28px}
.start p{margin-top:10px;max-width:34em}
.start .cta{margin-top:18px;display:flex;gap:10px;flex-wrap:wrap}
.others{font-size:22px;margin-top:40px}
.again{margin-top:36px;padding-top:8px;border-top:1px solid var(--line)}
@media (max-width:600px){.topic{flex-direction:column}.topic .btn{align-self:flex-start}.start{padding:18px}}

/* A feed's icon (api/_render.mjs feedIcon), as the apps draw it: a white glyph on the kind's color, or its emoji. */
.ficon{flex:none;display:grid;place-items:center;border-radius:24%;background:var(--panel);line-height:1}
.ficon svg{width:58%;height:58%}
.ficon.emoji{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}
.ficon.hero{width:128px;height:128px;border-radius:30px;font-size:68px}
.ficon.big{width:64px;height:64px;border-radius:16px;font-size:36px}
.ficon.sm{width:26px;height:26px;border-radius:7px;font-size:15px}
.k-github{background:#C96442}.k-hn{background:#F08A24}.k-reddit{background:#FF6A2B}.k-usps{background:#8E6E53}
.k-heartbeat{background:#E5486B}.k-other{background:#8B8D98}

/* A feed's page as a profile (feedPage): icon, name, owner, counts; who writes it; the newest post large. */
.fhead{display:flex;gap:28px;align-items:center;padding-top:8px}
.fhead h1{font-size:clamp(34px,6vw,48px)}
.fhead .owner{margin-top:6px;font-size:17px}
.fhead .stats{margin-top:12px;display:flex;flex-wrap:wrap;gap:6px 22px;font-size:17px;font-weight:700}
.bio{margin-top:18px;font-size:19px;max-width:34em;text-wrap:pretty}
.writers{display:flex;align-items:center;gap:10px;margin-top:12px;color:var(--muted);font-size:15px}
.writers .stack{display:inline-flex}
.writers .stack>*{box-shadow:0 0 0 2px var(--bg)}
.writers .stack>*+*{margin-left:-7px}
.feed>.cta{margin-top:18px;padding-bottom:26px;border-bottom:1px solid var(--line)}
.day{font-family:var(--body);font-size:14px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);
  margin:28px 0 0}
.day+.post{padding-top:12px}
.post.lead{margin-top:12px;padding:22px 24px;border:1px solid var(--line);border-radius:22px;background:var(--window)}
.post.lead h2{font-family:var(--display);font-weight:900;font-size:clamp(24px,4vw,30px);line-height:1.15;margin-top:12px}
.post.lead .sum{font-size:18px}
.post:not(.lead) .sum{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.post.lead+.day{margin-top:34px}
@media (max-width:600px){
  .fhead{gap:18px}
  .ficon.hero{width:88px;height:88px;border-radius:22px;font-size:46px}
  .fhead .stats{font-size:15px;gap:4px 14px}
  .bio{font-size:17px}
  .post.lead{padding:18px}
}
