*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #110f0c;
  --bg-section: #15120f;
  --bg-card: #1c1814;
  --text-cream: #e8dcc8;
  --text-body: #c8bba5;
  --text-muted: #9a8e7a;
  --accent-gold: #c9a84c;
  --accent-gold-hover: #ddbf6a;
  --accent-warm: #8b6f47;
  --border-subtle: rgba(201, 168, 76, 0.15);
  --font-display: 'Cinzel', serif;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Source Sans 3', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-cream);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ── Focus styles ── */
*:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(to bottom, rgba(17, 15, 12, 0.85) 0%, rgba(17, 15, 12, 0.4) 80%, transparent 100%);
  transition: background 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(17, 15, 12, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.nav--subpage {
  background: rgba(17, 15, 12, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

/* backdrop-filter creates a containing block for fixed children,
   breaking the full-viewport menu overlay — disable it when menu is open */
.nav:has(.nav__links.open) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-cream);
  text-decoration: none;
  font-weight: 400;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-cream);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.3rem 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(232, 220, 200, 0.3);
}

.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a.active {
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
}

/* ── Mobile menu ── */
.nav__toggle {
  display: none;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: 6px;
  cursor: pointer;
  width: 52px;
  height: 46px;
  justify-content: center;
  align-items: center;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--accent-gold);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('hero-web.jpg') center 30% / cover no-repeat;
  filter: grayscale(0.3) contrast(1.05);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(17, 15, 12, 0.6) 0%,
      rgba(17, 15, 12, 0.4) 30%,
      rgba(17, 15, 12, 0.45) 60%,
      rgba(17, 15, 12, 0.9) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 7rem 2rem 4rem;
  text-align: center;
}

.hero__book-wrap {
  position: relative;
  display: inline-block;
}

.hero__book {
  width: min(320px, 55vw);
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.7))
         drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transform: perspective(800px) rotateY(-3deg);
  transition: transform 0.5s ease;
  display: block;
}

.hero__book:hover {
  transform: perspective(800px) rotateY(0deg) scale(1.02);
}

/* Publication stamp — sits to the right of the book cover */
.hero__stamp {
  position: absolute;
  bottom: 28%;
  left: 106%;
  transform: rotate(-8deg);
  border: 2.5px solid rgba(172, 28, 28, 0.92);
  box-shadow: inset 0 0 0 1.5px rgba(172, 28, 28, 0.45);
  border-radius: 2px;
  padding: 0.55rem 1rem;
  text-align: center;
  color: rgba(160, 22, 22, 1);
  font-family: 'Cinzel', serif;
  pointer-events: none;
  user-select: none;
  background: rgba(238, 228, 206, 0.94);
  min-width: 7.5rem;
}

.hero__stamp-top {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.15;
}

.hero__stamp-rule {
  display: block;
  height: 1.5px;
  background: rgba(172, 28, 28, 0.75);
  margin: 0.25rem 0;
}

.hero__stamp-mid {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.hero__stamp-bot {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.hero__credit {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  z-index: 2;
  font-size: 0.75rem;
  color: rgba(200, 187, 165, 0.5);
  letter-spacing: 0.03em;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-cream);
  font-weight: 400;
  font-style: italic;
  max-width: 480px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.1rem 3rem;
  background: var(--accent-gold);
  color: var(--bg-dark);
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 30px rgba(201, 168, 76, 0.25);
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(201, 168, 76, 0.35);
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: float 2.5s ease-in-out infinite;
  color: var(--text-body);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hero__scroll svg {
  width: 28px;
  height: 28px;
  stroke: var(--text-body);
  fill: none;
  stroke-width: 2;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Sections ── */
.section {
  position: relative;
  padding: 5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.section--wide {
  max-width: 900px;
}

.section--tight {
  padding-top: 2rem;
}

.section--tight::before {
  display: none;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.5;
}

.section__label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--text-cream);
}

.section__text {
  color: var(--text-body);
  font-size: 1.15rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.section__text a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(201, 168, 76, 0.5);
  transition: text-decoration-color 0.3s ease;
}

.section__text a:hover {
  text-decoration-color: var(--accent-gold);
}

/* ── Podcast embeds ── */
.podcast-group {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.podcast-group__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-cream);
  margin-bottom: 1rem;
}

.podcast-episodes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.podcast-episodes iframe {
  border-radius: 12px;
}

/* ── Image gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery__item {
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  background: var(--bg-card);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.gallery__caption {
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Newspaper front pages ── */
.newspapers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.newspaper-card {
  display: block;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.newspaper-card:hover,
.newspaper-card:focus-visible {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.newspaper-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.newspaper-card__info {
  padding: 0.8rem 1rem;
}

.newspaper-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-cream);
  line-height: 1.3;
}

.newspaper-card__date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.newspaper-card__action {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.03em;
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox__caption {
  color: var(--text-body);
  font-size: 1rem;
  text-align: center;
  max-width: 600px;
  padding: 0 1rem;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-cream);
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.lightbox__close:hover { color: var(--accent-gold); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-cream);
  font-size: 2rem;
  cursor: pointer;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.lightbox__nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

/* ── Order modal ── */
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.order-modal.active {
  display: flex;
}

.order-modal__content {
  background: var(--bg-section);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  max-width: 540px;
  width: 100%;
  text-align: center;
  position: relative;
}

.order-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.order-modal__close:hover { color: var(--text-cream); }

.order-modal__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-cream);
  margin-bottom: 0.5rem;
}

.order-modal__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.order-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-option {
  display: block;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: var(--bg-card);
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
  text-align: left;
}

.order-option:hover,
.order-option:focus-visible {
  border-color: var(--accent-gold);
  background: rgba(201, 168, 76, 0.08);
  transform: translateY(-1px);
}

.order-option__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--text-cream);
  margin-bottom: 0.3rem;
}

.order-option__desc {
  font-size: 1rem;
  color: var(--text-muted);
}

.order-option__badge {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
}

/* ── Contact info ── */
.contact-info {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-info a {
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: var(--accent-gold-hover);
}

/* ── CTA button (inline, used in sections) ── */
.cta-inline {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  background: var(--accent-gold);
  color: var(--bg-dark);
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: 1.5rem;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.2);
}

.cta-inline:hover,
.cta-inline:focus-visible {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(201, 168, 76, 0.3);
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  background: var(--accent-gold);
  color: var(--bg-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--accent-gold-hover);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  stroke: var(--bg-dark);
  fill: none;
  stroke-width: 2.5;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer__credit {
  font-size: 0.9rem;
  color: var(--text-body);
  letter-spacing: 0.03em;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

/* ── Fade-in animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Sub-page header spacing ── */
.subpage-spacer {
  height: 100px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: rgba(17, 15, 12, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav__toggle {
    z-index: 201;
  }

  .nav__links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav__links a {
    font-size: 1.2rem;
    letter-spacing: 0.12em;
    padding: 0.5rem 0;
  }

  .nav {
    flex-direction: row;
    justify-content: space-between;
  }

  .hero__book {
    width: min(280px, 65vw);
  }

  .hero__cta {
    font-size: 1rem;
    padding: 1.1rem 2.5rem;
  }

  .hero__tagline {
    font-size: 1.15rem;
    padding: 0 1rem;
  }

  .section {
    padding: 3.5rem 1.5rem;
  }

  .section__title {
    font-size: 2rem;
  }

  .section__text {
    font-size: 1.1rem;
  }

  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
  }

  .newspapers {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .newspaper-card {
    display: grid;
    grid-template-columns: 120px 1fr;
  }

  .newspaper-card img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 160px;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .lightbox__nav--prev { left: 0.75rem; }
  .lightbox__nav--next { right: 0.75rem; }

  .order-modal__content {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero__book {
    width: min(240px, 70vw);
  }

  .hero__stamp {
    left: auto;
    right: -4%;
    bottom: 8%;
    padding: 0.35rem 0.6rem;
    min-width: 5.5rem;
    background: rgba(238, 228, 206, 0.94);
  }

  .hero__stamp-top { font-size: 1rem; }
  .hero__stamp-mid { font-size: 0.55rem; }
  .hero__stamp-bot { font-size: 1.1rem; }

  .section__title {
    font-size: 1.7rem;
  }

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