@font-face{font-family:Manrope;src:url("assets/manrope.woff2") format("woff2");font-weight:400 800;font-display:swap}
:root{--ink:#1a1913;--muted:#605e54;--line:#e8e3d5;--paper:#fffefa;--sun:#ffca19;font:500 16px/1.45 Manrope,system-ui,sans-serif;color:var(--ink);color-scheme:light}
*{box-sizing:border-box}
body{margin:0;min-height:100dvh;background:radial-gradient(ellipse at 50% 12%,#eee7d7 0%,#ded5c4 62%,#d5c9b7 100%)}
body:has(dialog[open]){overflow:hidden}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{cursor:default}
button:focus-visible,a:focus-visible{outline:2px solid #996a00;outline-offset:2px}
.preview-label{margin:19px auto 13px;text-align:center;font-size:.71rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:#514a36}
.phone{width:min(calc(100% - 24px),444px);margin:auto;background:#211f17;padding:8px;border:1px solid #958b76;border-radius:35px;box-shadow:0 22px 52px #251d1a36,0 3px 10px #251d1a30}
.screen{background:var(--paper);border-radius:27px;overflow:hidden}
.profile-bar{display:flex;justify-content:space-between;align-items:center;padding:16px 17px 13px;border-bottom:1px solid var(--line);gap:10px}
.profile-bar strong{font-size:1.04rem;font-weight:800;letter-spacing:-.035em;overflow-wrap:anywhere}
.profile-bar a{display:block;flex:0 0 auto}
.profile-bar a img{display:block;width:76px;height:auto}
.profile{padding:18px 17px 13px}
.profile-top{display:flex;align-items:center;gap:19px}
.portrait{width:74px;height:74px;border-radius:50%;object-fit:cover;padding:3px;border:2px solid #e6ad0a;flex:0 0 auto}
.identity h1{font-size:1.12rem;line-height:1.22;margin:0 0 9px;font-weight:800;letter-spacing:-.04em}
.stats{display:flex;gap:18px;color:var(--muted);font-size:.7rem;margin:0;line-height:1.25}
.stats strong{display:block;color:var(--ink);font-size:.93rem;font-weight:800}
.bio{margin:12px 0 0;font-size:.81rem;line-height:1.5}
.bio span{color:var(--muted)}
.feed-head{border-top:1px solid var(--line);display:flex;justify-content:center;align-items:center;gap:7px;height:42px;font-size:.8rem;font-weight:800;margin:0}
.grid-icon{width:14px;aspect-ratio:1;border:1px solid currentColor;background:linear-gradient(90deg,transparent 30%,currentColor 30% 36%,transparent 36% 64%,currentColor 64% 70%,transparent 70%),linear-gradient(transparent 30%,currentColor 30% 36%,transparent 36% 64%,currentColor 64% 70%,transparent 70%)}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:0 3px 3px}
.tile{position:relative;aspect-ratio:4/5;border:0;padding:0;background:#1a1913;overflow:hidden;display:block}
.tile img{display:block;width:100%;height:100%;object-fit:contain}
.tile::after{content:"";position:absolute;inset:0;border:2px solid transparent;pointer-events:none}
.tile:hover::after,.tile:focus-visible::after{border-color:var(--sun)}
.tile:focus-visible{outline-offset:-3px}
.stack{position:absolute;top:5px;right:5px;background:#171711da;color:#fff;width:21px;height:21px;border-radius:5px;display:grid;place-items:center}
.stack::before,.stack::after{content:"";border:1.2px solid currentColor;border-radius:2px;width:7px;height:7px;position:absolute}
.stack::before{transform:translate(2px,-2px)}
.stack::after{transform:translate(-2px,2px);background:#22221b}
.feed-footer{padding:13px 15px 15px;text-align:center;color:var(--muted);font-size:.72rem}
.page-footer{color:#514a36;text-align:center;font-size:.72rem;margin:15px auto 22px}
dialog{width:min(calc(100vw - 42px),426px);max-height:calc(100dvh - 24px);border:0;padding:0;background:var(--paper);color:var(--ink);border-radius:23px;box-shadow:0 0 0 8px #211f17,0 24px 80px #19150c66;overscroll-behavior:contain;scrollbar-width:thin}
dialog::backdrop{background:#262219a6;backdrop-filter:blur(4px)}
.post-head{display:flex;align-items:center;min-height:60px;gap:8px;padding:6px 14px 6px 7px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--paper);z-index:2}
.post-head img{border-radius:50%;object-fit:cover;flex-shrink:0}
.post-head strong,.post-head span{display:block}
.post-head strong{font-size:.83rem;font-weight:800}
.post-head span{font-size:.72rem;color:var(--muted)}
.close{border:0;background:transparent;font-size:24px;line-height:1;border-radius:8px;width:44px;height:44px;flex-shrink:0}
.close:hover,.post-links button:hover:not(:disabled),.post-actions button:hover{background:#f1ecdf}
.carousel{position:relative;background:var(--ink);touch-action:pan-y pinch-zoom}
.carousel img{width:100%;height:auto;display:block}
.slide-count{position:absolute;right:10px;top:10px;padding:3px 8px;border-radius:20px;background:#141410d9;color:#fff;font-size:.7rem;font-weight:800;font-variant-numeric:tabular-nums}
.arrow{position:absolute;top:47%;transform:translateY(-50%);border:0;border-radius:50%;width:40px;height:40px;display:grid;place-items:center;background:#fffefaeb;color:var(--ink);font-size:29px;font-weight:800;line-height:.6;box-shadow:0 3px 16px #0003}
.arrow:hover{background:var(--sun)}
.arrow.left{left:8px}.arrow.right{right:8px}
.arrow span{margin-top:-3px}
.arrow:disabled{visibility:hidden}
.post-details{padding:4px 14px 14px}
.post-actions{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;margin:0 -5px 7px}
.post-actions>button{background:transparent;border:0;border-radius:8px;width:44px;height:44px;display:grid;place-items:center}
.post-actions>button[aria-pressed="true"]{color:#af311b}
.heart{font-size:26px;line-height:1}
.bookmark{width:13px;height:17px;display:block;background:currentColor;clip-path:polygon(0 0,100% 0,100% 100%,50% 75%,0 100%,0 0,13% 11%,13% 78%,50% 59%,87% 78%,87% 11%,13% 11%)}
[aria-pressed="true"] .bookmark{clip-path:polygon(0 0,100% 0,100% 100%,50% 75%,0 100%)}
.dots{display:flex;justify-content:center;gap:1px}
.dots button{width:24px;height:35px;padding:0;border:0;background:transparent;border-radius:8px;display:grid;place-items:center}
.dots button::before{content:"";border-radius:20px;width:6px;height:6px;background:#a6a093}
.dots button[aria-current="true"]::before{background:#996a00;width:15px}
.post-details h2{font-size:1.08rem;line-height:1.19;letter-spacing:-.032em;margin:0 0 8px;font-weight:800}
.post-details p{font-size:.84rem;white-space:pre-line;margin:0 0 13px}
.post-links{padding-top:7px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:4px;font-size:.73rem}
.post-links button{font-weight:800;border:0;border-radius:6px;background:transparent;padding:10px 5px}
.post-links button:disabled{color:#837d70}
#post-count{color:var(--muted);font-variant-numeric:tabular-nums}
@media(max-width:520px){
body{background:var(--paper)}
.preview-label{margin:0;padding:8px;background:#f1ecdf;font-size:.61rem}
.phone{width:100%;padding:0;border:0;border-radius:0;box-shadow:none}
.screen{border-radius:0}
.page-footer{border-top:1px solid var(--line);margin:0;padding:13px}
dialog{width:100%;max-width:none;height:100dvh;max-height:100dvh;border-radius:0;inset:0;margin:0;box-shadow:none}
}