/* ============================================================
   Smangaliso Mathelela — Author Website
   Luxury modern: couture serif display type, hairline gold
   details, deep blacks, editorial spacing. Mobile-first.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --black: #070708;
  --charcoal: #0e0e11;
  --charcoal-2: #141419;
  --hairline: rgba(235, 228, 212, 0.08);
  --hairline-strong: rgba(235, 228, 212, 0.16);
  --hairline-gold: rgba(203, 168, 96, 0.35);
  --ivory: #ece5d3;
  --ivory-dim: #cfc8b8;
  --grey: #97917f;
  --gold: #cba860;
  --gold-bright: #e0c185;
  --gold-grad: linear-gradient(115deg, #dcbc7c 0%, #b8934c 55%, #d9b872 100%);
  --wine: #6d2a33;
  --wine-deep: #401b22;

  /* Type */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Rhythm */
  --space-section: clamp(5.5rem, 12vw, 10rem);
  --radius: 3px;
  --shadow-soft: 0 30px 70px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header */
  scroll-padding-top: 5.5rem;
}

body {
  background-color: var(--black);
  background-image:
    radial-gradient(1400px 700px at 88% -12%, rgba(109, 42, 51, 0.18), transparent 62%),
    radial-gradient(1000px 600px at -12% 24%, rgba(203, 168, 96, 0.05), transparent 55%);
  background-repeat: no-repeat;
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ivory);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--black);
  padding: 0.6rem 1rem;
  z-index: 200;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- Shared layout ---------- */
.section {
  padding: var(--space-section) 1.5rem;
}

.section-inner {
  max-width: 74rem;
  margin: 0 auto;
}

.section-feature {
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--black) 100%);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.section-head {
  max-width: 46rem;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin-bottom: 1rem;
}

.section-lede {
  color: var(--grey);
  font-size: 1.02rem;
  font-weight: 300;
}

/* Tiny tracked label above headings — the signature luxury cue */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--hairline-gold);
  flex: none;
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head .eyebrow::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--hairline-gold);
  flex: none;
}

.center {
  text-align: center;
  margin-top: 3rem;
}

.accent-gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hairline divider between sections */
.divider {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0;
}

.divider span {
  display: block;
  width: min(30rem, 74%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-strong), transparent);
  position: relative;
}

.divider span::after {
  content: "◆";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.34rem;
  color: var(--gold);
  background: var(--black);
  padding: 0 1.2rem;
}

/* ---------- Buttons: sharp, tracked, couture ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold {
  background: var(--gold-grad);
  color: #16120a;
  border-color: rgba(224, 193, 133, 0.6);
}

.btn-gold:hover {
  box-shadow: 0 8px 28px rgba(203, 168, 96, 0.28);
  border-color: var(--gold-bright);
}

.btn-outline {
  background: transparent;
  color: var(--ivory);
  border-color: var(--hairline-strong);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(203, 168, 96, 0.06);
}

.btn-small {
  padding: 0.7rem 1.4rem;
  font-size: 0.62rem;
}

.btn-text {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 1.05rem 0.25rem;
  position: relative;
  transition: color 0.3s ease;
}

.btn-text::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.7rem;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.btn-text:hover {
  color: var(--gold-bright);
}

.btn-text:hover::after {
  transform: scaleX(1);
}

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 8, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 8, 0.9);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ivory);
  white-space: nowrap;
}

.brand-tag {
  font-size: 0.54rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--grey);
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.nav-list a:not(.btn) {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.3s ease;
}

.nav-list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-list a:not(.btn):hover {
  color: var(--gold-bright);
}

.nav-list a:not(.btn):hover::after {
  transform: scaleX(1);
}

/* Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  background: none;
  border: 1px solid var(--hairline-strong);
  border-radius: 0;
  cursor: pointer;
  padding: 0 11px;
}

.nav-toggle-bar {
  display: block;
  height: 1px;
  width: 100%;
  background: var(--ivory);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 1.5rem clamp(5rem, 11vw, 8rem);
  border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(900px 500px at 72% 8%, rgba(109, 42, 51, 0.24), transparent 65%),
    linear-gradient(180deg, var(--charcoal) 0%, var(--black) 92%);
  overflow: hidden;
}

/* Faint oversized monogram behind the hero — pure atmosphere */
.hero::before {
  content: "SM";
  position: absolute;
  top: 50%;
  right: -4rem;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: clamp(18rem, 40vw, 34rem);
  font-weight: 500;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(235, 228, 212, 0.045);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  max-width: 74rem;
  margin: 0 auto;
  display: grid;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(3.2rem, 10vw, 6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  font-weight: 400;
  color: var(--ivory-dim);
  margin-bottom: 1.1rem;
}

.hero-support {
  color: var(--grey);
  max-width: 33rem;
  margin-bottom: 2.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero-note {
  font-size: 0.72rem;
  color: var(--grey);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Portrait / media frames with graceful placeholder fallback.
   The offset hairline frame is the couture touch. */
.portrait-frame,
.cover-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--hairline-strong);
  background: linear-gradient(160deg, var(--charcoal-2) 0%, var(--wine-deep) 130%);
  box-shadow: var(--shadow-soft);
}

.portrait-frame {
  aspect-ratio: 4 / 5;
  max-width: 26rem;
  margin: 0 auto;
  overflow: visible;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid var(--hairline-gold);
  border-radius: var(--radius);
  pointer-events: none;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
}

.portrait-frame-sm {
  max-width: 20rem;
  box-shadow: var(--shadow-card);
}

.cover-frame {
  aspect-ratio: 2 / 3;
}

.portrait-frame img,
.cover-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Shown behind the image; visible when the image is missing */
.media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 1.5rem;
}

.fallback-mono {
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gold);
  opacity: 0.9;
}

.fallback-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ivory);
}

.fallback-caption {
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--grey);
}

.media-fallback::after {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--hairline-gold);
  order: -1;
  margin-bottom: 0.2rem;
}

/* ---------- Book cards ---------- */
.book-grid {
  display: grid;
  gap: 2.5rem;
  counter-reset: book;
}

.book-card {
  position: relative;
  background: linear-gradient(180deg, var(--charcoal-2) 0%, var(--charcoal) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Gold hairline sweeps in along the top on hover */
.book-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 1;
}

.book-card:hover {
  transform: translateY(-6px);
  border-color: var(--hairline-gold);
  box-shadow: var(--shadow-soft);
}

.book-card:hover::before {
  transform: scaleX(1);
}

.book-card .cover-frame {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--hairline);
  box-shadow: none;
}

.book-card .cover-frame img {
  border-radius: 0;
  transition: transform 0.6s ease;
}

.book-card:hover .cover-frame img {
  transform: scale(1.03);
}

.book-card-body {
  padding: 2rem 1.9rem 2.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Editorial numbering: 01 / 02 / 03 */
.book-card-body::before {
  counter-increment: book;
  content: "0" counter(book);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  opacity: 0.75;
  margin-bottom: 0.9rem;
}

.book-genre {
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.9rem;
}

.book-title {
  font-size: 1.9rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.book-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: 1.02rem;
  margin-bottom: 1.1rem;
}

.book-hook {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--ivory);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.book-desc {
  color: var(--grey);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.buying-note {
  text-align: center;
  color: var(--grey);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  max-width: 40rem;
  margin: 3.5rem auto 0;
}

/* ---------- Buying option cards ---------- */
.option-grid {
  display: grid;
  gap: 1.5rem;
}

.option-card {
  position: relative;
  background: var(--charcoal-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2.75rem 2rem;
  text-align: center;
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.option-card:hover {
  border-color: var(--hairline-gold);
  transform: translateY(-4px);
}

.option-icon {
  display: inline-block;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.option-card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.7rem;
}

.option-card p {
  color: var(--grey);
  font-size: 0.92rem;
}

/* ---------- Signed collection ---------- */
.collection-panel {
  position: relative;
  display: grid;
  gap: 3.5rem;
  align-items: center;
  background:
    radial-gradient(700px 350px at 92% 0%, rgba(109, 42, 51, 0.3), transparent 65%),
    var(--charcoal-2);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 7vw, 5rem);
  box-shadow: var(--shadow-soft);
}

/* Gold hairline crown */
.collection-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

.collection-copy h2 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  margin-bottom: 1.1rem;
}

.collection-lede {
  color: var(--ivory-dim);
  margin-bottom: 1.75rem;
}

.collection-list {
  list-style: none;
  margin-bottom: 2rem;
}

.collection-list li {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--hairline);
}

.collection-list li::before {
  content: "✦";
  color: var(--gold);
  margin-right: 0.9rem;
  font-size: 0.7rem;
  vertical-align: 2px;
}

.collection-price {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--gold-bright);
  margin-bottom: 2rem;
}

.price-note {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

/* Decorative book spines */
.collection-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.9rem;
  min-height: 16rem;
}

.spine {
  width: 3.4rem;
  border-radius: 3px 3px 1px 1px;
  border: 1px solid rgba(235, 228, 212, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s ease;
}

.collection-panel:hover .spine-1 { transform: translateY(-6px); }
.collection-panel:hover .spine-2 { transform: translateY(-10px); }
.collection-panel:hover .spine-3 { transform: translateY(-4px); }

.spine span {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--ivory);
  white-space: nowrap;
  padding: 1rem 0;
}

.spine-1 { height: 15rem; background: linear-gradient(180deg, #582530, #35141c); }
.spine-2 { height: 17rem; background: linear-gradient(180deg, #22222a, #101014); }
.spine-3 { height: 16rem; background: linear-gradient(180deg, #6b5326, #443314); }

/* ---------- Book detail sections ---------- */
.book-detail {
  display: grid;
  gap: 3rem;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-bottom: 1px solid var(--hairline);
}

.book-detail:last-of-type {
  border-bottom: none;
}

.detail-cover .cover-frame-lg {
  max-width: 21rem;
  margin: 0 auto;
}

.detail-title {
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.detail-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: 1.6rem;
}

.detail-hook {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3.2vw, 1.65rem);
  font-weight: 500;
  font-style: italic;
  color: var(--ivory);
  line-height: 1.4;
  margin-bottom: 1.6rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--gold);
}

.detail-text p {
  color: var(--ivory-dim);
  margin-bottom: 1.1rem;
  max-width: 40rem;
}

.detail-body .book-actions {
  margin-top: 1.75rem;
}

/* Soundtrack / QR placeholder box (The Dinner Trilogy) */
.soundtrack-box {
  margin-top: 2.5rem;
  background: var(--charcoal-2);
  border: 1px solid var(--hairline);
  border-left: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem 1.9rem;
  max-width: 40rem;
}

.soundtrack-label {
  font-size: 0.6rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.soundtrack-box > p {
  color: var(--grey);
  font-size: 0.9rem;
  margin-bottom: 1.3rem;
}

.soundtrack-slots {
  display: grid;
  gap: 0.75rem;
}

.qr-slot {
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: center;
}

/* ---------- About ---------- */
.about-inner {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  margin-bottom: 1.4rem;
}

.about-copy p {
  color: var(--ivory-dim);
  margin-bottom: 1.3rem;
  max-width: 38rem;
}

.about-copy .btn {
  margin-top: 0.75rem;
}

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.review-card {
  background: var(--charcoal-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem;
  position: relative;
  transition: border-color 0.4s ease;
}

.review-card:hover {
  border-color: var(--hairline-gold);
}

.review-card::before {
  content: "“";
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 400;
  color: var(--gold);
  opacity: 0.5;
  position: absolute;
  top: 0.9rem;
  left: 1.5rem;
  line-height: 1;
}

.review-card p {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ivory);
  margin-bottom: 1.2rem;
  padding-top: 1rem;
}

.review-card cite {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey);
}

.review-invite {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.review-invite p {
  color: var(--ivory-dim);
  margin-bottom: 1.75rem;
}

/* ---------- Media & partners ---------- */
.media-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}

.media-card {
  display: block;
  background: var(--charcoal-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  transition: border-color 0.4s ease, transform 0.4s ease;
}

.media-card:hover {
  border-color: var(--hairline-gold);
  transform: translateY(-4px);
}

.media-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.media-card p {
  color: var(--grey);
  font-size: 0.85rem;
}

/* ---------- Newsletter ---------- */
.newsletter-inner {
  max-width: 46rem;
}

.newsletter-form {
  position: relative;
  display: grid;
  gap: 1.6rem;
  background: var(--charcoal-2);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius);
  padding: clamp(2rem, 6vw, 3.25rem);
  box-shadow: var(--shadow-card);
}

.newsletter-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.form-field label {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.55rem;
}

/* Understated underline inputs */
.form-field input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-strong);
  border-radius: 0;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  padding: 0.6rem 0.1rem;
  transition: border-color 0.3s ease;
}

.form-field input::placeholder {
  color: rgba(151, 145, 127, 0.45);
  font-style: italic;
}

.form-field input:focus {
  border-bottom-color: var(--gold);
  outline: none;
}

.newsletter-form .btn {
  justify-self: start;
  margin-top: 0.4rem;
}

.form-status {
  font-size: 0.9rem;
  color: var(--gold-bright);
  min-height: 1.2em;
}

.form-privacy {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- Contact ---------- */
.contact-inner {
  max-width: 46rem;
  text-align: center;
}

.contact-card {
  background: var(--charcoal-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 7vw, 3.75rem);
}

.contact-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  font-weight: 500;
  color: var(--gold-bright);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--hairline-gold);
  padding-bottom: 0.25rem;
  transition: border-color 0.3s ease;
  word-break: break-word;
}

.contact-email:hover {
  border-bottom-color: var(--gold-bright);
}

.social-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem 2.25rem;
}

.social-list a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.3s ease;
}

.social-list a:hover {
  color: var(--gold-bright);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  background: var(--charcoal);
  padding: 3.5rem 1.5rem 2.25rem;
}

.footer-inner {
  max-width: 74rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--hairline);
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ivory);
}

.footer-tag {
  font-size: 0.56rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 0.4rem;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 2rem;
}

.footer-nav a {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--gold-bright);
}

.footer-legal {
  max-width: 74rem;
  margin: 0 auto;
  padding-top: 1.75rem;
}

.footer-legal p {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--grey);
}

/* ---------- Reveal animation (JS adds .visible; gated behind .js) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .btn-text::after,
  .book-card,
  .book-card::before,
  .book-card .cover-frame img,
  .option-card,
  .media-card,
  .spine {
    transition: none;
  }
}

/* ============================================================
   Responsive: tablet and up
   ============================================================ */
@media (min-width: 700px) {
  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .option-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .collection-panel {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .book-detail {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }

  /* Alternate cover side for visual rhythm */
  .book-detail-flip .detail-cover {
    order: 2;
  }

  .book-detail-flip .detail-body {
    order: 1;
  }

  .about-inner {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

@media (min-width: 960px) {
  .book-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   Responsive: mobile navigation (below 900px)
   ============================================================ */
@media (max-width: 899px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(7, 7, 8, 0.98);
    border-bottom: 1px solid var(--hairline-strong);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.5rem 1.75rem;
  }

  .nav-list li {
    border-bottom: 1px solid var(--hairline);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a:not(.btn) {
    display: block;
    padding: 1.05rem 0.25rem;
    font-size: 0.78rem;
  }

  .nav-list a:not(.btn)::after {
    display: none;
  }

  .nav-cta {
    padding-top: 1.4rem;
  }

  .nav-cta .btn {
    display: block;
    width: 100%;
    padding: 1.05rem 1.2rem;
    font-size: 0.7rem;
  }

  /* Comfortable tap targets on mobile */
  .book-actions .btn {
    flex: 1 1 100%;
  }

  /* The oversized monogram overwhelms small screens */
  .hero::before {
    display: none;
  }
}
