:root{
  --bg:#faf8f4; --surface:#ffffff; --ink:#1e1c19; --ink-soft:#5c574f;
  --accent:#9a3b28; --accent-soft:#f3e4dd; --line:#e6e0d6;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#171512; --surface:#211e1a; --ink:#f2ede4; --ink-soft:#b8b0a2;
    --accent:#e2a08c; --accent-soft:#3a2620; --line:#3a352d;
  }
}
:root[data-theme="dark"]{
  --bg:#171512; --surface:#211e1a; --ink:#f2ede4; --ink-soft:#b8b0a2;
  --accent:#e2a08c; --accent-soft:#3a2620; --line:#3a352d;
}
*{box-sizing:border-box;}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:"Zen Kaku Gothic New", sans-serif; line-height:1.8;
}
h1,h2,h3{ font-family:"Shippori Mincho", serif; font-weight:700; letter-spacing:.02em; }
.wrap{ max-width:760px; margin:0 auto; padding:0 20px; }
header.hero{ padding:56px 0 40px; border-bottom:1px solid var(--line); }
.kicker{ font-family:"IBM Plex Mono", monospace; font-size:12px; letter-spacing:.12em; color:var(--accent); text-transform:uppercase; }
h1{ font-size:30px; margin:14px 0 18px; }
.lead{ font-size:16px; color:var(--ink-soft); max-width:56ch; }
section{ padding:40px 0; border-bottom:1px solid var(--line); }
section:last-of-type{ border-bottom:none; }
h2{ font-size:22px; margin-bottom:16px; }
.card{ background:var(--surface); border:1px solid var(--line); border-radius:10px; padding:24px 26px; }
.card + .card{ margin-top:16px; }
.card h3{ font-size:17px; margin:0 0 8px; }
.card p{ margin:0 0 14px; color:var(--ink-soft); font-size:14.5px; }
.tag{ display:inline-block; font-family:"IBM Plex Mono", monospace; font-size:11px; padding:3px 8px; border-radius:5px; margin-bottom:10px; }
.tag.free{ background:var(--accent-soft); color:var(--accent); }
.tag.paid{ background:var(--ink); color:var(--bg); }
.btn{
  display:inline-block; text-decoration:none; font-size:14px; font-weight:700;
  padding:10px 20px; border-radius:7px; border:1px solid var(--accent);
  cursor:pointer; font-family:inherit;
}
.btn.primary{ background:var(--accent); color:#fff; }
.btn.ghost{ background:transparent; color:var(--accent); }
.btn:disabled{ opacity:.5; cursor:not-allowed; }
footer{ padding:40px 0 60px; color:var(--ink-soft); font-size:13px; }
.note{ font-size:12.5px; color:var(--ink-soft); margin-top:10px; }

label{ display:block; font-size:13px; font-weight:700; margin:18px 0 6px; }
label:first-child{ margin-top:0; }
input[type=text], textarea{
  width:100%; font-family:inherit; font-size:14.5px; color:var(--ink);
  background:var(--bg); border:1px solid var(--line); border-radius:7px;
  padding:10px 12px; resize:vertical;
}
textarea{ min-height:110px; }
.result{
  margin-top:20px; background:var(--bg); border:1px solid var(--line);
  border-radius:8px; padding:18px 20px; white-space:pre-wrap; font-size:14px;
  display:none;
}
.error{ color:var(--accent); font-size:13.5px; margin-top:10px; display:none; }
.spinner{
  display:inline-block; width:12px; height:12px; border:2px solid #fff;
  border-top-color:transparent; border-radius:50%; margin-right:6px;
  animation:spin .7s linear infinite; vertical-align:-1px;
}
@keyframes spin{ to{ transform:rotate(360deg); } }
