:root {
  --font-body: "Manrope", sans-serif;
  --font-display: "Cormorant Garamond", serif;
  --bg: #f2eee8;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: #fbf8f2;
  --text: #1c1917;
  --muted: #756c63;
  --border: #d9d0c5;
  --accent: #213946;
  --accent-soft: #d9e1df;
  --sold: #8d3d2f;
  --shadow: 0 18px 40px rgba(32, 24, 16, 0.08);
}

* {
  box-sizing: border-box;
}

.site-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.5;
  background:
    linear-gradient(180deg, #f7f3ee 0%, #f2eee8 100%),
    var(--bg);
  position: relative;
  min-height: 100vh;
}

.page-glow {
  position: fixed;
  inset: auto;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  opacity: 0.38;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.page-glow-left {
  top: -10rem;
  left: -9rem;
  background: rgba(212, 205, 188, 0.85);
}

.page-glow-right {
  top: 10rem;
  right: -14rem;
  background: rgba(208, 221, 219, 0.72);
}

.site-header {
  position: relative;
  z-index: 1;
  padding: 1.5rem 0 0.5rem;
}

.site-header-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid rgba(117, 108, 99, 0.18);
  padding-bottom: 1.1rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  gap: 1.4rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.79rem;
}

.site-main {
  position: relative;
  z-index: 1;
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 2.4rem 0 5rem;
}

.hero {
  padding: 1.2rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(18rem, 0.95fr);
  gap: 2.2rem;
  align-items: end;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.92;
  max-width: 10ch;
}

.hero p {
  color: var(--muted);
  margin: 0;
}

.hero.slim {
  grid-template-columns: 1fr;
  gap: 0.7rem;
  padding-bottom: 1.8rem;
}

.hero-home {
  padding-top: 0.4rem;
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

.hero-note {
  background: rgba(255, 252, 247, 0.55);
  border: 1px solid rgba(117, 108, 99, 0.14);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-size: 0.77rem;
}

.hero-lead {
  max-width: 42rem;
  font-size: 1.05rem;
}

.section-block {
  margin-top: 3rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(117, 108, 99, 0.18);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.section-head a {
  color: var(--accent);
  text-decoration: none;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.books-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid rgba(117, 108, 99, 0.15);
  box-shadow: var(--shadow);
  padding: 0.85rem;
}

.card img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #efe8dc;
}

.card h2,
.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-copy {
  display: grid;
  gap: 0.22rem;
  padding-top: 0.8rem;
}

.card-media-link {
  display: block;
}

.badge {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.badge.sold {
  color: var(--sold);
}

.gallery-list {
  display: grid;
  gap: 0;
}

.gallery-item {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  border-bottom: 1px solid rgba(117, 108, 99, 0.18);
  padding: 1rem 0 1.05rem;
}

.gallery-item h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.gallery-item p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.gallery-item a {
  color: inherit;
  text-decoration: none;
}

.gallery-item-label,
.gallery-item-link a {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.gallery-item-main {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
}

.gallery-item-text {
  display: grid;
  gap: 0.18rem;
}

.gallery-item-image {
  display: block;
  align-self: start;
  width: 9rem;
  flex-shrink: 0;
}

.gallery-item-image img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(117, 108, 99, 0.14);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.82fr);
  gap: 2.2rem;
  align-items: start;
}

.detail-media img {
  width: 100%;
  display: block;
  background: #fff;
  border: 1px solid rgba(117, 108, 99, 0.14);
  box-shadow: var(--shadow);
}

.book-media img {
  max-width: 460px;
}

.detail-meta h1 {
  margin: 0.15rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 0.96;
}

.detail-meta {
  padding-top: 0.4rem;
}

.meta-stack {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.2rem;
}

.meta-stack p {
  display: grid;
  gap: 0.14rem;
  margin: 0;
}

.meta-stack span {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--muted);
}

.detail-text {
  max-width: 36rem;
  color: var(--muted);
}

.button-link {
  display: inline-block;
  border: 1px solid var(--accent);
  padding: 0.68rem 1rem;
  text-decoration: none;
  color: var(--surface-strong);
  background: var(--accent);
  letter-spacing: 0.04em;
}

.rich-text-block {
  max-width: 70ch;
  line-height: 1.8;
  color: var(--muted);
}

.about-block {
  border-top: 1px solid rgba(117, 108, 99, 0.18);
  padding-top: 1.2rem;
}

.back-link {
  margin: 0 0 1.2rem;
}

.back-link a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
}

.site-footer-inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(117, 108, 99, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0.15rem 0;
  overflow-wrap: anywhere;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.social-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.footer-col {
  min-width: 0;
  max-width: 48ch;
}

.footer-heading {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  margin-bottom: 0.45rem;
}

.footer-right {
  text-align: right;
  margin-left: auto;
}

a:hover {
  opacity: 0.88;
}

@media (max-width: 900px) {
  .hero,
  .gallery-item,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .card-grid,
  .books-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer-inner {
    flex-direction: column;
  }

  .footer-right {
    text-align: left;
  }
}
