*{box-sizing:border-box} [hidden]{display:none!important}
:root{color-scheme:light;--paper:#f5f2fd;--ink:#281844;--accent:#6733d9;--line:#e5dcf3}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.5 system-ui,sans-serif}
header{background:#fff;border-bottom:1px solid var(--line)}
nav,main{max-width:62rem;margin:auto;padding:1rem 1.5rem}
nav{display:flex;justify-content:space-between;align-items:center;gap:1rem}
nav strong{font-size:1.2rem;white-space:nowrap}.logo{background:var(--accent);color:white;padding:.35rem .55rem;border-radius:.65rem}
#profile{color:#6a5b80;overflow-wrap:anywhere}
.hero{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:2.3rem 2.6rem;border-radius:1.75rem;color:white;background:#29134f;min-height:14rem;margin-top:1.2rem}
.hero h1{font-size:clamp(1.85rem,6vw,4rem);line-height:1.15;margin:0;overflow-wrap:anywhere}
.hero p{margin:.7rem 0 0;color:#e4d5ff}
.polaroid{flex:0 0 8rem;background:white;padding:.55rem .55rem 1.4rem;border-radius:.55rem;transform:rotate(10deg);box-shadow:.55rem .6rem #7446bc}
.picture{height:6rem;border-radius:.3rem;background:linear-gradient(153deg,#eeffbb 55%,#b9f482 56%,#b9f482 70%,#8bd2a7 71%);color:#7335d9;padding:.45rem 1rem;font-size:1.9rem}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}
.card{padding:1.35rem;background:white;border:1px solid var(--line);border-radius:1.1rem;overflow-wrap:anywhere}
form{display:grid;gap:.7rem}h2{font-size:1.2rem;margin:0 0 .35rem}
label{display:grid;gap:.3rem;font-weight:650}
input,textarea,button{font:inherit;border-radius:.65rem;min-width:0}
input,textarea{background:white;border:1px solid #c9badf;padding:.55rem .7rem;color:var(--ink);width:100%}
textarea{resize:vertical}
button{border:0;background:var(--accent);color:white;padding:.55rem .85rem;cursor:pointer;font-weight:700}
button:disabled{opacity:.65;cursor:wait}button:hover:not(:disabled){filter:brightness(.93)}
.light{background:#ede5fa;color:#492484}
.row{display:flex;align-items:center;gap:.55rem}.row input{flex:1;width:auto}
.upload{border:1px dashed #ac90d8;padding:.65rem;border-radius:.7rem;background:#f8f4ff}.upload input{border:0;background:transparent;padding:.35rem 0}
.preview{width:7rem;max-height:7rem;object-fit:cover;border-radius:.65rem}
.code{font:700 1.2rem ui-monospace,monospace;letter-spacing:.08em}
#status{min-height:1.5rem;color:#52307f;margin:.65rem 0}#status[data-error="true"]{color:#a22447}
.feed{margin-top:1.4rem}.feed-header{justify-content:space-between;flex-wrap:wrap;margin-bottom:.75rem}
.post{max-width:43rem;margin:0 auto .85rem}.post header{display:flex;justify-content:space-between;gap:1rem;border:0;margin-bottom:.65rem}
.post time,.empty{color:#6a5b80}.empty{text-align:center}
.photo{display:block;width:100%;max-height:40rem;object-fit:contain;background:var(--paper);border-radius:.65rem}
.comment-button{margin-top:.75rem;font-size:.875rem}.comment-button svg{width:1rem;vertical-align:-.14rem;margin-right:.25rem}
.comments{margin-top:.75rem}.comments p{margin:.45rem 0;border-bottom:1px solid var(--line);padding-bottom:.45rem}
@media(max-width:39rem){nav,main{padding-inline:.85rem}.hero{padding:1.4rem;min-height:10rem}.polaroid{flex-basis:4rem;padding:.3rem .3rem .7rem}.picture{height:3rem;padding:.1rem .4rem;font-size:1.1rem}.grid{grid-template-columns:1fr}}
