:root {
  --background: #f6f0e5;
  --surface: #fff9f1;
  --surface-strong: #e7dac2;
  --text: #1c2330;
  --muted: #5d5f67;
  --accent: #a47b43;
  --accent-strong: #7b5b2f;
  --border: #d2c3a8;
  --hero-overlay: rgba(14, 17, 24, 0.58);
  --footer: #161922;
  --shadow: 0 24px 60px rgba(28, 35, 48, 0.14);
  --radius-large: 28px;
  --radius-medium: 18px;
  --radius-small: 12px;
  --container: min(1180px, calc(100vw - 2.5rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(164, 123, 67, 0.22), transparent 30%),
    linear-gradient(180deg, #f8f3eb 0%, var(--background) 35%, #f1e7d6 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(246, 240, 229, 0.92);
  border-bottom: 1px solid rgba(210, 195, 168, 0.5);
}

.site-header__inner,
.site-main,
.site-footer__inner {
  width: var(--container);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand__text {
  display: grid;
  gap: 0.15rem;
}

.brand__eyebrow {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.desktop-nav__link,
.menu-toggle {
  position: relative;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.desktop-nav__link::after,
.menu-toggle::after,
.dropdown__link::after,
.mobile-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.desktop-nav__link:hover::after,
.menu-toggle:hover::after,
.dropdown__link:hover::after,
.mobile-nav__link:hover::after {
  transform: scaleX(1);
}

.desktop-nav__books {
  position: relative;
}

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 1rem);
  width: min(360px, 70vw);
  padding: 1rem;
  background: rgba(255, 249, 241, 0.98);
  border: 1px solid rgba(210, 195, 168, 0.9);
  border-radius: 20px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.desktop-nav__books:hover .dropdown,
.desktop-nav__books:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown__label {
  color: var(--accent-strong);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.dropdown__group + .dropdown__group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(210, 195, 168, 0.7);
}

.dropdown__link,
.mobile-nav__link,
.related-card__link,
.book-card__title-link {
  position: relative;
}

.dropdown__link {
  display: inline-block;
  margin: 0.2rem 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.menu-button {
  display: none;
  align-items: center;
  gap: 0.7rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-button__icon {
  display: inline-grid;
  gap: 0.3rem;
}

.menu-button__icon span {
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] .menu-button__icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-button__icon span:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] .menu-button__icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(210, 195, 168, 0.7);
}

.mobile-nav[data-open="true"] {
  display: block;
}

.mobile-nav__inner {
  width: var(--container);
  margin: 0 auto;
  padding: 1.2rem 0 1.5rem;
}

.mobile-nav__section + .mobile-nav__section {
  margin-top: 1.1rem;
}

.mobile-nav__label {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.mobile-nav__link {
  display: inline-block;
  margin: 0.25rem 0;
  font-size: 1rem;
  font-weight: 700;
}

.site-main {
  padding: 1.6rem 0 4rem;
}

.page-hero,
.newsletter,
.about-panel,
.faq,
.book-detail,
.showcase,
.related {
  border-radius: var(--radius-large);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  height: clamp(420px, 52vh, 620px);
  max-height: 620px;
  background-size: cover;
  background-position: center;
  margin-bottom: 2rem;
  border-radius: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(15, 18, 26, 0.88) 0%, rgba(15, 18, 26, 0.65) 48%, rgba(15, 18, 26, 0.22) 100%),
    linear-gradient(180deg, rgba(164, 123, 67, 0.18), rgba(15, 18, 26, 0.22));
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 26, 0.36);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.hero--switching::after {
  opacity: 1;
}

/* Carousel track — let the hero clip, not the track itself */
.hero__track {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  height: 100%;
}

.hero__slide {
  flex: 0 0 100%;
  height: 100%;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: stretch;
  opacity: 0.7;
  transform: scale(0.985);
  transition: opacity 420ms ease, transform 420ms ease;
}

.hero__slide--active {
  opacity: 1;
  transform: scale(1);
}

/* Arrow buttons */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  color: rgba(255, 247, 238, 0.75);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem;
  transition: color 180ms ease, transform 180ms ease;
}

.hero__arrow:hover {
  color: #fff7ee;
  transform: translateY(-50%) scale(1.15);
}

.hero__arrow--prev { left: 0.1rem; margin-left: 3px; }
.hero__arrow--next { right: 0.1rem; margin-right: 10px; }

.hero__arrow:disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* Dot indicators */
.hero__controls {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.6rem;
}

.hero__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 247, 238, 0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 180ms ease, transform 180ms ease;
}

.hero__dot--active {
  background: #fff7ee;
  transform: scale(1.25);
}


.hero__eyebrow,
.section-eyebrow {
  color: rgba(246, 232, 205, 0.86);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero__title,
.page-hero__title,
.book-detail__title,
.section-title,
.about-panel__title,
.faq__title {
  font-family: "Cormorant Garamond", serif;
  line-height: 0.94;
}

.hero__title {
  color: #fff7ee;
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  margin: 0 0 0.75rem;
}

.hero__subtitle {
  max-width: 34rem;
  color: rgba(255, 247, 238, 0.88);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero__grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  align-items: end;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 4rem);
  padding-left: clamp(5rem, 7vw, 6.5rem);
  padding-bottom: 0;
}

.hero__grid > div:first-child {
  align-self: center;
  padding-bottom: 1.5rem;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.hero__cta-row .button {
  font-size: 0.72rem;
  padding: 0.8rem 1.2rem;
}

.button,
.purchase-link,
.newsletter__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.45rem;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.purchase-link:hover,
.newsletter__button:hover {
  transform: translateY(-2px);
}

.button--gold,
.newsletter__button {
  background: var(--accent);
  color: #fff8ef;
}

.button--ghost {
  border-color: rgba(255, 247, 238, 0.55);
  color: #fff7ee;
}

.hero__meta {
  color: rgba(255, 247, 238, 0.76);
  font-size: 0.92rem;
}

.hero__visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  height: 100%;
  min-height: 0;
  padding-bottom: 0;
  align-self: end;
}

.hero__card {
  width: min(100%, 420px);
  height: 90%;
  margin-bottom: 0;
  display: flex;
  align-items: flex-end;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  align-self: flex-end;
  cursor: pointer;
  text-decoration: none;
}

a.hero__card img {
  transition: filter 220ms ease, transform 220ms ease;
}

a.hero__card:hover img {
  filter: drop-shadow(0 0 10px rgba(255, 245, 230, 0.45)) drop-shadow(0 0 24px rgba(255, 245, 230, 0.22)) drop-shadow(0 0 40px rgba(255, 245, 230, 0.12)) brightness(1.08);
  transform: translateY(-4px);
}

.hero__card img {
  width: 100%;
  height: 100%;
  max-height: 558px;
  border-radius: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 0 10px rgba(255, 245, 230, 0.35)) drop-shadow(0 0 24px rgba(255, 245, 230, 0.15)) drop-shadow(0 0 40px rgba(255, 245, 230, 0.08));
}

.hero__card-caption {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 0.35rem 0.35rem;
  color: #fff7ee;
}

.hero__card-caption strong,
.book-card__title,
.related-card__title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.newsletter,
.showcase,
.about-panel,
.faq,
.book-detail,
.related,
.page-hero {
  background: rgba(255, 249, 241, 0.88);
  border: 1px solid rgba(210, 195, 168, 0.7);
  margin-top: 2rem;
}

.showcase {
  background: #ffffff;
}

.book-detail {
  background: #ffffff;
}

.newsletter {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  align-items: center;
}

/* Make the newsletter/substack heading slightly smaller than other section titles */
.newsletter .section-title {
  font-size: 1.1rem;
  margin: 0;
}

.section-title,
.page-hero__title,
.about-panel__title,
.faq__title,
.book-detail__title {
  font-size: clamp(2.4rem, 4.4vw, 4.3rem);
  margin: 0;
}

.section-copy,
.page-hero__copy,
.about-panel__copy,
.faq__intro,
.book-detail__summary,
.book-detail__description,
.newsletter__body,
.showcase__intro {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.newsletter__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.4rem;
}

.newsletter__input {
  flex: 1 1 240px;
  min-width: 220px;
  border: 1px solid rgba(210, 195, 168, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.95rem 1.2rem;
}

.showcase,
.related {
  padding: clamp(1.8rem, 4vw, 3rem);
}

/* Make Discover More (related) panels use a white background */
.related {
  background: #ffffff;
}

/* Ensure purchase links on the book detail page share the same appearance */
.book-detail__purchase-links .purchase-link {
  background: var(--accent);
  color: #fff8ef;
  border-color: var(--accent-strong);
}

/* Slightly smaller footer heading */
.site-footer__heading {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.showcase__header,
.related__header {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.8rem;
}

.showcase .section-title {
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  text-align: center;
}

.showcase__series {
  margin-top: 2rem;
}

.showcase__series h3 {
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.book-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 330px));
  max-width: 1400px;
  margin: 0 auto;
  justify-content: center;
  justify-items: center;
}

.related-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1280px;
  margin: 0 auto;
  justify-items: center;
}

.book-thumb-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 220px));
  max-width: 1280px;
  margin: 0 auto;
  justify-items: center;
  justify-content: center;
}

.book-thumb {
  display: block;
  width: 100%;
  max-width: 220px;
  border-radius: 0;
  overflow: visible;
  position: relative;
  background: transparent;
  aspect-ratio: 0.72;
  max-height: 332px;
  transition: transform 180ms ease;
}

.book-thumb:hover {
  transform: translateY(-4px);
}

.book-thumb::after,
.book-card__cover::after,
.related-card__cover::after,
.book-detail__cover::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14px;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(8, 10, 15, 0.6) 0%, rgba(8, 10, 15, 0.32) 44%, rgba(8, 10, 15, 0) 76%);
  filter: blur(3px);
  transform: perspective(90px) rotateX(44deg);
  pointer-events: none;
  z-index: -1;
}

.book-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.book-card,
.related-card {
  display: grid;
  gap: 1rem;
  padding: 0;
  background: transparent;
  transition: transform 180ms ease;
}

.book-card {
  width: 100%;
  max-width: 330px;
}

.book-card:hover,
.related-card:hover {
  transform: translateY(-6px);
}

.book-card__cover,
.related-card__cover {
  border-radius: 0;
  overflow: visible;
  position: relative;
  background: transparent;
  aspect-ratio: 0.72;
  max-height: 462px;
}

.book-card__cover img,
.related-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card__meta,
.related-card__meta {
  display: grid;
  gap: 0.65rem;
}

.book-card__author,
.related-card__author,
.book-detail__author {
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pill-row,
.book-detail__tags,
.book-detail__purchase-links,
.book-detail__facts {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  background: rgba(164, 123, 67, 0.14);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge[data-status="instock"] {
  background: rgba(77, 130, 84, 0.14);
  color: #305c37;
}

.status-badge[data-status="preorder"] {
  background: rgba(90, 90, 145, 0.12);
  color: #45456e;
}

.status-badge[data-status="outofstock"] {
  background: rgba(116, 62, 62, 0.12);
  color: #714040;
}

.book-card__summary {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.book-card__links,
.related-card__links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.book-card__links a,
.related-card__links a,
.purchase-link {
  border-radius: 9px;
  padding: 0.75rem 1.35rem;
  background: var(--accent);
  color: #fff8ef;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 2px solid var(--accent-strong);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.book-card__links a:hover,
.related-card__links a:hover,
.purchase-link:hover {
  background: var(--accent-strong);
  color: #fff8ef;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(123, 91, 47, 0.32);
}

.purchase-link:nth-child(2) {
  /* unified appearance — keep same as other purchase links */
  background: var(--accent);
  color: #fff8ef;
  border-color: var(--accent-strong);
}

.purchase-link:nth-child(2):hover {
  background: var(--accent-strong);
  color: #fff8ef;
  box-shadow: 0 6px 18px rgba(123, 91, 47, 0.32);
}

/* Special styling for the Unicorn Mafia Shop purchase link */
.purchase-link--shop {
  background: #ff69b4; /* hot pink */
  color: #ffffff;
  border-color: #ff2d8f;
}

.purchase-link--shop:hover {
  background: #6a0dad; /* purple */
  color: #ffffff;
  border-color: #5b0f9a;
  box-shadow: 0 6px 18px rgba(106, 13, 173, 0.18);
}

.page-hero,
.about-panel,
.faq,
.book-detail {
  padding: clamp(1.8rem, 4vw, 3rem);
}

.page-hero {
  overflow: hidden;
  position: relative;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -28% auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(164, 123, 67, 0.22), transparent 70%);
}

.page-hero__copy {
  max-width: 40rem;
}

.about-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.about-panel__portrait {
  position: sticky;
  top: 7rem;
}

.about-panel__portrait img {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.about-panel__content h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin: 0 0 1rem;
}

.about-panel__content div,
.book-detail__description p {
  color: var(--muted);
  line-height: 1.85;
  margin: 0 0 1rem;
}

.faq__list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.faq__item {
  border: 1px solid rgba(210, 195, 168, 0.75);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 1rem 1.2rem;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

.faq__answer {
  display: none;
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

.faq__item[data-open="true"] .faq__answer {
  display: block;
}

.book-detail {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.book-detail__cover {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  overflow: visible;
  position: relative;
}

.book-detail__cover img {
  height: 100%;
  max-height: 700px;
  border-radius: 0;
  aspect-ratio: 0.72;
  object-fit: cover;
  box-shadow: none;
}

.book-detail__content {
  display: grid;
  gap: 1.2rem;
}

.book-detail__title {
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.book-detail__tagline {
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.book-detail__purchase-links {
  margin-top: 0.4rem;
}

.site-footer {
  background: var(--footer);
  color: rgba(255, 248, 239, 0.92);
  margin-top: 3rem;
}

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
  padding: 2.75rem 0;
}

.site-footer__top,
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.site-footer__heading {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  margin: 0 0 0.4rem;
}

.site-footer__copy,
.site-footer__quote,
.site-footer__legal {
  color: rgba(255, 248, 239, 0.7);
  line-height: 1.7;
}

.site-footer__credit {
  color: rgba(255, 248, 239, 0.5);
  font-size: 0.85rem;
  line-height: 1.7;
}

.site-footer__credit a {
  color: rgba(255, 248, 239, 0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 180ms ease;
}

.site-footer__credit a:hover {
  color: rgba(255, 248, 239, 0.9);
}

.site-footer__socials,
.site-footer__policies {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-footer__social {
  border: 1px solid rgba(255, 248, 239, 0.18);
  border-radius: 999px;
  width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 248, 239, 0.85);
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-footer__social:hover {
  color: rgba(255, 248, 239, 1);
  border-color: rgba(255, 248, 239, 0.35);
  transform: translateY(-2px);
}

.site-footer__social svg {
  width: 1.1rem;
  height: 1.1rem;
}

.site-footer__policies a {
  border: 1px solid rgba(255, 248, 239, 0.18);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.empty-state {
  padding: 2rem;
  text-align: center;
  border: 1px dashed rgba(210, 195, 168, 0.85);
  border-radius: 20px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero {
    height: clamp(320px, 58vh, 520px);
  }

  .hero__grid {
    padding-top: clamp(1.25rem, 2.5vw, 2rem);
    padding-bottom: 0;
  }

  .book-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-panel,
  .book-detail,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .about-panel__portrait {
    position: static;
  }
}

@media (min-width: 821px) {
  .desktop-nav {
    display: flex;
  }

  .menu-button {
    display: none;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .hero {
    height: auto;
    min-height: 260px;
  }

  .hero__track,
  .hero__slide {
    height: auto;
  }

  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 2rem 1.5rem 0 clamp(3rem, 5vw, 4rem);
    gap: 0.75rem;
    align-items: end;
  }

  .hero__card {
    height: 75%;
  }

  .hero__title {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }

  .hero__subtitle {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .hero__eyebrow {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
  }

  .hero__cta-row {
    margin-top: 1rem;
  }

  .hero__cta-row .button {
    padding: 0.75rem 1.1rem;
    font-size: 0.76rem;
  }

}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 1.25rem, 100%);
  }

  .hero {
    min-height: 180px;
  }

  .hero__grid {
    padding: 1.25rem 1.25rem 1.25rem 3rem;
  }

  .hero__title {
    font-size: clamp(1.4rem, 6vw, 2rem);
    margin-bottom: 0.4rem;
  }

  .hero__visual {
    display: none;
  }

  .hero__subtitle {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .hero__eyebrow {
    font-size: 0.6rem;
    margin-bottom: 0.35rem;
  }

  .hero__cta-row {
    margin-top: 0.75rem;
  }

  .hero__cta-row .button {
    padding: 0.62rem 0.92rem;
    font-size: 0.7rem;
  }

  .site-main {
    padding-top: 1rem;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .book-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .hero__title,
  .book-detail__title,
  .page-hero__title,
  .section-title,
  .about-panel__content h1,
  .faq__title {
    line-height: 0.98;
  }
}

/* Event Cards */
.events-grid {
  margin-top: 2rem;
}

.events-container {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.event-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: stretch;
  background: rgba(255, 249, 241, 0.88);
  border: 1px solid rgba(210, 195, 168, 0.7);
  border-radius: var(--radius-large);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(28, 35, 48, 0.15);
}

.event-card__image {
  width: 280px;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__content {
  display: grid;
  gap: 1.2rem;
  align-content: start;
}

.event-card__meta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: rgba(164, 123, 67, 0.2);
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.event-card__date {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.event-card__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
  line-height: 1.2;
}

.event-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

.event-card__title a:hover {
  color: var(--accent);
}

.event-card__details {
  display: grid;
  gap: 0.5rem;
}

.event-card__time,
.event-card__location {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.event-card__description {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0.5rem 0 0;
}

.button--accent {
  background: var(--accent-strong);
  color: #fff8ef;
  align-self: start;
}

.button--accent:hover {
  background: var(--accent);
}

/* Event Detail */
.event-detail {
  background: rgba(255, 249, 241, 0.88);
  border: 1px solid rgba(210, 195, 168, 0.7);
  border-radius: var(--radius-large);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.event-detail__image {
  width: 100%;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  border-radius: 24px;
  overflow: hidden;
}

.event-detail__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.event-detail__content {
  max-width: 720px;
  margin: 0 auto;
}

.event-detail__type {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: rgba(164, 123, 67, 0.2);
  color: var(--accent-strong);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.event-detail__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  margin: 0 0 2rem;
  line-height: 1.1;
  color: var(--text);
}

.event-detail__meta {
  display: grid;
  gap: 1.2rem;
  background: rgba(244, 233, 214, 0.6);
  border: 1px solid rgba(210, 195, 168, 0.6);
  border-radius: 16px;
  padding: 1.8rem;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.event-detail__row {
  display: flex;
  gap: 1rem;
  color: var(--muted);
}

.event-detail__row strong {
  color: var(--text);
  font-weight: 700;
  min-width: 100px;
}

.event-detail__description {
  margin-bottom: 2rem;
}

.event-detail__description p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.85;
  margin: 0;
}

.event-detail__actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(210, 195, 168, 0.5);
}

/* Privacy Panel */
.privacy-panel {
  background: rgba(255, 249, 241, 0.88);
  border: 1px solid rgba(210, 195, 168, 0.7);
  border-radius: var(--radius-large);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.privacy-panel__content {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.privacy-panel__content h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-panel__content h3 {
  font-size: 1.2rem;
  color: var(--accent-strong);
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.privacy-panel__content h4 {
  font-size: 1rem;
  color: var(--text);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.privacy-panel__content p {
  margin-bottom: 1rem;
}

.privacy-panel__content ul,
.privacy-panel__content ol {
  margin: 1rem 0 1rem 2rem;
}

.privacy-panel__content li {
  margin-bottom: 0.5rem;
}

/* FAQ Extended */
.faq-extended {
  background: rgba(255, 249, 241, 0.88);
  border: 1px solid rgba(210, 195, 168, 0.7);
  border-radius: var(--radius-large);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.faq-extended__list {
  display: grid;
  gap: 0.9rem;
}

.faq-extended__item {
  border: 1px solid rgba(210, 195, 168, 0.75);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
}

.faq-extended__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  border: 0;
  background: transparent;
  padding: 1rem 1.2rem;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  transition: background 180ms ease;
}

.faq-extended__question:hover {
  background: rgba(244, 233, 214, 0.4);
}

.faq-extended__answer {
  display: none;
  padding: 0 1.2rem 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 400;
}

.faq-extended__item[data-open="true"] .faq-extended__answer {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .event-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .event-card__image {
    width: 100%;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .event-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-detail__meta {
    grid-template-columns: 1fr;
  }

  .event-detail__row {
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(22, 25, 34, 0.97);
  border-top: 1px solid rgba(210, 195, 168, 0.25);
  backdrop-filter: blur(12px);
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.28);
}

.cookie-banner--visible {
  transform: translateY(0);
}

.cookie-banner__text {
  flex: 1 1 260px;
  color: rgba(255, 249, 241, 0.82);
  font-size: 0.85rem;
  line-height: 1.65;
  margin: 0;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__text a:hover {
  color: #c99a5a;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner__accept {
  background: var(--accent);
  color: #fff8ef;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.3rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.cookie-banner__accept:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.cookie-banner__close {
  background: transparent;
  border: 1px solid rgba(210, 195, 168, 0.35);
  border-radius: 8px;
  color: rgba(255, 249, 241, 0.6);
  font-size: 1.1rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
  padding: 0;
}

.cookie-banner__close:hover {
  color: #fff7ee;
  border-color: rgba(210, 195, 168, 0.7);
}