:root{
  --bg:#0f1115; --surface:#171a21; --ink:#f3f4f6; --muted:#a7adba; --line:#2a2f3a;
  --accent:#5b8cff; --accent-2:#3f6fe0; --good:#37d399; --maxw:760px;
}
*{ box-sizing:border-box; }
html,body{ margin:0; }
body{
  background:var(--bg); color:var(--ink); line-height:1.6; letter-spacing:-.01em;
  font-family:-apple-system,BlinkMacSystemFont,system-ui,"Malgun Gothic","Apple SD Gothic Neo",sans-serif;
  -webkit-font-smoothing:antialiased;
}
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 20px; }
a{ color:inherit; }

header.site{ border-bottom:1px solid var(--line); }
header.site .wrap{ display:flex; align-items:center; gap:10px; height:56px; }
.brand{ font-weight:800; font-size:20px; text-decoration:none; }
.tag{ font-size:13px; color:var(--muted); }

.hero{ text-align:center; padding:44px 0 20px; }
.hero h1{ font-size:30px; margin:0 0 10px; line-height:1.25; }
.hero p{ margin:0; color:var(--muted); font-size:15px; }
.hero strong{ color:var(--ink); }

.drop{
  margin:8px 0 4px; border:2px dashed var(--line); border-radius:16px; background:var(--surface);
  min-height:200px; display:flex; align-items:center; justify-content:center; text-align:center;
  cursor:pointer; transition:border-color .15s, background .15s;
}
.drop:hover,.drop.over{ border-color:var(--accent); background:#1b2029; }
.drop:focus-visible{ outline:3px solid var(--accent); outline-offset:2px; }
.drop-title{ font-size:17px; font-weight:700; }
.drop-sub{ font-size:13px; color:var(--muted); margin-top:6px; }

.status{ min-height:22px; text-align:center; color:var(--muted); font-size:14px; margin:14px 0; }
.status[aria-busy="true"]{ color:var(--accent); }

.result{ text-align:center; margin:6px 0 8px; }
.canvas-wrap{
  display:inline-block; max-width:100%; border:1px solid var(--line); border-radius:12px; overflow:hidden;
  /* 투명 영역이 보이도록 체커보드 */
  background-color:#e9ecf2;
  background-image:
    linear-gradient(45deg,#c8cdd8 25%,transparent 25%),
    linear-gradient(-45deg,#c8cdd8 25%,transparent 25%),
    linear-gradient(45deg,transparent 75%,#c8cdd8 75%),
    linear-gradient(-45deg,transparent 75%,#c8cdd8 75%);
  background-size:20px 20px; background-position:0 0,0 10px,10px -10px,-10px 0;
}
#out{ display:block; max-width:100%; height:auto; }

.btn{
  appearance:none; border:0; margin:14px auto 0; display:inline-block; cursor:pointer;
  background:var(--accent); color:#fff; font-size:15px; font-weight:700; padding:12px 22px; border-radius:10px;
  min-height:44px;
}
.btn:hover{ background:var(--accent-2); }
.btn:focus-visible{ outline:3px solid #fff; outline-offset:2px; }

.prose{ margin:36px 0 12px; color:var(--muted); }
.prose h2{ color:var(--ink); font-size:18px; margin:22px 0 8px; }
.prose p{ margin:0 0 8px; font-size:14px; }
.prose strong{ color:var(--ink); }

footer.site{ border-top:1px solid var(--line); margin-top:24px; }
.foot-note{ color:var(--muted); font-size:12px; padding:18px 0; text-align:center; margin:0; }

@media (max-width:520px){
  .hero h1{ font-size:24px; } .hero{ padding:32px 0 16px; }
}
