/* =========================
   Reset + Base
========================= */
:root{
  --bg:#ffffff;
  --ink:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --soft:#f6f7f9;
  --accent:#0f766e;
  --accent-2:#0b5f59;
  --card:#ffffff;
  --radius:14px;
  --shadow:0 8px 30px rgba(0,0,0,.08);
  --max:1100px;
}

*{margin:0;padding:0;box-sizing:border-box;}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}

body{
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  line-height:1.6;
  color:var(--ink);
  background:var(--bg);
}

.container{
  width:min(var(--max),calc(100% - 48px));
  margin:0 auto;
}

.small{font-size:.95rem;color:var(--muted);}
.muted{color:var(--muted);}
.rule{height:1px;background:var(--line);margin:22px 0;}

/* =========================
   Header / Nav
========================= */
header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 0;
}

.brand{
  font-weight:800;
  letter-spacing:.3px;
  font-size:1.05rem;
}

.nav-links{
  display:flex;
  gap:18px;
  align-items:center;
}

.nav-links a{
  font-size:.95rem;
  font-weight:600;
  color:var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"]{
  color:var(--ink);
}

/* =========================
   Buttons
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 16px;
  border-radius:999px;
  font-weight:700;
  border:1px solid transparent;
  cursor:pointer;
  transition: background .15s ease, transform .1s ease;
}

.btn:active{ transform: translateY(1px); }

.btn-primary{
  background:var(--accent);
  color:#fff;
}
.btn-primary:hover{ background:var(--accent-2); }

.btn-ghost{
  background:transparent;
  border-color:var(--line);
}
.btn-ghost:hover{ background:var(--soft); }

.link{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:4px;
}

/* =========================
   Sections
========================= */
.section{padding:46px 0;}

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom:18px;
}

.section-title h2{font-size:1.55rem;letter-spacing:-.01em;}
.section-title p{color:var(--muted);font-size:.95rem;}

/* =========================
   Grid / Cards (Featured Books)
========================= */
.grid{display:grid;gap:18px;}
.grid-3{grid-template-columns:repeat(3,1fr);}

.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-body{padding:16px;}
.card h3{font-size:1.05rem;}
.card p{margin-top:8px;color:var(--muted);}

/* =========================
   Covers (Book images sizing)
========================= */
.cover{
  aspect-ratio: 2 / 3;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}

.cover img{
  width:100%;
  height:100%;
  object-fit:cover;
}
/* Make Featured Books covers smaller (without affecting other images) */
.grid-3 .card .cover{
  max-width: 220px;
  margin: 0 auto;          /* centers the cover */
  border-bottom: 0;        /* optional: removes the divider line */
}

.grid-3 .card{
  text-align: center;      /* optional: makes it look cleaner */
}

/* =========================
   Split Layout (if you use it on other pages)
========================= */
.split{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
}

.panel{
  background: var(--soft);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px;
}

.panel ul{
  margin-top:10px;
  padding-left:18px;
  color:var(--muted);
}

/* =========================
   About Page
========================= */
.about{
  display:grid;
  grid-template-columns:280px 1fr;
  gap:26px;
  align-items:start;
}

.portrait{ width:280px; }

.about .portrait img{
  width:280px !important;
  height:280px !important;
  object-fit:cover !important;
  border-radius:50% !important;
  border:1px solid var(--line) !important;
  background:#fff;
}

/* =========================
   Footer
========================= */
footer{
  border-top:1px solid var(--line);
  padding:28px 0;
  margin-top:36px;
  font-size:.92rem;
  color:var(--muted);
}

/* =========================
   Responsive
========================= */
@media (max-width:980px){
  .grid-3{ grid-template-columns:1fr; }
  .split{ grid-template-columns:1fr; }

  .about{ grid-template-columns:1fr; }
  .portrait{ width:240px; }

  .about .portrait img{
    width:240px !important;
    height:240px !important;
  }
}









