/* ============================================================
   James Warren, books
   Design: the page travels from night to dawn.
   ============================================================ */

:root {
  /* Night side, taken from "What He Won't Say Out Loud" */
  --night: #080C15;
  --dusk: #111826;
  --glass: #1A2233;
  --glass-2: #232C40;

  /* Dawn side, taken from "The Slow Disappearance" */
  --dawn: #F6EAE1;
  --dawn-deep: #E8C9B8;
  --rose: #C08A85;
  --rose-soft: #DCAFA8;

  /* Shared */
  --paper: #F4EEE5;
  --paper-dim: #CFC6B8;
  --brass: #C6A57A;
  --brass-bright: #E0C79C;
  --ink: #1C1710;

  --maxw: 1180px;
  --gut: clamp(1.25rem, 5vw, 4rem);

  --f-display: "Bodoni Moda", Georgia, serif;
  --f-body: "Karla", system-ui, -apple-system, sans-serif;
  --f-hand: "Caveat", cursive;

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

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--brass); color: var(--night); }

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- layout helpers ---------- */

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.wrap-narrow {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--gut);
}

section { padding-block: clamp(4.5rem, 11vw, 8.5rem); position: relative; }

.s-night { background: var(--night); }
.s-dusk  { background: var(--dusk); }
.s-glass { background: var(--glass); }
.s-dawn  { background: var(--dawn); color: var(--ink); }
.s-paper { background: var(--paper); color: var(--ink); }

/* the transition from night into dawn */
.s-daybreak {
  background: linear-gradient(175deg, var(--glass) 0%, #3A3140 38%, #86616B 66%, var(--dawn-deep) 100%);
  color: var(--paper);
}

.lede {
  font-size: clamp(1.125rem, 2.2vw, 1.3rem);
  line-height: 1.66;
  color: var(--paper-dim);
}
.s-dawn .lede, .s-paper .lede { color: #5A5048; }

/* ---------- section heading ---------- */

.head { max-width: 42ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.head.center { margin-inline: auto; text-align: center; }

.head h2 {
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  margin-bottom: .75rem;
}

.head p { color: var(--paper-dim); font-size: 1.0625rem; }
.s-dawn .head p, .s-paper .head p { color: #6B6057; }

/* a hairline that reads like the divider on the book covers */
.rule {
  width: 68px;
  height: 1px;
  background: var(--brass);
  margin-bottom: 1.75rem;
  position: relative;
}
.rule::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 5px; height: 5px;
  background: var(--brass);
  transform: translate(-50%, -50%) rotate(45deg);
}
.head.center .rule { margin-inline: auto; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  padding: 1rem 1.9rem;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-brass {
  background: var(--brass);
  color: #17110A;
  border-color: var(--brass);
}
.btn-brass:hover { background: var(--brass-bright); border-color: var(--brass-bright); }

.btn-rose {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}
.btn-rose:hover { background: #AC7873; border-color: #AC7873; }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 238, 229, .35);
}
.btn-ghost:hover { border-color: var(--paper); background: rgba(244, 238, 229, .07); }

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-ink:hover { background: #35291B; border-color: #35291B; }

.btn-outline-ink {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28, 23, 16, .3);
}
.btn-outline-ink:hover { border-color: var(--ink); background: rgba(28, 23, 16, .05); }

.btn-wide { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 1.1rem;
  transition: background .35s var(--ease), padding .35s var(--ease),
              box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.stuck {
  background: rgba(8, 12, 21, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-block: .7rem;
  border-bottom-color: rgba(198, 165, 122, .18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.brand {
  font-family: var(--f-display);
  font-size: 1.18rem;
  letter-spacing: .16em;
  text-decoration: none;
  color: var(--paper);
  white-space: nowrap;
}
.brand span { color: var(--brass); }

.nav { display: flex; align-items: center; gap: 2rem; }

.nav a {
  text-decoration: none;
  font-size: .92rem;
  color: rgba(244, 238, 229, .78);
  transition: color .2s var(--ease);
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 1px;
  background: var(--brass);
  transition: width .28s var(--ease);
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after { width: 100%; }

.nav .btn { padding: .65rem 1.3rem; font-size: .88rem; }
.nav .btn::after { display: none; }
/* .nav a sets a colour; these keep the button legible */
.nav a.btn-brass { color: #17110A; }
.nav a.btn-rose  { color: #fff; }
.nav a.btn-brass:hover { color: #17110A; }
.nav a.btn-rose:hover  { color: #fff; }

.brand { position: relative; z-index: 101; }

/* Pages whose hero is light need dark header marks until the bar goes solid */
.site-header.on-light .brand { color: var(--ink); }
.site-header.on-light .brand span { color: var(--rose); }
.site-header.on-light .burger span { background: var(--ink); }

.site-header.on-light.stuck .brand { color: var(--paper); }
.site-header.on-light.stuck .brand span { color: var(--brass); }
.site-header.on-light.stuck .burger span { background: var(--paper); }

@media (min-width: 781px) {
  .site-header.on-light .nav a { color: #5A4B44; }
  .site-header.on-light .nav a:hover { color: var(--ink); }
  .site-header.on-light.stuck .nav a { color: rgba(244, 238, 229, .78); }
  .site-header.on-light.stuck .nav a:hover { color: var(--paper); }
  .site-header.on-light .nav a.btn-rose,
  .site-header.on-light .nav a.btn-brass { color: inherit; }
  .site-header.on-light .nav a.btn-rose { color: #fff; }
  .site-header.on-light .nav a.btn-brass { color: #17110A; }
}

/* while the mobile menu is open the panel behind is dark */
.site-header.menu-open .brand { color: var(--paper); }
.site-header.menu-open .brand span { color: var(--brass); }
.site-header.menu-open .burger span { background: var(--paper); }

.burger {
  display: none;
  background: none;
  border: 0;
  padding: .5rem;
  cursor: pointer;
  width: 44px; height: 44px;
}
.burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--paper);
  margin: 5px auto;
  transition: transform .3s var(--ease), opacity .25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: clamp(6.5rem, 14vh, 9rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--night) 4%, rgba(8,12,21,.86) 34%, rgba(8,12,21,.30) 70%, rgba(8,12,21,.62) 100%),
    linear-gradient(to right, rgba(8,12,21,.90) 0%, rgba(8,12,21,.55) 45%, rgba(8,12,21,.1) 78%);
}

.hero-inner { position: relative; z-index: 1; width: 100%; }

.hero-eyebrow {
  font-family: var(--f-hand);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--brass-bright);
  margin-bottom: .5rem;
  transform: rotate(-1.2deg);
}

.hero h1 {
  font-size: clamp(2.6rem, 8.2vw, 5.4rem);
  max-width: 16ch;
  margin-bottom: 1.3rem;
}

.hero-sub {
  max-width: 46ch;
  font-size: clamp(1.05rem, 2.2vw, 1.24rem);
  color: rgba(244, 238, 229, .84);
  line-height: 1.62;
  margin-bottom: 2rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(198, 165, 122, .22);
  max-width: 560px;
}
.hero-meta b {
  display: block;
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--brass);
  line-height: 1.1;
}
.hero-meta small {
  font-size: .82rem;
  color: rgba(244, 238, 229, .6);
  letter-spacing: .02em;
}

/* one orchestrated entrance, hero only */
.reveal-hero > * {
  opacity: 0;
  transform: translateY(18px);
  animation: riseIn .9s var(--ease) forwards;
}
.reveal-hero > *:nth-child(1) { animation-delay: .15s; }
.reveal-hero > *:nth-child(2) { animation-delay: .28s; }
.reveal-hero > *:nth-child(3) { animation-delay: .41s; }
.reveal-hero > *:nth-child(4) { animation-delay: .54s; }
.reveal-hero > *:nth-child(5) { animation-delay: .67s; }

@keyframes riseIn { to { opacity: 1; transform: none; } }

/* ---------- the porch / intro ---------- */

.porch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.porch-quote {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1.34;
  color: var(--paper);
}
.porch-quote em { color: var(--brass); font-style: italic; }

.porch-attrib {
  margin-top: 1.5rem;
  font-size: .9rem;
  color: var(--paper-dim);
  letter-spacing: .04em;
}

/* ---------- the two books: night | dawn split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100%;
}

.split-side {
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 4vw, 3.75rem);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.split-him {
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(38, 50, 74, .8) 0%, transparent 60%),
    var(--night);
}
.split-her {
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(255, 226, 210, .9) 0%, transparent 62%),
    var(--dawn);
  color: var(--ink);
}

.split-label {
  font-family: var(--f-hand);
  font-size: 1.35rem;
  transform: rotate(-1deg);
}
.split-him .split-label { color: var(--brass-bright); }
.split-her .split-label { color: var(--rose); }

.split-side h3 {
  font-size: clamp(1.85rem, 3.6vw, 2.55rem);
  line-height: 1.12;
}

.split-cover {
  width: min(300px, 74%);
  border-radius: 2px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .3);
  transition: transform .5s var(--ease);
}
.split-her .split-cover { box-shadow: 0 30px 60px -22px rgba(120, 80, 70, .45), 0 2px 8px rgba(120, 80, 70, .2); }
.split-cover:hover { transform: translateY(-8px) rotate(-.6deg); }

.split-side ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .7rem;
}
.split-side li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .98rem;
  line-height: 1.55;
}
.split-side li::before {
  content: "";
  position: absolute;
  left: .25rem; top: .62em;
  width: 5px; height: 5px;
  transform: rotate(45deg);
}
.split-him li::before { background: var(--brass); }
.split-her li::before { background: var(--rose); }
.split-him li { color: rgba(244, 238, 229, .82); }
.split-her li { color: #5A4B44; }

.price-line {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  font-family: var(--f-display);
  font-size: 2rem;
  margin-top: auto;
  padding-top: .5rem;
}
.price-line small {
  font-family: var(--f-body);
  font-size: .82rem;
  letter-spacing: .05em;
  opacity: .65;
}

/* ---------- bundle ---------- */

.bundle {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.bundle-media {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}

.bundle h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1rem; }

.save-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--f-hand);
  font-size: 1.4rem;
  color: #fff;
  background: var(--rose);
  padding: .35rem 1.1rem .5rem;
  border-radius: 999px;
  transform: rotate(-1.5deg);
  margin-bottom: 1.25rem;
}

.price-stack {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 1.75rem 0 1.5rem;
  flex-wrap: wrap;
}
.price-now {
  font-family: var(--f-display);
  font-size: clamp(2.8rem, 7vw, 4rem);
  line-height: 1;
  color: var(--paper);
}
.price-was {
  font-size: 1.15rem;
  text-decoration: line-through;
  opacity: .55;
}
.price-save {
  font-size: .88rem;
  letter-spacing: .06em;
  color: var(--dawn-deep);
  border: 1px solid rgba(232, 201, 184, .45);
  padding: .3rem .8rem;
  border-radius: 999px;
}

.bundle-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: .65rem;
}
.bundle-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.5;
}
.bundle-list svg { flex: 0 0 auto; margin-top: .28em; }

/* ---------- handwritten note cards ---------- */

.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  max-width: 900px;
  margin-inline: auto;
}
@media (max-width: 720px) {
  .notes { grid-template-columns: 1fr; }
}

.note {
  background: linear-gradient(#FBF6EC, #F1E7D6);
  color: #2A231A;
  padding: 2.25rem 2rem 1.75rem;
  border-radius: 2px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
  position: relative;
}
.note:nth-child(odd)  { transform: rotate(-.8deg); }
.note:nth-child(even) { transform: rotate(.7deg); }

.note::before {
  content: "";
  position: absolute;
  top: -9px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 74px; height: 22px;
  background: rgba(198, 165, 122, .38);
  box-shadow: inset 0 0 12px rgba(150, 120, 80, .3);
}

.note p {
  font-family: var(--f-hand);
  font-size: clamp(1.35rem, 2.6vw, 1.6rem);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.note cite {
  display: block;
  font-family: var(--f-body);
  font-style: normal;
  font-size: .78rem;
  letter-spacing: .07em;
  color: #8A7A63;
}

/* ---------- excerpt block ---------- */

.excerpt {
  border-left: 2px solid var(--brass);
  padding: .35rem 0 .35rem clamp(1.25rem, 3vw, 2.25rem);
  font-size: clamp(1.1rem, 2.1vw, 1.28rem);
  line-height: 1.72;
  color: var(--paper);
}
.s-dawn .excerpt, .s-paper .excerpt { color: var(--ink); border-left-color: var(--rose); }

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

.about {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-photo {
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 34px 70px -28px rgba(60, 40, 30, .5);
}

.about h2 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 1.25rem; }

.about-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(28, 23, 16, .14);
}
.about-facts b {
  display: block;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--rose);
}
.about-facts small { font-size: .84rem; color: #6B6057; }

/* ---------- chapters / contents ---------- */

.chapters {
  columns: 2;
  column-gap: clamp(2rem, 5vw, 4rem);
  list-style: none;
  padding: 0;
  margin: 0;
}
.chapters li {
  break-inside: avoid;
  padding: .72rem 0;
  border-bottom: 1px solid rgba(244, 238, 229, .12);
  font-size: .97rem;
  display: flex;
  gap: .9rem;
  line-height: 1.45;
}
.s-dawn .chapters li, .s-paper .chapters li { border-bottom-color: rgba(28, 23, 16, .12); }
.chapters li i {
  font-style: normal;
  font-family: var(--f-display);
  color: var(--brass);
  flex: 0 0 1.6rem;
}
.s-dawn .chapters li i, .s-paper .chapters li i { color: var(--rose); }

.part-title {
  font-family: var(--f-display);
  font-size: 1.25rem;
  color: var(--brass);
  margin: 2rem 0 .5rem;
  break-inside: avoid;
  break-after: avoid;
}
.s-dawn .part-title, .s-paper .part-title { color: var(--rose); }

/* ---------- faq ---------- */

.faq { max-width: 760px; margin-inline: auto; }

.faq details {
  border-bottom: 1px solid rgba(244, 238, 229, .14);
}
.s-dawn .faq details, .s-paper .faq details { border-bottom-color: rgba(28, 23, 16, .13); }

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.4rem 2.5rem 1.4rem 0;
  font-family: var(--f-display);
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  position: relative;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: .35rem; top: 50%;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--brass);
  border-bottom: 1.5px solid var(--brass);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .3s var(--ease);
}
.s-dawn .faq summary::after, .s-paper .faq summary::after {
  border-color: var(--rose);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details[open] summary { color: var(--brass); }
.s-dawn .faq details[open] summary, .s-paper .faq details[open] summary { color: var(--rose); }

.faq-body {
  padding: 0 1rem 1.6rem 0;
  color: var(--paper-dim);
  font-size: 1rem;
}
.s-dawn .faq-body, .s-paper .faq-body { color: #5F554C; }

/* ---------- final cta ---------- */

.final-cta { text-align: center; }
.final-cta h2 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}
.final-cta .lede { max-width: 52ch; margin-inline: auto; margin-bottom: 2.5rem; }
.final-cta .btn-row { justify-content: center; }

.cta-covers {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.cta-covers img {
  width: clamp(110px, 22vw, 175px);
  border-radius: 2px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6);
}
.cta-covers img:first-child { transform: rotate(-3deg); }
.cta-covers img:last-child  { transform: rotate(3deg); }

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

.site-footer {
  background: var(--night);
  color: var(--paper-dim);
  padding-block: clamp(3rem, 7vw, 4.5rem) 2rem;
  font-size: .92rem;
  border-top: 1px solid rgba(198, 165, 122, .16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-grid h4 {
  font-family: var(--f-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brass);
  margin-bottom: 1rem;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-grid a { text-decoration: none; opacity: .82; transition: opacity .2s, color .2s; }
.footer-grid a:hover { opacity: 1; color: var(--brass-bright); }

.footer-note {
  border-top: 1px solid rgba(244, 238, 229, .1);
  padding-top: 1.75rem;
  font-size: .82rem;
  line-height: 1.6;
  opacity: .6;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}


/* ---------- mobile sticky buy bar ---------- */

.buybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: .85rem;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(10, 14, 24, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(198, 165, 122, .25);
  transform: translateY(110%);
  transition: transform .4s var(--ease);
}
.buybar.show { transform: none; }
.buybar-text { line-height: 1.25; }
.buybar-text b { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.buybar-text small { font-size: .76rem; color: var(--paper-dim); }
.buybar .btn { padding: .8rem 1.35rem; font-size: .9rem; white-space: nowrap; }

/* ---------- book page hero ---------- */

.book-hero {
  padding-top: clamp(8rem, 16vw, 11rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.book-hero-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.book-hero-cover {
  border-radius: 2px;
  box-shadow: 0 40px 80px -25px rgba(0, 0, 0, .7), 0 3px 10px rgba(0, 0, 0, .35);
  width: min(420px, 100%);
}
.book-hero.tone-her .book-hero-cover {
  box-shadow: 0 40px 80px -28px rgba(120, 80, 70, .5), 0 3px 10px rgba(120, 80, 70, .2);
}

.book-hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.9rem);
  margin-bottom: 1rem;
}
.book-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.22rem);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.backlink {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  text-decoration: none;
  opacity: .7;
  margin-bottom: 1.5rem;
  transition: opacity .2s, gap .2s;
}
.backlink:hover { opacity: 1; gap: .8rem; }

.buy-box {
  border: 1px solid rgba(198, 165, 122, .3);
  padding: 1.5rem;
  border-radius: 2px;
  margin-top: 2rem;
  background: rgba(255, 255, 255, .03);
}
.tone-her .buy-box {
  border-color: rgba(192, 138, 133, .35);
  background: rgba(255, 255, 255, .45);
}
.buy-box .price-line { margin-top: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.for-you {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .9rem;
}
.for-you li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  line-height: 1.55;
}
.for-you svg { flex: 0 0 auto; margin-top: .3em; }

/* ---------- scroll reveal (subtle, section-level only) ---------- */

.js .fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .fade-up.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  .porch, .bundle, .about, .book-hero-grid, .two-col {
    grid-template-columns: 1fr;
  }
  .split { grid-template-columns: 1fr; }
  .chapters { columns: 1; }
  .about-photo { max-width: 420px; }
  .book-hero-cover { margin-inline: auto; }
  .bundle-media { order: -1; }
}

@media (max-width: 780px) {
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(8, 12, 21, .98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 5.5rem 1.5rem 2rem;
    transform: translateY(-101%);
    transition: transform .42s var(--ease);
    border-bottom: 1px solid rgba(198, 165, 122, .2);
    max-height: 100svh;
    overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a {
    padding: 1.05rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(244, 238, 229, .1);
  }
  .nav a::after { display: none; }
  .nav .btn {
    margin-top: 1.25rem;
    border-bottom: 0;
    padding: 1rem;
    font-size: .95rem;
  }
  .burger { display: block; z-index: 101; }
  .buybar { display: flex; }
  body { padding-bottom: 0; }

  .hero { min-height: 92svh; }
  .hero-media img { object-position: 70% center; }
  .book-hero-cover { margin-inline: auto; width: min(250px, 64%); }
  .book-hero { padding-top: clamp(6.5rem, 14vh, 8rem); }
  .hero-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1rem; }
  .hero-meta b { font-size: 1.4rem; }

  .cta-covers { gap: .75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .btn-row .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .buybar-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-hero > *, .fade-up { opacity: 1; transform: none; }
}
