/* ============================================================
   The Secret Library — Divyanshi Debnath
   Palette + typewriter type kept from the original Canva page,
   rebuilt with cleaner structure, spacing and responsiveness.
   ============================================================ */

:root {
  /* Core palette */
  --parchment:      #e7d4ad;
  --parchment-deep: #ddc59a;
  --ink:            #2a2320;
  --charcoal:       #232323;
  --charcoal-soft:  #2c2b2a;

  /* Accents */
  --blood:    #9e2b1e;
  --gold:     #dba521;
  --gold-deep:#c8901a;
  --orange:   #ff4e1a;
  --red:      #e23b22;
  --pink:     #f72d8e;
  --yellow:   #ffd60a;
  --cream:    #f4ecd6;

  /* Moonlit (brand) palette — from the MoonlitDivy logo */
  --night:    #0a1024;
  --night-2:  #111a3a;
  --night-3:  #1b2750;
  --moon:     #eaf0ff;
  --moonbeam: #b9c8ef;
  --blue-ink: #2a3b74;
  --blue-soft:#dde6fb;
  --silver:   #c8d3ee;

  --maxw: 920px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Courier Prime", "Courier New", monospace;
  color: var(--ink);
  background: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 48px);
  background: rgba(28, 28, 28, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Special Elite", monospace;
  color: var(--cream);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: .04em;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex: none;
  box-shadow: 0 0 0 1px rgba(185,200,239,.25), 0 4px 12px rgba(0,0,0,.5);
}
.brand-text { white-space: nowrap; }
@media (max-width: 460px) { .brand-text { display: none; } }
.site-nav nav ul {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
}
.site-nav nav a {
  font-family: "Special Elite", monospace;
  text-decoration: none;
  color: #b9b5af;
  font-size: .92rem;
  letter-spacing: .03em;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.site-nav nav a:hover { color: var(--cream); }
.site-nav nav a.is-active {
  color: var(--gold);
  border-bottom-color: var(--blood);
}

/* ============================================================
   Parchment hero
   ============================================================ */
.parchment {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #efdfbd 0%, var(--parchment) 45%, var(--parchment-deep) 100%);
}
/* subtle paper grain */
.parchment::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(120, 90, 50, .05) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.splat {
  position: absolute;
  top: -14px;
  width: clamp(150px, 22vw, 280px);
  opacity: .92;
  pointer-events: none;
}
.splat--left  { left: -26px; transform: rotate(-4deg); }
.splat--right { right: -26px; transform: scaleX(-1) rotate(-6deg); }

/* --- Library heading --- */
.library-head { text-align: center; }
.library-head h1 {
  font-family: "Special Elite", monospace;
  font-weight: 400;
  font-size: clamp(2.3rem, 7vw, 4rem);
  letter-spacing: .06em;
  margin: 0 0 .35em;
  color: var(--ink);
  text-transform: uppercase;
}
.tagline {
  font-family: "Special Elite", monospace;
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  margin: 0 0 1.1em;
  line-height: 1.5;
}
.subtitle {
  font-family: "Special Elite", monospace;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
}
.blank { color: var(--blood); letter-spacing: .15em; }

/* --- Extract --- */
.extract-row {
  position: relative;
  max-width: 640px;
  margin: clamp(36px, 6vw, 64px) auto 0;
}
.arrow--curl {
  position: absolute;
  left: -118px;
  top: 6px;
  width: 86px;
  opacity: .8;
}
.extract {
  margin: 0;
  font-family: "Special Elite", monospace;
  font-size: clamp(1.05rem, 2.3vw, 1.4rem);
  line-height: 1.75;
  text-align: center;
}
.extract-label {
  display: block;
  margin-bottom: .5em;
  font-style: normal;
  color: var(--blood);
}
.dotted {
  border-bottom: 2px dashed rgba(42, 35, 32, .55);
  padding-bottom: 2px;
}

/* --- Riddle card --- */
.riddle {
  margin: clamp(40px, 6vw, 66px) auto clamp(8px, 2vw, 14px);
  max-width: 680px;
  text-align: center;
}
.riddle-card {
  position: relative;
  background:
    linear-gradient(180deg, #e8b32c 0%, var(--gold) 55%, var(--gold-deep) 100%);
  color: #2b2008;
  padding: clamp(26px, 4vw, 40px) clamp(24px, 5vw, 56px);
  /* irregular brush-blob edge */
  border-radius: 36% 64% 60% 40% / 58% 44% 56% 42%;
  box-shadow:
    0 14px 30px rgba(120, 80, 0, .28),
    inset 0 0 0 2px rgba(255, 255, 255, .14);
}
.riddle-card p {
  margin: 0;
  font-family: "Courier Prime", monospace;
  font-weight: 700;
  font-size: clamp(.95rem, 2.1vw, 1.22rem);
  line-height: 1.9;
  letter-spacing: .02em;
}
.riddle-q {
  display: inline-block;
  margin-top: .4em;
  font-style: italic;
}
.brush-underline {
  display: block;
  width: min(74%, 480px);
  height: 14px;
  margin: -6px auto 0;
  background: var(--orange);
  border-radius: 60% 60% 50% 50% / 100% 100% 60% 60%;
  transform: rotate(-1.2deg);
  filter: blur(.3px);
  box-shadow: 0 4px 8px rgba(255, 78, 26, .3);
}

/* --- Callout --- */
.callout {
  text-align: center;
  font-family: "Special Elite", monospace;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.7;
  margin: clamp(34px, 5vw, 54px) auto 0;
  max-width: 620px;
}
.mark-red {
  position: relative;
  white-space: nowrap;
}
.mark-red::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  transform: rotate(-.8deg);
}

/* --- Bookshelf --- */
.bookshelf {
  width: clamp(150px, 20vw, 230px);
  margin: clamp(20px, 4vw, 36px) 0 0 auto;
  filter: drop-shadow(0 10px 16px rgba(60, 40, 10, .25));
}

/* ============================================================
   Reviews (charcoal)
   ============================================================ */
.reviews {
  position: relative;
  padding: clamp(54px, 8vw, 96px) 0 clamp(70px, 9vw, 110px);
  background:
    radial-gradient(120% 70% at 50% 0%, #2e2d2c 0%, var(--charcoal) 60%);
  color: var(--cream);
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 3vw, 28px);
  margin-bottom: clamp(34px, 5vw, 54px);
}
.magnifier {
  width: clamp(92px, 12vw, 134px);
  flex: none;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .4));
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(560px, 100%);
  padding: 14px 20px;
  background: #fbfbf9;
  color: #2a2320;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
}
.search-ico { width: 24px; height: 24px; color: #6b6b6b; flex: none; }
.search-text {
  flex: 1;
  text-align: center;
  font-family: "Special Elite", monospace;
  font-size: clamp(1rem, 2.4vw, 1.45rem);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.search-x { color: #9a9a9a; font-size: 1.5rem; line-height: 1; }

/* --- Quotes --- */
.quotes {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: clamp(22px, 4vw, 34px);
  text-align: center;
}
.quotes li { position: relative; }
.quotes p {
  margin: 0 0 .3em;
  font-family: "Courier Prime", monospace;
  font-style: italic;
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  line-height: 1.5;
  color: #f0e9d6;
}
.quotes cite {
  font-family: "Special Elite", monospace;
  font-style: normal;
  font-size: .92rem;
  color: var(--gold);
  letter-spacing: .03em;
}

/* decorative arrows */
.arrow--dashed {
  position: absolute;
  left: clamp(-10px, 2vw, 40px);
  bottom: clamp(60px, 12vw, 120px);
  width: clamp(110px, 16vw, 180px);
  opacity: .9;
}
.arrow--red {
  position: absolute;
  right: clamp(-6px, 2vw, 36px);
  bottom: clamp(70px, 13vw, 140px);
  width: clamp(70px, 9vw, 104px);
  opacity: .9;
}

/* --- Action buttons --- */
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 40px);
  margin-top: clamp(46px, 7vw, 78px);
}
.btn {
  font-family: "Special Elite", monospace;
  border: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.btn--share {
  background: none;
  padding: 0;
}
.ribbon {
  display: inline-block;
  background: var(--cream);
  color: #2f4fb0;
  font-size: 1.15rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 30px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
  clip-path: polygon(8% 0, 92% 0, 100% 50%, 92% 100%, 8% 100%, 0 50%);
}
.btn--share:hover { transform: translateY(-3px) rotate(-1.5deg); }

.btn--like {
  background: none;
  padding: 6px;
  border-radius: 50%;
}
.btn--like img { width: clamp(40px, 6vw, 56px); }
.btn--like:hover { transform: translateY(-4px) scale(1.08); }

.btn--subscribe {
  background: var(--pink);
  color: var(--yellow);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 14px 40px;
  border-radius: 14px;
  box-shadow: 0 8px 0 #c01f6f, 0 14px 22px rgba(247, 45, 142, .4);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .25);
}
.btn--subscribe:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}
.btn--subscribe:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #c01f6f, 0 8px 14px rgba(247, 45, 142, .35);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px clamp(20px, 5vw, 48px);
  background: #1a1a1a;
  color: #8c8884;
  font-family: "Special Elite", monospace;
  font-size: .82rem;
}
.foot-links { display: flex; gap: 26px; }
.site-footer a {
  text-decoration: none;
  color: #b3afa9;
  transition: color .25s var(--ease);
}
.site-footer a:hover { color: var(--gold); }
.foot-credit { margin: 0; letter-spacing: .03em; display: inline-flex; align-items: center; gap: 9px; }
.foot-logo { width: 26px; height: 26px; border-radius: 50%; opacity: .85; }

/* ============================================================
   Entrance animations
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .library-head > *,
  .extract-row,
  .riddle,
  .callout,
  .bookshelf {
    opacity: 0;
    transform: translateY(18px);
    animation: rise .8s var(--ease) forwards;
  }
  .library-head h1     { animation-delay: .05s; }
  .tagline             { animation-delay: .18s; }
  .subtitle            { animation-delay: .28s; }
  .extract-row         { animation-delay: .4s; }
  .riddle              { animation-delay: .55s; }
  .callout             { animation-delay: .7s; }
  .bookshelf           { animation-delay: .8s; }

  @keyframes rise {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .arrow--curl { display: none; }
  .bookshelf { margin-inline: auto; }
  .arrow--dashed, .arrow--red { display: none; }
}
@media (max-width: 460px) {
  .site-nav { flex-direction: column; gap: 8px; }
  .search-head { flex-direction: column; }
  .actions { gap: 22px; }
}

/* ============================================================
   Utilities
   ============================================================ */
.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;
}

/* ============================================================
   HOME — Page 1, matched to the Canva design
   (charcoal note on torn parchment  +  white-dome bio)
   ============================================================ */
.home-intro {
  position: relative;
  overflow: hidden;
  background: #232323;
  padding: clamp(40px, 6vw, 78px) 0 clamp(70px, 10vw, 140px);
}
/* crumpled-paper texture + faint centre glow */
.home-intro::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(rgba(255,255,255,.022) 1px, transparent 1px) 0 0 / 5px 5px,
    radial-gradient(120% 80% at 50% 26%, rgba(74,70,65,.45) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.home-intro .container { position: relative; z-index: 2; }

/* red blood splatters over the dark background */
.splat-left, .splat-right, .splat-accent { position: absolute; pointer-events: none; }
.splat-left {
  left: clamp(-34px, -1vw, 12px);
  top: clamp(54px, 9vw, 150px);
  width: clamp(150px, 21vw, 310px);
  opacity: .96;
  z-index: 1;
}
.splat-right {
  right: clamp(-18px, 0vw, 34px);
  top: clamp(120px, 16vw, 270px);
  width: clamp(92px, 11vw, 165px);
  opacity: .9;
  z-index: 1;
}
.splat-accent {
  width: clamp(46px, 6vw, 78px);
  left: clamp(8px, 4vw, 70px);
  top: clamp(150px, 21vw, 300px);
  opacity: .9;
  z-index: 4;
}

.note-grid {
  position: relative;
  max-width: 780px;
  margin-inline: auto;
  padding-bottom: clamp(40px, 8vw, 96px);
}

/* torn parchment note */
.paper {
  position: relative;
  z-index: 2;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) clamp(34px, 6vw, 70px) clamp(56px, 8vw, 100px);
  color: #322820;
  background:
    linear-gradient(135deg, #ddc9a4 0%, #d3bb90 48%, #c8ad7e 100%);
  background-blend-mode: multiply;
  box-shadow: 0 24px 56px rgba(0, 0, 0, .6);
  clip-path: polygon(
    1% 3%, 16% 0.5%, 33% 4%, 50% 1%, 67% 4%, 83% 1%, 96% 3%, 99% 5%,
    97.5% 22%, 100% 40%, 97% 58%, 100% 74%, 97.5% 88%, 99% 97%,
    82% 99%, 64% 96%, 47% 100%, 30% 97%, 14% 100%, 2% 96%,
    0.5% 80%, 2.5% 62%, 0% 44%, 2% 26%, 0.5% 12%
  );
}
.paper::after {       /* paper fibres */
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(120, 84, 40, .08) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.tape {
  position: absolute;
  top: -16px; left: clamp(26px, 8%, 70px);
  transform: rotate(-8deg);
  width: clamp(120px, 18vw, 168px); height: 44px;
  background: rgba(238, 230, 208, .8);
  box-shadow: 0 4px 9px rgba(0, 0, 0, .35);
}
.tape::before, .tape::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 8px;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.06) 0 3px, transparent 3px 6px);
}
.tape::before { left: 0; }
.tape::after  { right: 0; }

.paper h1 {
  font-family: "Special Elite", monospace;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(1.4rem, 3.7vw, 2.15rem);
  line-height: 1.32;
  letter-spacing: .015em;
  margin: 0 0 .7em;
  color: #221b14;
}
.welcome {
  font-family: "Special Elite", monospace;
  text-align: center;
  font-size: clamp(1rem, 2.3vw, 1.26rem);
  line-height: 1.6;
  margin: 0 0 .35em;
  color: #2c2218;
}
.divider-dash {
  text-align: center;
  letter-spacing: .32em;
  color: #7a5a36;
  margin: 0 0 1.3em;
}
.bio-body {
  font-family: "Patrick Hand", "Comic Sans MS", cursive;
  font-size: clamp(1.08rem, 2.4vw, 1.32rem);
  line-height: 1.55;
  letter-spacing: .01em;
  margin: 0;
  text-align: left;
  color: #2b2219;
}

/* inkpot + quill cluster, overlapping the bottom-right of the note */
.inkpot { pointer-events: none; }
.ink-cluster {
  position: absolute;
  right: clamp(-40px, -3.4vw, -8px);
  bottom: clamp(-48px, -3.6vw, -8px);
  width: clamp(140px, 20vw, 240px);
  z-index: 3;
}
.ink-splatter {
  position: absolute;
  left: -40%;
  top: 36%;
  width: 74%;
  opacity: .95;
  pointer-events: none;
}
.inkpot--quill {
  position: relative;
  width: 100%;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .6));
}

/* ============================================================
   HOME — white-dome bio ("My Life, My Rules")
   ============================================================ */
.home-bio {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: clamp(-66px, -7vw, -44px);
  border-top-left-radius: 50% clamp(70px, 9vw, 140px);
  border-top-right-radius: 50% clamp(70px, 9vw, 140px);
  background: radial-gradient(120% 72% at 50% 6%, #ffffff 0%, #fbfbfd 60%, #f4f5f8 100%);
  color: #1d1d1f;
  padding: clamp(72px, 11vw, 140px) 0 clamp(70px, 9vw, 120px);
}
.watercolor {
  position: absolute;
  top: clamp(34px, 6vw, 96px);
  right: clamp(-6px, 2vw, 48px);
  width: clamp(170px, 26vw, 340px);
  opacity: .92;
  pointer-events: none;
}
.bio-head { text-align: center; margin-bottom: clamp(30px, 5vw, 52px); position: relative; z-index: 1; }
.bio-head h2 {
  font-family: "Special Elite", monospace;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.9rem, 5.6vw, 3.2rem);
  letter-spacing: .02em;
  margin: 0 0 .12em;
  color: #1a1a1a;
}
.bio-sub {
  font-family: "Special Elite", monospace;
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  color: #3a3a3a;
  margin: 0;
}
.bio-lede {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.18rem, 2.7vw, 1.55rem);
  line-height: 1.75;
  text-align: center;
  max-width: 880px;
  margin: 0 auto clamp(44px, 6vw, 66px);
  color: #232323;
  position: relative;
  z-index: 1;
}
.fun-facts {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.fun-facts h3 {
  font-family: "Special Elite", monospace;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  margin: 0 0 1em;
  color: #1a1a1a;
}
.facts-lines {
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.12rem, 2.5vw, 1.42rem);
  line-height: 1.85;
  margin: 0;
  color: #232323;
}
.inkpot--black {
  width: clamp(100px, 14vw, 168px);
  margin: clamp(26px, 4vw, 46px) 0 0 auto;
  filter: drop-shadow(0 14px 22px rgba(20, 20, 30, .3));
}

/* ============================================================
   PAGE 3 — Newsletter (black) + write-ups (red)
   ============================================================ */
.newsletter {
  background: #0a0a0a;
  color: var(--cream);
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 10vw, 120px);
  text-align: center;
}
.news-head h1 {
  font-family: "Special Elite", monospace;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: .04em;
  margin: 0 0 .25em;
}
.news-sub {
  font-family: "Special Elite", monospace;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: #cfc8b6;
  margin: 0 0 clamp(40px, 6vw, 64px);
}
.news-sub::first-letter { color: var(--blood); }

.signup {
  display: grid;
  gap: 16px;
  width: min(440px, 100%);
  margin-inline: auto;
}
.signup input,
.submit-work input,
.submit-work textarea {
  width: 100%;
  font-family: "Courier Prime", monospace;
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: var(--cream);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.signup input::placeholder,
.submit-work input::placeholder,
.submit-work textarea::placeholder { color: rgba(244, 236, 214, .5); }
.signup input:focus,
.submit-work input:focus,
.submit-work textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, .1);
}
.btn-ghost {
  font-family: "Special Elite", monospace;
  font-size: 1.1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: 10px;
  border: 2px solid var(--blood);
  background: var(--blood);
  color: var(--cream);
  cursor: pointer;
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.btn-ghost:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn-ghost:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.signup-note { font-family: "Courier Prime", monospace; font-size: .85rem; color: #9a9282; margin: 4px 0 0; }

.writeups {
  background: var(--blood);
  color: var(--cream);
  padding: clamp(54px, 8vw, 100px) 0 clamp(64px, 9vw, 110px);
  text-align: center;
}
.writeups-lead {
  font-family: "Special Elite", monospace;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  line-height: 1.55;
  letter-spacing: .02em;
  max-width: 820px;
  margin: 0 auto .4em;
}
.writeups-lead strong { color: var(--yellow); font-weight: 400; }
.writeups-tag {
  font-family: "Courier Prime", monospace;
  font-style: italic;
  font-size: 1.1rem;
  opacity: .85;
  margin: 0 0 clamp(36px, 5vw, 52px);
}
.submit-work {
  display: grid;
  gap: 14px;
  width: min(560px, 100%);
  margin-inline: auto;
  text-align: left;
}
.submit-work input,
.submit-work textarea {
  background: rgba(0, 0, 0, .18);
  border-color: rgba(255, 255, 255, .25);
}
.submit-work textarea { resize: vertical; font-family: "Courier Prime", monospace; }
.btn-light {
  justify-self: center;
  font-family: "Special Elite", monospace;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 34px;
  border-radius: 10px;
  border: none;
  background: var(--cream);
  color: var(--blood);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.btn-light:hover { transform: translateY(-2px); filter: brightness(1.04); }
.btn-light:focus-visible { outline: 3px solid #2b0c08; outline-offset: 3px; }

/* ============================================================
   PAGE 4 — The Horror Vault (black)
   ============================================================ */
.vault {
  background:
    radial-gradient(120% 70% at 50% 0%, #161616 0%, #060606 70%);
  color: var(--cream);
  padding: clamp(48px, 7vw, 90px) 0 clamp(60px, 9vw, 120px);
  text-align: center;
}
.vault-head h1 {
  font-family: "Special Elite", monospace;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 8vw, 5rem);
  letter-spacing: .03em;
  color: #f0463a;
  text-shadow: 0 0 26px rgba(240, 70, 58, .35);
  margin: 0 0 .12em;
}
.vault-sub {
  font-family: "Special Elite", monospace;
  font-size: clamp(1.3rem, 3.6vw, 2rem);
  color: #ef5a4e;
  margin: 0 0 clamp(40px, 6vw, 70px);
}
.vault-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 5vw, 56px);
  flex-wrap: wrap;
}
.store-mark { display: inline-flex; flex-direction: column; align-items: center; }
.store-mark--amazon .store-name {
  font-family: "Arial Black", "Helvetica Neue", sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  letter-spacing: -.04em;
  color: #fff;
  line-height: .9;
}
.smile { width: clamp(120px, 18vw, 175px); margin-top: -6px; }

.btn-buy {
  display: inline-block;
  font-family: "Special Elite", monospace;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  padding: 18px 40px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(100deg, #7c2fd6 0%, #a25cf0 55%, #c79bff 100%);
  box-shadow: 0 10px 26px rgba(124, 47, 214, .5);
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.btn-buy:hover { transform: translateY(-3px); filter: brightness(1.06); }

.vault-note {
  font-family: "Special Elite", monospace;
  font-size: clamp(1.15rem, 3vw, 1.7rem);
  color: #ef5a4e;
  margin: clamp(40px, 6vw, 70px) auto;
  max-width: 800px;
}
.vault-divider {
  border: none;
  height: 8px;
  width: min(90%, 980px);
  margin: clamp(30px, 5vw, 56px) auto;
  border-radius: 6px;
  background: linear-gradient(90deg, #18e0e0 0%, #2f7bff 60%, #1b3df0 100%);
  box-shadow: 0 0 22px rgba(47, 123, 255, .4);
}
.vault-row--yt { margin-top: clamp(36px, 5vw, 60px); }
.vault-text {
  font-family: "Special Elite", monospace;
  font-size: clamp(1.1rem, 2.8vw, 1.55rem);
  color: #ef5a4e;
  line-height: 1.5;
  max-width: 420px;
  margin: 0;
}
.btn-sub {
  display: inline-block;
  font-family: "Special Elite", monospace;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-decoration: none;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  padding: 22px 44px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(160deg, #4d63ff 0%, #6f7dff 50%, #9aa6ff 100%);
  box-shadow: 0 10px 26px rgba(77, 99, 255, .5);
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.btn-sub:hover { transform: translateY(-3px); filter: brightness(1.06); }

.store-mark--yt {
  flex-direction: row;
  gap: 14px;
  margin-top: clamp(34px, 5vw, 54px);
}
.store-mark--yt .play { width: clamp(64px, 9vw, 92px); }
.store-name--yt {
  font-family: "Arial Black", "Helvetica Neue", sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -.03em;
  color: #fff;
}

/* ============================================================
   Responsive — multi-page additions
   ============================================================ */
@media (max-width: 720px) {
  .bio-body { text-align: left; }
  .vault-row { gap: 18px; }
}
@media (max-width: 640px) {
  .note-grid { padding-bottom: 0; }
  .ink-cluster {
    position: static;
    width: clamp(150px, 42vw, 220px);
    margin: 14px auto 0;
  }
  .ink-splatter { display: none; }
  .splat-accent { display: none; }
  .home-bio {
    border-top-left-radius: 50% 44px;
    border-top-right-radius: 50% 44px;
  }
  .inkpot--black { margin-inline: auto; }
}

/* layout switch pill (links to the Midnight Edition) */
.nav-switch {
  font-family: "Special Elite", monospace;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--cream) !important;
  border: 1px solid rgba(158, 43, 30, .5);
  border-radius: 999px;
  padding: 5px 12px;
  transition: background .25s var(--ease);
}
.nav-switch:hover { background: rgba(158, 43, 30, .18); border-bottom-color: rgba(158,43,30,.5) !important; }

/* ============================================================
   PAGE 3 — Contact Form (on black newsletter section)
   ============================================================ */
.news-head h1 {
  /* keep large heading like the Canva design */
  max-width: 1000px;
  margin-inline: auto;
}
.contact-card {
  max-width: 760px;
  margin: clamp(36px, 6vw, 60px) auto 0;
  background: #9e2b1e;
  background: linear-gradient(180deg, #a52e20 0%, #8f2417 100%);
  border-radius: 14px;
  padding: clamp(26px, 4vw, 44px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
  text-align: left;
}
.card-title {
  font-family: "Special Elite", monospace;
  font-weight: 400;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  color: var(--gold);
  margin: 0 0 1em;
}
.card-title--dark { color: #1a1a1a; }

.field { display: block; margin-bottom: 18px; }
.field label {
  display: block;
  font-family: "Courier Prime", monospace;
  font-size: .95rem;
  letter-spacing: .02em;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .92);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: "Courier Prime", monospace;
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, .5); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 3px rgba(219, 165, 33, .25);
}
.field select option { color: #1a1a1a; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn-submit {
  font-family: "Special Elite", monospace;
  font-size: 1.1rem;
  letter-spacing: .03em;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.btn-submit--dark { background: #1b2333; color: var(--cream); }
.btn-submit:hover { transform: translateY(-2px); filter: brightness(1.12); }
.btn-submit:disabled { opacity: .6; cursor: progress; transform: none; }

.form-status {
  margin: 14px 0 0;
  font-family: "Courier Prime", monospace;
  font-size: .95rem;
  min-height: 1.2em;
}
.form-status.is-ok { color: #b6f0c0; }
.form-status.is-err { color: #ffd0c4; }
.form-status--dark.is-ok { color: #1d6b2c; }
.form-status--dark.is-err { color: #8f2417; }
.form-fine {
  margin: 12px 0 0;
  font-family: "Courier Prime", monospace;
  font-size: .8rem;
  color: rgba(255, 255, 255, .65);
}
.form-fine--dark { color: rgba(0, 0, 0, .6); }

/* ============================================================
   PAGE 3 — Write Ups by Fans (white card on red)
   ============================================================ */
.writeup-card {
  max-width: 820px;
  margin: clamp(30px, 5vw, 50px) auto 0;
  background: #ffffff;
  color: #1a1a1a;
  border: 3px solid var(--yellow);
  border-radius: 14px;
  padding: clamp(26px, 4vw, 46px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
  text-align: left;
}
.field--dark label { color: #2a2320; font-weight: 700; text-transform: uppercase; font-size: .82rem; letter-spacing: .04em; }
.field--dark input,
.field--dark textarea {
  background: #fff;
  border: 1px solid #c9c4bd;
  color: #1a1a1a;
}
.field--dark input:focus,
.field--dark textarea:focus {
  border-color: var(--blood);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(158, 43, 30, .18);
}

.genre { border: none; padding: 0; margin: 0 0 18px; }
.genre legend {
  font-family: "Courier Prime", monospace;
  font-weight: 700; text-transform: uppercase;
  font-size: .82rem; letter-spacing: .04em;
  color: #2a2320; margin-bottom: 10px; padding: 0;
}
.genre-opt {
  display: block;
  position: relative;
  margin-bottom: 8px;
  cursor: pointer;
}
.genre-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.genre-opt span {
  display: block;
  font-family: "Courier Prime", monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .95rem;
  padding: 14px 18px;
  background: #e9e9e9;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.genre-opt:hover span { background: #e0e0e0; }
.genre-opt input:checked + span {
  background: #fbe3df;
  border-color: var(--blood);
  color: var(--blood);
  font-weight: 700;
}
.genre-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(158, 43, 30, .3); }

.btn-writeup {
  font-family: "Special Elite", monospace;
  font-weight: 400;
  font-size: 1.2rem;
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  border: none;
  border-radius: 999px;
  background: #ff4e1a;
  color: #1a1a1a;
  cursor: pointer;
  box-shadow: 0 6px 0 #d63c0c;
  transition: transform .15s var(--ease), filter .2s var(--ease), box-shadow .15s var(--ease);
}
.btn-writeup:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-writeup:active { transform: translateY(4px); box-shadow: 0 2px 0 #d63c0c; }
.btn-writeup:disabled { opacity: .6; cursor: progress; }

/* ============================================================
   PAGE 4 — Order Your Copy
   ============================================================ */
.order {
  margin: clamp(60px, 9vw, 110px) auto 0;
  text-align: center;
  scroll-margin-top: 80px;
}
.order-head h2 {
  font-family: "Special Elite", monospace;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: #f0463a;
  text-shadow: 0 0 26px rgba(240, 70, 58, .3);
  margin: 0 0 .3em;
}
.order-head p {
  font-family: "Courier Prime", monospace;
  color: var(--cream);
  max-width: 620px;
  margin: 0 auto clamp(34px, 5vw, 54px);
}

.books {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 3vw, 28px);
  max-width: 900px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.book {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.book:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 70, 58, .5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.book-cover {
  font-family: "Special Elite", monospace;
  display: flex; flex-direction: column; justify-content: center;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  margin-bottom: 18px;
  color: #f0e6cf;
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: .04em;
  background: linear-gradient(160deg, #5a1410, #9e2b1e 60%, #2a0d0a);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .5);
}
.book-cover strong { font-size: 1.7rem; color: #fff; }
.book-cover--alt { background: linear-gradient(160deg, #2a1a40, #6b4a86 60%, #160d22); }
.book-cover--ebook { background: linear-gradient(160deg, #1d2433, #3a4dff 70%, #0d1020); }
.book-title { font-family: "Special Elite", monospace; font-weight: 400; color: var(--cream); margin: 0 0 .3em; font-size: 1.15rem; }
.book-desc { font-family: "Courier Prime", monospace; color: #b9b3a7; font-size: .9rem; margin: 0 0 1em; min-height: 2.6em; }
.book-price { font-family: "Special Elite", monospace; color: var(--gold); font-size: 1.5rem; margin: 0 0 .7em; }
.book-pick { font-size: .95rem !important; padding: 12px 22px !important; }

.order-card {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: clamp(26px, 4vw, 44px);
  text-align: left;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
}
.order-card .card-title { color: var(--gold); }
.order-total {
  font-family: "Special Elite", monospace;
  color: var(--cream);
  font-size: 1.15rem;
  margin: 4px 0 20px;
  padding: 12px 16px;
  background: rgba(219, 165, 33, .12);
  border-radius: 10px;
}
.order-total span { color: var(--gold); }
.btn-order { width: 100%; text-align: center; margin-top: 4px; }
.btn-order:disabled { opacity: .6; cursor: progress; }

/* highlight a chosen book */
.book.is-picked { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(219,165,33,.4), 0 18px 40px rgba(0,0,0,.5); }

/* ============================================================
   Responsive — forms
   ============================================================ */
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}
