:root {
  --night: #141414;
  --night-text: #ece9e2;
  --night-muted: #7d7b76;
  --blue: #2a48d8;
  --blue-deep: #1a2c8f;
  --paper: #f3efe6;
  --ink: #1d1c1a;
  --ink-soft: #4a4741;
  --line: #d9d3c6;
  --red: #d4402b;
  --pink: #d99597;
  --pink-deep: #c47f82;
  --yellow: #f3d465;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter", -apple-system, sans-serif;
  --ease-fold: cubic-bezier(0.6, 0.05, 0.25, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--mono);
}

button {
  font: inherit;
}

/* ---------- Dark header ---------- */

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 40px;
  border-bottom: 1px solid #262626;
  color: var(--night-text);
  font-size: 13px;
  font-weight: 500;
}

.topbar-right {
  justify-self: end;
}

.monogram {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--night-text);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1;
  /* "sb" has no descenders, so its ink sits 2px above the line box's centre. */
  padding-top: 4px;
}

/* The heading stays put while the blue desk slides up over it, fading as it's covered. */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  will-change: opacity, transform;
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 40px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 40px 72px;
}

.crumbs {
  margin: 0;
  font-size: 13px;
  color: var(--night-muted);
}

.hero h1 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(56px, 9vw, 124px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: #f4f1ea;
}

.hero-note {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: #b4b1a9;
}

.hero-note p {
  margin: 0 0 14px;
}

.hero-note p:last-child {
  margin: 0;
  color: var(--night-muted);
}

/* ---------- Blue desk ---------- */

.desk {
  position: relative;
  z-index: 1;
  /* Always tall enough to scroll the heading fully out of sight. */
  min-height: 100vh;
  background: var(--blue);
  padding: 96px 24px 48px;
  overflow-x: clip;
}

.folder {
  --h: 740px;
  --tabw: 46px;
  --tab-h: min(124px, calc((var(--h) - 60px) / var(--tab-count, 1) - 12px));
  position: relative;
  width: min(1080px, calc(100vw - 48px - var(--tabw) * 2));
  height: var(--h);
  margin: 0 auto;
  perspective: 2800px;
  /* Closed: the cover (right half) sits centred on the desk. */
  transform: translateX(-25%);
  transition: transform 1.2s var(--ease-fold);
}

.folder.is-open {
  transform: none;
}

/* Back board of the folder, under the papers. */
.folder-inside {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  background: var(--pink-deep) var(--grain);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 24px 50px rgba(8, 18, 80, 0.35);
}

/* Edges of the paper stack peeking out. */
.folder-inside::before,
.folder-inside::after {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 12px;
  left: 0;
  right: 10px;
  background: #e7e1d4;
  border-radius: 0 3px 3px 0;
}

.folder-inside::after {
  top: 21px;
  bottom: 15px;
  right: 14px;
  background: #ece7dc;
}

.sheet {
  position: absolute;
  top: 18px;
  bottom: 18px;
}

.sheet-right {
  z-index: 2;
  left: 50%;
  right: 18px;
}

.sheet-left {
  z-index: 7;
  left: 18px;
  right: 50%;
  opacity: 0;
  transform: translateY(-18px) rotate(-1.2deg);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-fold);
  pointer-events: none;
}

.is-settled .sheet-left {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ---------- Pages ---------- */

.page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.page-left {
  border-radius: 3px 0 0 3px;
  background-image: linear-gradient(to left, rgba(60, 45, 20, 0.12), transparent 34px), var(--grain);
}

.page-right {
  border-radius: 0 3px 3px 0;
  background-image: linear-gradient(to right, rgba(60, 45, 20, 0.14), transparent 34px), var(--grain);
}

.page-scroll {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 40px 48px 24px 72px;
}

.page-right .page-scroll {
  padding: 40px 64px 24px 52px;
}

.page-foot {
  display: flex;
  justify-content: space-between;
  padding: 10px 48px 18px 72px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #6c6860;
}

.page-right .page-foot {
  padding: 10px 64px 18px 52px;
}

/* Curled bottom-right corner on a right page whose entry continues. */
.turn-corner {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: width 0.25s ease, height 0.25s ease;
}

/* The folder showing where the corner has lifted away. */
.turn-corner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pink-deep);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* The folded-over flap. */
.turn-corner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, #f6f2ea 0%, #ddd6c7 55%, #c9c0ae 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.turn-label {
  position: absolute;
  right: 12px;
  bottom: calc(100% + 8px);
  white-space: nowrap;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  transition: transform 0.25s ease;
}

.turn-corner:hover,
.turn-corner:focus-visible {
  width: 64px;
  height: 64px;
  outline: none;
}

.turn-corner:hover .turn-label,
.turn-corner:focus-visible .turn-label {
  transform: translateX(-4px);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.punches {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 40px 0;
}

.punches span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--blue);
}

.page-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.margin-note {
  margin: 0;
  max-width: 230px;
  font-size: 11px;
  line-height: 1.55;
  color: #3b3934;
}

.file-no {
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1.5px solid var(--blue);
  outline: 1px solid var(--blue);
  outline-offset: 3px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
}

.left-title {
  margin: 30px 0 28px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.digit-strip {
  position: absolute;
  top: 44px;
  right: 22px;
  writing-mode: vertical-rl;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: #6c6860;
}

.right-date {
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c6860;
}

.running-head {
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c6860;
}

.end-page .page-scroll {
  display: grid;
  place-items: center;
}

.end-mark {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.end-mark p {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6c6860;
}

/* ---------- Stamp ---------- */

.stamp {
  position: absolute;
  display: grid;
  place-items: center;
  align-content: center;
  width: 96px;
  height: 96px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  transform: rotate(-14deg);
  opacity: 0.85;
  mix-blend-mode: multiply;
}

.stamp::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--blue);
  border-radius: 50%;
}

.stamp span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  line-height: 0.9;
}

.stamp small {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.stamp-small {
  position: relative;
  width: 78px;
  height: 78px;
}

.stamp-small span {
  font-size: 26px;
}

.stamp-small small {
  font-size: 7px;
}

/* ---------- Cover ---------- */

.cover {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease-fold);
  cursor: pointer;
}

.folder:not(.is-open) .cover:hover,
.folder:not(.is-open) .cover:focus-visible {
  transform: rotateY(-12deg);
  outline: none;
}

.is-open .cover {
  transform: rotateY(-180deg);
  cursor: default;
}

.is-settled .cover {
  z-index: 1;
}

.cover-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 4px 10px 10px 4px;
}

.cover-front {
  display: flex;
  flex-direction: column;
  padding: 40px 48px;
  background: var(--pink) var(--grain);
  box-shadow: 0 24px 50px rgba(8, 18, 80, 0.4);
}

/* The folder's own tab along the top edge. */
.cover-front::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 44px;
  width: 170px;
  height: 26px;
  background: var(--pink) var(--grain);
  border-radius: 10px 10px 0 0;
}

.cover-back {
  transform: rotateY(180deg);
  background: var(--pink-deep) var(--grain);
  border-radius: 10px 4px 4px 10px;
  box-shadow: 0 24px 50px rgba(8, 18, 80, 0.35);
}

.cover-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.cover-top .mono {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: #3b2f2c;
}

.cover-top .file-no {
  background: rgba(243, 239, 230, 0.4);
}

.cover-title {
  margin: auto 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(56px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cover-name {
  margin: 16px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}

.cover-label {
  align-self: flex-start;
  margin-top: 34px;
  padding: 18px 20px 14px;
  background: var(--yellow) var(--grain);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink);
  transform: rotate(-2deg);
  clip-path: polygon(0 6px, 8% 0, 17% 5px, 27% 1px, 38% 6px, 49% 0, 60% 5px, 71% 1px, 82% 6px, 92% 0, 100% 5px, 100% 100%, 0 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.cover-label span {
  display: inline-block;
  min-width: 70px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #5c5236;
}

.cover-front > .stamp {
  right: 52px;
  bottom: 110px;
}

.cover-hint {
  margin: 34px 0 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3b2f2c;
  animation: nudge 1.8s ease-in-out infinite;
}

@keyframes nudge {
  50% { transform: translateX(6px); }
}

/* ---------- Date tabs ---------- */

.folder-tabs {
  position: absolute;
  top: 0;
  left: 100%;
  width: var(--tabw);
  height: 100%;
}

.folder-tab {
  position: absolute;
  z-index: 0;
  left: -10px;
  top: calc(30px + var(--i) * (var(--tab-h) + 12px));
  width: calc(var(--tabw) + 10px);
  height: var(--tab-h);
  padding: 0 0 0 10px;
  border: 0;
  border-radius: 0 10px 10px 0;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 3px 3px 10px rgba(8, 18, 80, 0.25);
}

.folder-tab:hover {
  transform: translateX(5px);
}

.tab-c0 { background: var(--red); color: #fff; }
.tab-c1 { background: var(--blue-deep); color: #fff; }
.tab-c2 { background: var(--yellow); color: var(--ink); }
.tab-c3 { background: var(--pink); color: var(--ink); }

.folder-tab.is-active {
  background: var(--paper);
  color: var(--blue);
  font-style: italic;
  transform: translateX(5px);
}

.folder-tab:focus-visible,
.flip-btn:focus-visible,
.text-btn:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

/* ---------- Page turn (desktop): a leaf crosses the spine ---------- */

.leaf {
  position: absolute;
  z-index: 8;
  top: 18px;
  bottom: 18px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.leaf.leaf-forward {
  left: 50%;
  right: 18px;
  transform-origin: left center;
  animation: turn-forward 1s cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
}

.leaf.leaf-back {
  left: 18px;
  right: 50%;
  transform-origin: right center;
  animation: turn-back 1s cubic-bezier(0.45, 0.05, 0.25, 1) forwards;
}

@keyframes turn-forward {
  0% { transform: rotateY(0deg); }
  15% { transform: rotateY(-14deg) translateZ(10px); }
  100% { transform: rotateY(-180deg); }
}

@keyframes turn-back {
  0% { transform: rotateY(0deg); }
  15% { transform: rotateY(14deg) translateZ(10px); }
  100% { transform: rotateY(180deg); }
}

.leaf-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.leaf-back-face {
  transform: rotateY(180deg);
}

/* Light falls off the page as it lifts, and returns as it lands. */
.leaf-face::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.leaf-forward .leaf-front::after,
.leaf-back .leaf-back-face::after {
  background: linear-gradient(to left, rgba(20, 15, 5, 0.45), rgba(20, 15, 5, 0.05) 70%);
}

.leaf-forward .leaf-back-face::after,
.leaf-back .leaf-front::after {
  background: linear-gradient(to right, rgba(20, 15, 5, 0.45), rgba(20, 15, 5, 0.05) 70%);
}

.leaf-front::after {
  animation: shade-out 1s ease forwards;
}

.leaf-back-face::after {
  animation: shade-in 1s ease forwards;
}

@keyframes shade-out {
  0% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

@keyframes shade-in {
  0%, 50% { opacity: 1; }
  100% { opacity: 0; }
}

/* Shadow sweeping across the page underneath. */
.is-turning .sheet-right::after,
.is-turning .sheet-left::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
}

.turning-forward .sheet-right::after {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent 60%);
  animation: under-shadow 1s ease forwards;
}

.turning-back .sheet-left::after {
  background: linear-gradient(to left, rgba(0, 0, 0, 0.3), transparent 60%);
  animation: under-shadow 1s ease forwards;
}

@keyframes under-shadow {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* ---------- Entry text ---------- */

.entry-content {
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--ink);
}

.entry-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-content li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}

.entry-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--blue);
}

.flow li.d0:not(:first-child) {
  margin-top: 14px;
}

/* Prose entries: written paragraphs, no bullets. */
.flow li.para {
  padding-left: 0;
  margin-bottom: 16px;
}

.flow li.para::before {
  display: none;
}

.flow li.d1,
.flow li.d2 {
  margin-left: 22px;
  margin-bottom: 7px;
  font-size: 16px;
  color: var(--ink-soft);
}

.flow li.d2 {
  margin-left: 44px;
  font-size: 15.5px;
}

.flow li.d1::before,
.flow li.d2::before {
  width: 5px;
  height: 5px;
  background: none;
  border: 1px solid var(--blue);
}

.entry-content strong {
  font-weight: 500;
}

.entry-content ul ul {
  margin-top: 8px;
  padding-left: 4px;
}

.entry-content ul ul li {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

.entry-content ul ul li::before {
  width: 5px;
  height: 5px;
  background: none;
  border: 1px solid var(--blue);
}

.entry-content a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- Flip controls ---------- */

.flip-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 64px;
}

.flip-btn {
  padding: 13px 20px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.flip-btn:hover:not(:disabled) {
  background: #fff;
  color: var(--blue);
}

.flip-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.page-counter {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.close-row {
  margin: 22px 0 0;
  text-align: center;
}

.text-btn {
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0 0 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

/* ---------- Phone / narrow: pages stack, tabs move to the top ---------- */

@media (max-width: 860px) {
  .topbar {
    padding: 14px 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 20px 52px;
  }
  .desk {
    padding: 56px 16px 40px;
  }
  .folder {
    width: 100%;
    max-width: 560px;
    height: auto;
    min-height: 620px;
    transform: none;
    perspective: 1600px;
    display: flex;
    flex-direction: column;
    padding: 50px 0 14px;
  }
  .folder-inside {
    top: 50px;
    left: 0;
    width: 100%;
    height: auto;
    bottom: 0;
    border-radius: 10px;
  }
  .folder-inside::before,
  .folder-inside::after {
    display: none;
  }
  .sheet,
  .sheet-left,
  .sheet-right {
    position: relative;
    inset: auto;
    margin: 14px 14px 0;
  }
  .folder:not(.is-open) .sheet {
    display: none;
  }
  .page {
    position: relative;
    inset: auto;
    height: 620px; /* keep in sync with PHONE_PAGE_H in script.js */
    border-radius: 3px;
    background-image: var(--grain);
  }
  .page-scroll,
  .page-right .page-scroll {
    padding: 28px 22px 12px 48px;
  }
  .page-right .page-scroll {
    padding-left: 22px;
  }
  .page-foot,
  .page-right .page-foot {
    padding: 8px 22px 16px 48px;
  }
  .page-right .page-foot {
    padding-left: 22px;
  }
  .punches {
    left: 18px;
    justify-content: flex-start;
    gap: 90px;
  }
  .punches span {
    width: 11px;
    height: 11px;
  }
  .digit-strip {
    display: none;
  }
  .page-top {
    flex-direction: column-reverse;
    gap: 14px;
  }
  .left-title {
    font-size: 34px;
    margin: 22px 0 28px;
  }
  .cover {
    top: 50px;
    left: 0;
    width: 100%;
    height: 570px;
  }
  .is-settled .cover {
    visibility: hidden;
  }
  .cover-front {
    padding: 30px 26px;
  }
  .cover-front::before {
    left: 26px;
    width: 120px;
  }
  .cover-front > .stamp {
    right: 24px;
    bottom: 96px;
    width: 80px;
    height: 80px;
  }
  .folder-tabs {
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    display: flex;
    gap: 6px;
    padding: 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .folder-tab {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 auto;
    width: auto;
    height: 44px;
    margin-top: 10px;
    padding: 0 14px;
    writing-mode: horizontal-tb;
    border-radius: 10px 10px 0 0;
    font-size: 14px;
    box-shadow: none;
  }
  .folder-tab:hover,
  .folder-tab.is-active {
    transform: translateY(-4px);
  }
  .turn-out .sheet {
    transform-origin: left center;
    animation: m-out 0.38s ease-in forwards;
  }
  .turn-in .sheet {
    transform-origin: left center;
    animation: m-in 0.45s ease-out;
  }
  .flip-controls {
    padding-top: 40px;
  }
  .flip-btn {
    padding: 11px 12px;
    font-size: 11px;
  }
  .page-counter {
    font-size: 10px;
    text-align: center;
  }
}

@keyframes m-out {
  to { transform: rotateY(-95deg); opacity: 0.3; }
}

@keyframes m-in {
  from { transform: rotateY(70deg); opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .folder,
  .cover,
  .sheet-left,
  .folder-tab,
  .flip-btn {
    transition: none;
  }
  .cover-hint {
    animation: none;
  }
}
