/* ===== Home design 2 — WOODEN BOOKSHELF (standalone) ===== */
:root { --gold:#b08d57; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif; min-height: 100vh; color: #f3ead8;
  background:
    radial-gradient(900px 500px at 50% -5%, #5a3b22, transparent),
    linear-gradient(180deg, #3a2415, #25160c);
}

.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: #2a1a0e; box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.brand-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; margin: 0; color: #f6ecd8; }
.brand-sub { margin: 2px 0 0; font-size: 13px; color: #c9b48f; }
.design-link { text-decoration: none; color: #d8c7a4; font-weight: 600; font-size: 14px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.08); }
.design-link:hover { background: rgba(255,255,255,.16); }

.hero { text-align: center; padding: 14px 20px 6px; }
.hero h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px,5vw,44px); margin: 0; color: #f6ecd8; }
.hero p { color: #c9b48f; margin: 8px 0 0; }
.status { text-align: center; padding: 40px; color: #c9b48f; }

.books {
  max-width: 1180px; margin: 0 auto; padding: 10px clamp(18px, 5vw, 60px) 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 46px 30px;
}
.book-card { position: relative; cursor: pointer; text-decoration: none; color: inherit; padding-bottom: 26px; transition: transform .25s ease; }
.book-card::after {
  content:""; position:absolute; left:-16px; right:-16px; bottom:0; height:18px; border-radius:3px;
  background: linear-gradient(180deg, #7a4f2c, #4a2c16);
  box-shadow: 0 10px 14px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.12);
}
.book-card:hover { transform: translateY(-10px); }
.cover {
  position: relative; aspect-ratio: 2 / 3; border-radius: 3px 7px 7px 3px; overflow: hidden;
  border-left: 6px solid rgba(0,0,0,.35); box-shadow: 0 14px 22px rgba(0,0,0,.55); background:#2a2118;
}
.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,.28), transparent 16%); }
.book-meta { padding: 10px 2px 0; text-align: center; }
.book-title { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 17px; line-height: 1.2; margin: 0; color: #f6ecd8; }
.book-sub { color: #c9b48f; font-size: 11px; margin-top: 3px; }

.site-footer { text-align: center; padding: 40px 20px; color: #c9b48f; font-size: 13px; }
.site-footer code { background: rgba(255,255,255,.12); color: #f3ead8; 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,.25), 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:16px; font-weight:600; background:linear-gradient(135deg,#2c2a44,#4a3b6b); color:#fff; }
.empty { grid-column: 1 / -1; text-align:center; padding:60px 20px; border:2px dashed currentColor; border-radius:16px; opacity:.7; }
