:root{color-scheme:light;--ink:#17232b;--muted:#506169;--blue:#2558bb;--line:#cdd5d4}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:#f6f7f4;color:var(--ink);font:16px/1.55 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}header,main,footer{max-width:1180px;width:calc(100% - 88px);margin:auto}header{display:flex;align-items:center;justify-content:space-between;padding:24px 0;border-bottom:1px solid var(--line);gap:16px}.brand{display:flex;align-items:center;gap:12px;font-size:19px;font-weight:750;letter-spacing:-.7px}.logo{background:#234eaf;color:#fff;padding:0 7px;border-radius:7px;line-height:32px;font-size:24px;font-style:normal}a{color:inherit;text-underline-offset:3px}header a,.button,.card,.book,.back,footer a{text-decoration:none}nav{display:flex;gap:28px;font-size:14px}nav a:hover,.back:hover,footer a:hover{text-decoration:underline}.hero{background:#122d39;color:white;padding:clamp(28px,4.7vw,72px);position:relative;overflow:hidden;border-radius:20px;margin-top:30px;isolation:isolate}.hero>div:first-child{width:53%;position:relative;z-index:1}.eyebrow,small,.cardtop{font:650 11px/1.45 ui-monospace,Menlo,monospace;letter-spacing:1.6px}.eyebrow{display:flex;align-items:center;gap:9px}.eyebrow em{display:inline-block;width:8px;height:8px;background:#aee3ba;border-radius:50%}.hero h1{font-size:clamp(54px,6.6vw,92px);line-height:.98;letter-spacing:-.065em;margin:26px 0 17px}.hero h1 span{color:#afdabd}.hero p{color:#d5e0dc;max-width:455px;margin:0 0 24px}.button,button{background:#b4e2c1;border:0;border-radius:8px;color:#152e27;padding:12px 19px;font:650 15px/1.45 inherit;display:inline-flex;gap:30px;align-items:center;font-weight:650}.visual{position:absolute;inset:0 0 0 54%;background-image:linear-gradient(#86abb31c 1px,transparent 1px),linear-gradient(90deg,#86abb31c 1px,transparent 1px);background-size:27px 27px;mask-image:linear-gradient(90deg,transparent,#000 12%);overflow:hidden}.plot{position:absolute;left:40%;top:63%;width:1px;height:1px;transform:scale(1.16)}.plot b{position:absolute;left:calc((var(--x) - var(--y))*31px);bottom:calc((var(--x) + var(--y))*-15px);height:var(--h);width:30px;background:var(--tone);transform:skewY(26deg);box-shadow:inset -1px 0 0 #ffffff35}.plot b:before,.plot b:after{content:"";position:absolute;background:var(--tone)}.plot b:before{width:30px;height:100%;left:30px;bottom:15px;transform:skewY(-45deg);filter:brightness(.7)}.plot b:after{width:30px;height:30px;bottom:100%;left:15px;transform:skewX(-45deg);filter:brightness(1.18)}.axis,.coord,.z{position:absolute;color:#a6c2c7;font:11px monospace}.axis{top:12%;left:20%}.coord{right:12%;bottom:18%}.z{left:16%;bottom:15%}.sectionhead{display:flex;align-items:baseline;justify-content:space-between;margin:38px 0 16px}.sectionhead h2{margin:0;font-size:clamp(26px,3vw,37px);letter-spacing:-.05em}.sectionhead span,.book p,.card p{color:var(--muted)}.sectionhead span{font-size:13px}.cards{display:grid;grid-template-columns:1fr 1fr;gap:18px}.card,.book{padding:26px 30px;border:1px solid var(--line);border-radius:14px;background:white;transition:box-shadow .16s}.card:hover,.book:hover{box-shadow:0 4px 18px #21354916}.cardtop{display:flex;align-items:center;gap:11px;color:#345a91}.cardtop i,.book i{font-style:normal;font-size:23px;border-radius:8px;background:#e6eeff;color:#315cad;display:grid;place-items:center;width:40px;height:40px}.green .cardtop{color:#326151}.green i{background:#e2f0e5;color:#30664a}.card h3,.book h3{margin:15px 0 5px;line-height:1.18;font-size:25px;letter-spacing:-.04em}.card p,.book p{margin:0}.card strong{display:flex;justify-content:space-between;margin-top:24px;font-size:14px}.book{display:flex;align-items:center;gap:23px}.book h3{margin:4px 0}.book i{min-width:60px;height:72px;background:#e8e4f2;color:#524974;font:700 19px monospace}.book b{margin-left:auto}footer{margin-top:48px;padding:24px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:var(--muted);font-size:13px}.lesson{max-width:780px;margin:25px auto 50px}.back{display:inline-block;color:var(--blue);margin:10px 0 30px}.lesson h1{font-size:clamp(34px,5vw,58px);letter-spacing:-.055em;line-height:1.08;margin:18px 0}.lead,.article>p:first-of-type{font-size:20px;color:var(--muted)}.lesson h2{line-height:1.2;font-size:28px;margin:32px 0 13px}.lesson table{display:block;max-width:100%;width:fit-content;overflow-x:auto;border-collapse:collapse}.lesson td,.lesson th{padding:8px 16px;text-align:left;border-bottom:1px solid var(--line)}.lesson th{background:#e4ece8}form,details{padding:18px 20px;background:#fff;border:1px solid var(--line);border-radius:12px;margin:14px 0}label{display:block;margin-bottom:12px;font-weight:600}input,select{display:block;width:100%;font:inherit;margin-top:5px;border:1px solid #88969d;padding:8px 10px;border-radius:6px;background:white;color:var(--ink)}button,summary{cursor:pointer}button{background:#234eaf;color:#fff;font-size:16px}.result:empty{display:none}.result{color:#8f441c}.success{color:#206239}summary{font-weight:650}pre{background:#142e39;color:#e6f4ee;padding:18px;border-radius:9px;overflow:auto;line-height:1.5}code{font:14px/1.6 ui-monospace,Menlo,monospace}.article a{color:var(--blue)}.article{overflow-wrap:anywhere}.article pre{overflow-wrap:normal}.article h2{scroll-margin:20px}
@media(max-width:720px){header,main,footer{width:calc(100% - 32px)}header{padding:14px 0}.brand{font-size:16px;gap:6px}nav{gap:12px;font-size:12px}.hero{padding:28px 22px;margin-top:17px}.hero>div:first-child{width:100%}.hero h1{font-size:55px}.hero p{max-width:380px}.visual{inset:0 0 auto auto;width:36%;height:160px;opacity:.65}.plot{transform:scale(.49);left:35%;top:56%}.cards{grid-template-columns:1fr}.sectionhead{margin-top:26px}.card,.book{padding:19px}.book{gap:12px}.book h3{font-size:19px}.book i{min-width:44px;height:58px}.book p{font-size:14px}.lesson th,.lesson td{padding:6px 9px}.article pre{font-size:13px}}
@media(max-width:390px){header{flex-wrap:wrap}.visual{width:28%}.sectionhead span{display:none}}

[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #234eaf; outline-offset: 3px; }
nav a[aria-current="page"] { text-decoration: underline; font-weight: 650; }
.library .sectionhead a { color: var(--blue); }
.book > div { min-width: 0; }
.book small { display: block; margin-top: 10px; color: var(--muted); letter-spacing: .04em; }
.article-catalog h1 { margin-bottom: 24px; }
.article-filter { margin-bottom: 16px; }
.search-row label { margin-bottom: 4px; }
.search-row > div { display: flex; align-items: stretch; gap: 8px; }
.search-row input { min-width: 0; margin: 0; }
.search-row button, .topic {
  background: #e6eeff;
  color: #23437d;
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 8px 13px;
}
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.topic { background: #e4ece8; color: #245641; font-size: 14px; }
.search-status { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.article { max-width: 73ch; font-size: 17px; line-height: 1.65; }
.article h2, .article h3, .article h4 { scroll-margin-top: 20px; }
.article :not(pre) > code { background: #e5eeea; border-radius: 4px; padding: 1px 3px; }
.article .article-toc {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 24px 0;
  background: white;
  font-size: 16px;
}
.article-toc h2 { margin: 0 0 8px; font-size: 22px; }
.article-toc ul { margin: 0; padding-left: 22px; }
.article-toc a { display: inline-block; padding-block: 4px; }
.table-scroll { overflow-x: auto; margin: 14px 0; }
.article .table-scroll table { display: table; width: max-content; min-width: min(100%, 24rem); max-width: none; }
.article .table-scroll td, .article .table-scroll th { max-width: 22rem; }
.sql-example { border-radius: 9px; background: #142e39; margin: 18px 0; }
.sql-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 6px 12px;
  color: #e6f4ee;
  font-size: 13px;
  border-bottom: 1px solid #46616a;
}
.sql-toolbar [role="status"] { flex: 1; }
.sql-toolbar button { min-height: 44px; padding: 6px 9px; background: #e6eeff; color: #23437d; font-size: 14px; }
.sql-example pre { margin: 0; background: transparent; }
@media (max-width: 480px) {
  .article { font-size: 16px; }
  .article .table-scroll td, .article .table-scroll th { max-width: 15rem; }
  .sql-toolbar [role="status"]:not(:empty) { order: 1; flex-basis: 100%; }
}
