.novel-links, .bring, .view-picker, .view-picker button {
  display: flex;
  align-items: center;
}
.novel-links { gap: clamp(12px, 2vw, 30px); font-weight: 600; }
.novel-links a:not(.btn):hover, .bring:hover { color: var(--red); }
.novelist .hero {
  grid-template-columns: 40% minmax(0,1fr);
  gap: 4%;
  padding-block: clamp(55px, 5vw, 82px) clamp(65px, 6vw, 96px);
}
.novelist .hero h1 {
  display: block;
  margin-block: 20px 30px;
  font-size: min(5.5vw, 78px);
  line-height: 1.06;
}
.pitch em { position: relative; white-space: nowrap; color: var(--red); }
.pitch em svg { position: absolute; left: 0; width: 100%; height: .19em; bottom: -.035em; }
.pitch .intro {
  max-width: 36ch;
  padding: 0;
  border: 0;
  font-size: clamp(1.13rem, 1.53vw, 1.36rem);
  line-height: 1.43;
  color: var(--body);
}
.pitch .primary { margin-top: 27px; }
.terms-line { margin-top: 11px; font-size: .92rem; color: var(--body); }
.bring { width: fit-content; gap: 7px; margin-top: 22px; font-weight: 630; }
.novel-gallery { min-width: 0; }
.view-picker { justify-content: center; gap: 4px; margin: 0 auto 19px; }
.view-picker button {
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  padding: 6px clamp(9px, 1.2vw, 20px);
  border-radius: 40px;
  font-size: .98rem;
  font-weight: 610;
}
.view-picker button:hover { background: #17392e0c; }
.view-picker button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.views figure { margin: 0; }
.views figure + figure { margin-top: 32px; }
.view-picker:not([hidden]) + .views figure { margin-top: 0; }
.screen {
  display: block;
  position: relative;
  cursor: zoom-in;
  border: 1px solid var(--ink);
  border-radius: 12px;
  box-shadow: 5px 6px 0 var(--ink), 0 16px 38px #49362019;
  background: #fffdf6;
}
.screen img { display: block; width: 100%; height: auto; border-radius: inherit; }
.screen span {
  position: absolute;
  top: 13%; right: 12px;
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 2px 7px #142a2420;
}
.screen:hover span { color: white; background: var(--ink); }
.views figcaption { margin-top: 21px; text-align: center; color: var(--body); line-height: 1.4; }
.novel-gallery dialog {
  width: min(96vw, 1330px, 132vh);
  max-width: 96vw;
  max-height: 96dvh;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-radius: 12px;
}
.novel-gallery dialog::backdrop { background: #10221ee0; }
html:has(.novel-gallery dialog[open]) { overflow: hidden; }
.novel-gallery form { display: flex; justify-content: end; padding: 4px 10px; }
.novel-gallery form button { display: grid; place-items: center; width: 44px; height: 44px; }
.enlargement { max-height: calc(96dvh - 54px); overflow: auto; }
.enlargement img { display: block; width: max(100%, 980px); height: auto; }
.manuscript { background: var(--ink); color: var(--paper); }
.manuscript .wrap, .novel-faq { padding-block: clamp(54px,6vw,92px); }
.manuscript .eyebrow, .manuscript article svg { color: #ffca63; }
.manuscript h2, .novel-faq h2, .novelist .final h2 { font-size: clamp(2rem, 4vw, 3.55rem); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 5%; margin-top: 48px; }
.import-link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 30px;
  min-height: 46px; padding: 9px 18px; border-radius: 8px;
  background: var(--paper); color: var(--ink); font-weight: 650;
}
.import-link:hover { background: #ffca63; }
.manuscript :focus-visible { outline-color: #ffca63; }
.steps h3 { font-size: clamp(1.32rem, 2vw, 1.74rem); margin: 16px 0 10px; }
.steps p { color: #e0e7db; font-size: 1.07rem; }
.novel-faq { display: grid; grid-template-columns: 36% 1fr; gap: 6%; }
.novel-faq details { border-bottom: 1px solid var(--line); }
.novel-faq details:first-child { border-top: 1px solid var(--line); }
.novel-faq summary { font-size: 1.12rem; }
.novel-faq details p { padding-bottom: 22px; color: var(--body); }
.novel-faq a { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .views figure { animation: show-view .22s ease-out; }
  .view-picker button { transition: background-color .18s, color .18s; }
  .novelist header .brand { position: relative; }
  .novelist header .brand::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: url(/brand/page-turn.svg?v=2) center / contain no-repeat;
    animation: one-turn 2.55s step-end forwards;
  }
  @keyframes one-turn { to { visibility: hidden; } }
  @keyframes show-view { from { opacity: .55; transform: translateY(3px); } }
}
@media (max-width: 960px) {
  .novelist .hero { grid-template-columns: 1fr; gap: 38px; max-width: 740px; }
  .pitch { text-align: center; }
  .novelist .pitch .eyebrow { justify-content: center; }
  .novelist .hero h1 { font-size: clamp(38px,10.8vw,78px); }
  .pitch .intro, .bring { margin-inline: auto; }
  .steps { gap: 24px; }
}
@media (max-width: 960px), (max-height: 820px) {
  /* Keep the first action and the previews usable even on short phones. */
  .novelist .analytics-choice {
    position: static;
    margin: 0 auto 28px;
    width: var(--page);
    max-height: none;
    box-shadow: none;
  }
}
.novel-language { display: inline-grid; place-items: center; min-width: 38px; min-height: 44px; font-size: .92rem; }
@media (max-width: 850px) {
  .novel-links a[href="#faq"] { display: none; }
}
@media (max-width: 360px) {
  .novelist .bar .brand img { width: 91px; }
}
@media (max-width: 720px) {
  .novel-links a:not(.btn, .novel-language) { display: none; }
  .novel-links .btn.small { display: inline-flex; min-height: 42px; }
  .manuscript .eyebrow, .novel-faq .eyebrow { justify-content: flex-start; }
  .novelist .hero { padding-block: 39px 45px; gap: 30px; }
  .novelist .hero h1 { margin-block: 13px 20px; font-size: 12.9vw; }
  .pitch .intro { font-size: 1.05rem; }
  .pitch .primary { margin-top: 20px; }
  .terms-line { font-size: .83rem; }
  .bring { margin-top: 14px; font-size: .93rem; }
  .view-picker { gap: 2px; margin-bottom: 13px; }
  .view-picker button { flex: 1; flex-direction: column; gap: 3px; padding: 8px 0; border-radius: 12px; font-size: .85rem; }
  .screen span { top: 8px; right: 8px; }
  .views figcaption { font-size: .95rem; }
  .steps, .novel-faq { grid-template-columns: 1fr; gap: 32px; }
  .steps { margin-top: 34px; }
  .steps h3 { margin-top: 9px; }
  .novelist footer .wrap { gap: 16px; font-size: .94rem; }
}

/* A worked example beside the full list of checks, readable without scripts. */
#continuity {
  background: #f3ecda;
  border-block: 1px solid var(--line);
}
.continuity-layout {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 8%;
  padding-block: clamp(54px, 6vw, 92px);
  align-items: start;
}
.continuity-story .eyebrow { justify-content: flex-start; }
.continuity-story h2 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); }
.continuity-story em { color: var(--red); }
.continuity-excerpts {
  position: relative;
  max-width: 460px;
  margin: 42px 0 12px;
  padding-right: 14%;
}
.continuity-excerpts p {
  position: relative;
  width: 88%;
  padding: .75em 1em .9em;
  background: #fffdf5;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  box-shadow: 3px 4px var(--ink);
  font: 520 clamp(1.04rem, 1.55vw, 1.42rem)/1.45 Texturina, Georgia, serif;
  transform: rotate(-2deg);
}
.continuity-excerpts p + p { margin: 20px 0 0 auto; transform: rotate(1.5deg); }
.continuity-excerpts small {
  display: block;
  margin-bottom: 6px;
  font: 700 .68rem/1.2 Sans, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.continuity-excerpts mark {
  color: inherit;
  background: linear-gradient(177deg, transparent 30%, #ffda83 32% 88%, transparent 90%);
}
.continuity-excerpts svg {
  position: absolute;
  left: 82%;
  top: 21%;
  height: 56%;
  width: 17%;
  color: var(--red);
}
.continuity-copy > p { color: var(--body); font-size: 1.14rem; }
.continuity-copy .review-choice { font-size: 1rem; }
.continuity-groups { margin-block: 25px 20px; border-top: 1px solid var(--line); }
.continuity-groups details { border-bottom: 1px solid var(--line); }
.continuity-groups summary { justify-content: flex-start; gap: 16px; }
.continuity-groups summary svg:first-child { color: var(--red); transform: none; }
.continuity-groups summary span { flex: 1; }
.continuity-groups summary strong { font-size: 1.15rem; }
.continuity-groups summary small { display: block; color: var(--body); font-size: .96rem; font-weight: 450; }
.continuity-groups dl { margin: 0 0 24px 39px; }
.continuity-groups dl div + div { margin-top: 15px; }
.continuity-groups dt { font-weight: 650; }
.continuity-groups dd { margin: 2px 0 0; color: var(--body); max-width: 58ch; }
@media (min-width: 801px) and (min-height: 680px) {
  .continuity-story { position: sticky; top: 40px; }
}
@media (max-width: 800px) {
  .continuity-layout { grid-template-columns: 1fr; gap: 30px; max-width: 620px; }
  .continuity-excerpts { margin: 30px auto 6px; }
  .continuity-copy > p { font-size: 1.05rem; }
}
@media (max-width: 440px) {
  .continuity-excerpts p { width: 94%; padding-inline: .7em; }
  .continuity-excerpts svg { left: 87%; width: 13%; }
  .continuity-groups summary { gap: 11px; }
  .continuity-groups dl { margin-left: 0; }
}
