/* ===== Home design 3 — EDITORIAL MAGAZINE (standalone) ===== */
:root { --ink:#15130f; --muted:#6f675b; --line:#d8cfbf; --accent:#9a2f2f; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: #f7f3ea;
  min-height: 100vh;
}
main { max-width: 1040px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 40px); }
.rule { height: 2px; background: var(--ink); max-width: 1040px; margin: 0 auto; }

.mag-header {
  max-width: 1040px; margin: 0 auto; padding: 28px clamp(18px,5vw,40px) 16px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.mast-title { font-family: 'Playfair Display', serif; font-weight: 800; letter-spacing: 6px; font-size: clamp(34px, 7vw, 66px); margin: 0; line-height: .9; }
.mast-tag { margin: 8px 0 0; color: var(--muted); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.design-link { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; padding: 8px 16px; border: 1px solid var(--ink); border-radius: 2px; }
.design-link:hover { background: var(--ink); color: #f7f3ea; }
.status { text-align: center; padding: 50px; color: var(--muted); }

/* Featured */
.featured {
  display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: clamp(24px, 5vw, 56px);
  align-items: center; padding: 44px 0; border-bottom: 1px solid var(--line);
}
.feat-cover-link { display: block; }
.feat-cover {
  position: relative; aspect-ratio: 2/3; border-radius: 2px; overflow: hidden; background:#e6ddcb;
  box-shadow: 0 30px 50px rgba(40,30,10,.28); border-left: 5px solid rgba(0,0,0,.2);
  transition: transform .3s ease;
}
.feat-cover-link:hover .feat-cover { transform: translateY(-6px) rotate(-1deg); }
.feat-cover canvas, .feat-cover img { width:100%; height:100%; object-fit: cover; display:block; }
.kicker { color: var(--accent); font-weight: 600; letter-spacing: 3px; text-transform: uppercase; font-size: 12px; }
.feat-title { font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(30px, 5vw, 52px); line-height: 1.04; margin: 10px 0 14px; }
.feat-desc { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 46ch; margin: 0 0 22px; }
.cta { display: inline-block; text-decoration: none; background: var(--ink); color: #f7f3ea; padding: 13px 26px; border-radius: 2px; font-weight: 600; letter-spacing: .3px; }
.cta:hover { background: var(--accent); }

/* List */
.more { padding: 34px 0 10px; }
.more-head { font-family: 'Playfair Display', serif; font-size: 22px; margin: 0 0 6px; }
.book-list { list-style: none; margin: 0; padding: 0; }
.book-row { display: grid; grid-template-columns: 54px 56px 1fr; align-items: center; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.num { font-family: 'Playfair Display', serif; font-size: 26px; color: var(--line); font-style: italic; }
.row-thumb { position: relative; width: 56px; aspect-ratio: 2/3; border-radius: 2px; overflow: hidden; background:#e6ddcb; box-shadow: 0 6px 12px rgba(0,0,0,.18); display:block; }
.row-thumb canvas, .row-thumb img { width:100%; height:100%; object-fit: cover; display:block; }
.row-main { text-decoration: none; color: inherit; }
.row-title { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 22px; margin: 0; transition: color .2s ease; }
.book-row:hover .row-title { color: var(--accent); }
.row-sub { color: var(--muted); font-size: 13px; }

.mag-footer { max-width: 1040px; margin: 30px auto 0; padding: 0 clamp(18px,5vw,40px); }
.mag-footer p { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 0; }
.mag-footer code { background: rgba(0,0,0,.07); padding: 2px 7px; border-radius: 3px; }

.loading::before {
  content:""; position:absolute; inset:0;
  background: linear-gradient(110deg, rgba(255,255,255,.05) 30%, rgba(255,255,255,.5), 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} }
.fallback { position:absolute; inset:0; display:grid; place-items:center; padding:10px; text-align:center; font-family:'Playfair Display',serif; font-size:15px; font-weight:600; background:linear-gradient(135deg,#2c2a44,#4a3b6b); color:#fff; }
.empty { text-align:center; padding:60px 20px; border:2px dashed var(--line); border-radius:6px; color: var(--muted); }

@media (max-width: 720px) {
  .featured { grid-template-columns: 1fr; justify-items: start; }
  .feat-cover { max-width: 240px; }
  .book-row { grid-template-columns: 34px 48px 1fr; gap: 12px; }
}
