:root {
  --plum: #241528;          /* page background, from the crown avatar's velvet */
  --plum-card: #33203a;     /* cards */
  --plum-band: #2c1a31;     /* alternating band */
  --gold: #e8c25c;          /* the crown */
  --gold-soft: #f3e1ac;
  --wine: #7c2438;          /* the ruby */
  --silver: #cfcada;        /* body text */
  --silver-dim: #9d95ae;    /* quiet labels */
  --cream: #fdfcfe;
  --edge: rgba(207, 202, 218, 0.28);
}

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

html { scroll-behavior: smooth; }

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

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

/* candle-smoke motes, the avatar's atmosphere at 5% */
.smoke {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='150'%3E%3Cg fill='%23e8c25c' fill-opacity='0.045'%3E%3Ccircle cx='24' cy='34' r='1.7'/%3E%3Ccircle cx='96' cy='16' r='1.1'/%3E%3Ccircle cx='128' cy='76' r='1.9'/%3E%3Ccircle cx='58' cy='104' r='1.2'/%3E%3Ccircle cx='34' cy='134' r='1'/%3E%3C/g%3E%3Cg fill='none' stroke='%23cfcada' stroke-opacity='0.035' stroke-width='1.2'%3E%3Cpath d='M20 120c14-16 4-30 16-44s2-28 14-40'/%3E%3Cpath d='M104 140c12-14 3-26 14-38s2-24 12-34'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- header ---------- */

.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(36, 21, 40, 0.94);
  border-bottom: 1px solid var(--edge);
}

.wordmark {
  font-family: "Cinzel", serif;
  font-size: 23px;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-decoration: none;
}

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

.site-header nav a {
  color: var(--silver);
  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); font-weight: 600; }

/* ---------- hero ---------- */

.hero { text-align: center; padding: 86px 6vw 44px; }

.hero h1 {
  font-size: clamp(40px, 7.5vw, 68px);
  color: var(--gold);
  letter-spacing: 5px;
  margin-bottom: 18px;
}

.tagline {
  font-style: italic;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--cream);
  max-width: 640px;
  margin: 0 auto 12px;
}

.genres {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- buttons ---------- */

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

.button.gold { background: var(--gold); color: #1a0f1d; }
.button.gold:hover { background: var(--gold-soft); }

.button.ghost {
  background: none;
  color: var(--gold-soft);
  border: 1px solid var(--edge);
  font-weight: 600;
}
.button.ghost:hover { color: var(--gold); border-color: var(--gold); }

section h2 {
  text-align: center;
  font-size: clamp(28px, 4.6vw, 38px);
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.section-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 46px;
  font-size: 17.5px;
  color: var(--silver);
}

/* ---------- story shelf ---------- */

.stories { padding: 70px 6vw 84px; }

/* ---------- filter chips ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
  margin: -22px auto 34px;
}

.filter-chip {
  display: inline-block;
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 16px;
  letter-spacing: 0.6px;
  color: var(--silver);
  background: none;
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 6px 18px;
  cursor: pointer;
}

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

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

.filter-note {
  text-align: center;
  font-size: 17px;
  font-style: italic;
  color: var(--gold-soft);
  margin: -8px 0 34px;
}

/* ---------- compact product grid (filtered views) ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 26px;
  max-width: 900px;
  margin: 0 auto;
}

.product { text-align: center; }

.p-cover {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--edge);
  background: var(--plum-card);
  margin-bottom: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.p-cover.tall { aspect-ratio: 2 / 3; }
.p-cover.wide { aspect-ratio: 16 / 9; }

.p-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

.p-cover.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  padding: 16px;
}

.p-cover.empty span {
  font-family: "Cinzel", serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--silver-dim);
  line-height: 1.4;
}

.product h3 { font-size: 20px; color: var(--cream); margin-bottom: 4px; }

.p-line { font-size: 16px; color: var(--silver); margin-bottom: 8px; }

.p-status {
  font-size: 12.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--silver-dim);
}

.p-status.live { color: var(--gold); }

/* ---------- an empty shelf, said plainly ---------- */

.shelf-empty {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  border: 1px dashed var(--edge);
  border-radius: 10px;
  padding: 46px 30px 40px;
}

.shelf-empty p { font-size: 19px; color: var(--cream); margin-bottom: 6px; }

.shelf-empty .shelf-empty-hint { font-size: 17px; color: var(--silver); margin-bottom: 22px; }

.story-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: 900px;
  margin: 0 auto;
}

.story-card {
  background: var(--plum-card);
  border: 1px solid var(--edge);
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: stretch;
}

.story-art { position: relative; display: block; min-height: 100%; }

.story-art img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

/* soft plum edge so the still melts into the card instead of stopping dead */
.story-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(51, 32, 58, 0.85) 100%);
}

.story-body { padding: 26px 28px 28px; }

.story-kicker {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 8px;
}

.story-body h3 { font-size: 27px; color: var(--cream); line-height: 1.25; margin-bottom: 10px; }

.story-hook {
  font-style: italic;
  font-size: 18px;
  color: var(--gold-soft);
  margin-bottom: 12px;
}

.story-blurb { font-size: 17px; color: var(--silver); margin-bottom: 20px; }

/* the three ways to have a story */
.ways { list-style: none; display: flex; flex-direction: column; gap: 9px; }

.way {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 16.5px;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid var(--edge);
}

.way-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  fill: var(--gold);
  align-self: center;
}

.way.pending .way-icon { fill: var(--silver-dim); }

.way-label { color: var(--cream); font-weight: 600; }

.way-note { color: var(--silver-dim); font-size: 15.5px; }

.way.ready { border-color: rgba(232, 194, 92, 0.55); background: rgba(232, 194, 92, 0.07); }

.way.pending { border-style: dashed; }

.way a { color: var(--gold); text-decoration: none; border-bottom: 1px dotted var(--gold); }
.way a:hover { border-bottom-style: solid; }

@media (max-width: 760px) {
  .story-card { grid-template-columns: 1fr; }
  .story-art { aspect-ratio: 16 / 9; min-height: 0; }
  .story-art::after { background: linear-gradient(180deg, transparent 55%, rgba(51, 32, 58, 0.9) 100%); }
}

/* ---------- coming soon ---------- */

.coming-soon { padding: 70px 6vw; background-color: var(--plum-band); }

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

.soon-card {
  text-align: center;
  border: 1px dashed var(--edge);
  border-radius: 8px;
  padding: 28px 22px;
}

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

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

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

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

/* ---------- newsletter / freebie ---------- */

.newsletter { padding: 78px 6vw; }

.newsletter-panel {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(160deg, #3b2442, #2a1830);
  border: 1px solid rgba(232, 194, 92, 0.45);
  border-radius: 12px;
  padding: 34px 34px 30px;
  text-align: center;
}

.newsletter-panel h2 { color: var(--gold); margin-bottom: 10px; }

.offer {
  font-size: 18.5px;
  color: var(--cream);
  max-width: 460px;
  margin: 0 auto 8px;
}

.offer strong { color: var(--gold-soft); }

.offer-list {
  list-style: none;
  max-width: 420px;
  margin: 16px auto 22px;
  text-align: left;
}

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

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

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

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

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

.stub-note {
  font-size: 14.5px;
  color: #1a0f1d;
  background: var(--gold-soft);
  border-radius: 4px;
  padding: 8px 12px;
  max-width: 420px;
  margin: 0 auto 14px;
  font-weight: 600;
}

.fine-print { font-size: 13px; line-height: 1.55; color: var(--silver-dim); max-width: 460px; margin: 0 auto; }

/* ---------- about ---------- */

.about { padding: 76px 6vw; background-color: var(--plum-band); }

.about-inner { max-width: 720px; margin: 0 auto; }

.about h2 { margin-bottom: 26px; }

.about p { font-size: 17.5px; }
.about p + p { margin-top: 16px; }

/* ---------- footer ---------- */

.site-footer {
  text-align: center;
  padding: 44px 6vw 54px;
  border-top: 1px solid var(--edge);
}

.footer-name {
  font-family: "Cinzel", serif;
  font-size: 20px;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-bottom: 8px;
}

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

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

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

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

@media (max-width: 640px) {
  .site-header { padding: 12px 4vw 10px; justify-content: center; }
  .wordmark { width: 100%; text-align: center; font-size: 20px; }
  .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; }
}

/* ---------- shelf page hero ---------- */

.page-hero { text-align: center; padding: 64px 6vw 30px; }

.page-hero h1 {
  font-size: clamp(32px, 5.4vw, 48px);
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.page-hero .tagline { font-size: clamp(18px, 2.4vw, 22px); }

.product .button { margin-top: 4px; }
