:root { --ink:#eef7fa; --muted:#a9c0c9; --water:#20c8d6; --deep:#06131f; --panel:#0b2130; --line:rgba(32,200,214,.26); --max:1120px; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; background:var(--deep); }
body { margin:0; color:var(--ink); background:radial-gradient(circle at 85% 8%, rgba(32,200,214,.13), transparent 28rem), var(--deep); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:17px; line-height:1.72; }
a { color:inherit; }
.skip { position:absolute; left:-9999px; top:1rem; z-index:30; padding:.7rem 1rem; background:#fff; color:#05131e; border-radius:.5rem; }
.skip:focus { left:1rem; }
.site-header { position:sticky; top:0; z-index:20; border-bottom:1px solid var(--line); background:rgba(6,19,31,.94); backdrop-filter:blur(16px); }
.header-inner { width:min(var(--max),calc(100% - 2rem)); margin:auto; min-height:74px; display:flex; align-items:center; justify-content:space-between; gap:1.4rem; }
.brand { flex:0 0 auto; text-decoration:none; color:var(--water); font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.nav { display:flex; gap:.25rem .75rem; overflow-x:auto; scrollbar-width:none; }
.nav::-webkit-scrollbar { display:none; }
.nav a { white-space:nowrap; color:var(--muted); text-decoration:none; font-size:.84rem; padding:.38rem .08rem; border-bottom:2px solid transparent; }
.nav a:hover,.nav a[aria-current="page"] { color:#fff; border-color:var(--water); }
.hero { width:min(var(--max),calc(100% - 2rem)); margin:0 auto; padding:clamp(4rem,9vw,7.5rem) 0 clamp(2.7rem,6vw,4.5rem); }
.eyebrow { margin:0 0 .8rem; color:var(--water); font-weight:800; letter-spacing:.12em; text-transform:uppercase; font-size:.8rem; }
h1 { margin:0; max-width:18ch; font-size:clamp(2.7rem,7vw,5.8rem); line-height:.98; letter-spacing:-.045em; }
.page { width:min(var(--max),calc(100% - 2rem)); margin:0 auto 5rem; }
.content { max-width:900px; margin:auto; padding:clamp(1.4rem,4vw,3.2rem); border:1px solid var(--line); border-radius:24px; background:rgba(11,33,48,.78); box-shadow:0 24px 80px rgba(0,0,0,.22); }
.content p { margin:.8rem 0 1.15rem; }
.content h2 { color:var(--water); font-size:clamp(1.45rem,3vw,2.25rem); line-height:1.2; margin:3.2rem 0 1rem; }
.content h3 { color:#fff; font-size:clamp(1.08rem,2.2vw,1.45rem); line-height:1.3; margin:2.25rem 0 .75rem; }
.content h2:first-child,.content h3:first-child { margin-top:0; }
.content ul,.content ol { padding-left:1.4rem; margin:1rem 0 1.6rem; }
.content li { margin:.55rem 0; }
.content li > p { margin:.25rem 0; }
.content strong { color:#fff; }
.content em { color:#d8f5f7; }
.content span[style^="color:"] { font-weight:650; }
.content span[style="color:#000000"] { color:inherit!important; }
.content a { color:#7bdde4; text-underline-offset:.18em; }
.figure { margin:2.2rem 0 3rem!important; text-align:center; }
.figure img { display:block; max-width:100%; max-height:760px; width:auto; height:auto; margin:auto; border-radius:14px; background:#fff; box-shadow:0 16px 45px rgba(0,0,0,.28); }
.table-scroll { overflow-x:auto; margin:1.8rem 0; }
.content table { width:100%; min-width:680px; border-collapse:collapse; font-size:.92rem; background:rgba(255,255,255,.025); }
.content th,.content td { border:1px solid rgba(169,192,201,.32); padding:.7rem .8rem; text-align:left; vertical-align:top; }
.content th { background:rgba(32,200,214,.16); color:#fff; }
.chapter-grid { width:min(900px,calc(100% - 2rem)); margin:0 auto 4rem; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.chapter-card { min-height:170px; border:1px solid var(--line); border-radius:22px; padding:1.6rem; background:linear-gradient(145deg,rgba(32,200,214,.12),rgba(11,33,48,.8)); text-decoration:none; display:flex; flex-direction:column; justify-content:space-between; transition:.2s ease; }
.chapter-card:hover { transform:translateY(-3px); border-color:var(--water); }
.chapter-card small { color:var(--water); text-transform:uppercase; letter-spacing:.1em; font-weight:750; }
.chapter-card strong { font-size:clamp(1.25rem,2.8vw,2rem); line-height:1.12; }
.next { max-width:900px; margin:2rem auto 0; padding-top:1.5rem; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:1rem; }
.next a { color:var(--water); text-decoration:none; font-weight:750; }
.footer { border-top:1px solid var(--line); color:var(--muted); text-align:center; padding:2rem 1rem 3rem; font-size:.85rem; letter-spacing:.05em; }
@media (max-width:900px) { .header-inner { align-items:flex-start; flex-direction:column; padding:1rem 0; } .nav { width:100%; } }
@media (max-width:680px) { body { font-size:16px; } .chapter-grid { grid-template-columns:1fr; } .content { padding:1.2rem; border-radius:16px; } .next { flex-direction:column; } h1 { font-size:2.7rem; } }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto!important; transition:none!important; } }
