.novel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(1.25rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(1.5rem, 5vw, 4.75rem) 0 1rem;
}
.novel-intro h1 {
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.058em;
  margin-block: .55rem .8rem;
}
.novel-intro > p:not(.page-label) { max-width: 37ch; line-height: 1.6; margin-bottom: .7rem; }
.novel-author { color: #a9c5d2; }
.novel-figure { margin: 0; justify-self: center; width: min(100%, 24rem); }
.novel-cover { position: relative; isolation: isolate; }
.novel-cover img { display: block; width: 100%; height: auto; border-radius: .25rem; }
.cover-toggle {
  position: absolute;
  inset: 32% 8% 21%;
  border: 0;
  border-radius: .25rem;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}
.cover-toggle:focus-visible { outline: 2px solid #9af5ff; outline-offset: 2px; }
.cover-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("/false-dawn-assets/book/cover.webp") center / 100% 100% no-repeat;
  filter: brightness(1.67) saturate(1.16);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 180ms ease;
}
.cover-keyhole {
  mask-image: radial-gradient(ellipse 9% 10% at 50% 49%, #000 23%, transparent 100%);
}
.cover-channels {
  mask-image:
    radial-gradient(ellipse 10% 8% at 32% 49%, #000 26%, transparent 100%),
    radial-gradient(ellipse 7% 8% at 63% 42%, #000 22%, transparent 100%),
    radial-gradient(ellipse 7% 10% at 51% 60%, #000 25%, transparent 100%),
    radial-gradient(ellipse 5% 9% at 50% 75%, #000 26%, transparent 100%);
  transition-duration: 400ms;
}
.cover-ring-light {
  mask-image:
    radial-gradient(ellipse 4% 18% at 50% 27%, #000 12%, transparent 100%),
    radial-gradient(ellipse 4% 16% at 49% 81%, #000 14%, transparent 100%),
    radial-gradient(ellipse 8% 12% at 15% 50%, #000 18%, transparent 100%),
    radial-gradient(ellipse 8% 12% at 84% 48%, #000 18%, transparent 100%),
    radial-gradient(ellipse 10% 8% at 25% 65%, #000 23%, transparent 100%),
    radial-gradient(ellipse 11% 9% at 76% 66%, #000 20%, transparent 100%);
  transition-duration: 650ms;
}
.novel-cover:has(.cover-toggle[aria-pressed="true"]) .cover-keyhole { opacity: .91; }
.novel-cover:has(.cover-toggle[aria-pressed="true"]) .cover-channels { opacity: .75; transition-delay: 170ms; }
.novel-cover:has(.cover-toggle[aria-pressed="true"]) .cover-ring-light { opacity: .63; transition-delay: 520ms; }

.cover-cue { margin-top: .65rem; text-align: center; font: 600 .74rem/1.4 var(--mono); color: #b6d8e2; }
@media (max-width: 680px) {
  .novel-hero { grid-template-columns: 1fr; }
  .novel-figure { max-width: 18rem; }
}

.book-first [tabindex="-1"] { scroll-margin-top: 1rem; }
.section-nav {
  position: fixed;
  z-index: 5;
  inset-inline-end: max(1rem, calc((100vw - 90rem) / 2));
  top: 50%;
  translate: 0 -50%;
  display: grid;
  gap: .15rem;
  padding: .35rem;
  border: 1px solid #36596b;
  border-radius: .55rem;
  background: #07121cf2;
  box-shadow: 0 10px 32px #0008;
}
.section-nav a {
  display: flex;
  align-items: center;
  gap: .52rem;
  min-height: 44px;
  padding: .3rem .6rem;
  border-radius: .3rem;
  color: #c3d9e4;
  font: 600 .75rem/1.2 var(--mono);
  text-decoration: none;
}
.section-nav a::before {
  content: "";
  width: .36rem;
  height: .36rem;
  flex: none;
  border-radius: 50%;
  border: 1px solid #7997a6;
}
.section-nav a:is(:hover, :focus-visible, [aria-current]) { color: #e4faff; background: #112b3b; }
.section-nav a[aria-current]::before { background: #8af2ff; border-color: #8af2ff; box-shadow: 0 0 7px #46dfff; }
.section-nav a:focus-visible { outline: 2px solid #8af2ff; outline-offset: -2px; }
@media (min-width: 1180px) and (min-height: 530px) {
  .book-first-page .page-stage { padding-inline-end: max(10rem, calc((100vw - 69rem) / 2)); }
}
@media (max-width: 1179px), (max-height: 529px) {
  .book-first-page .page-stage { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom)); }
  .section-nav {
    inset: auto max(.5rem, calc((100vw - 33rem) / 2)) calc(.5rem + env(safe-area-inset-bottom));
    translate: none;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: .2rem;
  }
  .section-nav a { justify-content: center; padding: .2rem; text-align: center; font-size: clamp(.65rem, 2.65vw, .78rem); }
  .section-nav a::before { display: none; }
}

.book-first-page {
  --book-background: #080d15;
  color: #eef3f8;
}
.book-first-page .page-stage {
  background:
    radial-gradient(ellipse min(48rem, 100vw) 43rem at 58% 26rem, #15293e 0%, transparent 100%),
    var(--book-background);
}
.book-first-page .page-masthead { border-bottom: 1px solid #314253; padding-bottom: .85rem; }
.book-first-page .page-logo { width: min(80%, 23rem); }
.book-first-page .page-logo > img:first-child { width: 60%; margin-bottom: .25rem; }
.book-first-page .page-logo > img:last-child { width: 100%; margin-bottom: 0; }
@media (max-width: 540px) {
  .book-first-page .page-masthead .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 29rem);
    justify-self: center;
  }
}
.book-first .page-label { color: #a4dbe9; }
.novel-hero { position: relative; padding-bottom: clamp(2.5rem, 6vw, 5rem); isolation: isolate; }
.novel-intro h1 {
  font-size: clamp(3rem, 8.3vw, 7rem);
  font-weight: 850;
  letter-spacing: -.075em;
  color: #f4f6f7;
}
.novel-intro .novel-author { color: #b5d3dd; font-weight: 650; }
.novel-intro .page-action {
  min-height: 46px;
  margin-top: .6rem;
  background: #b1edf5;
  border-color: #d6f8fc;
  color: #051420;
  font-weight: 800;
}
.novel-intro .page-action:is(:hover, :focus-visible) { background: #e4faff; color: #051420; }
.release-signal {
  width: max-content;
  max-width: 100%;
  margin-block: .5rem .15rem;
  padding: .12rem .7rem .55rem;
  border-inline-start: 2px solid #5395a8;
  background: linear-gradient(90deg, #17374785, transparent);
  color: #99c7d5;
  font: 650 .75rem/1.35 var(--mono);
}
.release-signal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.release-signal button {
  min-height: 44px;
  padding-inline: .3rem;
  border: 0;
  background: none;
  color: #b8e8f5;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
}
.release-signal :is(time, .release-signal-code) {
  color: #b4dcea;
  font-size: 1.05rem;
  letter-spacing: .13em;
  white-space: nowrap;
}
.release-signal[data-encoded] { width: min(100%, 17rem); }
.release-signal-code:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: .22em;
  letter-spacing: normal;
}
.release-signal-code :is(b, .signal-glyph) {
  flex: 0 0 .66em;
  width: .66em;
  text-align: center;
}
.release-signal-code b { color: #e7faff; text-shadow: 0 0 8px #73deed7a; }
.signal-glyph {
  height: .86em;
  background: linear-gradient(145deg, #b6deee, #77a8bc);
}
.signal-glyph[data-glyph="0"] {
  clip-path: polygon(54% 0, 100% 40%, 63% 40%, 63% 58%, 91% 58%, 54% 100%, 3% 59%, 25% 59%, 42% 74%, 42% 24%, 16% 44%, 0 44%);
}
.signal-glyph[data-glyph="1"] {
  clip-path: polygon(5% 0, 82% 0, 54% 21%, 26% 21%, 26% 43%, 74% 43%, 100% 62%, 61% 62%, 61% 100%, 37% 84%, 37% 62%, 5% 62%);
}
.signal-glyph[data-glyph="2"] {
  clip-path: polygon(72% 0, 96% 18%, 40% 54%, 72% 77%, 88% 62%, 100% 71%, 72% 100%, 0 53%, 68% 10%);
}
.signal-glyph[data-glyph="3"] {
  clip-path: polygon(45% 0, 61% 0, 61% 31%, 100% 51%, 63% 76%, 63% 100%, 44% 89%, 44% 65%, 69% 51%, 30% 32%, 0 51%, 0 28%, 45% 17%);
}
.signal-glyph[data-glyph="4"] {
  clip-path: polygon(0 12%, 82% 12%, 100% 0, 100% 36%, 71% 58%, 71% 100%, 49% 85%, 49% 50%, 77% 29%, 45% 29%, 16% 51%, 0 51%);
}
.signal-glyph[data-glyph="5"] {
  clip-path: polygon(74% 0, 96% 17%, 96% 44%, 72% 58%, 100% 77%, 100% 100%, 47% 65%, 47% 53%, 75% 34%, 75% 22%, 18% 60%, 18% 91%, 0 79%, 0 50%);
}
.signal-glyph[data-glyph="6"] {
  clip-path: polygon(17% 0, 100% 53%, 75% 69%, 44% 69%, 70% 52%, 39% 34%, 39% 100%, 17% 88%, 17% 56%, 0 46%, 17% 34%);
}
.signal-glyph[data-glyph="7"] {
  clip-path: polygon(31% 0, 56% 0, 56% 25%, 99% 53%, 99% 74%, 78% 74%, 78% 60%, 47% 40%, 20% 58%, 56% 82%, 56% 100%, 33% 100%, 33% 91%, 0 68%, 0 50%, 31% 28%);
}
.release-signal[data-encoded] time {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.novel-figure { width: min(100%, 22rem); }
.novel-cover img { box-shadow: 0 1.3rem 4rem #0009, 0 0 0 1px #9ec8e043; }
.cover-cue:not([hidden]) { margin-top: .8rem; }
.cover-signal {
  position: absolute;
  inset: auto 0 1px;
  height: 2px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, #9deaff 60%, transparent);
  opacity: 0;
}
.cover-awake .cover-signal { opacity: .45; }
.cover-awake + .reading-panel { border-top-color: #67a8b9; }
@media (prefers-reduced-motion: no-preference) {
  .cover-awake .cover-signal { animation: cover-to-page 1.25s .1s ease-out both; }
  .cover-awake + .reading-panel { transition: border-color .55s .7s; }
  @keyframes cover-to-page {
    0% { transform: scaleX(.06); opacity: 0; }
    55% { opacity: .95; }
    100% { transform: scaleX(1); opacity: .45; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .cover-light, .novel-cover:has(.cover-toggle[aria-pressed="true"]) .cover-light { transition: none; }
}
.book-first .reading-panel {
  background: #101923;
  border-color: #334a59;
  padding: clamp(1.1rem, 5vw, 3.5rem);
  max-width: 48rem;
}
.book-first .reading-panel > h2 { font: 600 clamp(2.8rem, 7vw, 5rem)/1 Georgia, serif; margin-block: .4rem 1.45rem; }
.book-first .reading-panel > p:not(.page-label) { color: #e1e7ed; }
.book-first .reading-panel > p:nth-of-type(2)::first-letter { font-weight: bold; color: #a4dbe9; }
.experience-section {
  margin-block: clamp(3.5rem, 9vw, 8rem);
  padding-top: clamp(1rem, 4vw, 2rem);
  border-top: 1px solid #3a4d5b;
}
.experience-heading { margin-bottom: 1.3rem; max-width: 60ch; }
.experience-heading h2, .author-introduction h2 {
  margin: .3rem 0 .55rem;
  font-size: clamp(2.05rem, 5.25vw, 4.1rem);
  letter-spacing: -.05em;
  line-height: 1.04;
}
.experience-heading > p:not(.page-label), .author-introduction p { margin: .5rem 0 0; color: #c5d4df; line-height: 1.55; }
.book-first .book-scene-feature { display: block; }
.book-first .book-scene-feature .book-footage { border-right: 0; border-bottom: 1px solid #284454; }
.book-first .book-prism { margin: .75rem 0 1.25rem; border-top: 0; }
.inline-disclosure { margin-top: .85rem; border: 1px solid #374c5d; border-radius: .4rem; padding: 0 1rem; background: #0c1520; }
.inline-disclosure[open] { padding-bottom: 1rem; }
.inline-disclosure summary {
  min-height: 48px;
  padding-block: .8rem;
  font-weight: 700;
  color: #cbeaf3;
  cursor: pointer;
}
.inline-disclosure summary::marker { color: #88d7ea; }
.inline-disclosure > :last-child:not(summary) { margin-bottom: 0; }
.author-introduction {
  display: grid;
  grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(1.1rem, 5vw, 3.25rem);
}
.book-first .author-content {
  border-top-color: #6c5a49;
  background: radial-gradient(ellipse at 23% 20%, #48382b66, transparent 70%);
}
.author-introduction .author-photo { width: 100%; max-width: 19rem; }
.book-first .author-quote { margin-block: clamp(1.5rem, 4vw, 3rem); }
.book-first .author-prose { padding-inline: .1rem; }
.book-first .announcement-list { width: 100%; }
.book-first .announcement-list .inline-disclosure > article + article { margin-top: 1rem; }
.book-first .announcement-list .inline-disclosure .announcement-archive { margin-top: 1rem; }

.character-dialog {
  position: fixed;
  color: #e7f0f6;
  width: min(calc(100% - 2rem), 53rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #4a6477;
  border-radius: .65rem;
  background: #08121d;
  box-shadow: 0 1.4rem 5rem #000b;
}
.character-dialog::backdrop { background: #02060bde; }
html:has(.character-dialog[open]) { overflow: hidden; }
.character-dialog-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .35rem 1rem;
  background: #08121d;
  border-bottom: 1px solid #385161;
  color: #b7d5e0;
  font: 600 .8rem/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .09em;
}
.character-close {
  min-height: 44px;
  padding-inline: .7rem;
  border: 1px solid #466375;
  border-radius: .25rem;
  color: #e7f4fa;
  background: #152635;
  font: inherit;
  cursor: pointer;
}
.character-content > .operator-page { padding: 0 clamp(.85rem, 3vw, 1.5rem) 1rem; }
.character-dialog .operator-heading { padding: 1rem 0 .85rem; }
.character-name { font-size: clamp(1.8rem, 5vw, 3.5rem); line-height: 1.1; margin: 0 0 .35rem; }
.character-dialog .profile-body { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
.character-dialog .profile-portrait { max-width: none; }
.character-dialog .profile-crest { width: clamp(3.5rem, 9vw, 5rem); }
.character-dialog .character-index { margin: 0; padding: .5rem 1rem 1rem; }

@media (max-width: 680px) {
  .book-first-page .page-stage { background-position: center -5rem; }
  .novel-hero { gap: 1.4rem; padding-top: 2rem; }
  .novel-intro h1 { font-size: clamp(3rem, 12vw, 4.65rem); }
  .novel-figure { width: min(72%, 16rem); }
  .character-dialog {
    inset: 0;
    width: 100%;
    max-height: none;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .character-dialog .profile-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; gap: .75rem; }
  .character-dialog :is(.profile-art, .profile-info) { grid-column: auto; grid-row: auto; }
  .character-dialog .profile-art { display: block; }
  .character-dialog .profile-portrait { width: min(100%, 20rem); margin-inline: auto; }
}
@media (max-width: 460px) {
  .author-introduction { grid-template-columns: 6rem minmax(0, 1fr); gap: .85rem; }
  .author-introduction h2 { font-size: clamp(1.45rem, 7vw, 2.2rem); }
}

@media (max-width: 680px) {
  .book-first-page .page-masthead { padding-bottom: .35rem; }
  .novel-hero {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
    align-items: start;
    column-gap: clamp(.75rem, 4vw, 1.5rem);
    row-gap: .5rem;
  }
  .novel-intro { display: contents; }
  .novel-intro > .page-label { grid-column: 1 / -1; }
  .novel-intro h1 {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    margin-block: 0;
    font-size: clamp(2.15rem, 9.8vw, 4.65rem);
  }
  .novel-intro > .novel-author { grid-column: 1; grid-row: 3; }
  .novel-intro > p:not([class]) { grid-column: 1 / -1; grid-row: 5; margin-block: .25rem 0; }
  .novel-intro > .release-signal { grid-column: 1 / -1; grid-row: 6; }
  .novel-intro > .page-action { grid-column: 1 / -1; grid-row: 7; justify-self: start; margin-top: .3rem; }
  .novel-figure { grid-column: 2; grid-row: 2 / 5; width: min(100%, 13rem); margin-block: .2rem; }
  .cover-cue:not([hidden]) { font-size: .66rem; margin-top: .5rem; }
}
