:root {
  color-scheme: light;
  --bg: #fff;
  --ink: #1b1b1b;
  --ink-2: #4b4b4b;
  --muted: #6e6e6e;
  --line: #e3e3e3;
  --surface: #f7f7f7;
  --accent: #eb1000;
  --focus: #147af3;
  --shell: 1000px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 17px/1.65 "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: #075fc7; }
a:hover { color: #003f89; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 3; padding: 10px 14px; background: #111; color: #fff; }
.skip:focus { top: 12px; }
.topbar { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.topbar__inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.15rem; }
.brand-mark { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; background: var(--accent); clip-path: polygon(0 100%, 38% 0, 62% 0, 100% 100%, 72% 100%, 50% 44%, 28% 100%); }
.toplinks { display: flex; gap: 18px; flex-wrap: wrap; font-size: .95rem; }
.toplinks a { color: var(--ink-2); text-decoration: none; }
.toplinks a:hover { text-decoration: underline; }
main { padding-block: 36px 64px; }
.crumb { margin: 0 0 20px; font-size: .9rem; color: var(--muted); }
.crumb a { color: var(--muted); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.025em; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 0 0 12px; }
.lead { max-width: 70ch; margin: 12px 0 28px; color: var(--ink-2); font-size: 1.12rem; }
.toolbox { border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 4vw, 30px); background: #fff; box-shadow: 0 8px 26px rgba(0,0,0,.045); }
.fieldgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-weight: 650; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #b9b9b9; border-radius: 8px; color: var(--ink); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.button { border: 0; border-radius: 999px; padding: 11px 20px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.button:hover { background: #bd1000; }
.button--secondary { color: var(--ink); background: var(--surface); border: 1px solid var(--line); }
.button--secondary:hover { background: #ededed; }
.hint, .privacy { color: var(--muted); font-size: .92rem; }
.privacy { margin: 16px 0 0; }
.result { margin-top: 22px; padding: 16px; border-radius: 10px; background: var(--surface); }
.result[hidden] { display: none; }
.result h2 { font-size: 1.15rem; margin-bottom: 8px; }
.result pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 500 .97rem/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.result__visual { margin-top: 14px; }
.result__visual a { font-weight: 650; }
.copy-status { min-height: 1.5em; color: var(--muted); }
.prose { max-width: 76ch; margin-top: 44px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose h2:not(:first-child) { margin-top: 30px; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding: 0; list-style: none; }
.steps li { border-top: 2px solid var(--ink); padding-top: 12px; }
.steps strong { display: block; margin-bottom: 5px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; margin-top: 28px; }
.card { min-height: 160px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; background: #fff; }
.card:hover { border-color: #aaa; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.category { margin: 34px 0 8px; }
.sitefoot { padding-block: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.sitefoot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sitefoot a { color: var(--muted); }
.error { color: #a20d00; font-weight: 650; }
.markdown-preview { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow-wrap: anywhere; }
.markdown-preview h1, .markdown-preview h2, .markdown-preview h3 { margin: .6em 0; }
.markdown-preview p { margin: .7em 0; }
@media (max-width: 600px) {
  .shell { width: min(100% - 28px, var(--shell)); }
  .topbar__inner { align-items: flex-start; padding-block: 13px; flex-direction: column; }
  .toplinks { gap: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
