/* ===== Home design 4 — AUTHOR PROFILE (standalone) ===== */
:root { --ink:#1d1a16; --muted:#6b6357; --gold:#b08d57; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif; color: var(--ink); min-height: 100vh;
  background:
    radial-gradient(1100px 600px at 80% -10%, #fbf7ef, transparent),
    linear-gradient(180deg, #fffdf8, #efe9dd);
}

.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px clamp(18px, 5vw, 60px); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 50%; background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.brand-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; margin: 0; }
.brand-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.design-link { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; background: rgba(0,0,0,.06); }
.design-link:hover { background: rgba(0,0,0,.12); }

/* ---- Book-cover slider ---- */
.cover-slider {
  position: relative; max-width: 1180px; margin: 8px auto 0; padding: 0 clamp(12px,4vw,28px);
}
.slides {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 12 / 5; min-height: 240px;
  background: radial-gradient(120% 120% at 50% 0%, #2a2540, #14101f 70%);
  box-shadow: 0 26px 60px rgba(30,20,10,.30); border: 1px solid rgba(255,255,255,.06);
}
.slide {
  position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .7s ease; pointer-events: none;
}
.slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; }
.slide img {
  max-width: 100%; max-height: 100%; object-fit: contain; display: block;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,.5));
}
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 4px;
  padding: 40px clamp(18px,4vw,34px) 18px; color: #fff; text-align: left;
  background: linear-gradient(0deg, rgba(10,7,18,.82), transparent);
}
.slide-kicker { color: var(--gold); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.slide-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(22px,3.4vw,34px); line-height: 1.05; }
.slide-title [lang="ur"] { font-size: 1.15em; }
.slide-sub { font-size: 13.5px; color: rgba(255,255,255,.82); }

.slider-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,.85); color: #1d1a16; font-size: 26px; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.28); transition: background .2s;
}
.slider-nav:hover { background: #fff; }
.slider-nav.prev { left: clamp(18px,4vw,40px); }
.slider-nav.next { right: clamp(18px,4vw,40px); }
.slider-dots { display: flex; justify-content: center; gap: 9px; margin-top: 14px; }
.slider-dots .dot {
  width: 9px; height: 9px; padding: 0; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.22); transition: background .2s, transform .2s;
}
.slider-dots .dot.is-active { background: var(--gold); transform: scale(1.25); }

@media (max-width: 620px) {
  .slides { aspect-ratio: auto; height: 300px; }
  .slide-sub { display: none; }
  .slider-nav { width: 38px; height: 38px; font-size: 22px; }
}

/* ---- Author hero ---- */
.author-hero {
  max-width: 1080px; margin: 14px auto 0; padding: 30px clamp(18px,5vw,40px) 44px;
  display: grid; grid-template-columns: 320px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.photo-frame {
  position: relative; border-radius: 14px; padding: 10px;
  background: linear-gradient(160deg, #fff, #f1ead9);
  box-shadow: 0 30px 60px rgba(40,30,10,.22); border: 1px solid rgba(0,0,0,.06);
}
.photo-frame::after {
  content: ""; position: absolute; inset: 10px; border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(176,141,87,.6); pointer-events: none;
}
.author-photo {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 9px; background: #ddd;
}
.tagline { color: var(--gold); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; }
.author-name { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 6vw, 60px); line-height: 1; margin: 8px 0 6px; }
.author-role { color: var(--muted); font-size: 17px; margin: 0 0 4px; }
.author-location { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.author-bio { margin: 16px 0 0; }
.bio-p { color: #4a443b; font-size: 16.5px; line-height: 1.7; margin: 0 0 12px; max-width: 56ch; }

.author-meta { display: flex; align-items: center; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { display: block; font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.links { display: flex; gap: 10px; flex-wrap: wrap; }
.author-link { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(0,0,0,.14); }
.author-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- Books section ---- */
.section-head { max-width: 1080px; margin: 0 auto; padding: 6px clamp(18px,5vw,40px) 0; border-top: 1px solid rgba(0,0,0,.08); }
.section-head h3 { font-family: 'Cormorant Garamond', serif; font-size: 30px; margin: 24px 0 2px; }
.section-head p { color: var(--muted); margin: 0; }
.status { text-align: center; padding: 30px; color: var(--muted); }

.books {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 32px; padding: 24px clamp(18px, 5vw, 40px) 20px; max-width: 1080px; margin: 0 auto;
}
.book-card { cursor: pointer; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .25s ease; }
.book-card:hover { transform: translateY(-8px); }
.cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 6px 10px 10px 6px; overflow: hidden;
  background: #ddd; border-left: 4px solid rgba(0,0,0,.18); box-shadow: 0 1px 1px rgba(0,0,0,.10), 0 10px 26px rgba(40,30,10,.22);
}
.cover canvas, .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover::after { content:""; position:absolute; inset:0; background: linear-gradient(90deg, rgba(255,255,255,.25), transparent 14%); pointer-events:none; }
.book-meta { padding: 12px 4px 0; }
.book-title { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 18px; line-height: 1.2; margin: 0; }
.book-sub { color: var(--muted); font-size: 12px; margin-top: 4px; }

.site-footer { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 13px; }
.site-footer code { background: rgba(0,0,0,.07); padding: 2px 7px; border-radius: 5px; }

.cover.loading::before { content:""; position:absolute; inset:0; background: linear-gradient(110deg, rgba(255,255,255,.05) 30%, rgba(255,255,255,.35), rgba(255,255,255,.05) 70%); background-size: 220% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { from{background-position:220% 0} to{background-position:-120% 0} }
.cover .fallback { position:absolute; inset:0; display:grid; place-items:center; padding:16px; text-align:center; font-family:'Cormorant Garamond',serif; font-size:17px; font-weight:600; background:linear-gradient(135deg,#2c2a44,#4a3b6b); color:#fff; }
.empty { grid-column: 1 / -1; text-align:center; padding:50px 20px; border:2px dashed currentColor; border-radius:16px; opacity:.7; }

@media (max-width: 760px) {
  .author-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .photo-frame { max-width: 280px; }
  .bio-p { margin-left: auto; margin-right: auto; }
  .author-meta { justify-content: center; }
}
