:root { --ink:#1d1b19; --muted:#6b645d; --line:#d9d2c8; --paper:#faf7f2; --card:#fff; --accent:#8c6b5c; --accent-ink:#5d4337; --bad:#a3312a; --warn:#8a6100; --ok:#2d6a3e; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; font:16px/1.5 Georgia, 'Times New Roman', serif; color:var(--ink); background:var(--paper); }
a { color:var(--accent-ink); }
.wrap { max-width:1280px; margin:auto; padding:0 1.5rem; }
.top { display:flex; align-items:center; justify-content:space-between; gap:1rem; max-width:1280px; margin:auto; padding:1rem 1.5rem; }
.brand { font-size:1.15rem; text-decoration:none; color:var(--ink); letter-spacing:.01em; }
.top nav a { font:600 .85rem system-ui, sans-serif; margin-left:1.1rem; text-decoration:none; color:var(--muted); }
.hero { max-width:1280px; margin:auto; padding:2rem 1.5rem 1rem; }
.hero h1 { font-weight:normal; font-size:clamp(1.9rem, 4.2vw, 3rem); line-height:1.12; margin:0 0 .7rem; max-width:21ch; text-wrap:balance; }
.hero p { font-size:1.1rem; color:var(--muted); max-width:58ch; margin:0 0 1.1rem; }
.points { display:flex; flex-wrap:wrap; gap:.5rem 1.4rem; padding:0; margin:0; list-style:none; font:.92rem system-ui, sans-serif; color:var(--ink); }
.points li::before { content:"✓ "; color:var(--ok); font-weight:700; }
main.maker { display:grid; grid-template-columns:minmax(320px, 460px) 1fr; gap:1.5rem; max-width:1280px; margin:auto; padding:1.2rem 1.5rem 3rem; align-items:start; }
@media (max-width:860px) { main.maker { grid-template-columns:1fr; } .top nav { display:none; } }
label { display:block; font:600 .8rem/1.2 system-ui, sans-serif; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin:1rem 0 .3rem; }
input, textarea, select { width:100%; font:inherit; padding:.55rem .65rem; border:1px solid var(--line); border-radius:6px; background:#fff; color:var(--ink); }
textarea { min-height:300px; font:14px/1.5 ui-monospace, Menlo, Consolas, monospace; resize:vertical; white-space:pre; overflow:auto; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.row { display:grid; grid-template-columns:1fr 1fr; gap:.8rem; }
.hint { font:.82rem/1.45 system-ui, sans-serif; color:var(--muted); margin:.3rem 0 0; }
.hint code { background:#efe9df; padding:.05rem .3rem; border-radius:3px; }
button, .btn { font:600 .95rem system-ui, sans-serif; padding:.65rem 1rem; border-radius:6px; border:1px solid var(--ink); background:var(--ink); color:#fff; cursor:pointer; text-decoration:none; display:inline-block; }
button.ghost { background:transparent; color:var(--ink); border-color:var(--line); }
button.link { background:none; border:0; padding:0; color:var(--accent-ink); text-decoration:underline; font:inherit; }
button:disabled { opacity:.4; cursor:not-allowed; }
.actions { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:1.2rem; }
#status { font:.9rem/1.45 system-ui, sans-serif; margin-top:1rem; }
#status ul { margin:.3rem 0 0; padding-left:1.1rem; }
.bad { color:var(--bad); } .warn { color:var(--warn); } .ok { color:var(--ok); }
.pay { margin-top:1.2rem; padding:1rem 1.1rem; background:var(--card); border:1px solid var(--line); border-radius:8px; font:.92rem/1.5 system-ui, sans-serif; }
.pay h2 { font:600 1rem system-ui, sans-serif; margin:0 0 .3rem; }
.pay p { margin:.2rem 0 .7rem; color:var(--muted); }
.pay .codeRow { display:flex; gap:.5rem; margin-top:.6rem; }
.pay .codeRow input { font:14px ui-monospace, Menlo, Consolas, monospace; }
.pay .codeRow button { white-space:nowrap; }
#payMsg { margin:.6rem 0 0; min-height:1.2em; }
.preview { position:sticky; top:1rem; }
.tabs { display:flex; align-items:center; gap:.4rem; margin-bottom:.6rem; }
.tabs button { padding:.35rem .8rem; font-size:.85rem; }
.tabs button[aria-pressed=false] { background:transparent; color:var(--ink); border-color:var(--line); }
.tabs .note { margin-left:auto; font:.8rem system-ui, sans-serif; color:var(--muted); }
#sheet { background:#fff; border:1px solid var(--line); box-shadow:0 6px 24px rgba(40,30,20,.12); max-height:86vh; overflow:auto; }
#sheet svg { display:block; width:100%; height:auto; }
#sheet.empty { padding:4rem 2rem; text-align:center; color:var(--muted); font-style:italic; }
.band { border-top:1px solid var(--line); padding:2.5rem 0; }
.band h2 { font-weight:normal; font-size:1.6rem; margin:0 0 1rem; }
.steps { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:1.2rem; padding:0; margin:0; list-style:none; counter-reset:s; }
.steps li { counter-increment:s; background:var(--card); border:1px solid var(--line); border-radius:8px; padding:1rem 1.1rem; }
.steps li::before { content:counter(s); display:inline-block; width:1.7rem; height:1.7rem; line-height:1.7rem; text-align:center; border-radius:50%; background:var(--accent); color:#fff; font:600 .9rem system-ui, sans-serif; margin-bottom:.5rem; }
.steps b { display:block; margin-bottom:.2rem; }
.faq { max-width:70ch; }
.faq details { border-bottom:1px solid var(--line); padding:.8rem 0; }
.faq summary { cursor:pointer; font-size:1.05rem; }
.faq p { color:var(--muted); margin:.5rem 0 0; }
.foot { border-top:1px solid var(--line); padding:1.5rem; text-align:center; font:.85rem system-ui, sans-serif; color:var(--muted); }
.foot a { color:var(--muted); }
body.doc .prose { max-width:68ch; margin:auto; padding:1rem 1.5rem 3rem; }
.prose h1 { font-weight:normal; font-size:2rem; margin:.5rem 0 0; }
.prose h2 { font:600 1.05rem system-ui, sans-serif; margin:1.8rem 0 .3rem; }
.muted { color:var(--muted); }
