:root {
  /* Desktop keeps the approved 110% design scale; mobile uses the original size. */
  --site-scale: 1.1;
  font-size: 110%;
  --navy: #06245f;
  --blue: #0961bd;
  --ink: #071d4b;
  --muted: #445377;
  --line: #d5dbe6;
  --white: #ffffff;
  --page: #fefefe;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  min-width: calc(320px * var(--site-scale));
  overflow-x: clip;
  background: #fff;
  color: var(--ink);
  font-size: calc(16px * var(--site-scale));
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell,
.site-header {
  width: min(calc(1180px * var(--site-scale)), calc(100% - calc(80px * var(--site-scale))));
  margin-inline: auto;
}

.site-header {
  min-height: calc(92px * var(--site-scale));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-wrap {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
}

@media (max-width: 902px) {
  html {
    scroll-padding-top: 6.25rem;
  }
}

@media (min-width: 903.1px) {
  .site-header {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    align-content: center;
  }

  html {
    scroll-padding-top: 7rem;
  }

}

.wordmark {
  color: #9badc7;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  font-size: 1.05rem;
}

.main-nav a {
  border-bottom: calc(2px * var(--site-scale)) solid transparent;
  padding: .45rem 0;
  transition: color .18s ease, border-color .18s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
  outline: none;
}

.menu-toggle {
  display: none;
  width: calc(44px * var(--site-scale));
  height: calc(44px * var(--site-scale));
  border: 0;
  background: transparent;
  padding: calc(10px * var(--site-scale));
}

.menu-toggle span {
  display: block;
  height: calc(2px * var(--site-scale));
  margin: calc(5px * var(--site-scale)) 0;
  background: var(--navy);
  border-radius: calc(4px * var(--site-scale));
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(calc(380px * var(--site-scale)), .97fr);
  align-items: start;
  gap: clamp(1.5rem, 5vw, 5.25rem);
  padding-top: 2.2rem;
}

.hero-copy {
  padding-top: 1rem;
}

.eyebrow {
  margin: 0 0 .35rem;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: .01em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: .3rem;
  color: var(--navy);
  font-size: clamp(3.5rem, 6.25vw, 5.05rem);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.lead {
  margin-bottom: 2.1rem;
  color: var(--navy);
  font-size: clamp(1.28rem, 2.2vw, 1.65rem);
  font-weight: 440;
  line-height: 1.35;
}

.book-copy {
  max-width: calc(560px * var(--site-scale));
}

.book-copy p {
  margin-bottom: .75rem;
}

.book-copy [data-edit-key="split"] {
  margin-bottom: -.45rem;
}

.book-copy .strong,
.book-copy .emphasis,
.book-copy [data-edit-key="split"] {
  font-weight: 750;
}

.book-copy .regular,
.book-copy [data-edit-key="buyers-intro"],
.book-copy [data-edit-key="buyers-detail"],
.book-copy [data-edit-key="showroom-intro"],
.book-copy [data-edit-key="showroom-agent"],
.book-copy [data-edit-key="promise"] {
  font-weight: 400;
}

.book-visual {
  margin: -.65rem 0 0;
  align-self: start;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

.book-visual img {
  width: 110%;
  max-width: none;
  margin-left: -5%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.book-blurb {
  max-width: calc(520px * var(--site-scale));
  margin: .4rem auto 0;
  color: var(--navy);
}

.book-blurb p {
  margin-bottom: .6rem;
  font-size: .9rem;
  line-height: 1.5;
}

.book-blurb .blurb-quote {
  font-size: 1rem;
  font-weight: 760;
}

.section-block {
  padding-top: 1.8rem;
}

.authors {
  padding-top: 5.25rem;
}

.section-block h2 {
  margin: 0 0 1.1rem;
  color: var(--navy);
  text-align: center;
  font-size: 1.65rem;
  line-height: 1.2;
}

#autoren {
  scroll-margin-top: 1.25rem;
}

.author-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.author-card {
  display: flow-root;
}

.portrait-editor {
  position: relative;
  float: left;
  width: calc(96px * var(--site-scale));
  margin: 0 1.15rem .45rem 0;
}

.portrait-frame {
  position: relative;
  width: calc(96px * var(--site-scale));
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #eef2f8;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .portrait-frame {
    transition: transform .28s ease;
  }

  .portrait-frame:hover {
    transform: translateY(calc(-2px * var(--site-scale))) scale(1.04);
  }
}

.portrait-frame img,
.portrait-adjust-preview img {
  position: absolute;
  left: calc(50% + var(--portrait-pan-x, 0%));
  top: calc(50% + var(--portrait-pan-y, 0%));
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(var(--portrait-scale, 1));
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
}

.portrait-frame img.is-landscape,
.portrait-adjust-preview img.is-landscape {
  width: auto;
  height: 100%;
  object-fit: initial;
}

.portrait-frame img.is-portrait,
.portrait-adjust-preview img.is-portrait {
  width: 100%;
  height: auto;
  object-fit: initial;
}

.portrait-actions {
  position: absolute;
  left: 50%;
  bottom: calc(5px * var(--site-scale));
  display: none;
  width: 88%;
  transform: translateX(-50%);
  flex-direction: column;
  gap: calc(3px * var(--site-scale));
}

.portrait-action {
  width: 100%;
  border: 0;
  border-radius: calc(999px * var(--site-scale));
  padding: .25rem .35rem;
  background: rgba(6, 36, 95, .92);
  color: white;
  cursor: pointer;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.portrait-action:hover,
.portrait-action:focus-visible {
  background: #0c347f;
  outline: none;
}

.replace-image input {
  position: absolute;
  width: calc(1px * var(--site-scale));
  height: calc(1px * var(--site-scale));
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.editing .portrait-actions {
  display: flex;
}

.author-card h3 {
  margin-bottom: .32rem;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.25;
}

.author-card p {
  margin-bottom: 0;
  font-size: .82rem;
  line-height: 1.62;
}

.author-card p a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.author-card p a:hover,
.author-card p a:focus-visible {
  color: var(--blue);
  outline: none;
}

.chapters {
  padding-top: 5.25rem;
}

.chapters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.chapters .chapters-label {
  margin: 0;
  color: var(--navy);
  text-align: left;
  font-size: 1.65rem;
  line-height: 1.2;
}

.chapters-controls {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  flex: none;
  min-width: calc(96px * var(--site-scale));
}

.chapters-controls button {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(48px * var(--site-scale));
  height: calc(48px * var(--site-scale));
  border: calc(1px * var(--site-scale)) solid #b9c9e5;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  transition: border-color .16s ease, background-color .16s ease;
}

.chapters-controls button:hover:not(:disabled),
.chapters-controls button:focus-visible {
  border-color: #b9c9e5;
  background: #fff;
  outline-offset: 2px;
}

.chapters-controls button:disabled {
  display: none;
}

.chapters-mobile-controls {
  display: none;
}

.chapters-track {
  display: grid;
  grid-template-columns: calc((100% - 2rem) / 3);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  gap: 1rem;
  margin: 0;
  padding: .35rem 0 .5rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: calc((100% - 2rem) / 3 + 1rem);
  scrollbar-width: none;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.chapters-track::-webkit-scrollbar {
  display: none;
}

.chapters-track:focus {
  outline: none;
}

.chapter-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 1.5rem;
  border: calc(1px * var(--site-scale)) solid #dce5f2;
  border-radius: calc(12px * var(--site-scale));
  background: #f2f6fc;
  color: var(--ink);
  scroll-snap-align: start;
}

.chapter-number {
  color: var(--blue);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.chapter-card h3 {
  margin: 1.5rem 0 .65rem;
  color: var(--navy);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.18;
}

.chapter-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.chapter-card.foreword-card {
  position: sticky;
  left: 0;
  z-index: 1;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.foreword-button {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  border: calc(1px * var(--site-scale)) solid #dce5f2;
  border-radius: calc(12px * var(--site-scale));
  padding: 1.5rem;
  background: #f2f6fc;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}

.foreword-button:active {
  border-color: #bfd0e9;
  background: #eaf2ff;
  transform: translateY(calc(-2px * var(--site-scale)));
}

@media (hover: hover) and (pointer: fine) {
  .foreword-button:hover {
    border-color: #bfd0e9;
    background: #eaf2ff;
    transform: translateY(calc(-2px * var(--site-scale)));
  }
}

.foreword-button:focus-visible {
  border-radius: calc(10px * var(--site-scale));
  outline: calc(3px * var(--site-scale)) solid #80aefa;
  outline-offset: calc(-5px * var(--site-scale));
}

.foreword-title {
  color: var(--blue);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.55;
  text-transform: uppercase;
}

.foreword-preview {
  display: grid;
  place-items: center;
  width: calc(74px * var(--site-scale));
  height: calc(74px * var(--site-scale));
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .02em;
  transform: rotate(-9deg);
}

@media (prefers-reduced-motion: no-preference) {
  .foreword-preview.is-visible {
    animation: preview-wiggle 65s linear infinite;
  }

  @keyframes preview-wiggle {
    0%, .4615%, 1.1538%, 2.6154%, 3.3077%, 4.7692%, 5.4615%, 7.6923%, 100% { transform: translateX(0) rotate(-9deg); }
    .6923%, 2.8462%, 5% { transform: translateX(calc(-2px * var(--site-scale))) rotate(-11deg); }
    .9231%, 3.0769%, 5.2308% { transform: translateX(calc(2px * var(--site-scale))) rotate(-7deg); }
  }
}

.foreword-read {
  border-bottom: calc(1px * var(--site-scale)) solid rgba(6, 36, 95, .5);
  padding-bottom: .2rem;
  font-size: 1rem;
  font-weight: 700;
}

.buy {
  padding-top: 4.75rem;
}

.buy h2 {
  margin-bottom: .35rem;
}

.section-intro,
.isbn {
  text-align: center;
}

.section-intro {
  margin-bottom: 1rem;
}

.retailer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .75rem;
}

.retailer-item {
  position: relative;
}

.retailer-button {
  height: calc(78px * var(--site-scale));
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(30px * var(--site-scale));
  align-items: center;
  gap: .55rem;
  border: calc(1px * var(--site-scale)) solid #dce5f2;
  border-radius: calc(12px * var(--site-scale));
  padding: .7rem .8rem .7rem 1rem;
  cursor: pointer;
  background: #f2f6fc;
  color: var(--navy);
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
}

.retailer-button__label {
  overflow: hidden;
  font-size: .9rem;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.3;
  padding-block: .2em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.retailer-button__arrow {
  width: calc(30px * var(--site-scale));
  height: calc(30px * var(--site-scale));
  display: grid;
  place-items: center;
  border: calc(1px * var(--site-scale)) solid #b9c7de;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  color: var(--navy);
  font-size: 1rem;
  line-height: 1;
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease;
}

a.retailer-button:focus-visible,\na.retailer-button.is-selected {
  border-color: #bfd0e9;
  background: #eaf2ff;
  transform: translateY(calc(-2px * var(--site-scale)));
}

a.retailer-button:focus-visible .retailer-button__arrow,\na.retailer-button.is-selected .retailer-button__arrow {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
  transform: translate(calc(2px * var(--site-scale)), calc(-2px * var(--site-scale)));
}

@media (hover: hover) and (pointer: fine) {
  .retailer-button:hover {
    border-color: #bfd0e9;
    background: #eaf2ff;
    transform: translateY(calc(-2px * var(--site-scale)));
  }

  .retailer-button:hover .retailer-button__arrow {
    border-color: var(--navy);
    background: var(--navy);
    color: white;
    transform: translate(calc(2px * var(--site-scale)), calc(-2px * var(--site-scale)));
  }
}

.retailer-button:focus-visible {
  outline: calc(3px * var(--site-scale)) solid rgba(9, 97, 189, .4);
  outline-offset: calc(3px * var(--site-scale));
}

.retailer-button:active {
  transform: translateY(calc(-1px * var(--site-scale)));
}

.link-editor {
  position: absolute;
  left: 50%;
  bottom: calc(7px * var(--site-scale));
  display: none;
  transform: translateX(-50%);
  width: max-content;
  border: 0;
  border-radius: calc(999px * var(--site-scale));
  padding: .25rem .6rem;
  background: var(--navy);
  color: white;
  cursor: pointer;
  font-size: .68rem;
  font-weight: 700;
  line-height: 1.2;
}

.editing .retailer-button {
  opacity: .58;
  pointer-events: none;
}

.editing .link-editor {
  display: block;
}

.link-editor:focus-visible,
.link-editor:hover {
  background: #0c347f;
  outline: none;
}

.isbn {
  margin: 1rem 0 0;
}

.contact {
  display: grid;
  grid-template-columns: minmax(calc(300px * var(--site-scale)), .82fr) minmax(calc(450px * var(--site-scale)), 1.18fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding-top: 2.5rem;
  padding-bottom: 2.15rem;
}

@media (min-width: 903.1px) {
  .contact {
    padding-top: 5.25rem;
  }
}

.contact h2 {
  margin-bottom: 1.35rem;
  text-align: left;
}

.contact-copy > p {
  margin-bottom: 1.65rem;
}

.contact-privacy {
  border: 0;
  padding: 0;
  background: transparent;
  color: #4d5a77;
  font: inherit;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
}

.contact-privacy:hover,
.contact-privacy:focus-visible {
  color: var(--blue);
  outline: none;
}

.edit-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form {
  padding-top: .2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

.contact-form label {
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: calc(1px * var(--site-scale)) solid var(--line);
  border-radius: calc(6px * var(--site-scale));
  background: #fff;
  color: var(--ink);
  padding: .8rem 1rem;
  outline: none;
  transition: border-color .16s ease, outline-color .16s ease;
}

.contact-form input {
  min-height: calc(47px * var(--site-scale));
  margin-bottom: .55rem;
}

.contact-form .form-honey {
  display: none;
}

.contact-form .turnstile-slot {
  min-height: 65px;
  width: 100%;
  min-width: 0;
  margin: 0 0 .35rem;
  border-radius: calc(6px * var(--site-scale));
  overflow: hidden;
  clip-path: inset(0 round calc(6px * var(--site-scale)));
}
.contact-form .turnstile-slot > div,
.contact-form .turnstile-slot iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: calc(6px * var(--site-scale)) !important;
}
.contact-form .turnstile-slot > div {
  overflow: hidden;
}
.contact-form .turnstile-slot iframe {
  display: block;
  max-width: 100%;
  border-radius: inherit;
}

.contact-form textarea {
  min-height: calc(103px * var(--site-scale));
  resize: vertical;
  margin-bottom: .35rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6f7a96;
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #7893c6;
  outline: calc(2px * var(--site-scale)) solid rgba(41, 87, 168, .45);
  outline-offset: calc(2px * var(--site-scale));
}

.contact-form button[type="submit"] {
  width: 100%;
  min-height: calc(45px * var(--site-scale));
  border: 0;
  border-radius: calc(4px * var(--site-scale));
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: background .16s ease;
}

.contact-form button[type="submit"]:hover,
.contact-form button[type="submit"]:focus-visible {
  background: #0c347f;
  outline: none;
}

.form-status {
  height: auto;
  min-height: 0;
  overflow: visible;
  margin: .45rem 0 0;
  color: var(--blue);
  font-size: .875rem;
  line-height: 1.4;
  text-align: left;
}

.contact-form .form-status:empty {
  display: none;
}
.contact-form .form-status:not(:empty) {
  display: block;
  height: auto;
  min-height: 0;
}

.site-footer {
  border-top: calc(1px * var(--site-scale)) solid #e3e6ec;
  color: #4d5a77;
  font-size: .8rem;
}

.site-footer .page-shell {
  min-height: calc(67px * var(--site-scale));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  transform: translateY(calc(12px * var(--site-scale)));
}

.footer-logos a {
  display: inline-flex;
  align-items: center;
}

.footer-logos img {
  display: block;
  width: auto;
  height: calc(38px * var(--site-scale));
}

.site-footer nav {
  display: flex;
  gap: 2.5rem;
  margin-left: auto;
}

@media (max-width: 902px) {
  .site-footer .page-shell {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem 3rem;
  }

  .site-footer nav {
    order: -1;
    margin-left: 0;
  }

  .footer-logos {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.1rem;
    transform: none;
  }

  .footer-logos img {
    height: min(calc(38px * var(--site-scale)), 10vw);
  }
}

/* Slightly more breathing room between the two logos on tablets.
   The existing space-between layout already fills the row, so reduce
   their rendered height by 1px to actually enlarge the visible gap.
   Narrow tablets scale gently to avoid pushing either logo offscreen.
   Phones (<=560px) retain their current exact sizing and spacing. */
@media (min-width: 561px) and (max-width: 902px) {
  .footer-logos {
    gap: 2rem;
  }
  .footer-logos img {
    height: min(calc(37px * var(--site-scale)), 5.1vw);
  }
}

.site-footer button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-footer button:hover,
.site-footer button:focus-visible {
  color: var(--blue);
  outline: none;
}

.legal-dialog {
  width: min(calc(720px * var(--site-scale)), calc(100% - calc(32px * var(--site-scale))));
  max-height: min(82vh, calc(780px * var(--site-scale)));
  border: calc(1px * var(--site-scale)) solid var(--line);
  border-radius: calc(10px * var(--site-scale));
  padding: 0;
  color: var(--ink);
  background: white;
}

.legal-dialog::backdrop {
  background: rgba(3, 19, 54, .48);
  backdrop-filter: blur(calc(2px * var(--site-scale)));
}

.legal-dialog__content {
  display: grid;
  grid-template-rows: auto minmax(calc(180px * var(--site-scale)), 1fr) auto;
  max-height: min(82vh, calc(780px * var(--site-scale)));
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.legal-dialog h2 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: 1.65rem;
  line-height: 1.2;
}

#privacy-dialog h2 {
  margin-bottom: 2rem;
}

.legal-copy {
  min-height: calc(180px * var(--site-scale));
  overflow-y: auto;
  padding-right: .5rem;
  color: var(--ink);
  line-height: 1.65;
  white-space: pre-wrap;
}

.privacy-copy {
  white-space: normal;
}

.privacy-copy h3 {
  margin: 1.65rem 0 .3rem;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
}

.privacy-copy h3:first-child {
  margin-top: 0;
}

.privacy-copy p {
  margin-bottom: .75rem;
}

.foreword-dialog {
  width: min(calc(820px * var(--site-scale)), calc(100% - calc(24px * var(--site-scale))));
  max-height: min(86vh, calc(900px * var(--site-scale)));
}

.foreword-dialog .legal-dialog__content {
  max-height: min(86vh, calc(900px * var(--site-scale)));
}

.foreword-dialog h2 {
  margin-bottom: 2rem;
  font-size: 1.65rem;
}

/* The dialog heading receives initial focus without a visible focus rectangle. */
#foreword-title:focus,
#foreword-title:focus-visible {
  outline: none;
  box-shadow: none;
}

.foreword-copy:focus {
  outline: none;
}

.foreword-copy {
  min-height: 0;
  white-space: normal;
  font-size: 1rem;
  line-height: 1.7;
}

.foreword-copy h3 {
  margin: 3rem 0 .85rem;
  color: var(--navy);
  font-size: 1.25rem;
  line-height: 1.25;
}

.foreword-copy p {
  margin-bottom: 1.1rem;
}

.foreword-steps {
  margin: .1rem 0 1.4rem;
  padding-left: 0;
  list-style: none;
}

.foreword-steps li {
  display: grid;
  grid-template-columns: 1.45rem minmax(0, 1fr);
  gap: .35rem;
  margin-bottom: .3rem;
}

.foreword-bullets {
  margin: .1rem 0 1.4rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.foreword-bullets li {
  display: list-item;
  margin-bottom: .3rem;
}

.foreword-stages {
  margin: 1.8rem 0 2rem;
}

.foreword-copy .foreword-stages > h3 {
  margin: 0 0 1rem;
}

.foreword-stages-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 1rem;
  margin: 0;
  padding: 0 0 .3rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  -webkit-overflow-scrolling: touch;
}

.foreword-stages-track::-webkit-scrollbar {
  display: none;
}

.foreword-stages-track:focus-visible {
  outline: calc(2px * var(--site-scale)) solid var(--blue);
  outline-offset: calc(2px * var(--site-scale));
}

.foreword-stage {
  min-height: 13rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: calc(1px * var(--site-scale)) solid #dce5f2;
  border-radius: calc(12px * var(--site-scale));
  background: #f2f6fc;
  scroll-snap-align: start;
}

.foreword-stage-number {
  color: var(--blue);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.foreword-copy .foreword-stage h3 {
  margin: 1rem 0 .75rem;
}

.foreword-stage p {
  margin: 0;
}

.foreword-stages-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: .65rem;
  color: var(--navy);
  font-size: .875rem;
  font-weight: 700;
}

.foreword-stages-controls button {
  width: 2.5rem;
  height: 2.5rem;
  border: calc(1px * var(--site-scale)) solid #b9c7de;
  border-radius: 50%;
  background: white;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
}

.foreword-stages-next {
  margin-left: auto;
}

@media (hover: hover) and (pointer: fine) {
  .foreword-stages-controls button:hover:not(:disabled) {
    border-color: var(--navy);
    background: var(--navy);
    color: white;
  }
}

.foreword-stages-controls button:focus-visible {
  outline: calc(2px * var(--site-scale)) solid var(--navy);
  outline-offset: calc(3px * var(--site-scale));
}

.foreword-stages-controls button:disabled {
  display: none;
}

.foreword-note-ref {
  margin-left: .1rem;
  font-size: .75rem;
  line-height: 0;
}

.foreword-footnotes {
  border-top: calc(1px * var(--site-scale)) solid #dce5f2;
  margin-top: 2.5rem;
  padding-top: .1rem;
}

.foreword-footnotes ol {
  padding-left: 1.5rem;
  font-size: .875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.foreword-footnotes li {
  padding-left: .2rem;
  margin-bottom: .75rem;
  scroll-margin-top: 1rem;
}

@media (max-width: 902px) {
  #privacy-dialog {
    height: min(82vh, calc(780px * var(--site-scale)));
    height: min(82dvh, calc(780px * var(--site-scale)));
    max-height: none;
  }

  #privacy-dialog .legal-dialog__content {
    height: 100%;
    max-height: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  #privacy-dialog .privacy-copy {
    min-height: 0;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .foreword-dialog {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .foreword-dialog .legal-dialog__content {
    height: 100%;
    max-height: none;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
  }

  .foreword-dialog .foreword-copy {
    min-height: 0;
    overscroll-behavior-y: contain;
  }

  .foreword-dialog .foreword-stages-track {
    align-items: start;
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
    touch-action: pan-y;
  }

  .foreword-dialog .foreword-stage {
    min-height: 0;
  }

  .chapters-head {
    margin-bottom: .5rem;
  }

  .legal-copy:focus {
    outline: none;
  }
}

.legal-copy a {
  color: var(--blue) !important;
  text-decoration: underline !important;
  text-decoration-thickness: calc(1px * var(--site-scale));
  text-underline-offset: .16em;
}

.legal-copy a:hover,
.legal-copy a:focus-visible {
  color: var(--navy) !important;
}

.foreword-copy .foreword-note-ref a,
.foreword-copy .foreword-footnotes a {
  text-decoration: none !important;
}

.legal-dialog__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: calc(1px * var(--site-scale)) solid #e3e6ec;
}

.legal-dialog__actions button {
  min-height: calc(40px * var(--site-scale));
  border: calc(1px * var(--site-scale)) solid #c5ccd9;
  border-radius: calc(999px * var(--site-scale));
  padding: .5rem .9rem;
  background: white;
  color: var(--navy);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 700;
}

.legal-dialog__actions button:hover,
.legal-dialog__actions button:focus-visible {
  border-color: #8292b1;
  background: #eef3fb;
  outline: none;
}

.legal-dialog__actions .dialog-save {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.legal-dialog__actions .dialog-save:hover,
.legal-dialog__actions .dialog-save:focus-visible {
  background: #0c347f;
}

.portrait-dialog {
  width: min(calc(560px * var(--site-scale)), calc(100% - calc(32px * var(--site-scale))));
  max-height: min(90vh, calc(760px * var(--site-scale)));
  border: calc(1px * var(--site-scale)) solid var(--line);
  border-radius: calc(10px * var(--site-scale));
  padding: 0;
  color: var(--ink);
  background: white;
}

.portrait-dialog::backdrop {
  background: rgba(3, 19, 54, .48);
  backdrop-filter: blur(calc(2px * var(--site-scale)));
}

.portrait-dialog__content {
  max-height: min(90vh, calc(760px * var(--site-scale)));
  overflow-y: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.portrait-dialog h2 {
  margin: 0 0 .25rem;
  color: var(--navy);
  font-size: 1.65rem;
  line-height: 1.2;
}

.portrait-dialog h2 + p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .9rem;
}

.portrait-adjust-preview {
  position: relative;
  width: min(calc(260px * var(--site-scale)), 70vw);
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: calc(1px * var(--site-scale)) solid #c5ccd9;
  border-radius: 50%;
  background: #eef2f8;
  cursor: grab;
  touch-action: none;
}

.portrait-adjust-preview:active {
  cursor: grabbing;
}

.portrait-adjust-preview:focus-visible {
  outline: calc(2px * var(--site-scale)) solid var(--blue);
  outline-offset: calc(3px * var(--site-scale));
}

.portrait-controls {
  display: grid;
  gap: .7rem;
}

.portrait-controls label {
  display: grid;
  grid-template-columns: calc(88px * var(--site-scale)) 1fr calc(54px * var(--site-scale));
  align-items: center;
  gap: .65rem;
  color: var(--navy);
  font-size: .85rem;
  font-weight: 700;
}

.portrait-controls input[type="range"] {
  width: 100%;
  accent-color: var(--navy);
}

.portrait-controls output {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.portrait-dialog__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: calc(1px * var(--site-scale)) solid #e3e6ec;
}

.portrait-dialog__actions button {
  min-height: calc(40px * var(--site-scale));
  border: calc(1px * var(--site-scale)) solid #c5ccd9;
  border-radius: calc(999px * var(--site-scale));
  padding: .5rem .9rem;
  background: white;
  color: var(--navy);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 700;
}

.portrait-dialog__actions button:hover,
.portrait-dialog__actions button:focus-visible {
  border-color: #8292b1;
  background: #eef3fb;
  outline: none;
}

.portrait-dialog__actions .portrait-apply {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.portrait-dialog__actions .portrait-apply:hover,
.portrait-dialog__actions .portrait-apply:focus-visible {
  background: #0c347f;
}

.url-dialog {
  width: min(calc(560px * var(--site-scale)), calc(100% - calc(32px * var(--site-scale))));
  border: calc(1px * var(--site-scale)) solid var(--line);
  border-radius: calc(10px * var(--site-scale));
  padding: 0;
  color: var(--ink);
  background: white;
}

.url-dialog::backdrop {
  background: rgba(3, 19, 54, .48);
  backdrop-filter: blur(calc(2px * var(--site-scale)));
}

.url-dialog__content {
  padding: clamp(1.25rem, 4vw, 2rem);
}

.url-dialog h2 {
  margin: 0 0 1.25rem;
  color: var(--navy);
  font-size: 1.65rem;
  line-height: 1.2;
}

.url-dialog label {
  display: block;
  margin-bottom: .45rem;
  color: var(--navy);
  font-size: .9rem;
}

.url-dialog input {
  width: 100%;
  min-height: calc(47px * var(--site-scale));
  border: calc(1px * var(--site-scale)) solid var(--line);
  border-radius: calc(6px * var(--site-scale));
  padding: .75rem .9rem;
  color: var(--ink);
  background: white;
  outline: none;
}

.url-dialog input:focus {
  border-color: #7893c6;
  outline: calc(2px * var(--site-scale)) solid rgba(41, 87, 168, .45);
  outline-offset: calc(2px * var(--site-scale));
}

.url-error {
  min-height: 1.35em;
  margin: .35rem 0 0;
  color: #9b1c1c;
  font-size: .82rem;
}

.url-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: calc(1px * var(--site-scale)) solid #e3e6ec;
}

.url-dialog__actions button {
  min-height: calc(40px * var(--site-scale));
  border: calc(1px * var(--site-scale)) solid #c5ccd9;
  border-radius: calc(999px * var(--site-scale));
  padding: .5rem .9rem;
  background: white;
  color: var(--navy);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 700;
}

.url-dialog__actions button:hover,
.url-dialog__actions button:focus-visible {
  border-color: #8292b1;
  background: #eef3fb;
  outline: none;
}

.url-dialog__actions .url-save {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.url-dialog__actions .url-save:hover,
.url-dialog__actions .url-save:focus-visible {
  background: #0c347f;
}

.edit-tools {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem;
  border: calc(1px * var(--site-scale)) solid rgba(8, 35, 93, .16);
  border-radius: calc(999px * var(--site-scale));
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(calc(10px * var(--site-scale)));
}

.edit-tools button {
  min-height: calc(38px * var(--site-scale));
  border: 0;
  border-radius: calc(999px * var(--site-scale));
  padding: .48rem .85rem;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
}

.edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.edit-toggle svg {
  width: calc(18px * var(--site-scale));
}

.edit-tools button:hover,
.edit-tools button:focus-visible {
  background: #eef3fb;
  outline: none;
}

.edit-actions {
  display: flex;
  gap: .15rem;
}

.edit-actions[hidden] {
  display: none;
}

.edit-actions .save-edits {
  background: var(--navy);
  color: white;
}

.editing [data-edit-key] {
  border-radius: calc(3px * var(--site-scale));
  cursor: text;
}

.editing [data-edit-key]:hover {
  background: rgba(225, 239, 255, .48);
}

[data-edit-key] {
  white-space: pre-line;
}

[data-edit-key] * {
  font-family: inherit !important;
  font-size: inherit !important;
  font-style: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
  text-align: inherit !important;
  text-decoration: inherit !important;
  background: transparent !important;
}

.editing [data-edit-key]:focus {
  background: rgba(225, 239, 255, .72);
  outline: calc(1px * var(--site-scale)) solid var(--blue);
  outline-offset: calc(2px * var(--site-scale));
}

.sr-only {
  position: absolute;
  width: calc(1px * var(--site-scale));
  height: calc(1px * var(--site-scale));
  padding: 0;
  margin: calc(-1px * var(--site-scale));
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1155px) {
  .page-shell,
  .site-header {
    width: calc(100% - calc(54px * var(--site-scale)));
    max-width: calc(1180px * var(--site-scale));
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(calc(340px * var(--site-scale)), .95fr);
    gap: 2rem;
  }

  .author-card .portrait-editor {
    margin-right: .85rem;
  }

  .portrait-editor,
  .portrait-frame {
    width: calc(82px * var(--site-scale));
  }

  .author-grid {
    gap: 1.1rem;
  }
}

@media (max-width: 902px) {
  .contact.section-block {
    padding-top: 4.5rem;
  }

  .chapters-track {
    grid-template-columns: clamp(calc(112px * var(--site-scale)), 34%, calc(130px * var(--site-scale)));
    grid-auto-columns: min(calc(300px * var(--site-scale)), calc(100% - clamp(calc(112px * var(--site-scale)), 34%, calc(130px * var(--site-scale))) - 1rem));
    scroll-padding-left: calc(clamp(calc(112px * var(--site-scale)), 34%, calc(130px * var(--site-scale))) + 1rem);
    overflow-x: hidden;
    scroll-snap-type: none;
    touch-action: pan-y;
  }

  .foreword-card::before,
  .foreword-card::after {
    content: "";
    position: absolute;
    background: #fff;
    pointer-events: none;
  }

  .foreword-card::before {
    left: calc(100% + calc(1px * var(--site-scale)));
    top: 0;
    bottom: 0;
    width: calc(12px * var(--site-scale));
  }

  .foreword-card::after {
    left: 0;
    right: calc(-12px * var(--site-scale));
    top: calc(100% + calc(1px * var(--site-scale)));
    height: calc(8px * var(--site-scale));
  }

  .foreword-card .foreword-button {
    padding: 1.5rem 1rem;
  }

  .foreword-card .foreword-read {
    font-size: .875rem;
  }

  .chapters-controls {
    display: none;
  }

  .chapters-head {
    gap: .5rem;
    width: min(100%, calc(clamp(calc(112px * var(--site-scale)), 34%, calc(130px * var(--site-scale))) + calc(300px * var(--site-scale)) + 1rem));
  }

  .chapters-mobile-controls {
    display: flex;
    align-items: center;
    gap: calc(10px * var(--site-scale));
    flex: none;
  }

  .chapters-mobile-controls button {
    display: grid;
    place-items: center;
    flex: none;
    width: calc(48px * var(--site-scale));
    height: calc(48px * var(--site-scale));
    border: calc(1px * var(--site-scale)) solid #b9c9e5;
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    transition: border-color .16s ease, background-color .16s ease;
  }

  .chapters-mobile-controls button:hover,
  .chapters-mobile-controls button:focus-visible {
    border-color: #b9c9e5;
    background: #fff;
    outline-offset: 2px;
  }

  .chapters-mobile-next:disabled {
    display: none;
  }

  .chapters-mobile-prev:disabled {
    visibility: hidden;
  }

  .site-header {
    min-height: calc(76px * var(--site-scale));
    position: relative;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(66px * var(--site-scale));
    right: 0;
    z-index: 10;
    min-width: calc(215px * var(--site-scale));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: .1rem;
    padding: .65rem 1rem;
    border: calc(1px * var(--site-scale)) solid var(--line);
    border-radius: calc(8px * var(--site-scale));
    background: white;
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .hero-copy {
    padding-top: 0;
  }

  .book-visual {
    order: -1;
    max-width: calc(520px * var(--site-scale));
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    height: auto !important;
  }

  .book-visual img {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    height: auto;
  }

  .book-blurb {
    width: 100%;
    margin: 2.25rem 0 0;
  }

  .book-copy [data-edit-key="people"],
  .book-blurb p:last-child {
    margin-bottom: 0;
  }

  .authors.section-block {
    padding-top: 4.5rem;
  }

  .authors > h2:empty {
    display: none;
  }

  .author-grid {
    grid-template-columns: 1fr;
    gap: 1.65rem;
  }

  .portrait-editor,
  .portrait-frame {
    width: calc(96px * var(--site-scale));
  }

  .retailer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .site-header {
    width: calc(100% - calc(32px * var(--site-scale)));
  }

  body {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2.3rem, 9.7vw, 3.3rem);
    line-height: 1.12;
  }

  .lead {
    font-size: 1.16rem;
  }

  .section-block {
    padding-top: 2.35rem;
  }

  .buy {
    padding-top: 3.75rem;
  }

  .chapters.section-block {
    padding-top: 3.5rem;
  }

  .chapter-card {
    padding: 1.25rem;
  }

  .foreword-card .foreword-button {
    padding: 1.25rem 1rem;
  }

  .portrait-editor,
  .portrait-frame {
    width: calc(78px * var(--site-scale));
  }

  .author-card p {
    font-size: .875rem;
  }

  .retailer-grid {
    gap: .55rem;
  }

  .retailer-button {
    height: calc(70px * var(--site-scale));
    grid-template-columns: minmax(0, 1fr) calc(26px * var(--site-scale));
    gap: .25rem;
    padding-inline: .45rem;
  }

  .retailer-button__label {
    font-size: .875rem;
  }

  .retailer-button__arrow {
    width: calc(26px * var(--site-scale));
    height: calc(26px * var(--site-scale));
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .site-footer .page-shell {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1rem 3rem;
    gap: .55rem;
  }

  .site-footer nav {
    margin-left: 0;
  }

  .edit-tools {
    right: .55rem;
    bottom: .55rem;
    max-width: calc(100% - 1.1rem);
  }

  .edit-toggle span {
    display: none;
  }

  .edit-actions button {
    padding-inline: .65rem;
  }
}

@media (max-width: 350px) {
  .retailer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(var(--reveal-distance, calc(20px * var(--site-scale))));
    transition: opacity .7s ease-out, transform .7s ease-out;
  }

  .scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .book-blurb.scroll-reveal {
    /* Keep the endorsement readable even before its scroll animation starts. */
    opacity: 1;
    transform: translate3d(calc(72px * var(--site-scale)), 0, 0);
    transition: transform .85s cubic-bezier(.16, 1, .3, 1);
    transition-delay: .15s;
  }

  .book-blurb.scroll-reveal.is-visible {
    transform: translate3d(0, 0, 0);
  }

  .hero-copy > h1.scroll-reveal { --reveal-distance: calc(28px * var(--site-scale)); }

  .hero-copy > h1.scroll-reveal { transition-delay: .05s; }
  .book-visual > img.scroll-reveal {
    transform: translate3d(100vw, 0, 0) rotate(8deg) scale(.9);
    transform-origin: center;
    transition: scale .32s ease;
  }

  .book-visual > img.scroll-reveal.is-visible {
    animation: book-arrival .8s cubic-bezier(.16, 1, .3, 1) both;
  }

  @keyframes book-arrival {
    from { opacity: 0; transform: translate3d(100vw, 0, 0) rotate(8deg) scale(.9); }
    to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0) scale(1); }
  }
  .author-card:nth-child(2).scroll-reveal { transition-delay: .08s; }
  .author-card:nth-child(3).scroll-reveal { transition-delay: .16s; }
  .chapters-track.scroll-reveal { --reveal-distance: calc(12px * var(--site-scale)); transition-duration: .55s; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .book-visual > img {
    transition: scale .32s ease;
  }
  .book-visual > img:hover {
    scale: 1.03;
  }
}

/* Production snapshot values observed in the approved preview. */
.book-copy [data-edit-key="split"] { font-weight: 400; margin-bottom: .75rem; }

@media (max-width: 902px) {
  :root {
    --site-scale: 1;
    font-size: 100%;
  }
}

/* Words keep natural wrapping; words on the same rendered line animate together. */
.headline-word {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  .headline-preparing { visibility: hidden; }
  .headline-revealing .headline-word {
    animation: headline-line-in .65s cubic-bezier(.16, 1, .3, 1) both;
    animation-delay: var(--headline-delay, 0ms);
  }
  @keyframes headline-line-in {
    from { opacity: 0; transform: translateY(.4em); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .footer-logos.logos-reveal a {
    opacity: 0;
    transform: translateY(.75rem);
    transition: opacity .65s ease-out, transform .65s cubic-bezier(.16, 1, .3, 1);
  }
  .footer-logos.logos-reveal a:nth-child(2) {
    transition-delay: .14s;
  }
  .footer-logos.logos-visible a,
  .footer-logos.logos-reveal:focus-within a {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Keep the mobile document within the viewport, including entrance motion. */
@media (max-width: 902px) {
  html { overflow-x: hidden; overscroll-behavior-x: none; }
  body { min-width: 0; width: 100%; overflow-x: clip; }
  .site-header { gap: .75rem; }
  .wordmark { min-width: 0; }
  .menu-toggle { flex-shrink: 0; }
  main { min-width: 0; }
  .headline-word,
  .section-headline-word { max-width: 100%; overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .wordmark { font-size: clamp(1.2rem, 6.8vw, 1.7rem); }
}

/* All three main navigation anchors share one clear edge below the sticky header. */
html { scroll-padding-top: var(--anchor-header-offset, 7rem); }
#autoren,
#kaufen,
#kontakt { scroll-margin-top: var(--anchor-section-inset, 0px); }
@media (max-width: 902px) {
  html { scroll-padding-top: var(--anchor-header-offset, 6.25rem); }
}

/* Contact ends after its actual content instead of stretching to viewport height. */
.contact {
  min-height: 0;
  align-items: start;
}

/* Mobile navigation uses colour without underline rules. */
@media (max-width: 902px) {
  .main-nav a,
  .main-nav a:hover,
  .main-nav a:focus-visible,
  .main-nav a[aria-current="page"] {
    border-bottom: 0;
    text-decoration: none;
  }
}

.contact-privacy-mobile { display: none; }
@media (max-width: 902px) {
  .contact-privacy-desktop { display: none; }
  .contact-privacy-mobile { display: block; margin-top: .9rem; }
}

/* Datenschutz links keep the contact form's grey in every state. */
body button[data-dialog-target="privacy-dialog"],
body button[data-dialog-target="privacy-dialog"]:hover,
body button[data-dialog-target="privacy-dialog"]:focus-visible,
body button[data-dialog-target="privacy-dialog"]:active {
  color: var(--muted);
}

/* Book description from "In diesem Moment" through "Aber nicht nur":
   use available width on iPad portrait, including 1024px-layout iPads. */
@media (min-width: 700px) and (max-width: 1200px) and (orientation: portrait) {
  .hero-copy .book-copy {
    width: 100%;
    max-width: none;
  }
}

/* iPad portrait: align chapter navigation with the right edge of the content. */
@media (min-width: 700px) and (max-width: 1200px) and (orientation: portrait) {
  .chapters-head {
    width: 100%;
  }
  .chapters-mobile-controls {
    margin-left: auto;
  }
}

/* Mobile homepage: bring the headline closer to the book without resizing it. */
@media (max-width: 560px) {
  .hero .book-visual {
    margin-bottom: -1.5rem;
  }
}

/* Phone homepage: balance the book and headline within the initial viewport. */
@media (max-width: 560px) {
  .hero { padding-top: 0; }
  .hero .book-visual { margin-top: -1rem; }
  /* Only the book image moves; the figure and headline keep their layout positions. */
  .hero .book-visual > img { position: relative; top: 6px; }
  .contact.section-block { padding-top: 3.75rem; }
  .contact { padding-bottom: 3.75rem; }
}

/* Small-screen contact form: reduce blank status area before submit. */
@media (max-width: 560px) {

}

/* Tighten the gap above mobile contact fields without changing their dimensions. */
@media (max-width: 560px) {
  .contact { row-gap: .85rem; }
  .contact-copy > p { margin-bottom: 0; }
}

/* Match spacing from last field to submit with spacing above the mobile form. */
@media (max-width: 560px) {
  .contact-form .form-status:not(:empty) { margin-top: .15rem; }
  .contact-form button[type="submit"] { margin-top: .35rem; }

}

/* Preorder announcement: retailer tiles are visible but deliberately non-interactive. */
.retailer-button--inactive,
.retailer-button--inactive:hover,
.retailer-button--inactive:active{
  cursor:default!important;
  transform:none!important;
  background:#f2f6fc!important;
  border-color:#dce5f2!important;
}
.retailer-button--inactive .retailer-button__arrow,
.retailer-button--inactive:hover .retailer-button__arrow{
  transform:none!important;
  background:rgba(255,255,255,.6)!important;
  border-color:#b9c7de!important;
  color:var(--navy)!important;
}

/* Disabled retailer cards never react to taps, hover, focus or selection. */
.retailer-grid .retailer-button--inactive{pointer-events:none!important;user-select:none!important;-webkit-user-select:none!important;-webkit-tap-highlight-color:transparent!important;transition:none!important}
.retailer-grid .retailer-button--inactive *{pointer-events:none!important;transition:none!important}
.retailer-grid .retailer-button--inactive.is-selected,.retailer-grid .retailer-button--inactive:focus-visible{transform:none!important;outline:none!important;background:#f2f6fc!important;border-color:#dce5f2!important}

/* Inactive bookshops: override the legacy selected/hover arrow rule as well. */
.retailer-grid .retailer-button--inactive:is(.is-selected,:hover,:active,:focus,:focus-visible) .retailer-button__arrow,
.retailer-grid .retailer-button--inactive .retailer-button__arrow{
  background:rgba(255,255,255,.6)!important;
  border-color:#b9c7de!important;
  color:var(--navy)!important;
  transform:none!important;
}

/* Book retailers are informational tiles until 1 December: no interaction state. */
#kaufen .retailer-button--inactive,
#kaufen .retailer-button--inactive:is(:hover,:active,:focus,:focus-visible,.is-selected){background:#f2f6fc!important;border-color:#dce5f2!important;transform:none!important;box-shadow:none!important;outline:0!important;transition:none!important;cursor:default!important;pointer-events:none!important}
#kaufen .retailer-button--inactive .retailer-button__arrow,
#kaufen .retailer-button--inactive:is(:hover,:active,:focus,:focus-visible,.is-selected) .retailer-button__arrow{background:rgba(255,255,255,.6)!important;color:var(--navy)!important;border-color:#b9c7de!important;transform:none!important;transition:none!important}

/* Phone-only: increase the five dropdown navigation labels by one CSS pixel. */
@media (max-width: 560px) {
  .main-nav { font-size: calc(1.05rem + 1px); }
}

/* Phone sticky header: extend its white area downward without moving the logo/menu. */
@media (max-width: 560px) {
  .header-wrap { padding-bottom: 6px; }
}

/* Tablet: prevent the document from shifting sideways on horizontal swipes.
   Keep intentional horizontal scrolling inside chapter carousels intact. */
@media (min-width: 903px) and (max-width: 1200px) {
  html {
    overflow-x: clip;
    overscroll-behavior-x: none;
  }
  body {
    overflow-x: clip;
    overscroll-behavior-x: none;
  }
}

/* Homepage hero headline: further 5% reduction across screen sizes. */
.hero-copy > h1 {
  font-size: clamp(2.850771875rem, 5.0928075vw, 4.1154rem);
}
@media (max-width: 560px) {
  .hero-copy > h1 {
    font-size: clamp(2.0607008125rem, 8.676635vw, 2.9566576875rem);
    line-height: 1.18;
  }
}

/* Tablet and desktop: a little more breathing room between hero headline lines. */
@media (min-width: 700px) {
  .hero-copy > h1 { line-height: 1.20; }
}

/* Desktop and tablet: keep the headline opening on one line without moving the book or body copy. */
@media (min-width: 561px) {
  .hero-headline-opening {
    white-space: nowrap;
  }
}
@media (min-width: 903px) {
  .hero-copy > h1 {
    width: 130%;
    max-width: calc(100vw - 2rem);
    position: relative;
    z-index: 1;
  }
}

/* iPad/tablet: preserve the book gutter at every tablet breakpoint.
   The desktop 130% headline and nowrap opening must not override this. */
@media (min-width: 700px) and (max-width: 1200px) {
  .hero .hero-copy > h1 {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    letter-spacing: -0.045em;
    overflow-wrap: break-word;
  }
  .hero .hero-headline-opening {
    white-space: normal;
  }
}

/* Wide desktop: preserve a visible gap to the book without moving either
   the hero image or the editorial paragraphs. Tablet rules stay untouched. */
@media (min-width: 1201px) {
  .hero .hero-copy > h1 {
    width: 112%;
    max-width: 112%;
    font-size: clamp(2.68rem, 4.79vw, 3.87rem);
  }
}

/* Consulting offers in the contact section: desktop and tablet only. */
@media (min-width: 903px) {
  .contact { align-items: stretch; }
  .contact-copy { display: flex; flex-direction: column; min-width: 0; }
  .contact-copy > .contact-services { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; gap: clamp(.65rem, 1.5vh, 1.25rem); padding: .2rem 0 .7rem; }
  .contact-copy > .contact-privacy-desktop { align-self: flex-start; margin-top: auto; }
}
.contact-services h3 { margin: 0 0 .25rem; color: var(--navy); font-size: clamp(.85rem, 1.05vw, 1rem); font-weight: 700; line-height: 1.25; }
.contact-services p { margin: 0; line-height: 1.42; }
@media (min-width: 561px) and (max-width: 902px) {
  .contact-services { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.8rem 0 .5rem; }
}
@media (max-width: 560px) {
  .contact-services { display: none; }
}

/* Compact contact copy on desktop/tablet: intro replaces visual heading. */
@media (min-width: 561px) {
  .contact-copy > h2[data-edit-key="contact-heading"] { display: none; }
  .contact-copy > p[data-edit-key="contact-intro"] { margin-top: 0; }
}
@media (min-width: 903px) {
  .contact-copy > .contact-services { padding-bottom: .35rem; }
  .contact-copy > .contact-privacy-desktop { margin-top: 1.2rem; }
}

/* More breathing room between the contact form and footer divider on tablet/desktop. */
@media (min-width: 561px) {
  .contact { padding-bottom: 6.45rem; }
}

/* Phone contact mirrors the consulting content without the extra footer spacing. */
@media (max-width: 560px) {
  .contact-copy > h2[data-edit-key="contact-heading"] { display: none; }
  .contact-copy > p[data-edit-key="contact-intro"] { margin-top: 0; }
  .contact-services { display: flex; flex-direction: column; gap: 1.4rem; margin: 1.5rem 0 .7rem; }
}

/* Tablet contact: keep all content in the normal layout flow.
   Both columns stretch to the taller column. The privacy label and
   submit button align at the bottom without position offsets or overlap. */
@media (min-width: 903px) and (max-width: 1200px) {
  #kontakt.contact {
    align-items: stretch;
  }
  #kontakt .contact-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  #kontakt .contact-copy > p[data-edit-key="contact-intro"] {
    margin-bottom: 1.5rem;
  }
  #kontakt .contact-copy > .contact-services {
    flex: 0 0 auto;
    justify-content: flex-start;
    gap: 1.4rem;
    padding: 0;
  }
  #kontakt .contact-copy > .contact-privacy-desktop {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 1.6rem;
    transform: none !important;
  }
  #kontakt .contact-form {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-width: 0;
  }
  #kontakt .contact-form button[type="submit"] {
    margin-top: auto;
  }
}
