.portal-bar { background:var(--card); border-bottom:1px solid var(--line); }
.portal-bar > div { display:flex; align-items:center; justify-content:space-between; max-width:1180px; margin:auto; padding:0 24px; min-height:64px; gap:18px; }
.portal-brand { font:600 1.2rem var(--serif); text-decoration:none; color:var(--ink); white-space:nowrap; }
.portal-nav { display:flex; gap:clamp(12px,3vw,30px); flex-wrap:wrap; font-size:.94rem; }
.portal-nav a { text-decoration:none; }
.portal-nav a[aria-current] { text-decoration:underline; text-decoration-thickness:2px; }
.portal-shell { width:min(100% - 40px,1100px); margin:auto; padding:clamp(34px,8vw,88px) 0 50px; }
.portal-heading { max-width:760px; padding-bottom:clamp(30px,7vw,62px); }
.portal-heading h1, .collection-title { font:500 clamp(2.7rem,8vw,6rem)/1.02 var(--serif); letter-spacing:-.055em; margin:0; text-wrap:balance; }
.portal-heading p { color:var(--muted); font-size:1.1rem; max-width:530px; margin:12px 0 0; }
.collection-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.collection-card { background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden; display:flex; flex-direction:column; }
.collection-cover { min-height:166px; display:flex; align-items:end; position:relative; isolation:isolate; padding:20px 24px; background:#294237; color:#fffdf4; font-size:.94rem; }
.collection-cover img { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 56%; }
.collection-cover.tumblr::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(0deg,#172d20bf,#172d201f 77%); }
.collection-cover.reddit { background:radial-gradient(ellipse at 75% 30%,#855f54 0%,transparent 58%),radial-gradient(ellipse at 23% 120%,#926b4d 0%,transparent 60%),#3f2b36; }
.collection-body { flex:1; padding:20px 24px 24px; }
.collection-body h2 { font:500 clamp(2rem,5vw,3rem)/1.08 var(--serif); letter-spacing:-.036em; margin:0 0 8px; }
.collection-body p { color:var(--muted); margin:0 0 22px; }
.collection-actions { display:flex; flex-wrap:wrap; gap:10px; }
.collection-actions a { padding:8px 13px; border:1px solid var(--line); border-radius:5px; text-decoration:none; background:var(--card); }
.collection-actions a:first-child { background:var(--accent); color:white; border-color:var(--accent); }
.collection-actions a:hover { text-decoration:underline; }
.reddit-heading { margin:auto; max-width:990px; padding:38px 20px 0; }
.reddit-heading .collection-title { font-size:clamp(2.25rem,7vw,4.2rem); }
.reddit-heading p { margin:10px 0; color:var(--muted); }
.reddit-nav { margin-top:18px; display:flex; flex-wrap:wrap; gap:10px 24px; border-bottom:1px solid var(--line); }
.reddit-nav a { text-decoration:none; padding:10px 2px; border-bottom:2px solid transparent; }
.reddit-nav a[aria-current] { border-bottom-color:var(--accent); color:var(--ink); }
.reddit-feed { max-width:990px; margin:auto; padding:22px 20px 46px; }
.reddit-card { border:1px solid var(--line); border-radius:8px; background:var(--card); margin-bottom:16px; overflow:hidden; }
.reddit-card > header, .reddit-copy, .thread-comments { padding:16px clamp(17px,4vw,29px); }
.reddit-card > header h1, .reddit-card > header h2 { font:500 clamp(1.53rem,4vw,2.25rem)/1.14 var(--serif); margin:7px 0; overflow-wrap:anywhere; }
.reddit-card > header a:not(.reddit-source) { color:var(--ink); text-decoration:none; }
.reddit-card > header a:hover { text-decoration:underline; }
.reddit-meta, .reddit-source { color:var(--muted); font-size:.875rem; }
.reddit-copy { padding-top:0; overflow-wrap:anywhere; }
.reddit-copy > :first-child, .comment-body > :first-child { margin-top:0; }
.reddit-copy > :last-child, .comment-body > :last-child { margin-bottom:0; }
.reddit-copy blockquote, .comment-body blockquote { border-left:3px solid var(--line); margin-inline:0; padding-inline-start:12px; }
.reddit-copy pre, .comment-body pre { white-space:pre-wrap; overflow-wrap:anywhere; }
.reddit-asset { display:block; width:100%; height:auto; max-height:720px; object-fit:contain; background:#211f20; }
.reddit-media-list { display:grid; gap:4px; }
.reddit-media-list a { display:block; }
.reddit-card .post-image { max-height:640px; object-fit:contain; }
.thread-comments { border-top:1px solid var(--line); }
.thread-comments h2 { margin:0 0 12px; font:500 1.8rem var(--serif); }
.comment-list { list-style:none; margin:0; padding:0; }
.comment-list .comment-list { margin-left:clamp(4px,2vw,16px); padding-left:clamp(6px,2vw,14px); border-left:1px solid var(--line); }
.reddit-comment { padding:10px 0; color:var(--ink); }
.comment-meta { color:var(--muted); font-size:.835rem; margin-bottom:5px; }
.comment-meta strong { color:var(--accent); }
.comment-body { overflow-wrap:anywhere; }
.comment-detail { margin:10px 0; color:var(--muted); }
.reddit-gallery { width:min(100% - 40px,1100px); margin:24px auto 45px; padding:0; }
.media-tile { position:relative; }
.media-kind { position:absolute; right:8px; bottom:8px; background:#20241ee8; color:#fff; padding:2px 8px; border-radius:4px; font-size:.8rem; }
dialog video { max-height:72dvh; max-width:100%; margin:0 auto; display:block; }
dialog [hidden] { display:none; }
.post-media-embed { max-width:100%; height:auto; margin:10px 0; }
@media (max-width:620px) {
  .portal-shell { width:min(100% - 28px,1100px); }
  .portal-nav { gap:12px; }
  .portal-bar > div { padding:0 14px; }
  .collection-grid { grid-template-columns:1fr; }
  .collection-cover { min-height:130px; }
}
.reddit-list-card { display:flex; align-items:stretch; }
.reddit-list-card > header { flex:1; min-width:0; }
.reddit-list-card > header > p { margin:8px 0; color:var(--muted); }
.reddit-list-thumb { flex:0 0 clamp(70px,20vw,145px); min-height:92px; }
.reddit-list-thumb img { width:100%; height:100%; object-fit:cover; }
.reddit-media-list figure { margin:0; }
.reddit-media-list figcaption { padding:8px 18px; font-size:.9rem; color:var(--muted); }
.account-comment { padding-top:16px; }
