:root {
  color-scheme: dark;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  color: #edf5ff;
  background: #030e1d;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; }
button[hidden] { display: none; }
::selection { color: white; background: #226780; }
.nocturne {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: clip;
  padding: max(2.5rem, env(safe-area-inset-top)) max(3.5rem, env(safe-area-inset-right)) max(2.1rem, env(safe-area-inset-bottom)) max(3.5rem, env(safe-area-inset-left));
}
.world, .camera, .seascape, .atmosphere, .starlight, .vignette { position: absolute; inset: 0; width: 100%; height: 100%; }
.world { z-index: -1; pointer-events: none; background: #06192e; }
.camera { inset: 0; width: 100%; height: 100%; }
[data-motion="on"][data-visible="true"] .camera { will-change: transform; }
.seascape { object-fit: cover; object-position: center 56%; }
.starlight { z-index: 2; }
.atmosphere { background: linear-gradient(180deg, rgb(1 10 25 / 36%), transparent 24%, rgb(1 12 27 / 12%) 36%, rgb(1 12 27 / 15%) 51%, transparent 68%, rgb(1 10 19 / 46%)); }
.vignette { background: radial-gradient(ellipse at 50% 45%, transparent 25%, rgb(0 7 19 / 12%) 72%, rgb(0 5 16 / 35%)); }
.masthead, .colophon { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.masthead { min-height: 2.3rem; }
.signature { display: flex; align-items: center; gap: .8rem; }
.emblem { color: #d3e8f0; flex-shrink: 0; }
.signature > span { font-family: Georgia, "Times New Roman", serif; font-size: .875rem; letter-spacing: .2em; }
.edition { color: #c4d6e7; font-size: .8125rem; letter-spacing: .25em; text-shadow: 0 1px 8px #020c1e; }
.edition > span { display: inline-block; margin: 0 .8rem; color: #718ba2; }
.poem { min-width: 0; align-self: center; text-align: center; padding: 2rem 0 6.5rem; text-shadow: 0 2px 35px #061426; }
.overline { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin: 0 auto 1.8rem; color: #c2e0ee; }
.overline > span { height: 1px; width: 3.2rem; background: linear-gradient(90deg, transparent, #a3c4d266); }
.overline > span:last-child { transform: rotate(180deg); }
.overline svg { width: 12px; height: 12px; }
.prelude { color: #d2e2f1; font-size: .75rem; letter-spacing: .38em; margin: 0 0 1.35rem; }
h1 { font-family: "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif; font-size: clamp(2.5rem, 6.8vw, 7.5rem); font-weight: 400; line-height: 1.15; letter-spacing: .2em; padding-left: .2em; margin: 0; color: #f1f5fa; text-shadow: 0 0 45px #a5dfff29, 0 3px 18px #07172bc0; }
.verse { font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif; font-size: 1rem; line-height: 2; letter-spacing: .5em; padding-left: .5em; margin: 1.75rem 0 0; color: #e0eaf4; }
.afterglow { height: 3.3rem; width: 1px; margin: 2rem auto 0; background: linear-gradient(#a1c5d490, transparent); }
.colophon { position: relative; min-height: 2.75rem; color: #d1e2ec; }
.chapter { display: flex; gap: .9rem; align-items: center; font-size: .875rem; letter-spacing: .2em; text-shadow: 0 1px 8px #030e1d; }
.chapter-index { font: italic 1rem Georgia, serif; color: #a5c5d6; letter-spacing: 0; }
.chapter-line { width: 2rem; height: 1px; background: #b0d0df60; }
.ocean-mark { position: absolute; left: 50%; transform: translateX(-50%); color: #bcd3dc99; }
.motion-toggle { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .5rem .4rem; margin: 0 -.4rem 0 0; color: #d7e5ef; background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-size: .875rem; letter-spacing: .12em; text-shadow: 0 1px 8px #030e1d; transition: color .2s, background-color .2s; }
.motion-toggle:hover { color: white; background-color: #16324660; }
.motion-toggle:focus-visible { outline: 1px solid #b3e9ff; outline-offset: 5px; }
.motion-orbit { position: relative; width: 18px; height: 18px; border: 1px solid #b9d7e17a; border-radius: 50%; animation: orbit 12s linear infinite; animation-play-state: paused; }
.motion-orbit > span { position: absolute; top: -2px; left: 6px; height: 3px; width: 3px; border-radius: 50%; background: #d4f5ff; box-shadow: 0 0 5px #a6e9ff; }
[data-motion="on"][data-visible="true"] .motion-orbit { animation-play-state: running; }
@keyframes orbit { to { transform: rotate(360deg); } }
@media (min-width: 1800px) { .nocturne { padding: 3rem 4.5rem 2.5rem; } }
@media (max-width: 640px) {
  .nocturne { padding: max(1.5rem, env(safe-area-inset-top)) max(1.5rem, env(safe-area-inset-right)) max(1.25rem, env(safe-area-inset-bottom)) max(1.5rem, env(safe-area-inset-left)); }
  .masthead { align-items: flex-start; }
  .signature { gap: .55rem; }
  .signature > span { font-size: .75rem; letter-spacing: .15em; }
  .emblem { width: 25px; height: 25px; }
  .edition { font-size: .75rem; letter-spacing: .08em; line-height: 2; }
  .edition > span { margin: 0 .25rem; }
  .poem { padding-bottom: 7rem; }
  .prelude { font-size: .75rem; letter-spacing: .2em; margin-bottom: 1.4rem; }
  h1 { font-size: clamp(1.75rem, 8.4vw, 3.5rem); letter-spacing: .14em; padding-left: .14em; }
  .verse { font-size: 1rem; letter-spacing: .22em; padding-left: .22em; margin-top: 1.3rem; }
  .overline { margin-bottom: 1.3rem; gap: 1rem; }
  .overline > span { width: 2rem; }
  .afterglow { height: 2.7rem; margin-top: 1.5rem; }
  .ocean-mark { display: none; }
  .chapter { gap: .55rem; font-size: .8125rem; letter-spacing: .1em; }
  .chapter-line { width: 1.1rem; }
  .motion-toggle { font-size: .8125rem; letter-spacing: .05em; }
  .seascape { object-position: 50% 56%; }
}
@media (max-height: 560px) and (min-width: 641px) {
  .nocturne { padding: 1.2rem 2rem; }
  .poem { padding: 1rem 0; }
  .overline { margin-bottom: .8rem; }
  .prelude { margin-bottom: .6rem; }
  h1 { font-size: 3.25rem; }
  .verse { margin-top: .8rem; }
  .afterglow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .camera { transform: none !important; }
}
