:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2a2420;
  --muted: #6b6058;
  --accent: #8a4b1c;
  --border: #e4dcd2;
  --code-bg: #f3eee7;
  --ok: #2f6b3a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1714;
    --surface: #24201c;
    --text: #ede6de;
    --muted: #a89c90;
    --accent: #e0a46c;
    --border: #3a332d;
    --code-bg: #2c2722;
    --ok: #7fc28c;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1714;
  --surface: #24201c;
  --text: #ede6de;
  --muted: #a89c90;
  --accent: #e0a46c;
  --border: #3a332d;
  --code-bg: #2c2722;
  --ok: #7fc28c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 44rem; margin: 0 auto; padding: 2.5rem 16px 4rem; }
header p.kicker { margin: 0; color: var(--accent); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0.3rem 0 1rem; }
h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; margin: 0; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.1rem; }
ol.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
ol.steps > li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem 0.6rem 3.4rem;
  margin: 0 0 0.9rem;
  position: relative;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 1rem; top: 1rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--accent); color: var(--bg);
  font-weight: 700; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
ol.steps ul { margin: 0.5rem 0 0.6rem; padding-left: 1.1rem; }
ol.steps li li { margin: 0.2rem 0; }
.path { font-weight: 600; }
.note { color: var(--muted); font-size: 0.92rem; }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 5px; font-size: 0.92em; overflow-wrap: anywhere; }
.prompt-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.prompt-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); }
.prompt-bar span { color: var(--muted); font-size: 0.9rem; }
button.copy {
  font: inherit; font-size: 0.95rem; font-weight: 600;
  background: var(--accent); color: var(--bg);
  border: 0; border-radius: 8px; padding: 0.45rem 0.95rem; cursor: pointer;
  transition: transform 0.1s ease;
}
button.copy:active { transform: scale(0.97); }
button.copy.done { background: var(--ok); }
pre#prompt {
  margin: 0; padding: 1rem 0.95rem;
  white-space: pre-wrap; word-wrap: break-word;
  font: 0.92rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--code-bg); color: var(--text);
}
.help { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 1rem 1.1rem; }
.help p:last-child { margin-bottom: 0; }
footer { margin-top: 3rem; color: var(--muted); font-size: 0.88rem; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a code { color: inherit; }
