:root{
  --bg:#0b0c10;
  --panel:#10131a;
  --soft:#0f1117;
  --text:#eef2ff;
  --muted:#aab3c5;
  --line:#1e2330;
  --brand:#e6d07a;
  --accent:#7aa2ff;
  --radius:18px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: radial-gradient(1200px 800px at 20% -10%, rgba(122,162,255,.18), transparent 55%),
              radial-gradient(1000px 700px at 80% 0%, rgba(230,208,122,.14), transparent 60%),
              var(--bg);
  color:var(--text);
  line-height:1.5;
}

a{color:inherit;text-decoration:none}
.wrap{max-width:1100px;margin:0 auto;padding:0 18px}
.narrow{max-width:760px}

.site-header{
  position:sticky;top:0;z-index:20;
  background: rgba(11,12,16,.72);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.header-row{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;
  gap:14px;
}

.brand{display:flex;align-items:center;gap:12px}
.brand-mark{
  width:40px;height:40px;border-radius:12px;
  display:grid;place-items:center;
  background: linear-gradient(145deg, rgba(230,208,122,.18), rgba(122,162,255,.10));
  border:1px solid var(--line);
  color:var(--brand);
  font-weight:800;
  font-size:20px;
}
.brand-title{display:block;font-weight:800;letter-spacing:.2px}
.brand-sub{display:block;color:var(--muted);font-size:12px;margin-top:2px}

.nav{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.pill{
  padding:9px 12px;border-radius:999px;
  border:1px solid var(--line);
  background: rgba(16,19,26,.6);
  color:var(--text);
  font-size:13px;
}
.pill:hover{border-color:rgba(122,162,255,.5)}
.pill.active{border-color:rgba(230,208,122,.55); box-shadow: 0 0 0 2px rgba(230,208,122,.08) inset}

.section{padding:40px 0}
.section.soft{background: rgba(16,19,26,.35); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.section-head{margin-bottom:18px}
.section-head h2{margin:0 0 6px 0}
.muted{color:var(--muted)}
.small{font-size:12px}

.hero{
  padding:46px 0 26px 0;
  background:
    linear-gradient(to bottom, rgba(11,12,16,.45), rgba(11,12,16,.88)),
    url("./assets/hero-kiahaviyu.jpg") center / cover no-repeat;
}
.hero-grid{
  display:grid;grid-template-columns: 1.2fr .8fr; gap:18px;
}
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr}
}

h1{font-size:42px;line-height:1.1;margin:0 0 10px 0}
.lead{font-size:16px;color:var(--muted);max-width:58ch}

.cta-row{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 12px}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:12px 14px;border-radius:14px;
  border:1px solid var(--line);
  background: rgba(16,19,26,.75);
  font-weight:700;
}
.btn:hover{border-color:rgba(122,162,255,.55)}
.btn.primary{
  border-color: rgba(230,208,122,.55);
  background: linear-gradient(145deg, rgba(230,208,122,.18), rgba(122,162,255,.10));
}
.btn.small{padding:9px 11px;border-radius:12px;font-size:13px}

.trust{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.chip{
  font-size:12px;color:var(--muted);
  padding:7px 10px;border-radius:999px;
  border:1px solid var(--line);
  background: rgba(16,19,26,.45);
}

.hero-card{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16,19,26,.55);
  overflow:hidden;
}
.hero-card-inner{padding:16px}
.mini-title{margin:0 0 6px 0;font-size:14px;color:var(--muted);font-weight:800;letter-spacing:.3px;text-transform:uppercase}
.note{margin-top:12px;color:var(--muted);font-size:12px}
code{color:var(--brand)}

.featured{display:flex;gap:12px;margin-top:10px;align-items:center}
.cover{
  width:92px;height:138px;object-fit:cover;border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.2);
}
.featured-title{font-weight:900;letter-spacing:.4px;font-size:16px}
.kicker{color:var(--brand);font-weight:800;font-size:12px}
.btn-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}

.cards{
  display:grid;grid-template-columns: repeat(3, 1fr); gap:14px;
}
@media (max-width: 900px){
  .cards{grid-template-columns:1fr}
}
.card{
  border:1px solid var(--line);
  background: rgba(16,19,26,.55);
  border-radius: var(--radius);
  padding:16px;
  position:relative;
  min-height:120px;
}
.card:hover{border-color:rgba(122,162,255,.55)}
.card h3{margin:0 0 8px 0}
.arrow{position:absolute;right:14px;bottom:12px;color:var(--muted)}

.page-head{margin-bottom:18px}
.page-head h1{font-size:34px}

.filter-row{display:flex;flex-direction:column;gap:8px;margin:14px 0 18px}
.search{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(16,19,26,.55);
  color: var(--text);
  outline:none;
}
.search:focus{border-color:rgba(230,208,122,.55); box-shadow: 0 0 0 3px rgba(230,208,122,.10)}

.grid{
  display:grid;grid-template-columns: repeat(2, 1fr); gap:14px;
  margin:14px 0 26px;
}
@media (max-width: 900px){
  .grid{grid-template-columns:1fr}
}

.book{
  display:grid;grid-template-columns: 110px 1fr; gap:14px;
  border:1px solid var(--line);
  background: rgba(16,19,26,.55);
  border-radius: var(--radius);
  padding:14px;
}
.book-title{font-weight:900;letter-spacing:.2px}
.book-blurb{margin:8px 0 0;color:var(--muted)}
.book-body{min-width:0}

.callout{
  border:1px solid var(--line);
  background: rgba(16,19,26,.55);
  border-radius: var(--radius);
  padding:16px;
  margin:16px 0;
}
.callout-title{color:var(--brand);font-weight:900;margin-bottom:6px}

.footer-shelf{
  display:flex;justify-content:space-between;align-items:center;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16,19,26,.35);
  padding:14px 16px;
  gap:12px;
}
.author{font-weight:900;letter-spacing:.8px}

.site-footer{
  border-top:1px solid var(--line);
  padding:20px 0 30px;
  background: rgba(0,0,0,.12);
}
.footer-grid{
  display:grid;grid-template-columns: 1.2fr .8fr .6fr; gap:14px;
  align-items:start;
}
@media (max-width: 900px){
  .footer-grid{grid-template-columns:1fr}
}
.footer-title{font-weight:900}
.footer-links{display:flex;gap:12px;flex-wrap:wrap}
.footer-links a{color:var(--muted)}
.footer-links a:hover{color:var(--text)}
.footer-mark{text-align:right}
@media (max-width: 900px){.footer-mark{text-align:left}}
.tree{font-weight:900;color:var(--brand)}
