/* =========================================================
   Stevens Youkabari — Ever After, Savannah
   Editorial romance design system
   ========================================================= */

:root {
  --paper:        #fcf7ee;
  --paper-warm:   #f6ecdb;
  --paper-deep:   #efe1c9;
  --ink:          #17211c;
  --ink-rich:     #101814;
  --ink-soft:     #4c554d;
  --ink-faint:    #61665e;   /* was #7d837a — 3.4:1 on paper, under AA for the small caps */
  --rose:         #a4434c;
  --rose-deep:    #88323b;
  --rose-wash:    rgba(164, 67, 76, 0.09);
  --gold:         #b18a4e;
  --gold-soft:    rgba(177, 138, 78, 0.34);
  --moss:         #55654f;

  --line:         rgba(23, 33, 28, 0.15);
  --line-soft:    rgba(23, 33, 28, 0.075);
  --line-gold:    rgba(177, 138, 78, 0.42);

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --pad: clamp(4rem, 8vw, 7.5rem);

  --shadow-cover:
    0 1px 1px rgba(23, 33, 28, .08),
    0 10px 20px -12px rgba(23, 33, 28, .38),
    0 34px 60px -34px rgba(23, 33, 28, .55);
  --shadow-cover-lift:
    0 2px 2px rgba(23, 33, 28, .10),
    0 16px 28px -14px rgba(23, 33, 28, .40),
    0 46px 70px -34px rgba(23, 33, 28, .55);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.16vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* fine paper tooth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(23, 33, 28, .34) 0.5px, transparent 0.6px);
  background-size: 4px 4px;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
::selection { background: var(--rose); color: #fdf7ec; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 4px;
  border-radius: 2px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: .7rem 1.1rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------
   Type primitives
   --------------------------------------------------------- */

.eyebrow {
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  line-height: 1;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--gold);
  flex: none;
}

h1, h2, h3, h4 {
  text-wrap: balance;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
  font-feature-settings: "liga" 1, "kern" 1;
}

.section-title {
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.2rem);
  line-height: .98;
  letter-spacing: -0.028em;
}
.section-title em {
  font-style: italic;
  color: var(--rose);
}

.lede {
  font-family: var(--display);
  font-size: clamp(1.3rem, 1rem + .95vw, 1.7rem);
  line-height: 1.48;
  color: var(--ink-soft);
  font-weight: 300;
  margin: 1.6rem 0 0;
  max-width: 34ch;
}

.prose p { margin: 0 0 1.15rem; text-wrap: pretty; }
.prose p:last-child { margin-bottom: 0; }

/* fleuron divider */
.fleuron {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
  font-size: .85rem;
  padding: 2.5rem 0 0;
}
.fleuron::before,
.fleuron::after {
  content: "";
  height: 1px;
  width: clamp(2rem, 8vw, 6rem);
  background: var(--line-gold);
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1.25rem 0;
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.site-header.is-stuck {
  background: rgba(252, 247, 238, .9);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  padding: .75rem 0;
  box-shadow: 0 1px 0 var(--line-soft), 0 12px 30px -30px rgba(23,33,28,.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  font-family: var(--display);
  font-size: clamp(1rem, .95rem + .35vw, 1.22rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
}
.wordmark span {
  font-family: var(--body);
  font-size: .55rem;
  letter-spacing: .26em;
  color: var(--ink-faint);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2vw, 1.9rem);
}
.nav a {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .22s ease, border-color .22s ease;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); border-color: var(--gold); }

.nav .nav-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: .58rem 1.25rem;
  color: var(--ink);
  transition: background .22s ease, color .22s ease;
}
.nav .nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55rem 1rem;
  font-family: var(--body);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

/* ---------------------------------------------------------
   Language switcher
   --------------------------------------------------------- */

.nav { margin-left: auto; }

.header-tools {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang a {
  display: inline-block;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-faint);
  padding: .34rem .52rem;
  border-radius: 999px;
  line-height: 1;
  transition: color .2s ease, background .2s ease;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  isolation: isolate;
}

/* warm light wash */
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -15% auto -25%;
  height: 130%;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 72% 28%, rgba(164, 67, 76, .10), transparent 70%),
    radial-gradient(55% 50% at 20% 12%, rgba(177, 138, 78, .13), transparent 72%),
    radial-gradient(90% 80% at 50% 0%, rgba(246, 236, 219, .9), transparent 65%);
}

/* fine concentric arcs — an echo of avenue oaks */
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -18vw;
  top: -22vw;
  width: 78vw;
  height: 78vw;
  max-width: 1000px;
  max-height: 1000px;
  border-radius: 50%;
  opacity: .5;
  background:
    repeating-radial-gradient(circle at 50% 50%,
      rgba(177, 138, 78, .14) 0 1px,
      transparent 1px 46px);
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy { animation: rise 1s cubic-bezier(.2,.75,.2,1) both; }

.hero h1 {
  font-size: clamp(3.2rem, 1.2rem + 7vw, 7rem);
  line-height: .86;
  letter-spacing: -0.04em;
  margin-left: -0.04em;
}
.hero h1 .line-1 {
  display: block;
  font-size: .58em;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero h1 .line-2 {
  display: block;
  font-style: italic;
  color: var(--rose);
  font-weight: 400;
}

.hero-tagline {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1rem + .75vw, 1.5rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 1.9rem 0 0;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
  margin-top: 2.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.75,.2,1), background .25s ease,
              color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 28px -16px rgba(23, 33, 28, .85);
}
.btn-primary:hover {
  background: var(--rose);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -16px rgba(164, 67, 76, .75);
}
.btn-ghost {
  border-color: var(--line-gold);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(177, 138, 78, .1);
  transform: translateY(-2px);
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.hero-meta {
  margin: 2.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.3rem;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero-meta span { display: inline-flex; align-items: center; gap: .6rem; }
.hero-meta span::before {
  content: "✦";
  font-size: .5rem;
  color: var(--gold);
}

/* ---- cover fan ---- */

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(360px, 44vw, 540px);
  animation: rise 1.15s cubic-bezier(.2,.75,.2,1) .14s both;
}
.fan {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1 / 0.95;
}
.fan img {
  position: absolute;
  width: 57%;
  border-radius: 2px;
  box-shadow: var(--shadow-cover);
  transition: transform .6s cubic-bezier(.2,.75,.2,1), box-shadow .6s ease;
  background: var(--paper-deep);
}
.fan picture:nth-child(1) img {
  left: -1%;
  top: 9%;
  transform: rotate(-10deg);
  z-index: 1;
}
.fan picture:nth-child(2) img {
  left: 20%;
  top: 16%;
  transform: rotate(-3.5deg);
  z-index: 2;
}
.fan picture:nth-child(3) img {
  left: 41%;
  top: 4%;
  transform: rotate(7deg);
  z-index: 3;
}
.fan:hover picture:nth-child(1) img { transform: rotate(-13deg) translate(-12px, 5px); }
.fan:hover picture:nth-child(2) img { transform: rotate(-4.5deg) translateY(-7px); }
.fan:hover picture:nth-child(3) img { transform: rotate(10deg) translate(14px, -7px); }

.hero-sticker {
  position: absolute;
  z-index: 4;
  right: -7%;
  bottom: -1%;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--rose);
  color: #fdf6e9;
  display: grid;
  place-content: center;
  text-align: center;
  font-size: .54rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.6;
  transform: rotate(-9deg);
  box-shadow: 0 16px 32px -16px rgba(136, 50, 59, .9);
}
.hero-sticker::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(253, 246, 233, .45);
  border-radius: 50%;
}
.hero-sticker strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: .15rem;
}

/* ---------------------------------------------------------
   Ribbon (ink band)
   --------------------------------------------------------- */

.ribbon {
  background: var(--ink);
  color: var(--paper);
  padding: 1.05rem 0;
  overflow: hidden;
  position: relative;
}
.ribbon-track {
  display: flex;
  width: max-content;
  animation: slide 46s linear infinite;
}
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-group {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  padding-right: 2.6rem;
}
.ribbon-group span {
  font-family: var(--display);
  font-size: clamp(1rem, .9rem + .3vw, 1.15rem);
  font-style: italic;
  color: rgba(252, 247, 238, .85);
  white-space: nowrap;
}
.ribbon-group i {
  font-style: normal;
  color: var(--gold);
  font-size: .6rem;
}

/* ---------------------------------------------------------
   Series
   --------------------------------------------------------- */

.series { padding: var(--pad) 0 clamp(2rem, 4vw, 3rem); }

.series-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.series-note {
  border-top: 1px solid var(--line-gold);
  padding-top: 2rem;
}
.series-note h3 {
  font-family: var(--body);
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  margin-bottom: 1.35rem;
}
.series-note ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .95rem;
}
.series-note li {
  display: flex;
  gap: 1rem;
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.series-note li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: .62rem;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(177, 138, 78, .1);
}

/* ---------------------------------------------------------
   Table of contents
   --------------------------------------------------------- */

.toc-wrap {
  background: linear-gradient(180deg, var(--paper-warm), rgba(246, 236, 219, .35));
  border-block: 1px solid var(--line-soft);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.toc-label {
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 1.75rem;
}
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: .1rem;
}
.toc-list li { margin: 0; }
.toc-list a {
  display: flex;
  align-items: baseline;
  gap: .9rem;
  padding: .72rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  transition: color .2s ease, border-color .2s ease;
}
.toc-list a:hover { color: var(--rose); border-color: var(--gold-soft); }
.toc-num {
  font-family: var(--display);
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--gold);
  flex: none;
  width: 1.4rem;
}
.toc-title {
  font-family: var(--display);
  font-size: clamp(1.15rem, 1rem + .45vw, 1.35rem);
  line-height: 1.2;
  color: var(--ink);
  transition: color .2s ease;
}
.toc-list a:hover .toc-title { color: var(--rose); }
.toc-leader {
  flex: 1;
  min-width: 1rem;
  height: 1px;
  border-bottom: 1px dotted rgba(23, 33, 28, .28);
  transform: translateY(-.28rem);
}
.toc-trope {
  font-size: .6rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex: none;
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Books
   --------------------------------------------------------- */

.books {
  padding: var(--pad) 0 clamp(3rem, 6vw, 5rem);
}

.book {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5.5vw, 5.5rem);
  align-items: center;
  padding: clamp(2.75rem, 5vw, 4.25rem) 0;
  border-top: 1px solid var(--line-soft);
}
.book:first-child { border-top: none; padding-top: 0; }

.book:nth-child(even) { grid-template-columns: minmax(0, 1.4fr) minmax(0, .82fr); }
.book:nth-child(even) .book-cover { order: 2; margin-left: auto; }

.book-cover {
  position: relative;
  width: 100%;
  max-width: 340px;
}
.book-cover picture, .fan picture { display: contents; }

.book-cover img {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 938 / 1500;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow-cover);
  transition: transform .5s cubic-bezier(.2,.75,.2,1), box-shadow .5s ease;
}
/* gold offset frame */
.book-cover::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border: 1px solid var(--gold-soft);
  transform: translate(14px, 14px);
  border-radius: 2px;
  transition: transform .5s cubic-bezier(.2,.75,.2,1);
}
/* spine + page block */
.book-cover::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 0;
  top: 0;
  bottom: 0;
  width: 11px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg,
    rgba(23, 33, 28, .34) 0%,
    rgba(23, 33, 28, .12) 45%,
    rgba(255, 255, 255, .16) 75%,
    transparent 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.book:hover .book-cover img {
  transform: translateY(-8px) rotate(-.5deg);
  box-shadow: var(--shadow-cover-lift);
}
.book:hover .book-cover::before { transform: translate(18px, 18px); }

.book-index {
  position: absolute;
  left: -0.6rem;
  top: -3.1rem;
  font-family: var(--display);
  font-size: clamp(4.5rem, 2.5rem + 6vw, 8rem);
  line-height: 1;
  color: var(--rose);
  opacity: .13;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -.04em;
}

.book-body { max-width: 58ch; }

.book-tropes {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  margin-bottom: 1.3rem;
}
.book-tropes span {
  font-size: .6rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--rose-deep);
  background: var(--rose-wash);
  border: 1px solid rgba(164, 67, 76, .16);
  border-radius: 999px;
  padding: .34rem .78rem;
  line-height: 1.4;
}

.book-title {
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.028em;
}
.book-subtitle {
  font-family: var(--body);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: .95rem 0 0;
  line-height: 1.6;
}

.book-blurb {
  margin: 1.6rem 0 0;
  color: var(--ink-soft);
  font-size: .975rem;
  line-height: 1.78;
  text-wrap: pretty;
}
.book-blurb p { margin: 0 0 .85rem; }
.book-blurb p:last-child { margin-bottom: 0; }
.book-blurb p:first-child {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem);
  line-height: 1.32;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -.01em;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  margin-top: 2rem;
}
.book-actions .btn { padding: .82rem 1.45rem; font-size: .68rem; letter-spacing: .15em; }
.book-ku {
  margin: .85rem 0 0;
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.book-new {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--body);
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--moss);
  vertical-align: middle;
  margin-left: .5rem;
  transform: translateY(-.25em);
}
.book-new::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 3px rgba(85, 101, 79, .18);
}

/* ---------------------------------------------------------
   Kindle panel
   --------------------------------------------------------- */

.kindle-strip {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 3px;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(164, 67, 76, .22), transparent 62%),
    var(--ink);
  color: rgba(252, 247, 238, .8);
  padding: clamp(2rem, 4vw, 3.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 2rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.kindle-strip::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(177, 138, 78, .28);
  border-radius: 2px;
  pointer-events: none;
}
.kindle-strip h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem);
  color: var(--paper);
  margin-bottom: .65rem;
  line-height: 1.05;
}
.kindle-strip p {
  margin: 0;
  color: rgba(252, 247, 238, .72);
  font-size: .93rem;
  max-width: 60ch;
  line-height: 1.7;
}
.kindle-strip .btn-primary {
  background: var(--paper);
  color: var(--ink);
  box-shadow: none;
}
.kindle-strip .btn-primary:hover {
  background: var(--rose);
  color: var(--paper);
}

/* ---------------------------------------------------------
   The Ember Courts (second series)
   --------------------------------------------------------- */

/* One band, so the second series reads as its own book rather than a
   continuation of the Ever After cards above it. */
.ember {
  padding: var(--pad) 0 clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(70% 60% at 92% 2%, rgba(164, 67, 76, .08), transparent 70%),
    linear-gradient(180deg, rgba(239, 225, 201, .42), transparent 38%);
}
.ember .series-grid { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.ember .kindle-strip {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(177, 138, 78, .26), transparent 62%),
    var(--ink-rich);
}

/* ---------------------------------------------------------
   About
   --------------------------------------------------------- */

.about {
  padding: var(--pad) 0;
  background: linear-gradient(180deg, rgba(246, 236, 219, .55), transparent 68%);
  border-top: 1px solid var(--line-soft);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

/* author portrait — same gold offset frame language as the book plates */
.about-portrait {
  position: relative;
  display: grid;
  width: min(100%, 330px);
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
}
.about-portrait picture { grid-area: 1 / 1; }

.about-portrait img {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: var(--shadow-cover);
}
/* The photo needs no script to appear: the image is opaque once decoded and
   sits over the monogram plate, which stays visible while it loads — or
   permanently, if the file is ever missing and script.js marks it so. */
.about-portrait::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  height: calc(100% - 12px);
  border: 1px solid var(--line-gold);
  border-radius: 2px;
  transform: translate(12px, 12px);
}
.portrait-fallback {
  grid-area: 1 / 1;
  display: grid;
  place-content: center;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(4rem, 3rem + 4vw, 6rem);
  line-height: 1;
  box-shadow: var(--shadow-cover);
}
.about-portrait.no-photo img { display: none; }

.about-quote {
  margin-top: .6rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.4rem);
  line-height: 1.28;
  font-style: italic;
  color: var(--ink);
  margin: 0;
  position: relative;
  padding-top: 2.2rem;
}
.about-quote::before {
  content: "“";
  position: absolute;
  top: -0.55rem;
  left: -0.06em;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: .42;
}
.about-quote cite {
  display: block;
  font-family: var(--body);
  font-style: normal;
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
}

.about-body .prose { font-size: 1.01rem; color: var(--ink-soft); }
.about-body .prose p:first-child::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 3.9rem;
  line-height: .8;
  padding: .16em .14em 0 0;
  color: var(--rose);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line-gold);
  padding-top: 1.9rem;
}
.facts div strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -.02em;
}
.facts div span {
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-top: .6rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Also by
   --------------------------------------------------------- */

.also { padding: 0 0 var(--pad); }

.also-card {
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
}
.also-card picture, .about-portrait picture { display: block; }

.also-card img {
  width: 100%;
  border-radius: 2px;
  box-shadow: var(--shadow-cover);
  transition: transform .5s cubic-bezier(.2,.75,.2,1);
}
.also-card:hover img { transform: translateY(-6px); }
.also-card h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem);
  line-height: 1.08;
  max-width: 30ch;
}
.also-card .also-kicker {
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 .85rem;
}
.also-card p.also-copy {
  margin: .95rem 0 0;
  color: var(--ink-soft);
  font-size: .93rem;
  max-width: 54ch;
  line-height: 1.72;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  background: var(--ink-rich);
  color: rgba(252, 247, 238, .68);
  padding: clamp(3.25rem, 6vw, 5rem) 0 1.75rem;
  position: relative;
  z-index: 4;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(177, 138, 78, .26);
}
.footer-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 1.2rem + 1.7vw, 2.6rem);
  color: var(--paper);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -.015em;
}
.footer-title em { font-style: italic; color: #e8c9a0; }
.footer-top p {
  margin: 0;
  max-width: 44ch;
  font-size: .91rem;
  line-height: 1.72;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  align-items: flex-start;
}
.footer-links a {
  color: rgba(252, 247, 238, .74);
  text-decoration: none;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.footer-links a:hover { color: var(--paper); border-color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  font-size: .74rem;
  color: rgba(252, 247, 238, .52);
}
.footer-bottom small { font-size: inherit; }

.footer-credit {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(252, 247, 238, .66);
}
.footer-credit a {
  color: var(--paper);
  text-decoration: none;
  letter-spacing: .16em;
  border-bottom: 1px solid rgba(232, 201, 160, .4);
  padding-bottom: 1px;
  transition: border-color .2s ease, color .2s ease;
}
.footer-credit a:hover { border-color: var(--gold); color: #fff; }

/* ---------------------------------------------------------
   SMARTSYTES promo banner
   --------------------------------------------------------- */

.promo-wrap { padding: 0 0 clamp(2.5rem, 5vw, 4rem); }

.promo {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(1.1rem, 2.4vw, 1.9rem);
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(120% 170% at 100% 50%, rgba(255, 255, 255, .13), transparent 62%),
    linear-gradient(118deg, #2b2c5c 0%, #3b3b79 55%, #2b2c5c 100%);
  box-shadow: 0 18px 40px -30px rgba(25, 25, 55, .95);
  transition: box-shadow .3s ease, transform .3s ease;
}
.promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 50px -30px rgba(25, 25, 55, .95);
}
/* concentric arcs echoing the ad artwork */
.promo::after {
  content: "";
  position: absolute;
  right: -6%;
  top: 50%;
  width: clamp(220px, 30vw, 360px);
  height: clamp(220px, 30vw, 360px);
  transform: translateY(-50%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%,
    rgba(255, 255, 255, .18) 0 1px,
    transparent 1px 15px);
  opacity: .45;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 25%, transparent 70%);
}

.promo-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  background: #fbf6ec;
  border-radius: 3px;
  padding: .7rem 1rem;
  justify-self: start;
}
.promo-brand img {
  width: clamp(112px, 12vw, 152px);
  height: auto;
}

.promo-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.promo-kicker {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
}
.promo-headline {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(1.05rem, .85rem + 1.05vw, 1.55rem);
  letter-spacing: -.012em;
  line-height: 1.2;
  color: #fff;
}
.promo-headline b {
  color: #f6ab42;
  font-weight: 700;
}

.promo-cta {
  position: relative;
  z-index: 1;
  background: #f0a43c;
  color: #221d33;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .85rem 1.4rem;
  border-radius: 3px;
  white-space: nowrap;
  transition: background .25s ease, transform .25s ease;
}
.promo:hover .promo-cta {
  background: #ffb54d;
  transform: translateX(2px);
}

/* ---------------------------------------------------------
   Motion
   --------------------------------------------------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Content is visible by default; the js flag opts into the reveal effect
   so a failed or blocked script never hides the page. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s cubic-bezier(.2,.75,.2,1), transform .9s cubic-bezier(.2,.75,.2,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-art { order: -1; min-height: 340px; }
  .fan { width: min(100%, 400px); }
  .hero h1 { font-size: clamp(2.9rem, 11vw, 4.6rem); }
  .hero::after { right: -40vw; top: -30vw; width: 110vw; height: 110vw; }
  .series-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .about-portrait { max-width: 280px; }
  .toc-list { grid-template-columns: 1fr; }
  .also-card { grid-template-columns: 130px minmax(0, 1fr); row-gap: 1.75rem; }
  .also-card .also-action { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .hero-art { padding-bottom: 1rem; }
  .fan { aspect-ratio: 1 / 1.05; }
  .fan img { width: 53%; }
  .fan picture:nth-child(1) img { left: 0; top: 11%; }
  .fan picture:nth-child(2) img { left: 21%; top: 15%; }
  .fan picture:nth-child(3) img { left: 42%; top: 3%; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }

  .promo { grid-template-columns: auto 1fr; }
  .promo-cta { grid-column: 1 / -1; justify-self: start; }

  .site-header.nav-open .nav {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    background: var(--paper);
    border-block: 1px solid var(--line);
    padding: 1.25rem var(--gutter) 1.6rem;
    box-shadow: 0 26px 44px -34px rgba(23, 33, 28, .7);
  }
  .site-header.nav-open .nav a { padding: .6rem 0; width: 100%; }
  .site-header.nav-open .nav .nav-cta { width: auto; margin-top: .7rem; padding: .58rem 1.3rem; }

  /* .book:nth-child(even) outranks .book, so it needs resetting by name */
  .book,
  .book:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .book:nth-child(even) .book-cover { order: 0; margin-left: 0; }
  .book-cover { max-width: 205px; }
  .book-cover::before { transform: translate(9px, 9px); }
  .book:hover .book-cover::before { transform: translate(11px, 11px); }
  .book-index { top: -1.9rem; left: -1rem; font-size: 4.2rem; }

  .kindle-strip { grid-template-columns: 1fr; }
  /* four figures across need ~1000px before their labels fit on one line,
     so below tablet width they go two by two instead of shrinking further */
  .facts { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-sticker { width: 88px; height: 88px; font-size: .48rem; right: -2%; }
  .hero-sticker strong { font-size: 1.4rem; }
}

@media (max-width: 520px) {
  .wordmark { font-size: .82rem; letter-spacing: .12em; }
  .wordmark span { display: none; }
  .nav-toggle { padding: .5rem .85rem; font-size: .62rem; }
  .fan picture:nth-child(1) img { left: 0; }
  .fan picture:nth-child(3) img { left: 43%; }
  .also-card { grid-template-columns: 1fr; }
  .also-card img { max-width: 150px; }
  .about-portrait { max-width: 220px; }

  .promo { grid-template-columns: 1fr; }
  .promo::after { right: -30%; opacity: .3; }
  .facts { gap: 1.25rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: .6rem; }
  .hero-actions .btn { width: 100%; }

  /* the two buttons miss fitting side by side by a few pixels at 360, so
     they stack full width instead of leaving one ragged on its own row */
  .book-actions { flex-direction: column; align-items: stretch; gap: .55rem; }
  .toc-trope { display: none; }
}

@media (max-width: 430px) {
  /* two columns leave under ~180px per figure here, which breaks the
     French labels across two lines with a lone word — one column keeps
     all four whole */
  .facts { grid-template-columns: 1fr; gap: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .ribbon-track { animation: none; }
}
