:root {
  --bg: #f6f1e9;
  --paper: #fffdf9;
  --ink: #1e1b16;
  --muted: #6f6557;
  --accent: #8f4b1f;
  --accent-hover: #a85a2a;
  --border: #dfd3c4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 0%, #fbf6ef 0%, var(--bg) 50%),
    linear-gradient(180deg, #f9f4ed 0%, #f3ece3 100%);
  display: grid;
  place-items: center;
  padding: 24px;
}

.wrap {
  width: min(980px, 100%);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 28px;
  box-shadow: 0 14px 40px rgba(30, 20, 10, 0.08);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
}

.lead {
  margin: 0 0 14px;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.6;
  color: #2d2720;
}

.meta {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.covers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.cover {
  margin: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f3ecdf;
  box-shadow: 0 8px 20px rgba(30, 20, 10, 0.08);
  cursor: pointer;
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 180ms ease;
}

.cover:hover img {
  transform: scale(1.02);
}

.actions {
  display: flex;
  gap: 12px;
}

.cta {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  font-weight: 600;
}

.cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.lightbox {
  border: none;
  padding: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: transparent;
  position: fixed;
  inset: 0;
}

.lightbox::backdrop {
  background: rgba(16, 12, 8, 0.84);
}

.lightbox__figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 26px 76px 54px;
}

.lightbox__figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1100px, 88vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__figure figcaption {
  margin-top: 10px;
  text-align: center;
  color: #f5ede2;
  font-weight: 600;
}

.lightbox__close,
.lightbox__nav {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 16, 12, 0.45);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  font-size: 26px;
  line-height: 1;
  z-index: 2;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 56px;
  font-size: 28px;
}

.lightbox__nav--prev {
  left: 16px;
}

.lightbox__nav--next {
  right: 16px;
}

@media (max-width: 920px) {
  .covers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 28px 18px;
  }

  .covers {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
  }

  .lightbox {
    padding: 0;
  }

  .lightbox__figure {
    padding: 22px 52px 46px;
  }

  .lightbox__figure img {
    max-width: 92vw;
    max-height: 78vh;
  }

  .lightbox__nav {
    width: 38px;
    height: 44px;
    font-size: 24px;
  }
}
