/* Saint Elmo: the front page's world (after site.css): the title card, the Spieghel's title page and its leaves,
   the classify sheet, the Vigil Log, the words at the lamp. Only transforms and opacity ever move; under
   prefers-reduced-motion nothing does. */

:root {
  --page: #ebe2cb;
  --page-deep: #ddd1b4;
  --page-edge: #c9b88f;
  --gilt: #c9a557;
  --gilt-deep: #8a6c33;
  --leather: #3a2216;
  --ink-grey: #5b4f40;
  /* The mottled parchment of the game's books. */
  --mottle:
    radial-gradient(ellipse 30% 22% at 18% 24%, rgba(160, 130, 80, .10), transparent 70%),
    radial-gradient(ellipse 26% 30% at 78% 66%, rgba(160, 130, 80, .09), transparent 70%),
    radial-gradient(ellipse 20% 16% at 62% 14%, rgba(160, 130, 80, .07), transparent 70%),
    radial-gradient(ellipse 120% 100% at 50% 50%, transparent 62%, rgba(120, 90, 45, .22));
}

/* ---------- The title card ---------- */

.world .hero { background: #1c1f20; }
.card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3840 / 2160;
  background: var(--kraft) url("../assets/hero/paper-wide.webp") 0 0 / 100% 100% no-repeat;
  isolation: isolate;
}
.card .pic {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.card img { max-width: none; }
.pic > *, .sky > *, .glow > *, .breath > * { position: absolute; }

/* Each part's place on the 3840 x 2160 picture, as the game lays it (tools/hero/bake.py). */
.sky { left: 0; top: 0; width: 100%; height: 50%; }
.sky img { left: 0; top: 0; width: 100%; height: 100%; }
.sea { left: 0; top: 60.093%; width: 100%; height: 39.907%; overflow: hidden;
  -webkit-mask: url("../assets/hero/sea-mask.png") 0 0 / 100% 100% no-repeat;
  mask: url("../assets/hero/sea-mask.png") 0 0 / 100% 100% no-repeat; }
.track { position: absolute; top: 0; left: 0; width: 200%; height: 100%; display: flex; }
.track img { position: static; width: 50%; height: 100%; flex: none; }
.beams, .tower { left: 4.922%; top: 33.889%; width: 25.755%; height: 33.519%; }
.title { left: 33.880%; top: 42.963%; width: 60.130%; height: 17.5%; }
.reflection { left: 33.698%; top: 61.713%; width: 60.365%; height: 18.565%; }
.haze { left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; }
.glow, .breath, .halo, .cones { left: 0; top: 0; width: 100%; height: 100%; }
.tint, .haze, .glow { display: none; }

/* Night: the paper darkened to dusk, most at its edges; pale mist in the air and on the water; the lamp lit. */
.card.night .tint {
  display: block;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 78% 88% at 42% 46%, rgb(64, 69, 70) 0%, rgb(56, 61, 62) 45%, rgb(30, 32, 31) 100%);
  mix-blend-mode: multiply;
}
.card.night .haze { display: block; opacity: .5; }
.card.night .glow { display: block; }
.breath, .cones { mix-blend-mode: screen; mix-blend-mode: plus-lighter; }
.card.night .site-nav a { color: var(--parchment-text); }

/* What moves. Stars come and go, each layer of them in its own time; the mist's banks drift; the sea's lines
   travel, the near ones faster; the lamp shews its character (steady, then dark, dark, long dark: a quarter of a
   minute, as in the game), the beams' ink with it, the light streaming out a moment after the lantern. */
.star { animation: twinkle 13s ease-in-out infinite; }
.s1 { animation-duration: 17s; animation-delay: -6s; }
.s2 { animation-duration: 19s; animation-delay: -11s; }
.s3 { animation-duration: 23s; animation-delay: -3s; }
.s4 { animation-duration: 29s; animation-delay: -17s; }
.s5 { animation-duration: 31s; animation-delay: -24s; }
.mist { animation: drift 53s ease-in-out infinite alternate; }
.m1 { animation-duration: 67s; animation-delay: -30s; }
.m2 { animation-duration: 79s; animation-delay: -12s; }
.sea .far { animation: travel 420s linear infinite; }
.sea .near { animation: travel 250s linear infinite; }
.haze .track { animation: travel 340s linear infinite; }
.beams { animation: beams 17s linear infinite; }
.halo { animation: lamp 17s linear infinite; }
.cones { animation: lamp 17s linear infinite .3s; }
.breath { animation: breathe 9s ease-in-out infinite alternate; }

@keyframes twinkle {
  0%, 36%, 74%, 100% { opacity: 1; }
  48%, 60% { opacity: .1; }
}
@keyframes drift {
  from { transform: translateX(-1.3%); }
  to { transform: translateX(1.3%); }
}
@keyframes travel {
  to { transform: translateX(-50%); }
}
@keyframes lamp {
  0%, 58.82%, 61.94%, 65%, 68.12%, 71.18%, 80.12%, 100% { opacity: 1; }
  59.29%, 61.47%, 65.47%, 67.65%, 71.65%, 79.41% { opacity: .08; }
}
@keyframes beams {
  0%, 58.82%, 61.94%, 65%, 68.12%, 71.18%, 80.12%, 100% { opacity: 1; }
  59.29%, 61.47%, 65.47%, 67.65%, 71.65%, 79.41% { opacity: .4; }
}
@keyframes breathe {
  from { opacity: .9; }
  to { opacity: 1; }
}

/* The stop: a box to tick, so it works without the script too. */
.still-toggle {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  margin: 0;
}
.still-label {
  position: absolute;
  right: var(--gutter);
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .25rem .7rem .2rem;
  font-family: var(--caps);
  font-size: 1rem;
  color: var(--parchment-text);
  background: rgba(20, 16, 12, .55);
  border: 1px solid rgba(185, 154, 91, .6);
  cursor: pointer;
  user-select: none;
}
.still-label::before {
  content: "";
  width: .7rem; height: .7rem;
  border: 1px solid currentColor;
}
.still-toggle:checked + .still-label::before { background: currentColor; box-shadow: inset 0 0 0 2px rgba(20, 16, 12, .9); }
.still-toggle:focus-visible + .still-label { outline: 3px solid var(--lamp); outline-offset: 3px; }
.still-toggle:checked ~ .card *,
.card.is-away * { animation-play-state: paused !important; }

/* ---------- Shared: buttons ---------- */


.btn {
  padding: .45rem 1.1rem .35rem;
  font-family: var(--caps);
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--ink);
  background: linear-gradient(180deg, #ddb966, #c49c4f);
  border: 1px solid #6f5527;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, .45), 0 1px 0 rgba(0, 0, 0, .3);
  cursor: pointer;
}
.btn:hover { background: linear-gradient(180deg, #e8c879, #cfa95a); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: default; }
.btn:disabled:hover { background: linear-gradient(180deg, #ddb966, #c49c4f); }

.world main > section, .world main > aside { max-width: 1920px; margin-left: auto; margin-right: auto; }

/* Sections come out of the mist as they are reached (the script veils those below the first screen). */
.rise { transition: opacity 1.4s ease; }
.rise.veiled { opacity: 0; }

/* ---------- The Spieghel's title page: the Rule ---------- */

.rule { padding: 4.5rem 0 1.5rem; }
.volume {
  max-width: 34rem;
  margin: 0 auto;
  padding: 14px;
  background: var(--leather);
  border-radius: 3px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(201, 165, 87, .35);
}
.title-page {
  position: relative;
  padding: 4.25rem 2.5rem 4.5rem;
  text-align: center;
  color: var(--ink);
  background-color: var(--page);
  background-image: var(--grain), var(--mottle);
  box-shadow: inset 0 0 0 1px rgba(138, 108, 51, .5), inset 0 0 0 7px var(--page), inset 0 0 0 8px rgba(138, 108, 51, .4);
}
.tp-title {
  margin: 0 0 .9rem;
  font-family: var(--caps);
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
  line-height: 1.15;
}
.tp-kept { margin: 0 0 1.6rem; font-style: italic; font-size: 1.15rem; }
.ornament { display: block; width: 1.5rem; height: 1.5rem; margin: 0 auto 1.6rem; color: var(--ink); }
.tp-rule-title {
  margin: 0 0 .8rem;
  font-family: var(--caps);
  font-weight: 400;
  font-size: 1.45rem;
}
.tp-rule {
  max-width: 24rem;
  margin: 0 auto;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
}

/* ---------- Words at the lamp ---------- */

.words { padding: 3.25rem var(--gutter) 3.5rem; text-align: center; }
.words-title {
  margin: 0 0 1.6rem;
  font-family: var(--caps);
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--brass);
}
.words-title::before, .words-title::after {
  content: "";
  display: inline-block;
  width: 2.5rem;
  margin: 0 .8rem;
  vertical-align: middle;
  border-top: 1px solid rgba(185, 154, 91, .6);
}
.exchange { max-width: 34rem; margin: 0 auto; }
.said { margin: 0 0 1.15rem; }
.said:last-child { margin-bottom: 0; }
.who {
  display: block;
  font-family: var(--caps);
  font-size: .95rem;
  letter-spacing: .03em;
  color: var(--brass);
}
.line { font-style: italic; font-size: 1.3rem; line-height: 1.4; color: var(--parchment-text); }

/* ---------- The Spieghel: an open book ---------- */

.spieghel { padding: 3.5rem 0 3rem; overflow-x: clip; }
.spieghel .wood-heading { margin-bottom: 1.4rem; }
.book {
  position: relative;
  max-width: 68rem;
  margin: 0 auto;
}
/* The four parts of the book, as the ribbons mark them: hinted at, never opened. */
.ribbons {
  display: flex;
  justify-content: flex-end;
  gap: .4rem;
  margin: 0;
  padding: 0 1.6rem;
  list-style: none;
}
.ribbons li {
  padding: .3rem .85rem .45rem;
  font-family: var(--caps);
  font-size: .95rem;
  line-height: 1.1;
  letter-spacing: .04em;
  color: var(--parchment-text);
  background: #4b2a24;
  border-radius: 3px 3px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 230, 190, .12);
  opacity: .55;
  transform: translateY(5px);
  transition: opacity .6s ease, transform .6s ease;
}
.ribbons [data-tier="3"] { background: #5b4a26; }
.ribbons [data-tier="4"] { background: #2e3d45; }
.ribbons [data-tier="5"] { background: #2a2826; }
.ribbons .is-here { opacity: 1; transform: none; }
.leaves {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  padding: 14px;
  scroll-padding: 0 14px;
  background: var(--leather);
  border-radius: 4px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(201, 165, 87, .35);
}
/* The book's edges are lost in mist. */
.book::before, .book::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0; bottom: 2.5rem;
  width: 16%;
  pointer-events: none;
}
.book::before { left: -8%; background: radial-gradient(ellipse 50% 46% at 50% 56%, rgba(214, 219, 216, .3), rgba(214, 219, 216, .12) 55%, transparent 100%); }
.book::after { right: -8%; background: radial-gradient(ellipse 50% 46% at 50% 44%, rgba(214, 219, 216, .3), rgba(214, 219, 216, .12) 55%, transparent 100%); }
.leaves:focus-visible { outline: 3px solid var(--lamp); outline-offset: 4px; }
.book.is-live .leaves { scrollbar-width: none; }
.book.is-live .leaves::-webkit-scrollbar { display: none; }
.leaf {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: 1fr 1fr;
  color: var(--ink);
  background-color: var(--page);
  background-image:
    linear-gradient(90deg, transparent 47.5%, rgba(70, 45, 15, .16) 49.6%, rgba(40, 25, 8, .32) 50%, rgba(70, 45, 15, .16) 50.4%, transparent 52.5%),
    var(--grain), var(--mottle);
  box-shadow: inset 0 0 0 1px rgba(138, 108, 51, .5);
}
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 35rem;
  padding: 1.6rem 2.6rem 3rem;
  text-align: center;
}
.running {
  align-self: stretch;
  margin: 0 0 .25rem;
  font-family: var(--caps);
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--ink-grey);
  text-align: left;
}
.page-text .running { text-align: right; }
.plate {
  position: relative;
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 4 / 3;
  margin: .9rem auto 1.1rem;
  mix-blend-mode: multiply;
  cursor: default;
}
.book.is-live .plate { cursor: pointer; }
.plate .stage {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  transition: opacity .9s ease;
}
.plate .stage.is-out { opacity: 0; }
.plate.is-quick .stage { transition: none; }
.dutch { margin: 0; font-style: italic; font-size: 1.1rem; color: var(--ink-grey); }
.name {
  margin: .1rem 0 .35rem;
  font-family: var(--caps);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.15;
}
.status { margin: 0; font-style: italic; font-size: 1.15rem; }
/* A cut plate's text, under its label, as the game's complete page sets it: centred, in italic, in full ink. */
.plate-text {
  max-width: 27rem;
  margin: .45rem auto 1.2rem;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--ink);
}
.folio {
  position: absolute;
  bottom: 1rem; left: 0; right: 0;
  margin: 0;
  font-size: 1rem;
  color: var(--ink-grey);
}
.page-text { justify-content: center; text-align: left; align-items: stretch; }
.page-text .running { position: absolute; top: 1.6rem; left: 2.6rem; right: 2.6rem; }
.page-text .line {
  max-width: 24rem;
  margin: 0 auto;
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
}

/* A leaf the site does not open: its numeral and its names over a page lost in mist. */
.leaf-lost .lost-numeral {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 4 / 3;
  margin: .9rem auto 1.1rem;
  font-family: var(--caps);
  font-size: 4.5rem;
  color: var(--ink-grey);
  opacity: .3;
}
.leaf-lost .page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 34% at 46% 34%, rgba(247, 247, 243, .92), rgba(236, 237, 232, .6) 45%, transparent 72%),
    radial-gradient(ellipse 55% 26% at 62% 58%, rgba(244, 245, 240, .7), transparent 70%),
    radial-gradient(ellipse 80% 30% at 30% 82%, rgba(240, 241, 236, .55), transparent 70%);
}
.leaf-lost .page-text::after {
  background:
    radial-gradient(ellipse 75% 40% at 40% 40%, rgba(247, 247, 243, .85), rgba(236, 237, 232, .5) 50%, transparent 75%),
    radial-gradient(ellipse 60% 30% at 65% 75%, rgba(244, 245, 240, .6), transparent 70%);
}
.leaf-lost .dutch, .leaf-lost .name { position: relative; z-index: 1; }

.book-controls {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem 0 0;
}
.book-controls[hidden] { display: none; }
.book-controls .btn:disabled { opacity: .45; }

/* ---------- Classify: the game's sheet ---------- */

.classify { padding: 3rem 0 2rem; }
.sheet {
  position: relative;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.9rem 2.25rem 1.6rem;
  color: var(--ink);
  background-color: var(--page);
  background-image: var(--grain), var(--mottle);
  border: 7px solid #c3a35c;
  box-shadow: 0 0 0 1px #6f5527, inset 0 0 0 1px rgba(111, 85, 39, .6), 0 20px 55px rgba(0, 0, 0, .6);
}
.sheet-title {
  margin: 0 0 .9rem;
  font-family: var(--caps);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1.1;
}
.reported {
  margin: 0;
  font-family: var(--caps);
  font-size: 1rem;
  letter-spacing: .07em;
  color: var(--ink-grey);
}
.report {
  position: relative;
  margin: .2rem 0 1.4rem;
  padding: 0 0 1.2rem;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.45;
  border-bottom: 1px solid #b08f4a;
}
.report:focus { outline: none; }
.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 0 1.7rem;
  padding: 0;
  list-style: none;
}
.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: .7rem .7rem .9rem;
  font: inherit;
  color: var(--ink);
  background: rgba(255, 250, 235, .18);
  border: 2px solid #5d5040;
  cursor: pointer;
}
.choice:disabled { cursor: default; }
.choice:not(:disabled):not([aria-disabled="true"]):hover { border-color: var(--binding); background: rgba(255, 250, 235, .32); }
.choice-plate { display: block; width: 100%; aspect-ratio: 4 / 3; mix-blend-mode: multiply; }
.choice-plate img { width: 100%; height: 100%; }
.choice-name { margin-top: .5rem; font-size: 1.4rem; line-height: 1.2; }
.sheet-foot { display: flex; justify-content: space-between; gap: 1rem; }
.after {
  min-height: 1.5em;
  margin: 1.25rem 0 .2rem;
  font-style: italic;
  font-size: 1.35rem;
  text-align: center;
}
.seal {
  position: absolute;
  z-index: 2;
  width: 6.5rem; height: 6.5rem;
  pointer-events: none;
  filter: drop-shadow(0 2px 2px rgba(40, 10, 5, .45));
  transform: rotate(-9deg);
  animation: stamp .38s ease-out both;
}
.choice .seal { right: -1.4rem; top: -1.4rem; }
[data-none] { position: relative; }
[data-none] .seal { left: 50%; top: 50%; width: 4.6rem; height: 4.6rem; margin: -2.3rem 0 0 -2.3rem; }
@keyframes stamp {
  from { opacity: 0; transform: scale(1.22) rotate(-15deg); }
  to { opacity: 1; transform: scale(1) rotate(-9deg); }
}
.scene { transition: opacity .45s ease; }
.scene.is-out { opacity: 0; }
.seal-def { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- The Vigil Log: a few leaves of it, trailing off ---------- */

.watch { padding: 3rem 0 3.5rem; }
.log-page {
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.4rem 2.25rem 6rem 4.25rem;
  color: var(--ink);
  background-color: var(--page);
  background-image: var(--grain), var(--mottle);
  border-left: 12px solid var(--binding);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55), inset 10px 0 18px -10px rgba(0, 0, 0, .45);
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 6.5rem), rgba(0, 0, 0, .4) calc(100% - 3rem), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 6.5rem), rgba(0, 0, 0, .4) calc(100% - 3rem), transparent);
}
.log-page::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 2.5rem;
  width: 5px;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  opacity: .8;
}
.log-title {
  margin: 0;
  font-family: var(--caps);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.15;
}
.log-kept {
  margin: .2rem 0 0;
  padding-bottom: .9rem;
  font-style: italic;
  font-size: 1.15rem;
  border-bottom: 1px solid var(--ink-grey);
}
.log-entries { margin: 1.1rem 0 0; padding: 0; list-style: none; }
.log-entries li { margin: 0 0 1.35rem; }
.hour {
  margin: 0;
  font-family: var(--caps);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .06em;
  color: var(--ink-grey);
}
.entry { margin: .05rem 0 0; font-style: italic; font-size: 1.22rem; line-height: 1.45; }

/* ---------- The clip, three pictures, the close ---------- */

.clip { padding: 2.5rem 0 3rem; }
.shots .shot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.closing .plain { max-width: 38rem; margin: 0 auto 1.6rem; }

/* ---------- Narrow screens: the tall card, one page at a time ---------- */

@media (max-width: 960px) {
  .shots .shot-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .card { aspect-ratio: 1366 / 2160; background-image: url("../assets/hero/paper-tall.webp"); }
  .card .pic { width: 281.113%; }
  /* As the tall key art lays them: the name over the tower, its reflection low in the sea. */
  .title { left: 1.589%; top: 6.944%; width: 32.370%; height: 9.398%; }
  .reflection { left: 1.490%; top: 82.4%; width: 32.495%; height: 9.995%; }
  .still-label { bottom: 10px; font-size: .95rem; }

  .rule { padding-top: 3rem; }
  .title-page { padding: 3rem 1.25rem 3.25rem; }
  .words { padding: 2.5rem var(--gutter) 2.75rem; }
  .line { font-size: 1.2rem; }

  .ribbons { justify-content: center; gap: .3rem; padding: 0 .5rem; }
  .ribbons li { padding: .25rem .5rem .4rem; font-size: .8rem; }
  .leaves { padding: 8px; scroll-padding: 0 8px; }
  .book::before, .book::after { width: 12%; }
  .leaf {
    grid-template-columns: minmax(0, 1fr);
    background-image: var(--grain), var(--mottle);
  }
  .page { min-height: 0; padding: 1.1rem 1.1rem 2.6rem; }
  .page-text { justify-content: flex-start; padding-top: .4rem; padding-bottom: 2rem; }
  .page-text .running { display: none; }
  .page-text .line { font-size: 1.15rem; }
  .leaf-lost .page-text { min-height: 6rem; }
  .name { font-size: 1.6rem; }
  .page-plate { padding-bottom: 1.2rem; }
  .folio { position: static; margin-top: .6rem; }
  .leaf-lost .lost-numeral { font-size: 3.5rem; }
  .book-controls .btn { flex: 1 1 0; }

  .sheet { padding: 1.3rem 1rem 1.1rem; border-width: 5px; }
  .sheet-title { font-size: 1.8rem; }
  .report { font-size: 1.25rem; }
  .choices { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .choice { flex-direction: row; gap: .9rem; padding: .5rem .7rem .5rem .5rem; text-align: left; }
  .choice-plate { width: 46%; flex: none; }
  .choice-name { margin: 0; font-size: 1.25rem; }
  .choice .seal { right: auto; left: -.7rem; top: -.9rem; }
  .seal { width: 5rem; height: 5rem; }
  .sheet-foot .btn { font-size: 1.05rem; padding: .45rem .7rem .35rem; }

  .log-page { padding: 1.8rem 1rem 6rem 2.6rem; border-left-width: 8px; }
  .log-page::before { left: 1.25rem; }
  .log-title { font-size: 1.7rem; }
  .entry { font-size: 1.12rem; }
}

@media (prefers-reduced-motion: reduce) {
  .card *, .seal { animation: none !important; }
  .ribbons li { transition: none; }
  .still-toggle, .still-label { display: none; }
  .rise.veiled { opacity: 1; }
}