/* jhmira Bookshelf — Odrin-inspired theme (clean/airy revision).
   Light backgrounds, cream + coral as accents, refined typography.
   Fonts: Cinzel Decorative (display), Mulish (sans/body), Gentium Book Plus (serif). */

:root {
  --paper: #ffffff;
  --paper-2: #faf7f1;
  --cream: #e5dcc3;
  --cream-soft: #f3ece0;
  --ink: #20201e;
  --ink-soft: #565049;
  --muted: #9a9082;
  --coral: #faab9f;
  --coral-deep: #ef8b7b;
  --gold: #d38d45;
  --line: #ece5d8;
  --line-2: #e2dccf;
  --shadow-sm: 0 6px 20px rgba(40, 32, 18, 0.08);
  --shadow: 0 18px 44px rgba(40, 32, 18, 0.16);
  --radius: 8px;

  --font-display: "Cinzel Decorative", Georgia, serif;
  --font-sans: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Gentium Book Plus", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1160px, 90vw); margin-inline: auto; }

a { color: var(--ink); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--coral-deep); }

h1, h2, h3 { color: var(--ink); line-height: 1.18; font-weight: 700; }

/* small uppercase label used for author / meta */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* ---------- header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 1.5em; height: 1.5em;
  margin-right: 4px;
  border: 2px solid var(--coral);
  color: var(--coral-deep);
  border-radius: 4px;
  transform: translateY(2px);
}
.site-nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 26px;
}

.site-main { min-height: 64vh; padding-bottom: 80px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--coral);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 28px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--coral-deep); color: var(--ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; border: 1px solid var(--line-2); color: var(--ink-soft); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }

/* ---------- flash ---------- */
.flash-wrap { margin-top: 18px; }
.flash {
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--paper-2);
  border-left: 3px solid var(--gold);
  margin-bottom: 10px;
}
.flash--success { border-left-color: #4f9d69; }
.flash--error { border-left-color: var(--coral-deep); }

/* ---------- hero / shelf header ---------- */
.hero, .shelf-hero {
  background: var(--cream-soft);
  border-bottom: 1px solid var(--line);
  padding: 84px 0 76px;
  text-align: center;
}
.hero__title, .shelf-hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.shelf-hero__title::after {
  content: "";
  display: block;
  width: 56px; height: 2px;
  margin: 20px auto 0;
  background: var(--coral);
}
.hero__intro, .shelf-hero__intro {
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  max-width: 620px;
  margin-inline: auto;
}
.hero__cta { margin-top: 30px; }
.hero__cta .btn { margin: 0 6px; }

/* ---------- category chips ---------- */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin: 44px 0 40px;
}
.chip {
  padding: 8px 20px;
  border-radius: 2px;
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.chip:hover { border-color: var(--coral); color: var(--coral-deep); }
.chip--active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip--active:hover { color: #fff; }

/* ---------- book grid ---------- */
.book-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 40px 30px;
}
.book-card { text-align: center; }
.book-card__link { color: inherit; display: block; }
.book-card__cover {
  aspect-ratio: 2 / 3;
  border-radius: 2px 4px 4px 2px;
  overflow: hidden;
  box-shadow:
    1px 0 0 #efe7d6, 3px 0 0 #e3d9c3, 5px 0 0 #efe7d6,
    7px 0 0 #e3d9c3, 9px 0 0 #efe7d6,
    8px 10px 22px rgba(40, 32, 18, 0.18);
  background: var(--paper-2);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.book-card__link:hover .book-card__cover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.book-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-card__placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  padding: 18px; text-align: center;
  background: linear-gradient(155deg, var(--coral) 0%, var(--gold) 100%);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.book-card__meta { padding: 18px 6px 0; }
.book-card__title {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}
.book-card__author {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin: 0;
}
.book-card__rating { margin: 10px 0 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.82rem; color: var(--muted); }

/* ---------- stars (CSS-only via --rating 0..5) ---------- */
.stars {
  --rating: 0;
  display: inline-block; position: relative;
  font-size: 0.95rem; line-height: 1;
  color: var(--line-2); letter-spacing: 2px;
}
.stars::before {
  content: "★★★★★";
  position: absolute; left: 0; top: 0;
  width: calc(var(--rating) / 5 * 100%);
  overflow: hidden; white-space: nowrap;
  color: var(--gold);
}

.empty, .reviews__empty {
  text-align: center; color: var(--muted);
  font-family: var(--font-serif); font-size: 1.1rem;
  padding: 60px 0;
}

/* ---------- reader ---------- */
.reader { padding-top: 36px; }
.reader__head { margin-bottom: 24px; text-align: center; }
.reader__back {
  display: inline-block;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--muted); margin-bottom: 14px;
}
.reader__title { font-family: var(--font-serif); font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0; }
.reader__author { margin: 8px 0 0; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.reader__stage {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  width: min(1160px, 94vw); margin: 0 auto;
  padding: 22px; background: #1c1a17; border-radius: var(--radius);
}
.reader__stage:fullscreen { background: #1c1a17; padding: 28px; }
.flipbook { width: 100%; max-width: 1100px; height: clamp(420px, 72vh, 780px); }
.reader__nav {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: none;
  background: var(--coral); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: background 0.15s ease;
}
.reader__nav:hover { background: var(--coral-deep); }
.reader__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 22px; }
.reader__pageinfo { color: var(--muted); font-size: 0.82rem; letter-spacing: 0.08em; }

/* ---------- blurb / reviews ---------- */
.blurb {
  font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink-soft);
  margin: 52px auto 0; max-width: 700px; text-align: center;
}
.reviews { margin: 60px auto 0; max-width: 760px; }
.reviews__heading {
  font-family: var(--font-serif); font-size: 1.7rem; text-align: center;
  margin-bottom: 8px;
}
.reviews__summary { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 1rem; color: var(--ink-soft); margin-bottom: 28px; }
.review { padding: 22px 0; border-top: 1px solid var(--line); }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review__name { font-weight: 700; }
.review__date { color: var(--muted); font-size: 0.8rem; margin-left: auto; }
.review__body { margin: 0; font-family: var(--font-serif); color: var(--ink-soft); }

@media (max-width: 600px) {
  .reader__nav { width: 38px; height: 38px; font-size: 1.3rem; }
  .reader__stage { padding: 10px; gap: 8px; }
  .book-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 32px 20px; }
  .hero, .shelf-hero { padding: 56px 0 50px; }
}

/* ---------- shelf heading: Cinzel display + boxed first letter (Odrin) ---- */
.shelf-hero__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 400;
}
.shelf-hero__title::first-letter {
  color: var(--coral-deep);
  border: 1px solid var(--coral);
  padding: 0.04em 0.14em;
  margin-right: 0.03em;
}
.shelf-hero__title::after { display: none; }

/* ---------- featured showcase (books panel) ---------- */
.showcase { padding: 28px 0 24px; }
.showcase__stage {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 380px;
}

/* the standing 3D book */
.book3d { perspective: 1600px; flex: 0 0 auto; padding: 10px 18px 10px 4px; }
.book3d__inner {
  width: 240px;
  height: 348px;
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
  border-radius: 2px 5px 5px 2px;
  transform: rotateY(-22deg);
  box-shadow:
    1px 0 0 #efe7d6, 3px 0 0 #e3d9c3, 5px 0 0 #efe7d6,
    7px 0 0 #e3d9c3, 9px 0 0 #efe7d6, 11px 0 0 #e3d9c3,
    13px 0 0 #efe7d6, 22px 20px 40px rgba(40, 32, 18, 0.32);
  position: relative;
}
.book3d__inner::before {
  content: "";
  position: absolute; top: 0; left: 0; width: 12px; height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0));
  border-radius: 2px 0 0 2px;
}
.book3d__inner.is-empty {
  display: grid; place-items: center; padding: 20px; text-align: center;
  color: var(--ink-soft); font-family: var(--font-serif); font-size: 1.1rem;
}
.book3d__inner--in { animation: bookIn 0.4s ease; }
@keyframes bookIn {
  from { opacity: 0; transform: rotateY(-22deg) translateX(-14px); }
  to   { opacity: 1; transform: rotateY(-22deg) translateX(0); }
}

/* thumbnail strip */
.thumbs {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: flex-end; gap: 22px;
  flex: 0 1 auto; flex-wrap: wrap;
}
.thumb {
  background: none; border: none; padding: 0; cursor: pointer;
  display: block; text-align: center; font-family: inherit;
  opacity: 0.7; transition: opacity 0.18s ease, transform 0.18s ease;
}
.thumb:hover { opacity: 1; transform: translateY(-3px); }
.thumb.is-active { opacity: 1; }
.thumb__pic {
  display: block; width: 150px; height: 225px;
  overflow: hidden; border-radius: 2px;
  box-shadow: var(--shadow-sm);
  background: var(--paper-2);
}
.thumb__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb__ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  padding: 12px; text-align: center; color: #fff; font-family: var(--font-serif);
  background: linear-gradient(155deg, var(--coral) 0%, var(--gold) 100%);
}
.thumb__label {
  display: block; margin-top: 12px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink);
  max-width: 160px;
}
.thumb.is-active .thumb__label { color: var(--ink); }

/* detail panel */
.showcase__detail { flex: 1 1 280px; max-width: 360px; padding-left: 10px; }
.detail__title {
  font-family: var(--font-display); font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.04em;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; margin: 0 0 22px;
}
.detail__cat { display: flex; align-items: center; gap: 14px; margin: 0 0 30px; }
.detail__rule { display: inline-block; width: 42px; height: 1px; background: var(--ink); }
#dCat {
  font-size: 0.95rem; color: var(--coral-deep); font-weight: 600;
  letter-spacing: 0.02em;
}
.detail__actions { display: flex; align-items: center; gap: 26px; }

@media (max-width: 760px) {
  .showcase__stage { gap: 24px; }
  .book3d__inner { width: 200px; height: 290px; }
  .thumb__pic { width: 110px; height: 165px; }
  .showcase__detail { text-align: center; max-width: 100%; padding-left: 0; }
  .detail__cat, .detail__actions { justify-content: center; }
}

/* ---------- shelf grid: 3D tilt on hover ---------- */
.book-card__link { perspective: 1100px; display: block; }
.book-card__tilt {
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.book-card__link:hover .book-card__tilt {
  transform: rotateY(-24deg) translateZ(14px);
}
.book-card__cover { position: relative; }
.book-card__cover::after {
  content: "";
  position: absolute; top: 0; right: 0; width: 10px; height: 100%;
  background: linear-gradient(to left, rgba(0,0,0,0.18), rgba(0,0,0,0));
  opacity: 0; transition: opacity 0.35s ease;
}
.book-card__link:hover .book-card__cover::after { opacity: 1; }
.book-card__link:hover .book-card__cover {
  box-shadow:
    1px 0 0 #efe7d6, 3px 0 0 #e3d9c3, 5px 0 0 #efe7d6, 7px 0 0 #e3d9c3,
    9px 0 0 #efe7d6, 11px 0 0 #e3d9c3, 13px 0 0 #efe7d6,
    20px 16px 38px rgba(40, 32, 18, 0.28);
}

/* ---------- book detail page ---------- */
.detail { padding-top: 30px; }
.detail__crumbs {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 34px; font-weight: 700;
}
.detail__crumbs a { color: var(--muted); }
.detail__crumbs a:hover { color: var(--coral-deep); }
.detail__crumbs span { color: var(--ink); }
.detail__main {
  display: grid; grid-template-columns: minmax(0, 300px) 1fr;
  gap: 56px; align-items: start;
}
.detail__cover {
  position: relative;
  align-self: start;
  max-width: 300px; width: 100%;
  border-radius: 2px 5px 5px 2px;
  box-shadow:
    1px 0 0 #efe7d6, 3px 0 0 #e3d9c3, 5px 0 0 #efe7d6, 7px 0 0 #e3d9c3,
    9px 0 0 #efe7d6, 11px 0 0 #e3d9c3, 13px 0 0 #efe7d6, 15px 0 0 #e3d9c3,
    17px 0 0 #efe7d6, 19px 0 0 #e3d9c3, 21px 0 0 #efe7d6,
    28px 18px 44px rgba(40, 32, 18, 0.26);
}
.detail__cover img { width: 100%; height: auto; display: block; border-radius: 2px 5px 5px 2px; }
.detail__cover::before {
  content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.18), rgba(0,0,0,0)); border-radius: 2px 0 0 2px;
}
/* rich-text image wrapping inside the description */
.detail__desc img { max-width: 100%; height: auto; }
.detail__desc .richtext-image.left  { float: left;  max-width: 44%; margin: 6px 28px 16px 0; }
.detail__desc .richtext-image.right { float: right; max-width: 44%; margin: 6px 0 16px 28px; }
.detail__desc .richtext-image.full-width { display: block; margin: 24px auto; }
.detail__ph {
  aspect-ratio: 2/3; display: grid; place-items: center; padding: 24px; text-align: center;
  background: linear-gradient(155deg, var(--coral), var(--gold)); color: #fff; font-family: var(--font-serif);
}
.detail__cover-cta {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  background: rgba(250, 171, 159, 0.92); color: var(--ink);
  text-align: center; padding: 14px 0; font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; opacity: 0; transition: opacity 0.2s ease;
}
.detail__cover:hover .detail__cover-cta { opacity: 1; }
.detail__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.04em; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; margin: 0 0 22px;
}
.detail__title::first-letter {
  color: var(--coral-deep);
  border: 1px solid var(--coral);
  padding: 0.1em 0.14em 0.04em;
  margin-right: 0.02em;
  line-height: 1;
}
.detail__title { animation: detailTitleIn 0.6s ease both; }
@keyframes detailTitleIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.detail__cat { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; color: var(--coral-deep); }
.detail__rule { display: inline-block; width: 42px; height: 1px; background: var(--ink); }
.detail__author { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin: 0 0 30px; }
.detail__actions { margin: 8px 0 0; }
.detail__section { margin-top: 60px; }
.detail__h {
  font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.03em;
  border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 22px;
}
.detail__desc { font-family: var(--font-serif); font-size: 1.12rem; color: var(--ink-soft); max-width: 760px; }
.detail__desc > p:first-of-type::first-letter {
  float: left; font-family: var(--font-display); font-weight: 900; font-size: 3.2em; line-height: 0.8; padding: 6px 12px 0 0; color: var(--gold);
}
.review { padding: 20px 0; border-bottom: 1px solid var(--line); max-width: 760px; }
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review__name { font-weight: 700; }
.review__date { color: var(--muted); font-size: 0.8rem; margin-left: auto; }
.review__body { margin: 0; font-family: var(--font-serif); color: var(--ink-soft); }
.reviews__summary { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }

@media (max-width: 760px) {
  .detail__main { grid-template-columns: 1fr; gap: 30px; }
  .detail__cover { max-width: 320px; margin: 0 auto; }
}


/* ---------- detail cover: 3D tilt on hover ---------- */
.detail__main { perspective: 1500px; }
.detail__cover { transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); transform-style: preserve-3d; }
.detail__cover:hover { transform: rotateY(-16deg) translateZ(12px); }

/* ---------- review form + star input ---------- */
.review-form { max-width: 760px; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 26px; }
.review-form__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem; margin: 0 0 14px; }
.review-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }
.rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; font-size: 1.8rem; margin: 2px 0 16px; }
.rating-input input { display: none; }
.rating-input label { color: var(--line-2); cursor: pointer; padding: 0 2px; transition: color 0.12s ease; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: var(--gold); }
.review-form__row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.review-form input[type="text"], .review-form input[type="email"], .review-form textarea {
  flex: 1; min-width: 220px; padding: 12px 14px; border: 1px solid var(--line);
  font-family: var(--font-sans); font-size: 0.95rem; border-radius: 2px; background: #fff; color: var(--ink);
}
.review-form textarea { width: 100%; margin-bottom: 14px; resize: vertical; }
.review-form input:focus, .review-form textarea:focus { outline: none; border-color: var(--coral); }

/* ---------- newsletter (footer) ---------- */
.newsletter { background: var(--paper-2); border-top: 1px solid var(--line); padding: 46px 0 40px; }
.newsletter__title { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.4rem; margin: 0 0 6px; }
.newsletter__sub { color: var(--ink); font-weight: 700; margin: 0 0 18px; }
.newsletter__form { max-width: 100%; }
.newsletter__input { display: block; width: 100%; padding: 16px; border: 1px solid var(--line); background: #fff; font-family: var(--font-sans); font-size: 0.95rem; margin-bottom: 10px; }
.newsletter__input:focus { outline: none; border-color: var(--coral); }
.newsletter__btn { display: block; width: 100%; padding: 16px; background: var(--coral); color: #fff; border: none; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; font-size: 0.82rem; cursor: pointer; transition: background 0.15s ease; }
.newsletter__btn:hover { background: var(--coral-deep); }
.site-footer__copy { text-align: center; padding-top: 26px; }

/* ---------- shelf hero with background image ---------- */
.shelf-hero--image { background-size: cover; background-position: center; position: relative; }
.shelf-hero--image::before { content: ""; position: absolute; inset: 0; background: rgba(252, 250, 245, 0.62); }
.shelf-hero--image .container { position: relative; z-index: 1; }

/* ---------- StreamField content blocks (reusable) ---------- */
.imgtext-fig { margin: 0 0 12px; }
.imgtext-fig img { width: 100%; height: auto; display: block; border-radius: 2px; }
.imgtext-fig--left  { float: left;  margin: 4px 30px 14px 0; }
.imgtext-fig--right { float: right; margin: 4px 0 14px 30px; }
.imgtext-fig--small  { width: 30%; }
.imgtext-fig--medium { width: 44%; }
.imgtext-fig--large  { width: 58%; }
.imgtext-clear { clear: both; }

.block-full-image { margin: 24px 0; }
.block-full-image img { width: 100%; height: auto; display: block; border-radius: 2px; }
.block-full-image figcaption { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 6px; }

.block-quote { border-left: 3px solid var(--coral); padding: 6px 0 6px 22px; margin: 1.4em 0; font-family: var(--font-serif); font-style: italic; color: var(--ink); }
.block-quote cite { display: block; font-style: normal; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.block-callout { background: var(--cream-soft); border-left: 3px solid var(--gold); border-radius: 4px; padding: 16px 22px; margin: 1.4em 0; }
.block-callout > :first-child { margin-top: 0; }
.block-callout > :last-child { margin-bottom: 0; }

.block-sep { border: none; border-top: 1px solid var(--line-2); width: 80px; margin: 30px auto; }

@media (max-width: 680px) {
  .imgtext-fig { float: none !important; width: 100% !important; margin: 0 0 14px !important; }
}

/* ---------- header brand + hero brand lockup ---------- */
.brand__accent { color: var(--coral-deep); }

.shelf-hero__brand {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.7rem); letter-spacing: 0.04em;
  margin: 0 0 14px; color: var(--ink); line-height: 1.1;
}
.shelf-hero__brand::first-letter { color: var(--coral-deep); border: 1px solid var(--coral); padding: 0.06em 0.12em 0.02em; margin-right: 0.02em; }
.shelf-hero__cap {
  color: var(--coral-deep); border: 1px solid var(--coral);
  padding: 0.04em 0.16em 0.02em; margin-right: 0.02em;
}
.shelf-hero__tag {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--ink-soft); font-weight: 700;
  padding-bottom: 8px; border-bottom: 2px dotted var(--muted); margin: 0;
}
.shelf-hero__cta { margin-top: 30px; }

/* ---------- simple page hero + body (About / Contact) ---------- */
.page-hero { background: var(--cream-soft); border-bottom: 1px solid var(--line); padding: 70px 0 60px; text-align: center; }
.page-hero__title { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; }
.page-hero__title::first-letter { color: var(--coral-deep); border: 1px solid var(--coral); padding: 0.1em 0.14em 0.04em; margin-right: 0.03em; line-height: 1; }
.page-body { max-width: 820px; margin: 48px auto 0; font-family: var(--font-serif); font-size: 1.12rem; color: var(--ink-soft); }
.page-intro { margin-bottom: 1.4em; }

/* contact page */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 48px; align-items: start; }
.contact__intro { font-family: var(--font-serif); font-size: 1.12rem; color: var(--ink-soft); }
.contact__form label { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.contact__form p { margin: 0 0 18px; }
.contact__form input, .contact__form textarea, .contact__form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: #fff;
  font-family: var(--font-sans); font-size: 0.95rem; border-radius: 2px; color: var(--ink);
}
.contact__form input:focus, .contact__form textarea:focus { outline: none; border-color: var(--coral); }
.contact__form textarea { min-height: 150px; resize: vertical; }
.contact__form .helptext { font-size: 0.78rem; color: var(--muted); }
.contact__thanks { text-align: center; }

/* footer social icons */
.social { display: flex; justify-content: center; gap: 14px; padding-top: 26px; }
.social__link {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 4px; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: color 0.15s ease, border-color 0.15s ease;
}
.social__link:hover { color: var(--coral-deep); border-color: var(--coral); }

@media (max-width: 760px) { .contact { grid-template-columns: 1fr; gap: 28px; } }

/* Hero text justification (admin-configurable) */
.shelf-hero--left   { text-align: left; }
.shelf-hero--center { text-align: center; }
.shelf-hero--right  { text-align: right; }
.shelf-hero--left   .shelf-hero__intro,
.shelf-hero--left   .shelf-hero__cta { margin-left: 0; margin-right: auto; }
.shelf-hero--right  .shelf-hero__intro,
.shelf-hero--right  .shelf-hero__cta { margin-left: auto; margin-right: 0; }

/* showcase heading + detail panel extras (reconstructed) */
.showcase__head { text-align: center; font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 6px 0 44px; }
.detail__status { color: var(--muted); font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; margin: 0 0 22px; }
.detail__read { display: inline-flex; align-items: center; gap: 9px; }
.detail__view { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral-deep); font-weight: 700; }
.detail__view:hover { color: var(--gold); }
