:root {
  --navy: #2f2e40;
  --indigo: #343451;
  --gold: #f3cd5d;
  --gold-soft: #f6eaae;
  --tan: #a18f63;
  --green: #7D8F69;
  --cream: #fefefe;
  --mist: #d9d9d9;
  --plum: #5d2b4f;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
}

h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 500; }

/* faint gold star field for paranormal / sci-fi moods */
.celestial {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cg fill='%23f3cd5d' fill-opacity='0.05'%3E%3Ccircle cx='20' cy='30' r='1.6'/%3E%3Ccircle cx='90' cy='14' r='1.1'/%3E%3Ccircle cx='120' cy='70' r='1.8'/%3E%3Ccircle cx='55' cy='95' r='1.2'/%3E%3Ccircle cx='30' cy='125' r='1'/%3E%3Cpath d='M70 48l2.2 5 5 2.2-5 2.2-2.2 5-2.2-5-5-2.2 5-2.2z'/%3E%3Cpath d='M110 108l1.6 3.6 3.6 1.6-3.6 1.6-1.6 3.6-1.6-3.6-3.6-1.6 3.6-1.6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* faint damask flourish for regency moods */
.damask {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23f3cd5d' stroke-opacity='0.05' stroke-width='1.4'%3E%3Cpath d='M60 18c10 10 10 22 0 32-10-10-10-22 0-32z'/%3E%3Cpath d='M60 70c10 10 10 22 0 32-10-10-10-22 0-32z'/%3E%3Cpath d='M18 60c10-10 22-10 32 0-10 10-22 10-32 0z'/%3E%3Cpath d='M70 60c10-10 22-10 32 0-10 10-22 10-32 0z'/%3E%3Ccircle cx='60' cy='60' r='4'/%3E%3C/g%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 6vw;
  background: rgba(47, 46, 64, 0.94);
  border-bottom: 1px solid rgba(161, 143, 99, 0.35);
}

.wordmark {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  letter-spacing: 1.5px;
  color: var(--gold);
  text-decoration: none;
}

.site-header nav { display: flex; gap: 26px; align-items: baseline; }

.site-header nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.site-header nav a:hover { color: var(--gold); }

.site-header nav .nav-cta { color: var(--gold); }

.hero { text-align: center; padding: 90px 6vw 40px; }

.hero h1 {
  font-size: clamp(44px, 8vw, 72px);
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.tagline {
  font-style: italic;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--cream);
  margin-bottom: 10px;
}

.genres {
  font-size: 17.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold-soft);
  margin-bottom: 0;
}

.genres a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--gold-soft); }

.genres a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.button {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  padding: 11px 26px;
  cursor: pointer;
}

.button.gold { background: var(--gold); color: #14131d; font-weight: 700; }

.button.gold:hover { background: var(--gold-soft); }

section h2 {
  text-align: center;
  font-size: clamp(30px, 5vw, 40px);
  color: var(--gold);
  letter-spacing: 1.5px;
  margin-bottom: 46px;
}

.books { padding: 70px 6vw 90px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: -14px auto 44px;
}

.filter-chip {
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  letter-spacing: 0.6px;
  color: var(--mist);
  background: none;
  border: 1px solid rgba(161, 143, 99, 0.55);
  border-radius: 999px;
  padding: 6px 18px;
  cursor: pointer;
}

.filter-chip:hover { color: var(--gold); border-color: var(--gold); }

.filter-break { flex-basis: 100%; height: 0; }

.filter-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #14131d;
  font-weight: 700;
}

.filter-page-link { text-align: center; margin: -26px 0 36px; font-size: 16.5px; font-weight: 600; }

.filter-page-link a { color: var(--gold); text-decoration: none; border-bottom: 1px dotted var(--gold); }

.filter-page-link a:hover { border-bottom-style: solid; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 34px;
  max-width: 1100px;
  margin: 0 auto;
}

.book-card {
  background: var(--indigo);
  border: 1px solid rgba(161, 143, 99, 0.4);
  border-radius: 8px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.book-card > a { text-decoration: none; }

.cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-fallback {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--gold-soft);
  padding: 18px;
}

.series-tag {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--tan);
  margin-top: 6px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.series-tag:hover { color: var(--gold); text-decoration: underline; }

a.series-tag { display: inline-block; text-decoration: none; }

.series-tag-static {
  font-size: 14px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--tan);
  margin-top: 6px;
}

.book-card h3 { font-size: 26px; color: var(--cream); }

.blurb { font-size: 17px; color: var(--mist); flex-grow: 1; }

.hook {
  font-style: italic;
  font-size: 17.5px;
  color: var(--gold-soft);
  margin: 2px 0 8px;
}

.badges { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  font-family: "Cormorant Garamond", serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--gold-soft);
  background: none;
  border: 1px solid rgba(161, 143, 99, 0.55);
  border-radius: 999px;
  padding: 3px 12px;
}

button.badge { cursor: pointer; }

button.badge:hover { color: var(--gold); border-color: var(--gold); }

a.badge { text-decoration: none; }

a.badge:hover { color: var(--gold); border-color: var(--gold); }

.badge.ku { color: #14131d; font-weight: 700; background: var(--gold); border-color: var(--gold); }

.book-card .button { align-self: flex-start; margin-top: 4px; }

.page-hero { text-align: center; padding: 56px 6vw 20px; }

.page-hero h1 {
  font-size: clamp(34px, 6vw, 52px);
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.series-blurb {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--mist);
  text-align: left;
}

.series-blurb p + p { margin-top: 12px; }

.breadcrumb { margin-bottom: 20px; font-size: 15px; }

.breadcrumb a { color: var(--tan); text-decoration: none; }

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

.book-page { padding-top: 50px; padding-bottom: 70px; }

.book-page .breadcrumb { max-width: 880px; margin: 0 auto 26px; }

.book-detail {
  display: flex;
  gap: 44px;
  align-items: flex-start;
  max-width: 880px;
  margin: 0 auto;
}

.detail-cover {
  display: block;
  width: 280px;
  border-radius: 6px;
  border: 1px solid rgba(161, 143, 99, 0.4);
  flex-shrink: 0;
}

.cover-stage { position: relative; flex-shrink: 0; }

.cover-stage::before {
  content: "";
  position: absolute;
  inset: -36px;
  background: radial-gradient(circle, rgba(243, 205, 93, 0.16), transparent 68%);
}

.device-frame {
  position: relative;
  background: #15141f;
  border-radius: 20px;
  padding: 12px 12px 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.device-frame::after {
  content: "";
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 5px;
  border-radius: 3px;
  background: #3a3950;
}

.device-frame .detail-cover { border: none; border-radius: 8px; }

.float-anim { animation: floaty 7s ease-in-out infinite alternate; }

@keyframes floaty {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}

.reviews-band { background: #e8dcb8; padding-top: 54px; padding-bottom: 62px; }

.reviews-band h2 { color: var(--navy); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 880px;
  margin: 0 auto;
}

.review-quote .stars { color: #8a6710; font-size: 19px; letter-spacing: 3px; margin-bottom: 8px; }

.review-quote p { color: #1d1c2e; font-size: 18px; font-weight: 600; line-height: 1.65; }

.review-quote .attr { margin-top: 10px; font-size: 14.5px; font-weight: 600; letter-spacing: 0.5px; color: #453d24; }

.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }

.fade-up.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .float-anim { animation: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}

.book-detail h1 {
  font-size: clamp(30px, 4.5vw, 42px);
  color: var(--gold);
  letter-spacing: 1px;
  margin: 4px 0 10px;
}

.book-detail .hook { font-size: 19px; margin-bottom: 16px; }

.blurb-full p { font-size: 17px; color: var(--mist); }

.blurb-full p + p { margin-top: 14px; }

.blurb-full .closer { font-style: italic; color: var(--gold-soft); }

.book-detail .badges { margin: 18px 0 20px; }

.preorder-callout {
  margin-top: 6px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: rgba(243, 205, 93, 0.09);
  padding: 14px 18px;
  font-size: 17.5px;
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1.55;
}

.preorder-callout a { color: var(--gold); }

.trope-list { list-style: none; margin: 16px 0 0; padding: 0; }

.trope-list li { font-size: 16.5px; color: var(--mist); padding-left: 26px; position: relative; margin-bottom: 6px; }

.trope-list li::before { content: "★"; position: absolute; left: 0; color: var(--gold); }

.formats-note { font-size: 15px; color: var(--tan); margin-top: 12px; }

.world-teaser { text-align: center; padding-top: 30px; padding-bottom: 80px; }

.video-wrap {
  position: relative;
  max-width: 360px;
  margin: 0 auto 20px;
}

.world-video {
  display: block;
  width: 100%;
  border-radius: 4px;
  border: 3px solid var(--tan);
  outline: 1px solid rgba(243, 205, 93, 0.55);
  outline-offset: 4px;
}

.video-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--tan);
  background: rgba(47, 46, 64, 0.82);
  color: var(--gold);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}

.video-toggle:hover { background: rgba(47, 46, 64, 0.95); border-color: var(--gold); }

.world-teaser p { max-width: 560px; margin: 0 auto; font-size: 17px; color: var(--mist); }

.world-teaser a { color: var(--gold); }

@media (max-width: 700px) {
  .book-detail { flex-direction: column; align-items: center; }
  .detail-cover { width: 220px; }
  .book-detail h1 { text-align: center; }
}

.more-link {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: var(--tan);
  text-decoration: none;
  margin-top: 10px;
}

.more-link:hover { color: var(--gold); text-decoration: underline; }

.book-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.book-row {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--indigo);
  border: 1px solid rgba(161, 143, 99, 0.4);
  border-radius: 8px;
  padding: 20px 22px;
}

a.book-row {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

a.book-row:hover {
  border-color: rgba(243, 205, 93, 0.7);
  transform: translateY(-3px);
}

.row-cover {
  display: block;
  width: 140px;
  border-radius: 4px;
  flex-shrink: 0;
}

.book-row h3 { font-size: 24px; color: var(--cream); margin: 2px 0 8px; }

.book-row .blurb { font-size: 16px; margin-bottom: 12px; }

.book-row .badges { margin-bottom: 14px; }

@media (max-width: 560px) {
  .book-row { flex-direction: column; align-items: center; text-align: center; }
}

.freebies-section { padding: 60px 6vw 70px; }

.freebie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  max-width: 820px;
  margin: 0 auto 26px;
}

.freebie-card {
  text-align: center;
  background: var(--indigo);
  border: 1px solid rgba(161, 143, 99, 0.4);
  border-radius: 8px;
  padding: 20px 18px;
}

.freebie-cover {
  display: block;
  width: 122px;
  margin: 0 auto 14px;
  background: #15141f;
  padding: 5px 5px 14px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

.freebie-card h3 { font-size: 20px; color: var(--gold-soft); margin-bottom: 8px; }

.freebie-card p { font-size: 15px; color: var(--mist); margin-bottom: 14px; }

.freebie-card .next-tag { margin-bottom: 8px; }

.soon-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 640px;
  margin: 44px auto 0;
  background: #2a2939;
  border: 1px solid rgba(243, 205, 93, 0.5);
  border-radius: 8px;
  padding: 20px 26px;
}

.soon-strip .soon-cover { width: 110px; margin: 0; flex-shrink: 0; }

.soon-strip h3 { font-size: 24px; color: var(--gold-soft); margin-bottom: 6px; }

.soon-strip p { font-size: 16px; color: var(--mist); }

.soon-strip a { color: var(--gold); }

.coming-soon { padding: 70px 6vw; background-color: #2a2939; }

.soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto 30px;
}

.soon-card {
  text-align: center;
  border: 1px dashed rgba(161, 143, 99, 0.6);
  border-radius: 8px;
  padding: 28px 22px;
}

.soon-card h3 { font-size: 24px; color: var(--gold-soft); margin-bottom: 8px; }

.soon-card.featured { border-style: solid; border-color: rgba(243, 205, 93, 0.5); }

.soon-cover {
  display: block;
  width: 150px;
  margin: 0 auto 16px;
  border-radius: 4px;
  border: 1px solid rgba(161, 143, 99, 0.5);
}

.ribbon-wrap { position: relative; display: inline-block; overflow: hidden; border-radius: 4px; }

.book-row .ribbon-wrap { flex-shrink: 0; }

.ribbon {
  position: absolute;
  top: 18px;
  left: -38px;
  transform: rotate(-45deg);
  background: var(--gold);
  color: #14131d;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 42px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.next-tag {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.soon-card p { font-size: 16px; color: var(--mist); font-style: italic; }

.soon-note { text-align: center; font-size: 17px; color: var(--mist); }

.soon-note a { color: var(--gold); }

.about { padding: 80px 6vw; }

.about-inner {
  display: flex;
  gap: 46px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.about h2 { text-align: left; margin-bottom: 24px; }

.portrait {
  flex: 0 0 260px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(161, 143, 99, 0.5);
}

.portrait img { display: block; width: 100%; }

.portrait.empty { display: none; }

.about-text { flex: 1 1 380px; }

.about-text p + p { margin-top: 18px; }

.newsletter { padding: 30px 6vw 80px; }

.newsletter-panel {
  max-width: 520px;
  margin: 0 auto;
  background: var(--green);
  border-radius: 10px;
  padding: 26px 28px;
  text-align: center;
}

.newsletter-panel h2 { color: var(--navy); font-size: 24px; margin-bottom: 6px; }

.newsletter-panel > p { color: var(--navy); font-size: 16px; margin-bottom: 16px; }

.signup { display: flex; gap: 10px; max-width: 400px; margin: 0 auto 14px; }

.signup input {
  flex: 1;
  font-family: "Cormorant Garamond", serif;
  font-size: 17px;
  border: none;
  border-radius: 4px;
  padding: 11px 14px;
  background: var(--cream);
  color: var(--navy);
}

.signup-status { font-size: 16px; font-weight: 600; color: var(--navy); margin: -4px 0 12px; }

.fine-print { font-size: 12.5px; line-height: 1.5; color: #2a3324; }

.site-footer {
  text-align: center;
  padding: 44px 6vw 54px;
  border-top: 1px solid rgba(161, 143, 99, 0.35);
}

.footer-name {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 8px;
}

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

.site-footer .copyright { font-size: 14px; color: var(--tan); margin-top: 10px; }

main > section[class] {
  padding-left: max(6vw, calc((100% - 980px) / 2));
  padding-right: max(6vw, calc((100% - 980px) / 2));
}

@media (max-width: 560px) {
  .signup { flex-direction: column; }
  .hero { padding-top: 80px; }
}

@media (max-width: 640px) {
  .site-header { padding: 12px 4vw 10px; justify-content: center; }
  .wordmark { width: 100%; text-align: center; font-size: 21px; }
  .site-header nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 16px;
  }
  .site-header nav a { font-size: 14.5px; white-space: nowrap; }
}
