/* Layout concept: the site is a letter. A cream letter-paper opens the page on an
   ink-dark desk; the Broken Series sits behind shattered glass; gold flourishes from the covers. */
:root {
  --ink: #0f0b0d;
  --ink-raised: #19121a;
  --ink-deep: #080607;
  --cream: #efe6d8;
  --paper: #ece2cf;
  --paper-ink: #2b1f20;
  --paper-line: rgba(43, 31, 32, 0.09);
  --muted: #b8aaa3;
  --dim: #948680;
  --rose: #c22f48;
  --rose-deep: #9c1f37;
  --rose-hover: #d84560;
  --gold: #c9a45c;
  --gold-line: rgba(201, 164, 92, 0.32);
  --rose-glow: rgba(194, 47, 72, 0.18);

  --display: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
  --body: "EB Garamond", Georgia, "Times New Roman", serif;
  --script: "Pinyon Script", "Cormorant Garamond", Georgia, cursive;

  --step--1: 0.875rem;
  --step-0: 1.1875rem;
  --step-2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-3: clamp(2.4rem, 1.7rem + 3.2vw, 4rem);
  --step-4: clamp(3rem, 1.9rem + 5vw, 5.6rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 60; background: var(--cream); color: var(--ink); padding: 8px 14px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.label {
  font-family: var(--display); font-weight: 700; font-size: var(--step--1);
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}

/* Placeholder for content Misty still needs to provide. Remove before launch. */
.todo {
  border: 1px dashed rgba(201, 164, 92, 0.6); border-radius: 8px; padding: 12px 16px;
  font-family: var(--body); font-style: italic; font-size: 1rem; color: var(--gold);
  background: rgba(201, 164, 92, 0.06); text-align: left;
}
.todo::before { content: "Needs input: "; font-style: normal; font-weight: 600; }
.on-paper .todo { color: #7a5a22; border-color: rgba(122, 90, 34, 0.55); background: rgba(122, 90, 34, 0.06); }

.flourish { display: flex; align-items: center; gap: 14px; width: min(260px, 70%); }
.flourish::before, .flourish::after { content: ""; flex: 1; height: 1px; background: var(--gold-line); }
.flourish span { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); }
.flourish.center { margin-inline: auto; }
.crack-line { height: 24px; background: url("../assets/crack-line.svg") center / 100% 100% no-repeat; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn-rose { background: var(--rose); color: var(--cream); }
.btn-rose:hover { background: var(--rose-hover); color: var(--cream); }
.btn-ghost { border-color: var(--gold-line); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--cream); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 18+ entrance ---------- */
.gate {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow-y: auto;
  padding: max(24px, env(safe-area-inset-top, 0px)) 16px max(24px, env(safe-area-inset-bottom, 0px));
  background: radial-gradient(ellipse at 50% 35%, rgba(194, 47, 72, 0.22), transparent 60%), rgba(8, 6, 7, 0.97);
}
.gate-card {
  position: relative; width: min(520px, 100%); text-align: center;
  background: var(--ink-raised); border: 1px solid var(--gold-line); border-radius: 6px;
  padding: 64px clamp(20px, 6vw, 48px) 40px; display: flex; flex-direction: column; align-items: center; gap: 18px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}
.seal {
  position: absolute; top: -38px; left: 50%; transform: translateX(-50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #d8485f, var(--rose-deep) 70%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), inset 0 0 0 5px rgba(0, 0, 0, 0.14);
  display: grid; place-items: center; color: #f5d9dc;
}
.seal svg { width: 34px; height: 34px; }
.gate h2 { font-family: var(--script); font-size: clamp(2.6rem, 2rem + 3vw, 3.6rem); color: var(--cream); font-weight: 400; }
.gate .actions { justify-content: center; margin-top: 6px; }
.gate .todo { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(15, 11, 13, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 164, 92, 0.14);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; position: relative; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cream); text-decoration: none; }
.wordmark:hover { color: var(--cream); }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-family: var(--display); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--gold-line); color: var(--cream);
  font-family: var(--display); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.85rem; padding: 10px 16px; border-radius: 999px; cursor: pointer; min-height: 44px;
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-raised); border-bottom: 1px solid var(--gold-line); padding: 8px var(--gutter) 16px;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(201, 164, 92, 0.12); }
  .nav[data-open="false"] { display: none; }
}

/* ---------- hero: the letter ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero::before {
  content: ""; position: absolute; inset: -25% -15% auto auto; width: 80vw; height: 80vw; max-width: 980px; max-height: 980px;
  background: radial-gradient(circle, var(--rose-glow), transparent 62%); pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero-name { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.hero h1 { font-size: var(--step-4); letter-spacing: 0.08em; text-transform: uppercase; line-height: 0.95; }
.hero .seen { font-family: var(--script); font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem); color: var(--rose); line-height: 1; }

.letter {
  position: relative; background-color: var(--paper); color: var(--paper-ink);
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, var(--paper-line) 33px 34px);
  padding: 44px clamp(22px, 4vw, 44px) 40px; transform: rotate(-1.2deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  clip-path: polygon(0% 1.5%, 6% 0%, 14% 1.2%, 23% 0.2%, 33% 1.4%, 44% 0.3%, 55% 1.3%, 66% 0%, 78% 1.1%, 89% 0.2%, 100% 1.3%,
                     100% 98.6%, 92% 100%, 81% 98.8%, 70% 99.9%, 58% 98.7%, 47% 99.8%, 35% 98.6%, 24% 99.9%, 12% 98.8%, 0% 99.7%);
}
.letter .body { font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.42rem); line-height: 1.6; max-width: 30em; }
.letter .sign { font-family: var(--script); font-size: 2.6rem; color: var(--rose-deep); margin-top: 18px; line-height: 1; }
.letter .place { font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: #7a5a22; margin-bottom: 18px; }
.polaroid {
  position: absolute; right: -14px; top: -26px; width: 116px; padding: 8px 8px 26px; background: #f6efe2;
  transform: rotate(6deg); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.polaroid div { aspect-ratio: 1; border: 1px dashed rgba(122, 90, 34, 0.6); display: grid; place-items: center; text-align: center; font-size: 0.72rem; line-height: 1.2; color: #7a5a22; font-style: italic; padding: 6px; }
.hero-letter-wrap { position: relative; padding-top: 18px; }
.hero .actions { margin-top: 32px; }

.fan { position: relative; height: clamp(340px, 44vw, 540px); min-width: 0; }
.fan img {
  position: absolute; left: 50%; top: 50%; width: 47%; aspect-ratio: 800 / 1250; object-fit: cover;
  border-radius: 3px 6px 6px 3px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(239, 230, 216, 0.06);
  transform: translate(-50%, -50%);
}
.fan .f-left { transform: translate(-50%, -50%) translateX(-52%) rotate(-9deg) scale(0.9); }
.fan .f-right { transform: translate(-50%, -50%) translateX(52%) rotate(9deg) scale(0.9); }
.fan .f-front { z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  .fan .f-left { animation: fanLeft 1.1s cubic-bezier(.2,.7,.2,1) both .15s; }
  .fan .f-right { animation: fanRight 1.1s cubic-bezier(.2,.7,.2,1) both .15s; }
}
@keyframes fanLeft { from { transform: translate(-50%, -50%) rotate(-2deg) scale(0.92); } }
@keyframes fanRight { from { transform: translate(-50%, -50%) rotate(2deg) scale(0.92); } }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .fan { height: clamp(300px, 86vw, 460px); }
  .fan img { width: 42%; }
  .polaroid { width: 92px; right: -4px; top: -30px; }
}

/* ---------- release strip ---------- */
.strip { border-block: 1px solid rgba(201, 164, 92, 0.16); background: var(--ink-deep); }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; padding-block: 18px; }
.strip a { color: var(--cream); text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; }
.strip a:hover .t { color: var(--gold); }
.strip .label { font-size: 0.75rem; }
.strip .t { font-style: italic; }

/* ---------- books ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { align-items: center; text-align: center; }
.section-head h2 { font-size: var(--step-3); }

.series { position: relative; overflow: hidden; }
.series::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/cracks.svg") right top / cover no-repeat; opacity: 1;
}
.series > .wrap { position: relative; }

.group + .group { margin-top: clamp(72px, 10vw, 120px); }
.group-title { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.group-title h2 { font-size: var(--step-2); font-style: italic; font-weight: 500; white-space: nowrap; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--gold-line); }
.series .group-title::after { height: 24px; background: url("../assets/crack-line.svg") center / 100% 100% no-repeat; }

.book { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.book + .book { margin-top: clamp(56px, 7vw, 88px); }
.book .cover img {
  width: 100%; aspect-ratio: 800 / 1250; object-fit: cover; border-radius: 3px 6px 6px 3px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(239, 230, 216, 0.06);
}
.book-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 40em; }
.book-info h4 { font-size: var(--step-3); line-height: 1.05; }
.status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--gold-line); color: var(--gold);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status[data-state="out"] { color: var(--cream); border-color: rgba(194, 47, 72, 0.7); background: rgba(194, 47, 72, 0.16); }
.status[data-state="out"]::before { background: var(--rose); }
.blurb { display: flex; flex-direction: column; gap: 14px; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 1rem; color: var(--dim); }
.meta span { font-variant-numeric: tabular-nums; }
.buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.cw { border: 1px solid rgba(201, 164, 92, 0.22); border-radius: 10px; background: rgba(8, 6, 7, 0.5); }
.cw summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px;
  font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream);
}
.cw summary::-webkit-details-marker { display: none; }
.cw summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; color: var(--gold); }
.cw[open] summary::after { content: "\2212"; }
.cw summary svg { width: 18px; height: 18px; color: var(--gold); }
.cw .cw-body { padding: 0 16px 16px; }

.next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.series .crack-line { margin-block: clamp(36px, 5vw, 56px); }
.next-card {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 18px; border: 1px solid rgba(201, 164, 92, 0.18); border-radius: 10px; background: rgba(25, 18, 26, 0.85);
}
.next-card img, .secret-cover { width: 96px; aspect-ratio: 800 / 1250; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55); }
.secret-cover {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: url("../assets/cracks.svg") 100% 0% / 420% no-repeat, radial-gradient(circle at 50% 40%, #2a1a22, #0b0709 70%);
  border: 1px solid rgba(201, 164, 92, 0.22);
  font-family: var(--display); font-weight: 700; letter-spacing: 0.14em; color: var(--cream); font-size: 0.72rem;
}
.secret-cover b { font-size: 1.6rem; color: var(--gold); font-weight: 500; letter-spacing: 0; }
.next-card .t { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; }
.next-card .t em { color: var(--dim); font-size: 1.1rem; }
.next-card .copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.next-card .status { font-size: 0.72rem; letter-spacing: 0.08em; white-space: nowrap; padding-inline: 12px; }

@media (max-width: 760px) {
  .book { grid-template-columns: minmax(0, 1fr); }
  .book .cover { max-width: 240px; }
  .next { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- quote band ---------- */
.quote { background: var(--ink-deep); border-block: 1px solid rgba(201, 164, 92, 0.16); text-align: center; }
.quote .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-block: clamp(64px, 9vw, 112px); }
.quote figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.quote blockquote { margin: 0; font-family: var(--script); font-size: clamp(2rem, 1.4rem + 3vw, 3.8rem); line-height: 1.25; color: var(--cream); max-width: 18em; }
.quote cite { font-style: normal; }

/* ---------- contact ---------- */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: 20px; }
.contact-intro h2 { font-size: var(--step-3); }
.form { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 4vw, 36px); border: 1px solid rgba(201, 164, 92, 0.2); border-radius: 14px; background: var(--ink-raised); }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--cream); background: var(--ink-deep);
  border: 1px solid rgba(201, 164, 92, 0.28); border-radius: 8px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { min-height: 1.4em; font-size: 1rem; color: var(--gold); }
@media (max-width: 860px) {
  .contact .wrap { grid-template-columns: minmax(0, 1fr); }
  .form .row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- formatting page ---------- */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(32px, 5vw, 56px); text-align: center; }
.page-hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.page-hero h1 { font-size: var(--step-4); }
.page-hero .todo { max-width: 40em; }
.spreads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; }
.spread figure { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.spread .pages {
  display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}
.spread .pages > div { background: var(--paper); display: grid; place-items: center; padding: 18px; }
.spread .pages > div:first-child { background: linear-gradient(to left, rgba(0, 0, 0, 0.16), transparent 14%), var(--paper); }
.spread .pages > div:last-child { background: linear-gradient(to right, rgba(0, 0, 0, 0.16), transparent 14%), var(--paper); }
.spread .pages .todo { font-size: 0.85rem; }
.spread figcaption { color: var(--muted); font-style: italic; text-align: center; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.review { padding: 28px; border: 1px solid rgba(201, 164, 92, 0.2); border-radius: 12px; background: var(--ink-raised); display: flex; flex-direction: column; gap: 14px; }
.review .mark { font-family: var(--script); font-size: 3rem; line-height: 0.6; color: var(--rose); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(201, 164, 92, 0.14); background: var(--ink-deep); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-block: 28px; font-size: 0.95rem; color: var(--dim); }

/* ---------- links page ---------- */
.links-page { min-height: 100vh; background: radial-gradient(ellipse at 50% 0%, var(--rose-glow), transparent 55%), var(--ink); }
.links { max-width: 520px; margin-inline: auto; padding: clamp(40px, 8vw, 72px) 16px 48px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.links .seal { position: static; transform: none; }
.links h1 { font-size: 2.4rem; letter-spacing: 0.14em; text-transform: uppercase; }
.links .seen { font-family: var(--script); font-size: 2rem; color: var(--rose); line-height: 1; }
.link-list { list-style: none; margin: 10px 0 0; padding: 0; width: 100%; display: flex; flex-direction: column; gap: 12px; }
.link-list a {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 10px 18px; text-align: left;
  border: 1px solid rgba(201, 164, 92, 0.24); border-radius: 12px; background: var(--ink-raised);
  color: var(--cream); text-decoration: none; transition: border-color .2s, background-color .2s;
}
.link-list a:hover { border-color: var(--gold); background: #21171f; color: var(--cream); }
.link-list img { width: 40px; aspect-ratio: 800 / 1250; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.link-list .ico { width: 40px; display: grid; place-items: center; flex-shrink: 0; color: var(--gold); }
.link-list .ico svg { width: 22px; height: 22px; }
.link-list .txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.link-list .txt b { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.link-list .txt small { color: var(--dim); font-size: 0.9rem; }
.links .foot { margin-top: 18px; font-size: 0.9rem; color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.gate[hidden] { display: none; }
.letter { padding-top: 78px; }
.spreads { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

/* ---------- entrance: the heart breaks as you enter ---------- */
.gate-heart { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; visibility: hidden; }
.gate-heart svg { width: min(230px, 52vw); height: auto; overflow: visible; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 26px rgba(194, 47, 72, 0.35)); }
.heart-whole, .half { transform-box: fill-box; transform-origin: 50% 50%; }
.heart-crack { fill: none; stroke: #120709; stroke-width: 2.4; stroke-linejoin: miter; stroke-dasharray: 100; stroke-dashoffset: 100; }
.gate.breaking { animation: gateOut 0.6s ease 1.95s forwards; }
.gate.breaking .gate-card { animation: cardOut 0.4s ease forwards; }
.gate.breaking .gate-heart { visibility: visible; }
.gate.breaking .heart-whole { animation: heartIn 0.5s cubic-bezier(.2,.9,.3,1.25) 0.2s both; }
.gate.breaking .heart-crack { animation: crackDraw 0.38s steps(6, end) 0.72s forwards, fadeOut 0.3s ease 1.15s forwards; }
.gate.breaking .half-l { animation: splitL 1s cubic-bezier(.55,0,.8,.45) 1.1s forwards; }
.gate.breaking .half-r { animation: splitR 1s cubic-bezier(.55,0,.8,.45) 1.1s forwards; }
@keyframes cardOut { to { opacity: 0; transform: scale(0.96); } }
@keyframes heartIn { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }
@keyframes crackDraw { to { stroke-dashoffset: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes splitL { 55% { opacity: 1; } to { transform: translate(-22%, 30%) rotate(-24deg); opacity: 0; } }
@keyframes splitR { 55% { opacity: 1; } to { transform: translate(22%, 34%) rotate(20deg); opacity: 0; } }
@keyframes gateOut { to { opacity: 0; } }

/* ---------- her portrait ---------- */
.stamp {
  position: absolute; right: -18px; top: -34px; width: 132px; height: 132px; border-radius: 50%;
  border: 3px solid var(--gold); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5); transform: rotate(6deg); object-fit: cover;
}
@media (max-width: 900px) { .stamp { width: 100px; height: 100px; right: -6px; top: -36px; } }
.excerpt .cw-body p + p { margin-top: 12px; }
.excerpt .cw-body { color: var(--muted); max-height: 60vh; overflow-y: auto; }

/* ---------- about ---------- */
.about .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.portrait img { width: 100%; max-width: 460px; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 60px rgba(194, 47, 72, 0.18); margin-inline: auto; }
.about-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; max-width: 38em; }
.about-copy h2 { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 2rem + 3vw, 4rem); color: var(--cream); }
.about-copy > p:not(.label) { color: var(--muted); }
.facts { margin-top: 10px; display: flex; flex-direction: column; gap: 14px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { padding: 7px 14px; border: 1px solid var(--gold-line); border-radius: 999px; font-size: 1rem; color: var(--cream); background: var(--ink-raised); }
@media (max-width: 860px) { .about .wrap { grid-template-columns: minmax(0, 1fr); } .portrait img { max-width: 300px; } }

.links .avatar { width: 112px; height: 112px; border-radius: 50%; border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }

/* ---------- real glass photo behind the Broken Series ---------- */
.series::before {
  background:
    linear-gradient(to right, var(--ink) 0%, rgba(15, 11, 13, 0.94) 30%, rgba(15, 11, 13, 0.62) 68%, rgba(15, 11, 13, 0.3) 100%),
    linear-gradient(to bottom, rgba(15, 11, 13, 0) 55%, var(--ink) 100%),
    url("../assets/glass.webp") right top / min(62%, 760px) auto no-repeat;
  opacity: 1;
}
.secret-cover { background: linear-gradient(rgba(11, 7, 9, 0.35), rgba(11, 7, 9, 0.75)), url("../assets/glass-sm.webp") 70% 30% / cover no-repeat; }
@media (max-width: 760px) {
  .series::before {
    background:
      linear-gradient(to bottom, rgba(15, 11, 13, 0.35) 0%, rgba(15, 11, 13, 0.85) 45%, var(--ink) 80%),
      url("../assets/glass.webp") center top / 100% auto no-repeat;
  }
}
@media (max-width: 760px) {
  .series .group-title::after { height: 1px; background: var(--gold-line); }
  .series .crack-line { height: 1px; background: var(--gold-line); }
}

/* ---------- reader reviews ---------- */
.reader-reviews { margin-top: clamp(40px, 6vw, 64px); display: flex; flex-direction: column; gap: 18px; }
.review-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.review-card {
  margin: 0; padding: 22px; border: 1px solid rgba(201, 164, 92, 0.2); border-radius: 12px;
  background: rgba(25, 18, 26, 0.88); display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.stars { display: flex; gap: 3px; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }
.r-title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--cream); }
.review-card blockquote { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.6; flex-grow: 1; }
.review-card figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 0.9rem; color: var(--dim); }
.review-card figcaption b { color: var(--cream); font-weight: 500; }
@media (max-width: 900px) { .review-track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .review-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; scrollbar-width: thin;
  }
  .review-card { flex: 0 0 84%; scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .review-track { scroll-padding-inline: var(--gutter); align-items: flex-start; }
}
/* review wall: cards keep their natural height, no empty gaps (larger screens only) */
@media (min-width: 641px) {
  .review-track { display: block; columns: 3 260px; column-gap: 18px; }
  .review-card { break-inside: avoid; margin-bottom: 18px; }
  .review-card blockquote { flex-grow: 0; }
}
