:root {
  /* Surfaces */
  --bg: #f5f1e8;
  --bg-alt: #ede7d9;
  --bg-rich: #14120f;
  --cream: #f5f1e8;
  --cream-soft: #faf7f0;

  /* Ink */
  --ink: #1a1a18;
  --ink-light: #4a4a45;
  --ink-muted: #8a8a82;

  /* Brand */
  --emerald: #2d6a4f;
  --emerald-dark: #1b4332;
  --emerald-deep: #0f2a1e;
  --emerald-light: #40916c;

  /* Accents */
  --gold: #b68d40;
  --gold-light: #d4b068;
  --gold-soft: #e8d5a8;

  /* Type */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;

  /* Shape + motion */
  --radius-pill: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ── BASE ── */
body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--cream);
  background: var(--emerald);
}

/* ── ACCESSIBILITY ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream);
  background: var(--emerald-deep);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

:focus-visible {
  border-radius: 3px;
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── EYEBROW (SMALL LABEL ABOVE HEADINGS) ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--emerald);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--emerald);
}

/* ── DISPLAY HEADINGS ── */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.display em {
  font-style: italic;
  color: var(--emerald);
}

/* ── REVEAL-ON-SCROLL (HERO KEPT VISIBLE BY DEFAULT VIA JS) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ── SECTION SHELL (REUSABLE SECTION PADDING) ── */
.block {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

/* ── SECTION HEAD (EYEBROW + HEADLINE + LEAD) ── */
.section-head {
  max-width: 720px;
  margin-bottom: 4rem;
}

.section-head .eyebrow {
  margin-bottom: 1.3rem;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
}

.section-lead {
  max-width: 58ch;
  margin-top: 1.3rem;
  font-size: 1.1rem;
  color: var(--ink-light);
}

/* ── SHARED BUTTONS ── */
.btn-primary-custom {
  padding: 1.05rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--emerald-dark);
  transition: all 0.4s var(--ease);
}
.btn-primary-custom:hover {
  color: var(--cream);
  background: var(--emerald);
  transform: translateY(-2px);
}

.btn-ghost {
  padding: 0.5rem 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 15px;
  cursor: pointer;
  transition:
    color 0.3s,
    text-decoration-color 0.3s;
}
.btn-ghost:hover {
  color: var(--emerald);
  text-decoration-color: var(--emerald);
}

/* ── NAVBAR ── */
.custom-nav {
  padding: 1.2rem 0;
  background: transparent;
  transition: all 0.4s ease;
}

.custom-nav.scrolled {
  padding: 0.6rem 0;
  background: rgba(245, 241, 232, 0.88);
  box-shadow: 0 1px 0 rgba(26, 26, 24, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── BRAND ── */
.custom-nav .navbar-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

.brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
}

/* ── LINKS ── */
.custom-nav .nav-link {
  position: relative;
  padding: 0.5rem 1.1rem !important;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-light) !important;
  transition: color 0.3s;
}

.custom-nav .nav-link:hover {
  color: var(--emerald) !important;
}

/* ── CTA BUTTON ── */
.nav-cta {
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream) !important;
  background: var(--emerald-dark);
  transition: all 0.3s;
}

.nav-cta:hover {
  color: var(--cream) !important;
  background: var(--emerald);
}

/* ── TOGGLER (BURGER) ── */
.custom-nav .navbar-toggler {
  padding: 0.3rem 0.5rem;
}
.custom-nav .navbar-toggler:focus {
  box-shadow: none;
}

.custom-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%231A1A18' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1.5' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ── DESKTOP: ANIMATED UNDERLINE ON HOVER ── */
@media (min-width: 992px) {
  .custom-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--emerald);
    transform: translateX(-50%);
    transition: width 0.3s;
  }
  .custom-nav .nav-link:hover::after {
    width: calc(100% - 2.2rem);
  }
}

/* ── MOBILE (≤ 991.98PX) ── */
@media (max-width: 991.98px) {
  .custom-nav .navbar-collapse {
    margin-top: 1rem;
    padding: 1.5rem;
    border-radius: 4px;
    background: var(--cream-soft);
    box-shadow: 0 20px 40px -10px rgba(15, 42, 30, 0.15);
  }
  .custom-nav .nav-cta {
    display: inline-block;
    align-self: flex-start;
    margin-top: 1rem;
  }
}

/* ── HERO ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

/* Soft gold glow in the upper-right */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(
    circle at center,
    rgba(182, 141, 64, 0.12),
    transparent 60%
  );
  pointer-events: none;
}

/* ── COPY COLUMN ── */
.hero-content .eyebrow {
  margin-bottom: 2rem;
}

.hero-title {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.4rem);
}

.hero-subtitle {
  margin-bottom: 1.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  font-style: italic;
  color: var(--ink-light);
}

.hero-desc {
  max-width: 38ch;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  color: var(--ink-light);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero-meta .sep {
  color: var(--gold);
}

/* ── 3D BOOK COVER ── */
.book-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1800px;
}

.book {
  position: relative;
  width: min(340px, 75%);
  aspect-ratio: 2 / 3;
  box-shadow:
    -40px 30px 60px -20px rgba(15, 42, 30, 0.45),
    -15px 15px 30px -10px rgba(15, 42, 30, 0.3);
  transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(4deg);
  transition: transform 0.8s var(--ease);
}
.book:hover {
  transform: rotateY(-8deg) rotateX(2deg);
}

.book-front {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.6rem;
  border-radius: 2px 6px 6px 2px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at top right,
      rgba(182, 141, 64, 0.25),
      transparent 55%
    ),
    linear-gradient(
      160deg,
      var(--emerald-dark) 0%,
      var(--emerald-deep) 70%,
      #0a1e15 100%
    );
}

/* Book spine shadow (left edge) */
.book-front::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
}

.book-publisher {
  position: relative;
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-soft);
  opacity: 0.8;
}

.book-flame {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 60%;
  opacity: 0.18;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.book-center {
  position: relative;
  z-index: 2;
  text-align: center;
}

.book-title {
  margin-bottom: 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  line-height: 1.05;
  color: var(--cream-soft);
}
.book-title em {
  font-style: italic;
  color: var(--gold-light);
}

.book-ornament {
  width: 40px;
  height: 1px;
  margin: 0.8rem auto;
  background: var(--gold);
}

.book-sub {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.book-author {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  text-align: center;
  color: var(--gold-light);
}

/* ── FLOATING EMBER PARTICLES ── */
.embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ember {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px var(--gold);
  opacity: 0;
  animation: drift 8s infinite ease-in;
}

.ember:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}
.ember:nth-child(2) {
  left: 30%;
  width: 3px;
  height: 3px;
  animation-delay: 2s;
}
.ember:nth-child(3) {
  left: 55%;
  animation-delay: 4s;
}
.ember:nth-child(4) {
  left: 75%;
  width: 2px;
  height: 2px;
  animation-delay: 1s;
}
.ember:nth-child(5) {
  left: 90%;
  animation-delay: 3s;
}

@keyframes drift {
  0% {
    bottom: -5%;
    opacity: 0;
    transform: translateX(0);
  }
  15% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    bottom: 110%;
    opacity: 0;
    transform: translateX(30px);
  }
}

/* ── MOBILE (≤ 991.98PX) ── */
@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding: 7rem 0 3rem;
  }
  .book-stage {
    order: -1;
    margin-bottom: 2rem;
  }
  .book {
    width: min(240px, 60%);
  }
  .hero-ctas {
    gap: 1.2rem;
  }
}

/* ── ABOUT THE AUTHOR ── */
.about {
  position: relative;
  overflow: hidden;
  background: var(--bg-alt);
}

/* ── PORTRAIT ── */
.author-portrait {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 20px 20px 0 -2px var(--emerald-dark);
}

.author-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 0.8s var(--ease);
}

.author-portrait:hover .author-img {
  transform: scale(1.03);
}

/* Soft bottom gradient over the image */
.author-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 42, 30, 0.15));
  pointer-events: none;
}

/* ── BIO ── */
.author-body .eyebrow {
  margin-bottom: 1.5rem;
}

.author-heading {
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
}

.author-body p {
  margin-bottom: 1.3rem;
  font-size: 1.05rem;
  color: var(--ink-light);
}

.author-body p em {
  font-style: italic;
  color: var(--emerald-dark);
}

/* ── PULL QUOTE ── */
.author-quote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.35;
  color: var(--emerald-dark);
}

/* ── SIGNATURE ── */
.author-sign {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--emerald-dark);
}

/* ── MOBILE (≤ 991.98PX) ── */
@media (max-width: 991.98px) {
  .author-portrait {
    max-width: 380px;
    margin: 0 auto 2rem;
    box-shadow: 14px 14px 0 -2px var(--emerald-dark);
  }
  .author-quote {
    font-size: 1.25rem;
  }
}

/* ── INSIDE THE BOOK ── */
.inside {
  position: relative;
  overflow: hidden;
  color: var(--cream-soft);
  background: var(--bg-rich);
}

/* Soft emerald glow in the upper-left */
.inside::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(45, 106, 79, 0.25), transparent 60%);
  pointer-events: none;
}

/* ── DARK-BACKGROUND OVERRIDES FOR SHARED UTILITIES ── */
.inside .eyebrow {
  color: var(--gold-light);
}
.inside .eyebrow::before {
  background: var(--gold-light);
}

.inside-heading {
  color: var(--cream-soft);
}
.inside-heading em {
  color: var(--gold-light);
}

.inside .section-lead {
  color: rgba(245, 241, 232, 0.7);
}

/* ── CHAPTER GRID ── */
.chapters {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
  border-top: 1px solid rgba(245, 241, 232, 0.12);
}

.chapter {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid rgba(245, 241, 232, 0.12);
  transition: transform 0.4s var(--ease);
}

/* Odd chapters (left column): right padding + vertical divider */
.chapter:nth-child(odd) {
  padding-right: 2rem;
  border-right: 1px solid rgba(245, 241, 232, 0.12);
}

/* Even chapters (right column): left padding */
.chapter:nth-child(even) {
  padding-left: 2rem;
}

.chapter:hover {
  transform: translateX(4px);
}

.chapter-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--gold-light);
}

.chapter-title {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--cream-soft);
}

.chapter-desc {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.6);
}

/* ── MOBILE (≤ 767.98PX) ── */
@media (max-width: 767.98px) {
  .chapters {
    grid-template-columns: 1fr;
  }
  .chapter:nth-child(odd) {
    padding-right: 0;
    border-right: none;
  }
  .chapter:nth-child(even) {
    padding-left: 0;
  }
  .chapter {
    padding: 1.6rem 0;
  }
  .chapter-title {
    font-size: 1.2rem;
  }
}

/* ── PRAISE ── */
.praise {
  background: var(--bg);
}

.praise-grid {
  margin-top: 1rem;
}

/* ── REVIEW CARD ── */
.praise-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2.2rem 0 0;
  border-top: 1px solid var(--ink);
}

/* Giant opening quotation mark in upper right */
.praise-card::before {
  content: '"';
  position: absolute;
  top: 0.2rem;
  right: 0;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
}

/* ── STAR RATING ── */
.praise-stars {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

/* ── QUOTE BODY ── */
.praise-text {
  flex-grow: 1;
  margin: 0 0 2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink);
}

/* ── REVIEWER BLOCK ── */
.praise-reviewer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px dotted rgba(26, 26, 24, 0.15);
}

.praise-avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(15, 42, 30, 0.15);
  filter: saturate(0.85) contrast(1.05);
}

.praise-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.praise-author strong {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--emerald-dark);
}

.praise-author span {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ── REVIEWER SOCIAL ── */
.praise-social {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  border: 1px solid rgba(26, 26, 24, 0.15);
  border-radius: 50%;
  color: var(--ink-muted);
  transition: all 0.3s;
}

.praise-social:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ── MOBILE (≤ 767.98PX) ── */
@media (max-width: 767.98px) {
  .praise-text {
    font-size: 1.1rem;
  }
  .praise-avatar {
    width: 46px;
    height: 46px;
  }
  .praise-social {
    width: 30px;
    height: 30px;
  }
}

/* ── SHOP ── */
.shop {
  background: var(--bg-alt);
}

.editions-grid {
  margin-top: 1rem;
}

/* ── EDITION CARD ── */
.edition-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 540px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(15, 42, 30, 0.25);
  transition:
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}

.edition-card:hover {
  box-shadow: 0 40px 60px -20px rgba(15, 42, 30, 0.4);
  transform: translateY(-8px);
}

/* Full-bleed image */
.edition-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
  transition: transform 1.2s var(--ease);
}

.edition-card:hover .edition-img {
  transform: scale(1.06);
}

/* Dark gradient scrim for text legibility */
.edition-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 42, 30, 0.15) 0%,
    rgba(15, 42, 30, 0.4) 45%,
    rgba(15, 42, 30, 0.92) 100%
  );
  pointer-events: none;
}

/* ── CORNER TAG ── */
.edition-tag {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  z-index: 2;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bg-rich);
  background: var(--gold-light);
}

.edition-tag.tag-limited {
  color: var(--cream-soft);
  background: var(--gold);
}

/* ── CARD BODY (SITS ON TOP OF SCRIM) ── */
.edition-body {
  position: relative;
  z-index: 2;
  padding: 2rem 1.8rem;
  color: var(--cream-soft);
}

.edition-type {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.edition-title {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.05;
  color: var(--cream-soft);
}

.edition-desc {
  max-width: 30ch;
  margin-bottom: 1.4rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(245, 241, 232, 0.75);
}

/* ── PRICE + BUTTON ROW ── */
.edition-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(245, 241, 232, 0.18);
}

.edition-price {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  color: var(--cream-soft);
}

.edition-price .currency {
  margin-right: 0.15rem;
  font-size: 1rem;
  vertical-align: super;
  color: var(--gold-light);
}

/* ── GOLD PILL BUTTON ── */
.edition-btn {
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg-rich) !important;
  background: var(--gold-light);
  transition: all 0.3s;
}

.edition-btn:hover {
  color: var(--bg-rich) !important;
  background: var(--cream-soft);
  transform: translateY(-2px);
}

/* ── MOBILE (≤ 767.98PX) ── */
@media (max-width: 767.98px) {
  .edition-card {
    height: 480px;
  }
  .edition-title {
    font-size: 1.6rem;
  }
  .edition-price {
    font-size: 1.7rem;
  }
}

/* ── RETAILER ROW ── */
.retailers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.2rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(26, 26, 24, 0.08);
}

.retailers-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.retailers-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.retailers-list a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--emerald-dark);
  text-decoration: none;
  transition:
    color 0.3s,
    letter-spacing 0.3s;
}

.retailers-list a:hover {
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* ── FAQ ── */
.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid rgba(26, 26, 24, 0.12);
}

.faq-item {
  border-bottom: 1px solid rgba(26, 26, 24, 0.12);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--emerald-dark);
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--emerald);
}

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--emerald);
  transition: transform 0.3s var(--ease);
}

.faq-icon::before {
  width: 14px;
  height: 1px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item[open] .faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.faq-answer {
  padding: 0 0 1.8rem;
}

.faq-answer p {
  max-width: 62ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-light);
}

.faq-answer a {
  color: var(--emerald);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s;
}

.faq-answer a:hover {
  color: var(--gold);
}

/* ── NEWSLETTER ── */
.newsletter {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  background: linear-gradient(135deg, var(--emerald-deep), var(--emerald-dark));
}

/* Gold glow in the lower-right corner */
.newsletter::before {
  content: '';
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(
    circle,
    rgba(212, 176, 104, 0.18),
    transparent 60%
  );
  pointer-events: none;
}

/* ── DARK-BACKGROUND OVERRIDES FOR SHARED UTILITIES ── */
.newsletter .eyebrow {
  margin-bottom: 1.3rem;
  color: var(--gold-light);
}
.newsletter .eyebrow::before {
  background: var(--gold-light);
}

.newsletter-heading {
  position: relative;
  z-index: 2;
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
}
.newsletter-heading em {
  font-style: italic;
  color: var(--gold-light);
}

.newsletter-lead {
  position: relative;
  z-index: 2;
  max-width: 42ch;
  font-size: 1.05rem;
  color: rgba(245, 241, 232, 0.75);
}

/* ── SIGNUP FORM ── */
.newsletter-form {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  border: 1px solid rgba(212, 176, 104, 0.25);
  background: rgba(245, 241, 232, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.newsletter-form-title {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
}
.newsletter-form-title em {
  font-style: italic;
  color: var(--gold-light);
}

.newsletter-form-sub {
  margin-bottom: 1.8rem;
  font-size: 0.88rem;
  color: rgba(245, 241, 232, 0.6);
}

/* ── FORM FIELDS ── */
.nl-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.nl-field label {
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.nl-field input {
  padding: 0.7rem 0;
  border: none;
  border-bottom: 1px solid rgba(245, 241, 232, 0.2);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--cream);
  background: transparent;
  transition: border-color 0.3s;
}

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

.nl-field input::placeholder {
  color: rgba(245, 241, 232, 0.3);
}

/* Autofill override for dark fields */
.nl-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--cream);
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* ── SUBMIT BUTTON ── */
.newsletter-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg-rich) !important;
  background: var(--gold-light);
  transition: all 0.3s;
}

.newsletter-btn:hover {
  color: var(--bg-rich) !important;
  background: var(--cream-soft);
  transform: translateY(-2px);
}

/* ── MOBILE (≤ 991.98PX) ── */
@media (max-width: 991.98px) {
  .newsletter-form {
    padding: 1.8rem;
  }
}

/* ── CONTACT ── */
.contact {
  background: var(--bg);
}

/* ── INFO COLUMN ── */
.contact-heading {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact-intro {
  max-width: 42ch;
  margin-bottom: 2.5rem;
  color: var(--ink-light);
}

/* Definition list: label + value pairs */
.contact-meta {
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid var(--ink);
}

.contact-meta dt {
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact-meta dd {
  margin: 0 0 1.6rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.4;
  color: var(--emerald-dark);
}

.contact-meta dd a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-meta dd a:hover {
  color: var(--gold);
}

.contact-meta-sub {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ── FORM CARD ── */
.contact-form {
  padding: 3rem;
  border: 1px solid rgba(26, 26, 24, 0.06);
  border-radius: 3px;
  background: var(--cream-soft);
  box-shadow: 0 20px 40px -20px rgba(15, 42, 30, 0.12);
}

/* ── FIELDS ── */
.c-field {
  display: flex;
  flex-direction: column;
}

.c-field label {
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.c-field input,
.c-field textarea {
  padding: 0.7rem 0;
  border: none;
  border-bottom: 1px solid rgba(26, 26, 24, 0.15);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  resize: none;
  transition: border-color 0.3s;
}

.c-field textarea {
  min-height: 120px;
  resize: vertical;
}

.c-field input:focus,
.c-field textarea:focus {
  border-color: var(--emerald);
  outline: none;
}

.c-field input::placeholder,
.c-field textarea::placeholder {
  color: rgba(26, 26, 24, 0.3);
}

/* ── SUBMIT BUTTON ── */
.contact-btn {
  margin-top: 1rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream) !important;
  background: var(--emerald-dark);
  transition: all 0.3s;
}

.contact-btn:hover {
  color: var(--cream) !important;
  background: var(--emerald);
  transform: translateY(-2px);
}

/* ── MOBILE (≤ 767.98PX) ── */
@media (max-width: 767.98px) {
  .contact-form {
    padding: 1.8rem;
  }
  .contact-meta dd {
    font-size: 1.05rem;
  }
}

/* ── FOOTER ── */
.site-footer {
  padding: 5rem 0 2rem;
  font-size: 0.88rem;
  color: rgba(245, 241, 232, 0.55);
  background: var(--bg-rich);
}

.footer-grid {
  margin-bottom: 3rem;
}

/* ── COLUMN HEADINGS ── */
.site-footer .foot-col-title {
  margin-bottom: 1.2rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--cream-soft);
}

/* ── LINK LISTS ── */
.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: rgba(245, 241, 232, 0.55);
  text-decoration: none;
  transition: color 0.3s;
}

.site-footer a:hover {
  color: var(--gold-light);
}

/* ── BRAND COLUMN ── */
.foot-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--cream);
}

.foot-brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-light);
}

.foot-tag {
  max-width: 30ch;
  line-height: 1.6;
  color: rgba(245, 241, 232, 0.55);
}

/* ── BOTTOM BAR ── */
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 241, 232, 0.1);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.foot-credit {
  /* nowrap keeps the separator + "Site by AlphaGeekdom" together as a single chunk that wraps to a new line when it can't fit */
  white-space: nowrap;
  color: rgba(245, 241, 232, 0.4);
}

/* Middle-dot separator travels with the credit on wrap */
.foot-credit::before {
  content: ' · ';
  margin: 0 0.4rem 0 0.2rem;
  color: rgba(245, 241, 232, 0.3);
}

.foot-credit a {
  color: rgba(245, 241, 232, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 176, 104, 0.4);
  transition:
    color 0.3s,
    border-color 0.3s;
}

.foot-credit a:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

/* ── SOCIAL ICONS ── */
.socials {
  display: flex;
  gap: 1rem;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 241, 232, 0.15);
  border-radius: 50%;
  color: rgba(245, 241, 232, 0.55);
  transition: all 0.3s;
}

.socials a:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-2px);
}

/* ── MOBILE (≤ 575.98PX) ── */
@media (max-width: 575.98px) {
  .site-footer {
    padding: 4rem 0 2rem;
  }
  .foot-bottom {
    flex-direction: column;
    text-align: center;
  }
  .foot-brand {
    font-size: 1.4rem;
  }
}

/* ── EXCERPT MODAL ── */
.excerpt-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.excerpt-modal[hidden] {
  display: none;
}

.excerpt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 42, 30, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: excerptBackdropIn 0.35s var(--ease);
}

.excerpt-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  border-radius: 4px;
  background: var(--cream-soft);
  box-shadow: 0 40px 80px -20px rgba(15, 42, 30, 0.45);
  animation: excerptDialogIn 0.45s var(--ease);
}

.excerpt-modal__dialog:focus {
  outline: none;
}

.excerpt-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  color: var(--ink-muted);
  background: transparent;
  cursor: pointer;
  transition:
    color 0.3s,
    background 0.3s;
}

.excerpt-modal__close:hover {
  color: var(--emerald-dark);
  background: rgba(15, 42, 30, 0.05);
}

.excerpt-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--emerald);
}

.excerpt-modal__eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--emerald);
}

.excerpt-modal__title {
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
}

.excerpt-modal__title em {
  font-style: italic;
  color: var(--emerald);
}

.excerpt-modal__body p {
  margin-bottom: 1.3rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-light);
}

.excerpt-modal__body p em {
  font-style: italic;
  color: var(--emerald-dark);
}

.excerpt-modal__body p:last-child {
  margin-bottom: 2rem;
}

.excerpt-modal__cta {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream) !important;
  background: var(--emerald-dark);
  text-decoration: none;
  transition: all 0.3s var(--ease);
}

.excerpt-modal__cta:hover {
  color: var(--cream) !important;
  background: var(--emerald);
  transform: translateY(-2px);
}

body.modal-open {
  overflow: hidden;
}

@keyframes excerptBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes excerptDialogIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 575.98px) {
  .excerpt-modal {
    padding: 1rem 0.5rem;
  }
  .excerpt-modal__dialog {
    padding: 2rem 1.5rem;
  }
}

/* ── 404 PAGE (standalone /404.html) ── */
.not-found {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 4rem 0;
  text-align: center;
}

.not-found .container {
  max-width: 620px;
}

.not-found .eyebrow {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.not-found-mark {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 10rem);
  font-style: italic;
  line-height: 1;
  color: var(--emerald);
  opacity: 0.15;
}

.not-found-heading {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.not-found-sub {
  max-width: 46ch;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-light);
}

/* ─── Footer credit (portfolio projects only) ─── */
.footer-credit {
  display: inline-block;
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(250, 247, 242, 0.15);
  color: rgba(250, 247, 242, 0.4);
}

.footer-credit a {
  color: rgba(250, 247, 242, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: var(--gold);
}

/* Stack credit below copyright on narrow screens */
@media (max-width: 480px) {
  .footer-credit {
    display: block;
    margin: 0.5rem 0 0;
    padding: 0;
    border-left: none;
  }
}
