:root { --ink:#eef7fa; --muted:#a9c0c9; --aqua:#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; line-height:1.68; }
a { color:inherit; }
.skip { position:absolute; left:-9999px; top:1rem; z-index:10; padding:.7rem 1rem; background:white; color:#05131e; border-radius:.5rem; }
.skip:focus { left:1rem; }
.site-header { position:sticky; top:0; z-index:5; border-bottom:1px solid var(--line); background:rgba(6,19,31,.93); 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.5rem; }
.brand { text-decoration:none; color:var(--aqua); font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.nav { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.35rem .85rem; }
.nav a { color:var(--muted); text-decoration:none; font-size:.9rem; padding:.35rem .1rem; border-bottom:2px solid transparent; }
.nav a:hover,.nav a[aria-current="page"] { color:white; border-color:var(--aqua); }
.hero { width:min(var(--max),calc(100% - 2rem)); margin:0 auto; padding:clamp(4rem,9vw,8rem) 0 2.7rem; }
.eyebrow { margin:0 0 .8rem; color:var(--aqua); font-weight:800; letter-spacing:.12em; text-transform:uppercase; font-size:.82rem; }
h1 { margin:0; max-width:18ch; font-size:clamp(2.65rem,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; 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; }
.content h2 { color:white; font-size:clamp(1.2rem,2.5vw,1.75rem); line-height:1.22; margin:2.8rem 0 .9rem; }
.content h2:first-child { margin-top:0; }
.content ul,.content ol { padding-left:1.35rem; }
.content li { margin:.45rem 0; }
.content strong { color:#fff; }
.content span[style^="color:"] { font-weight:650; }
.content span[style="color:#000000"] { color:inherit!important; }
.figure { margin:2rem 0; text-align:center; }
.figure img:not(.formula-image) { display:block; max-width:100%; max-height:760px; width:auto; height:auto; margin:auto; border-radius:14px; background:white; box-shadow:0 16px 45px rgba(0,0,0,.28); }
.formula-image { max-width:100%; height:auto; vertical-align:middle; filter:invert(1) hue-rotate(180deg); }
.table-scroll { overflow-x:auto; margin:1.5rem 0; }
.data-table { width:100%; border-collapse:collapse; min-width:640px; font-size:.92rem; background:rgba(255,255,255,.025); }
.data-table th,.data-table td { border:1px solid rgba(169,192,201,.32); padding:.65rem .75rem; text-align:left; vertical-align:top; }
.data-table th { background:rgba(32,200,214,.15); color:white; }
.chapter-grid { width:min(var(--max),calc(100% - 2rem)); margin:0 auto 5rem; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.chapter-card { min-height:190px; 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(--aqua); }
.chapter-card small { color:var(--aqua); 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 { display:flex; justify-content:space-between; gap:1rem; margin-top:1.5rem; }
.next a { color:var(--aqua); 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 { justify-content:flex-start; } }
@media (max-width:680px) { .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; } }
