:root {
  --bg: #FBF7F2; --surface: #FFFFFF; --text: #2B2233; --muted: #6E6478;
  --pink: #E59BB3; --lavender: #CDBEEB; --purple: #7A5BA8; --line: #EDE4F2;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17121D; --surface: #221A2B; --text: #F3EDF7; --muted: #B6A9C2;
          --pink: #F0A9C0; --lavender: #4A3D60; --purple: #B79BE6; --line: #33283F; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--purple); }
h1, h2, h3 { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; line-height: 1.2; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); margin: .4em 0; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 .6em; }
h3 { font-size: 1.15rem; margin: 0 0 .3em; }
main, .top, footer { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
section { padding: 40px 0; border-top: 1px solid var(--line); }
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--text); }
.top nav a { margin-left: 16px; text-decoration: none; color: var(--muted); }
.hero { border-top: 0; padding-top: 32px; }
.pill { display: inline-block; margin: 0; padding: 2px 12px; border-radius: 99px; background: var(--lavender); color: var(--text); font-size: .85rem; }
.lead { font-size: 1.15rem; max-width: 640px; color: var(--muted); }
.cta { margin-top: 24px; }
.button { display: inline-block; padding: 14px 26px; border-radius: 99px; font-weight: 700; text-decoration: none;
  color: #fff; background: linear-gradient(135deg, var(--pink), var(--purple)); box-shadow: 0 6px 20px rgba(122,91,168,.3); }
.button:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.meta { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.grid p { margin: 0; color: var(--muted); font-size: .97rem; }
.cases { padding-left: 1.1em; }
.cases li { margin: .45em 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; margin: 10px 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--purple); font-size: .9rem; }
.note { color: var(--muted); font-size: .95rem; }
code { font-size: .8rem; word-break: break-all; background: var(--surface); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
footer { padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.doc h2 { font-size: 1.3rem; margin-top: 1.6em; }
.doc { max-width: 760px; }
@media (max-width: 520px) { .top nav { display: none; } }
