:root {
  --apricot: #F4943C;
  --apricot-deep: #D9622B;
  --flesh: #FFC98F;
  --plum: #2E2240;
  --tint: #FFF1E4;
  --tint-text: #9A3F14;
  --surface: #FFFFFF;
  --warm: #FCF8F4;
  --border: #F0E6DC;
  --muted: #6F645B;
  --text: #2E2240;
  --link: #9A3F14;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #1B1428;
    --warm: #241A33;
    --border: #3A2D4D;
    --tint: #4A2A1C;
    --tint-text: #FFC98F;
    --text: #F5EEE8;
    --muted: #B7ABC4;
    --link: #FFC98F;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--surface); color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

header.site { border-bottom: 1px solid var(--border); background: var(--warm); }
header.site .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; }
nav.main { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
nav.main a { padding: 8px 12px; color: var(--text); text-decoration: none; font-weight: 500; }
nav.main a:hover { background: var(--tint); color: var(--tint-text); }
nav.main a[aria-current="page"] { background: var(--apricot-deep); color: #fff; font-weight: 700; }

.btn {
  display: inline-block; padding: 12px 22px; background: var(--apricot-deep); color: #fff;
  font-weight: 700; text-decoration: none; border: 2px solid var(--apricot-deep);
}
.btn:hover { background: #BF531F; border-color: #BF531F; }
.btn.ghost { background: transparent; color: var(--link); border-color: var(--apricot-deep); }
.btn.ghost:hover { background: var(--tint); }

.hero { background: linear-gradient(180deg, var(--warm), var(--surface)); padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 0 0 16px; }
.hero h1 span { color: var(--apricot-deep); }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .logo { display: flex; justify-content: center; }
.hero .logo img { width: min(300px, 70%); }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.pill { display: inline-block; background: var(--tint); color: var(--tint-text); font-weight: 600; font-size: 13px; padding: 2px 10px; }

section { padding: 56px 0; }
section.alt { background: var(--warm); }
h2 { font-size: 30px; margin: 0 0 8px; line-height: 1.2; }
h3 { font-size: 20px; margin: 0 0 6px; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); padding: 22px; }
section.alt .card { background: var(--surface); }
.card p { margin: 0; color: var(--muted); }
.card .tag { margin-bottom: 8px; }

table { border-collapse: collapse; width: 100%; margin: 16px 0 24px; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--warm); }
kbd {
  font: 600 14px ui-monospace, Consolas, monospace; background: var(--tint); color: var(--tint-text);
  padding: 2px 7px; border: 1px solid var(--border); white-space: nowrap;
}
code { font: 15px ui-monospace, Consolas, monospace; background: var(--warm); padding: 1px 6px; border: 1px solid var(--border); }
pre { background: var(--plum); color: #F5EEE8; padding: 16px; overflow-x: auto; }
pre code { background: none; border: 0; color: inherit; padding: 0; }
.callout { border-left: 4px solid var(--apricot-deep); background: var(--tint); color: var(--text); padding: 14px 18px; margin: 20px 0; }
.callout strong { color: var(--tint-text); }

.docs-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 40px 0 64px; }
.docs-nav { position: sticky; top: 16px; align-self: start; }
.docs-nav h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.docs-nav a { display: block; padding: 7px 12px; color: var(--text); text-decoration: none; }
.docs-nav a:hover { background: var(--tint); color: var(--tint-text); }
.docs-nav a[aria-current="page"] { background: var(--apricot-deep); color: #fff; font-weight: 700; }
.docs-body h1 { margin: 0 0 8px; font-size: 36px; line-height: 1.15; }
.docs-body h2 { margin-top: 36px; font-size: 24px; }
.docs-body ol, .docs-body ul { padding-left: 22px; }
.docs-body li { margin: 4px 0; }

footer.site { background: var(--plum); color: #E9E1F0; padding: 36px 0; font-size: 15px; }
footer.site a { color: var(--flesh); }
footer.site .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }

:focus-visible { outline: 3px solid var(--apricot); outline-offset: 2px; }
@media (max-width: 760px) {
  .hero .wrap, .docs-layout { grid-template-columns: 1fr; }
  .hero .logo { order: -1; }
  .docs-nav { position: static; }
  nav.main { margin-left: 0; }
}
