:root {color-scheme:dark; --wall:#243e42; --case:#1a3338; --paper:#f6f1e4; --ink:#263d3d; --muted:#becdc7; --seal:#954a3e; --type:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic","맑은 고딕",system-ui,sans-serif; font:16px/1.5 var(--type)}
* {box-sizing:border-box}
body {margin:0; min-height:100vh; min-height:100svh; color:var(--paper); background:radial-gradient(ellipse at 50% 15%,#3a5352,var(--wall) 62%,var(--case))}
.mast,main {width:min(52rem,calc(100% - 2.8rem)); margin-inline:auto}
.mast {display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:clamp(1rem,3.3vh,2.2rem) .1rem 1rem; font:700 1.03rem var(--type)}
.mast span:last-child {font:.82rem/1.3 system-ui,sans-serif; color:var(--muted)}
main {padding-bottom:max(1.2rem,env(safe-area-inset-bottom))}
.paper {padding:clamp(8px,1.4vw,17px); background:var(--paper); color:var(--ink); box-shadow:0 5px 13px #0d21294d,0 1px 1px #0a191a55}
.exposure {position:relative; overflow:hidden; aspect-ratio:2.05; isolation:isolate; background:#374647; user-select:none; touch-action:pan-y}
.exposure img,.exposure i {position:absolute; inset:0; width:100%; height:100%; display:block; pointer-events:none}
.exposure img {object-fit:cover; transform:scale(1.16); transform-origin:50% 50%}
.exposure i {background:var(--light,transparent); mix-blend-mode:multiply}
.imprint {padding:clamp(.9rem,2.5vw,1.5rem) clamp(.25rem,1.7vw,1rem) .45rem; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:clamp(.6rem,3vw,1.9rem); align-items:start}
.imprint p {margin:0; word-break:keep-all; overflow-wrap:anywhere}
#line {color:#4b625f; font-size:clamp(.73rem,1.6vw,.87rem)}
h1 {font:700 clamp(1.8rem,5.3vw,3.25rem)/1.2 var(--type); margin:.31rem 0 .5rem; letter-spacing:-.02em; word-break:keep-all}
#caption {font:normal clamp(.92rem,1.8vw,1.07rem)/1.55 var(--type); color:#435454}
.postmark {align-self:center; width:clamp(60px,10vw,89px); aspect-ratio:1; flex-shrink:0; border:2px solid currentColor; border-radius:50%; display:flex; flex-direction:column; justify-content:center; align-items:center; color:var(--seal); outline:1px dashed currentColor; outline-offset:-5px; transform:rotate(-7deg); user-select:none}
.postmark span {font-size:clamp(.56rem,1.4vw,.69rem); line-height:1.4}
.postmark b {margin:2px 0; padding:0 3px; border-block:1px solid currentColor; font:600 clamp(.82rem,2vw,1.2rem)/1.2 var(--type); font-variant-numeric:tabular-nums}
.develop,.bottom,.compose,.views,.framing {display:flex; align-items:center; gap:.7rem}
.develop {justify-content:space-between; flex-wrap:wrap; gap:.65rem 1rem; margin-top:1.1rem}
.invitation {margin:0; flex-basis:100%; color:#d6e1d8; font:.94rem/1.45 var(--type)}
.compose {gap:clamp(.8rem,4vw,2rem); flex-wrap:wrap}
.views {gap:0; border:1px solid #91a39c; border-radius:3px; padding:2px}
button,.bottom a,.bottom summary,input {touch-action:manipulation}
button {font:inherit; cursor:pointer}
.views button {border:0; background:none; color:#eff2e6; min-height:40px; padding:.3rem .8rem; border-radius:1px; font-size:.88rem}
.views button[aria-pressed=true] {background:#e0e8d9; color:#1a3637}
.framing {font-size:.8rem; color:#d3ded8; white-space:nowrap; gap:.45rem}
.framing input {accent-color:#c2d4be; width:clamp(4rem,11vw,7rem); min-height:42px; margin:0; cursor:ew-resize}
#save {border:1px solid #e4debd; border-radius:2px; padding:.56rem 1.15rem; min-height:44px; background:#e9deb4; color:#253a37; font-weight:650; font-size:.92rem}
#save:disabled {opacity:.55; cursor:default}
.bottom {border-top:1px solid #7a928b7d; align-items:baseline; justify-content:space-between; gap:1rem; margin-top:1rem; padding:.35rem .1rem 0}
.bottom a,.bottom summary {display:inline-block; padding:.5rem 0; color:inherit; text-underline-offset:4px}
#board {color:#f6f0db; text-decoration:none; font-size:.96rem}
#board span {font-size:1rem; margin-left:.18rem}
.bottom details {color:#c4d0c9; text-align:right; font-size:.76rem; max-width:min(63%,28rem)}
.bottom summary {cursor:pointer; text-decoration:underline}
.bottom details p {margin:0 0 .4rem}
.bottom details a {padding:0}
.invites {display:flex; align-items:center; gap:clamp(.8rem,3vw,2rem); flex-wrap:wrap}
#share {border:0; background:none; padding:.6rem 0; text-decoration:underline; text-underline-offset:4px; color:#eef0df; font-size:.84rem}
#copy-link {width:100%; padding:.6rem; font:inherit}
#feedback {margin:.3rem 0 0; color:#e4e8cc; font-size:.9rem}
#feedback:empty,[hidden] {display:none!important}
:focus-visible {outline:3px solid #f2d287; outline-offset:3px}
@media(max-width:540px) {
 .mast,main {width:calc(100% - 1.6rem)}
 .mast {padding-top:max(1.25rem,env(safe-area-inset-top)); padding-bottom:.85rem}
 .exposure {aspect-ratio:1.24}
 .imprint {padding:.83rem .25rem .4rem}
 h1 {font-size:clamp(1.6rem,7.8vw,2.35rem)}
 #caption {font-size:.93rem}
 .develop {display:grid;grid-template-columns:1fr auto;gap:.6rem}
 .compose {display:contents}
 .views {justify-self:start}
 .invitation {grid-column:1/-1;grid-row:1}
 .framing {grid-column:1/-1; grid-row:3; gap:.8rem}
 .framing input {width:8rem}
 #save {grid-column:2;grid-row:2;padding:.5rem .85rem}
 .bottom {margin-top:.4rem}
}
