:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-soft: #f4f6f7;
  --surface: #ffffff;
  --text: #1a2024;
  --muted: #4b5560;
  --border: #d9dee2;
  --accent: #0f766e;
  --accent-hover: #0b5d57;
  --accent-text: #ffffff;
  --accent-soft: #e6f4f2;
  --code-bg: #eef1f3;
  --focus: #0f766e;
  --radius: 10px;
  --max: 70rem;
  --prose: 44rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1416;
    --bg-soft: #151d20;
    --surface: #182124;
    --text: #e7ecee;
    --muted: #a9b4ba;
    --border: #2c393e;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-text: #04201d;
    --accent-soft: #11302d;
    --code-bg: #1f2a2e;
    --focus: #2dd4bf;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 1.0625rem; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 1.6em 0 0.5em; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-top: 0.4em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.8rem); }
h3 { font-size: 1.2rem; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
code, kbd, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; }
kbd { border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0.05em 0.4em; background: var(--surface); }
pre { background: var(--code-bg); padding: 1rem; border-radius: var(--radius); overflow-x: auto; white-space: pre-wrap; word-break: break-word; }

.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.prose { max-width: var(--prose); }

.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-left: auto; font-size: 0.97rem; }
.site-nav a { color: var(--text); text-decoration: none; padding: 0.3rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 0.7rem 1.2rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; font-size: 1rem; font-family: inherit; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-small { padding: 0.35rem 0.8rem; font-size: 0.92rem; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.crumbs { font-size: 0.92rem; color: var(--muted); margin: 1.25rem 0 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

main { padding-bottom: 3rem; }
.lead { font-size: 1.2rem; color: var(--text); }
.muted { color: var(--muted); }
.hero { padding: 2.5rem 0 1.5rem; }
.hero .lead { max-width: 42rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1.5rem 0 0.5rem; }
.cta-note { font-size: 0.95rem; color: var(--muted); }

.section { padding: 1rem 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; padding: 0; list-style: none; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.steps { counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding-top: 2.6rem; }
.steps > li::before { content: counter(step); position: absolute; top: 1rem; left: 1.2rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; }

.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.callout > :last-child { margin-bottom: 0; }
.tldr strong:first-child { display: block; margin-bottom: 0.3rem; }
.band { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: 2rem 0; padding: 1.5rem 0 2rem; }

.faq details { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.8rem 1rem; margin-bottom: 0.6rem; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details[open] summary { margin-bottom: 0.5rem; }
.faq details > :last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: 0.97rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); }
th { background: var(--bg-soft); }

.prompt-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0 0 1rem; background: var(--surface); }
.prompt-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem; }
.prompt-head h2 { margin: 0; font-size: 1.15rem; }
.prompt-card pre { margin: 0.75rem 0 0.5rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.tags li { background: var(--accent-soft); color: var(--text); border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.88rem; margin: 0; }
.share-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 1rem 0 1.5rem; }
[hidden] { display: none !important; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 2rem 0; font-size: 0.95rem; }
.footer-cols { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.site-footer h2 { font-size: 1rem; margin: 0 0 0.5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--text); }
.site-footer .fine { color: var(--muted); margin-top: 1.5rem; }
.h3 { font-size: 1.15rem; margin-top: 0; }
pre code { background: none; padding: 0; border-radius: 0; font-size: 1em; }

.shot { display: block; width: 100%; max-width: 1080px; height: auto; margin-top: 32px; border-radius: 14px; border: 1px solid rgba(127,127,127,.25); box-shadow: 0 24px 60px rgba(16,24,32,.18); }
