:root{
  --ink:#1b2430; --muted:#5b6675; --line:#d9dee5; --bg:#f5f7fa; --card:#ffffff;
  --brand:#1F4E79; --brand-deep:#14324f; --brand-soft:#e7eef6; --accent:#c8a24a;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);line-height:1.6}
h1,h2,h3,.serif{font-family:Georgia,"Times New Roman",serif;color:var(--brand);font-weight:600}
a{color:var(--brand)}
.wrap{max-width:980px;margin:0 auto;padding:0 20px}

/* nav */
.nav{background:var(--card);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:60px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-weight:700;letter-spacing:.02em}
.mark{width:34px;height:34px;border-radius:8px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font:700 18px Georgia,serif}
.links{display:flex;gap:18px;font-size:14px}
.links a{text-decoration:none;color:var(--muted)}
.links a:hover{color:var(--brand)}
@media (max-width:600px){.links{gap:12px;font-size:13px}.links .hide-sm{display:none}}

/* hero */
.hero{padding:64px 0 48px}
.eyebrow{font:600 12px/1 system-ui,sans-serif;letter-spacing:.14em;color:var(--brand);text-transform:uppercase}
.hero h1{font-size:40px;line-height:1.15;margin:.4em 0 .25em}
.hero .role{font-size:19px;color:var(--ink);margin:0 0 14px}
.hero p.lead{font-size:17px;color:var(--muted);max-width:640px;margin:0 0 24px}
.btn{display:inline-block;font:600 15px system-ui,sans-serif;border:1px solid var(--brand);background:var(--brand);color:#fff;padding:10px 18px;border-radius:7px;text-decoration:none;cursor:pointer}
.btn.ghost{background:#fff;color:var(--brand)}
.btn.small{font-size:13px;padding:7px 12px}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.creds{display:flex;flex-wrap:wrap;gap:6px;margin-top:22px}
.chip{display:inline-block;font:600 12px system-ui,sans-serif;background:var(--brand-soft);color:var(--brand);padding:4px 10px;border-radius:99px}

/* sections */
section.block{padding:44px 0;border-top:1px solid var(--line)}
section.block h2{font-size:28px;margin:0 0 6px}
section.block .sub{color:var(--muted);margin:0 0 24px}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width:760px){.grid2,.grid3{grid-template-columns:1fr}.hero h1{font-size:32px}}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:20px 22px}

/* books */
.book{display:flex;gap:18px}
.cover{flex:0 0 120px;height:170px;border-radius:4px 8px 8px 4px;padding:14px 12px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;border-left:6px solid rgba(0,0,0,.25)}
.cover.cloud{background:var(--brand)}
.cover.ai{background:var(--brand-deep)}
.cover .t{font:600 14px/1.25 Georgia,serif}
.cover .rule{height:2px;width:36px;background:var(--accent);margin:8px 0}
.cover .a{font:600 10px system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;opacity:.85}
.book h3{font-size:19px;margin:0 0 4px;line-height:1.3}
.book .subtitle{font-style:italic;color:var(--muted);font-size:14px;margin:0 0 8px}
.book p{font-size:15px;margin:0 0 10px}
.status{font:600 12px system-ui,sans-serif;color:var(--muted);margin-bottom:12px}
@media (max-width:460px){.book{flex-direction:column}.cover{flex-basis:auto;width:120px}}

/* lab */
.lab h3{font-size:17px;margin:0 0 6px}
.lab p{font-size:14.5px;color:var(--muted);margin:0}
.note{font-size:14px;color:var(--muted);margin-top:16px}

/* about */
.about p{max-width:720px}
.facts{list-style:none;padding:0;margin:16px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;font-size:15px}
.facts li::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--brand);margin-right:10px;vertical-align:middle}
@media (max-width:600px){.facts{grid-template-columns:1fr}}

footer.site{border-top:1px solid var(--line);padding:24px 0 40px;font-size:13px;color:var(--muted)}
.lock{display:inline-block;width:12px;height:12px;vertical-align:-1px;margin-right:6px}

/* ===== AI book: clickable cover + title (homepage) ===== */
.cover-link{display:block;align-self:flex-start;text-decoration:none;flex:0 0 120px;border-radius:4px 8px 8px 4px;transition:transform .18s ease,box-shadow .18s ease}
.cover-link .cover{height:170px}
.cover-link:hover,.cover-link:focus-visible{transform:translateY(-4px);box-shadow:0 10px 22px rgba(20,50,79,.28)}
.title-link{color:inherit;text-decoration:none;background-image:linear-gradient(var(--brand),var(--brand));background-size:0 2px;background-position:0 100%;background-repeat:no-repeat;transition:background-size .2s ease}
.title-link:hover,.title-link:focus-visible{background-size:100% 2px}
.title-link:focus-visible,.cover-link:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.cover-link,.title-link{transition:none}}
@media (max-width:460px){.cover-link{flex-basis:auto;width:120px}}

/* ===== AI book page ===== */
.book-hero{padding:56px 0 40px}
.book-hero .wrap{display:flex;gap:40px;align-items:center;flex-wrap:wrap}
.book-hero .cover.large{flex:0 0 190px;height:270px;padding:20px 18px}
.cover.large .t{font-size:21px}
.cover.large .rule{width:44px;height:3px}
.book-hero .intro{flex:1 1 380px;min-width:0}
.book-hero h1{font-size:38px;line-height:1.15;margin:.35em 0 .2em}
.book-hero .subtitle{font:italic 20px Georgia,"Times New Roman",serif;color:var(--muted);margin:0 0 14px}
.synopsis p{font-size:17px;max-width:760px;margin:0 0 16px}
.principles{background:var(--brand-deep);color:#fff;border-radius:10px;padding:22px 26px;margin:26px 0 0;font:600 20px/1.5 Georgia,"Times New Roman",serif}
.principles span{color:var(--accent)}
.act-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}
.act-nav a{font:600 13px system-ui,sans-serif;text-decoration:none;background:var(--brand-soft);color:var(--brand);padding:6px 12px;border-radius:99px}
.act-nav a:hover,.act-nav a:focus-visible{background:var(--brand);color:#fff}
.acts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.act{scroll-margin-top:76px;display:flex;flex-direction:column;gap:8px}
.act-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.act-n{font:600 26px Georgia,"Times New Roman",serif;color:#94741f}
.act-head h3{margin:0;font-size:21px}
.act-ch{font:600 12px system-ui,sans-serif;color:var(--muted);letter-spacing:.04em}
.act p{font-size:15px;margin:0}
.act ol{margin:4px 0 0;padding-left:22px;font-size:14.5px;color:var(--ink)}
.act ol li{margin:2px 0}
.capstone{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}
.capstone strong{display:block;font:600 11px system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--brand)}
@media (max-width:760px){.acts{grid-template-columns:1fr}.book-hero h1{font-size:30px}}
@media (max-width:460px){.book-hero .cover.large{flex-basis:auto;width:150px;height:214px}}
