/* ==========================================================================
   私人书卷 · v4
   Mounted scroll, a visible paper cover, brush titles and four letter sheets.
   ========================================================================== */

:root {
  --brush-font: "STLiti", "华文隶书", "LiSu", "STKaiti", "KaiTi", serif;
  --fp-letter: #f8f3e9;
  --fp-letter-deep: #eee7d9;
  --fp-letter-rule: rgba(135, 62, 48, 0.16);
  --fp-letter-line: rgba(21, 21, 20, 0.25);
}

/* --- brush titles ------------------------------------------------------- */

.fp-title__main h2,
.fp-guestbook__lead h2,
.fp-music__info h3,
.article-reader__head h2,
.fp-article-card__title,
.fp-article-index__title {
  font-family: var(--brush-font);
  font-weight: 400;
}

.fp-title__main h2 {
  font-size: clamp(44px, 4.7vw, 64px);
  line-height: 1.1;
  letter-spacing: 0.075em;
}

.fp-guestbook__lead h2 {
  font-size: clamp(62px, 6.4vw, 88px);
  line-height: 1.08;
  letter-spacing: 0.05em;
}

.fp-music__info h3 {
  font-size: clamp(32px, 3.1vw, 43px);
  line-height: 1.2;
}

.article-reader__head h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.3;
}

.fp-brand__copy b,
.fp-avatar-copy b,
.fp-footer__brand b {
  font-family: var(--brush-font);
}

/* --- mounted calligraphy: whole image, safe margins --------------------- */

.fp-hero {
  transform: translate3d(0, calc(var(--hp) * -4vh), 0) scale(calc(1 - (var(--hp) * 0.018)));
  opacity: 1;
}

.fp-hero__art {
  top: calc(var(--fp-header) + clamp(14px, 2.6vh, 26px));
  right: clamp(18px, 5vw, 80px);
  bottom: clamp(104px, 14vh, 150px);
  left: clamp(18px, 5vw, 80px);
  display: grid;
  place-items: center;
  padding: 0;
  transform: none;
}

.fp-hero__ink {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  flex: 0 0 auto;
  place-items: center;
  padding: clamp(6px, 1vw, 16px);
  translate:
    calc(var(--fp-mx, 0) * 10px)
    calc(var(--fp-my, 0) * 8px);
  rotate: calc(var(--fp-mx, 0) * 0.18deg);
  transition:
    translate 0.55s var(--fp-ease),
    rotate 0.65s var(--fp-ease),
    opacity 1.25s ease,
    filter 1.55s ease,
    transform 1.7s var(--fp-ease);
}

.fp-hero__ink img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: none;
}

.fp-hero__meta,
.fp-hero__bottom {
  padding: 0;
  border: 0;
  clip-path: none;
  background: none;
  backdrop-filter: none;
  box-shadow: none;
}

.fp-hero__meta {
  bottom: 58px;
}

.fp-hero__bottom {
  bottom: 56px;
}

/* --- the content itself is the page that covers the scroll --------------- */

.fp-scroll {
  border-top: 1px solid rgba(21, 21, 20, 0.26);
  box-shadow:
    0 -2px 0 rgba(255, 255, 255, 0.45),
    0 -42px 90px rgba(21, 21, 20, 0.16);
}

.fp-scroll::before {
  top: -22px;
  height: 22px;
  background: linear-gradient(to top, rgba(21, 21, 20, 0.13), transparent);
}

/* --- article section: four vertical letter sheets ----------------------- */

.fp-articles {
  min-height: 0;
  padding: 84px 0 68px;
  background: #e5e0d5;
}

.fp-articles__texture {
  opacity: 0.62;
}

.fp-articles::after {
  opacity: 0.085;
}

.fp-articles__top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.fp-articles__sub {
  margin-top: 7px;
  color: var(--fp-ink-2);
  font-family: var(--brush-font);
  font-size: 18px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.fp-articles__top-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
}

.fp-articles__top-meta b {
  color: var(--fp-ink);
  font-family: var(--brush-font);
  font-size: 24px;
  font-weight: 400;
}

.fp-article-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 1.7vw, 24px);
  min-height: 690px;
  padding: 26px 0 22px;
  perspective: 1800px;
  perspective-origin: 50% 36%;
}

.fp-article-stage .fp-article-shell {
  grid-column: auto;
  justify-self: stretch;
  width: auto;
  margin-top: 0;
}

.fp-article-shell {
  position: relative;
  min-width: 0;
  opacity: 0;
  filter: none;
  transform: translateY(56px);
  transform-origin: 50% 72%;
  transition:
    opacity 0.68s ease var(--enter-delay, 0s),
    transform 0.9s var(--fp-ease) var(--enter-delay, 0s);
  will-change: opacity, transform;
}

.fp-article-shell.is-inview {
  opacity: 1;
  filter: none;
  transform: none;
}

.fp-article-shell--one {
  --ty: 44px;
  --tz: -40px;
  --rx: 3deg;
  --ry: 10deg;
  --rz: -1.2deg;
  --enter-delay: 0.04s;
  z-index: 2;
}

.fp-article-shell--two {
  --ty: 0px;
  --tz: 30px;
  --rx: 2deg;
  --ry: -7deg;
  --rz: 0.8deg;
  --enter-delay: 0.16s;
  z-index: 3;
}

.fp-article-shell--three {
  --ty: 28px;
  --tz: -30px;
  --rx: 4deg;
  --ry: -11deg;
  --rz: 0.5deg;
  --enter-delay: 0.28s;
  z-index: 1;
}

.fp-article-index {
  --ty: 66px;
  --tz: 0px;
  --rx: 2deg;
  --ry: 3deg;
  --rz: 0deg;
  --enter-delay: 0.36s;
  order: 4;
  z-index: 0;
}

.fp-article-rig {
  position: relative;
  transform-style: preserve-3d;
  transform:
    translate3d(0, var(--ty), var(--tz))
    rotateX(var(--rx))
    rotateY(var(--ry))
    rotateZ(var(--rz));
  transition: transform 1s var(--fp-ease);
}

.fp-article-shell:not(.is-inview) .fp-article-rig {
  transform:
    translate3d(0, calc(var(--ty) + 70px), calc(var(--tz) - 120px))
    rotateX(calc(var(--rx) + 10deg))
    rotateY(var(--ry))
    rotateZ(var(--rz));
}

.fp-article-rig::before,
.fp-article-rig::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(21, 21, 20, 0.12);
  background: #e8e1d5 url("../img/paper-silk.jpg") center / cover;
  pointer-events: none;
}

.fp-article-rig::before {
  inset: 7px 10px 2px;
  transform: translateZ(-24px) rotate(0.7deg);
  opacity: 0.9;
}

.fp-article-rig::after {
  inset: 15px 20px 6px;
  transform: translateZ(-48px) rotate(-0.8deg);
  opacity: 0.7;
}

.fp-article-shell:hover .fp-article-card,
.fp-article-shell:focus-within .fp-article-card {
  filter: none;
  transform: none;
}

.fp-article-card {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  padding: 20px 18px 16px;
  overflow: hidden;
  border: 1px solid var(--fp-letter-line);
  clip-path: polygon(1.1% 0, 100% 0.6%, 99.1% 100%, 0 99.3%);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.42), transparent 42%),
    var(--fp-letter) url("../img/paper-silk.jpg") center / cover;
  color: var(--fp-ink);
  text-align: left;
  box-shadow:
    0 2px 0 rgba(21, 21, 20, 0.08),
    0 18px 30px -16px rgba(21, 21, 20, 0.26),
    0 46px 80px -44px rgba(21, 21, 20, 0.34);
  filter: none;
  transform: none;
  transition: box-shadow 0.3s ease;
}

.fp-article-shell--one .fp-article-card {
  min-height: 590px;
}

.fp-article-shell--two .fp-article-card {
  min-height: 630px;
}

.fp-article-shell--three .fp-article-card {
  min-height: 605px;
}

.fp-article-index__sheet {
  min-height: 575px;
}

.fp-article-card::before,
.fp-article-card::after,
.fp-article-shell::before,
.fp-article-shell::after {
  display: none;
}

.fp-article-card__rules {
  position: absolute;
  inset: 17px 13px 19px;
  z-index: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 30px,
    var(--fp-letter-rule) 30px 31px
  );
  opacity: 0.75;
  pointer-events: none;
}

.fp-article-card__frame {
  position: absolute;
  z-index: 1;
  inset: 13px;
  border: 1px solid rgba(21, 21, 20, 0.27);
  pointer-events: none;
}

.fp-article-card__frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(21, 21, 20, 0.12);
}

.fp-article-card__frame::after {
  display: none;
}

.fp-article-card__top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 4px 12px;
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  line-height: 1.4;
}

.fp-article-card__top > span:last-child {
  color: var(--fp-ink-2);
}

.fp-article-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  gap: 12px;
  padding: 12px 2px 10px;
}

.fp-article-card__summary {
  display: block;
  flex: 1 1 auto;
  max-width: 54%;
  height: 100%;
  max-height: 350px;
  align-self: flex-end;
  overflow: hidden;
  color: #5e594f;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.85;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.fp-article-card__title {
  display: block;
  flex: 0 0 auto;
  max-width: 48%;
  height: 100%;
  max-height: 100%;
  align-self: flex-start;
  overflow: hidden;
  margin-left: auto;
  color: var(--fp-ink);
  font-family: var(--brush-font);
  font-size: clamp(31px, 2.7vw, 42px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.26;
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-align: start;
}

.fp-article-card__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding: 10px 4px 0;
  border-top: 1px solid rgba(21, 21, 20, 0.18);
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.fp-article-card__foot > span:last-child {
  color: var(--fp-ink);
  font-family: var(--serif);
  font-size: 9px;
}

.fp-article-card__foot i {
  display: inline-block;
  margin-left: 3px;
  font-style: normal;
  transition: transform 0.25s var(--fp-ease);
}

.fp-article-card:hover .fp-article-card__foot i {
  transform: translate(2px, -2px);
}

.fp-article-card:focus-visible {
  outline: 2px solid var(--fp-ink);
  outline-offset: 4px;
}

/* --- the fourth sheet is the section title / index ----------------------- */

.fp-article-index__sheet {
  display: block;
  cursor: default;
}

.fp-article-index__eyebrow {
  position: absolute;
  top: 26px;
  left: 25px;
  z-index: 2;
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.fp-article-index__count {
  position: absolute;
  top: 23px;
  right: 24px;
  z-index: 2;
  color: var(--fp-faint);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
}

.fp-article-index__count b {
  color: var(--fp-ink);
  font-family: var(--brush-font);
  font-size: 28px;
  font-weight: 400;
}

.fp-article-index__title {
  position: absolute;
  top: 70px;
  right: 23px;
  z-index: 2;
  margin: 0;
  color: var(--fp-ink);
  font-size: clamp(56px, 5.5vw, 82px);
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 1.15;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.fp-article-index__note {
  position: absolute;
  bottom: 52px;
  left: 26px;
  z-index: 2;
  max-height: 260px;
  margin: 0;
  color: var(--fp-gray);
  font-family: var(--serif);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.85;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.fp-article-index__seal {
  position: absolute;
  right: 24px;
  bottom: 26px;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(21, 21, 20, 0.44);
  color: var(--fp-ink);
  font-family: var(--brush-font);
  font-size: 15px;
  line-height: 1;
  transform: rotate(3deg);
}

/* --- article stage interaction ----------------------------------------- */

@media (hover: hover) and (pointer: fine) and (min-width: 981px) {
  .fp-article-shell--one:hover .fp-article-rig,
  .fp-article-shell--two:hover .fp-article-rig,
  .fp-article-shell--three:hover .fp-article-rig,
  .fp-article-shell--one:focus-within .fp-article-rig,
  .fp-article-shell--two:focus-within .fp-article-rig,
  .fp-article-shell--three:focus-within .fp-article-rig {
    transform:
      translate3d(0, calc(var(--ty) - 14px), calc(var(--tz) + 50px))
      rotateX(1.5deg)
      rotateY(calc(var(--ry) * 0.24))
      rotateZ(0deg);
  }
}

.fp-articles__foot {
  margin-top: 28px;
}

.fp-articles__empty {
  grid-column: 1 / -1;
  order: 5;
}

/* --- responsive --------------------------------------------------------- */

@media (max-width: 1180px) {
  .fp-article-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    min-height: 0;
  }

  .fp-article-index {
    order: 4;
  }

  .fp-article-shell--one,
  .fp-article-shell--two,
  .fp-article-shell--three,
  .fp-article-index {
    --ty: 0px;
    --tz: 0px;
    --rx: 1.5deg;
    --ry: 4deg;
    --rz: 0deg;
  }

  .fp-article-shell--one .fp-article-card,
  .fp-article-shell--two .fp-article-card,
  .fp-article-shell--three .fp-article-card {
    min-height: 540px;
  }

  .fp-article-index__sheet {
    min-height: 540px;
  }
}

@media (max-width: 780px) {
  .fp-articles {
    padding-top: 72px;
    padding-bottom: 54px;
  }

  .fp-articles__top {
    align-items: flex-start;
    margin-bottom: 18px;
  }

  .fp-articles__top-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .fp-article-stage {
    display: flex;
    flex-direction: column;
    gap: 18px;
    perspective: none;
    padding: 4px 0 16px;
  }

  .fp-article-index {
    order: -1;
  }

  .fp-article-shell,
  .fp-article-shell--one,
  .fp-article-shell--two,
  .fp-article-shell--three,
  .fp-article-index {
    --ty: 0px;
    --tz: 0px;
    --rx: 0deg;
    --ry: 0deg;
    --rz: 0deg;
  }

  .fp-article-shell:not(.is-inview) .fp-article-rig {
    transform: translateY(34px);
  }

  .fp-article-rig {
    transform: none;
  }

  .fp-article-rig::before,
  .fp-article-rig::after {
    display: none;
  }

  .fp-article-card {
    min-height: 480px;
    padding: 18px 16px 15px;
  }

  .fp-article-shell--one .fp-article-card,
  .fp-article-shell--two .fp-article-card,
  .fp-article-shell--three .fp-article-card {
    min-height: 480px;
  }

  .fp-article-index__sheet {
    min-height: 410px;
  }

  .fp-article-card__title {
    font-size: 34px;
    max-width: 52%;
  }

  .fp-article-card__summary {
    font-size: 10.5px;
    max-height: 300px;
  }

  .fp-article-index__title {
    top: 55px;
    right: 20px;
    font-size: 62px;
  }

  .fp-article-index__note {
    display: none;
  }

  .fp-article-index__seal {
    right: 21px;
    bottom: 21px;
  }

  .fp-articles__foot {
    margin-top: 20px;
  }
}

@media (max-width: 440px) {
  .fp-articles__sub {
    font-size: 16px;
  }

  .fp-article-card__title {
    font-size: 31px;
  }

  .fp-article-card__summary {
    font-size: 10px;
    max-width: 50%;
  }

  .fp-article-index__title {
    font-size: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-hero__ink {
    translate: 0 0 !important;
    rotate: 0deg !important;
  }

  .fp-article-shell,
  .fp-article-shell .fp-article-rig {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .fp-article-rig {
    transform: none !important;
  }
}

/* Keep the whole ink inside its mounted safe area. */
.fp-hero__ink img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Vertical letter-sheet content must have explicit column widths. */
.fp-article-card__summary {
  flex: 0 0 34%;
  width: 34%;
  max-width: 34%;
  height: 100%;
  max-height: 100%;
}

.fp-article-card__title {
  flex: 0 0 58%;
  width: 58%;
  max-width: 58%;
  height: 100%;
  max-height: 100%;
}

@media (max-width: 780px) {
  .fp-article-stage {
    align-items: stretch;
  }

  .fp-article-shell {
    width: 100%;
  }

  .fp-article-card__summary {
    flex-basis: 36%;
    width: 36%;
    max-width: 36%;
  }

  .fp-article-card__title {
    flex-basis: 56%;
    width: 56%;
    max-width: 56%;
  }
}


/* Flex containment is reliable here: the percentage row in a grid can collapse. */
.fp-hero__ink {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-hero__ink img {
  flex: 0 1 auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}


/* Stronger folio silhouettes and a more legible 3-D staging. */
.fp-article-stage {
  perspective: 1200px;
}

.fp-article-shell--one {
  --ry: 14deg;
  --rx: 3.5deg;
  --rz: -1.4deg;
}

.fp-article-shell--two {
  --ry: -10deg;
  --rx: 2.4deg;
  --rz: 1deg;
}

.fp-article-shell--three {
  --ry: -15deg;
  --rx: 4.5deg;
  --rz: 0.7deg;
}

.fp-article-index {
  --ry: 4deg;
  --rx: 2deg;
}

.fp-article-shell--one .fp-article-card {
  clip-path: polygon(4.2% 0, 100% 1.4%, 96.7% 100%, 0 98.4%);
}

.fp-article-shell--two .fp-article-card {
  clip-path: polygon(0 2.2%, 95.5% 0, 100% 97.6%, 4% 100%);
}

.fp-article-shell--three .fp-article-card {
  clip-path: polygon(5% 0.8%, 100% 0, 96% 99%, 0 97.2%);
}

.fp-article-index__sheet {
  clip-path: polygon(2% 0, 100% 1.2%, 98.4% 100%, 0 98.8%);
}

@media (max-width: 1180px) {
  .fp-article-shell--one,
  .fp-article-shell--two,
  .fp-article-shell--three,
  .fp-article-index {
    --ry: 3deg;
    --rx: 1.4deg;
    --rz: 0deg;
  }
}

@media (max-width: 780px) {
  .fp-article-card {
    clip-path: polygon(1.8% 0, 100% 0.8%, 98.6% 100%, 0 99.2%);
  }
}


.fp-article-shell {
  transform-style: preserve-3d;
}

/* Keep the hovered/settled card visibly in front of its paper stack. */
.fp-article-card {
  backface-visibility: hidden;
}


/* The stage perspective needs to belong to the sheet itself once the shell
   carries opacity/entry transforms. */
.fp-article-rig {
  transform:
    perspective(1500px)
    translate3d(0, var(--ty), var(--tz))
    rotateX(var(--rx))
    rotateY(var(--ry))
    rotateZ(var(--rz));
}

.fp-article-shell:not(.is-inview) .fp-article-rig {
  transform:
    perspective(1500px)
    translate3d(0, calc(var(--ty) + 70px), calc(var(--tz) - 120px))
    rotateX(calc(var(--rx) + 10deg))
    rotateY(var(--ry))
    rotateZ(var(--rz));
}

@media (hover: hover) and (pointer: fine) and (min-width: 981px) {
  .fp-article-shell--one:hover .fp-article-rig,
  .fp-article-shell--two:hover .fp-article-rig,
  .fp-article-shell--three:hover .fp-article-rig,
  .fp-article-shell--one:focus-within .fp-article-rig,
  .fp-article-shell--two:focus-within .fp-article-rig,
  .fp-article-shell--three:focus-within .fp-article-rig {
    transform:
      perspective(1500px)
      translate3d(0, calc(var(--ty) - 14px), calc(var(--tz) + 50px))
      rotateX(1.5deg)
      rotateY(calc(var(--ry) * 0.24))
      rotateZ(0deg);
  }
}


.fp-hero__ink {
  translate:
    calc(var(--fp-mx, 0) * 18px)
    calc(var(--fp-my, 0) * 14px);
  rotate: calc(var(--fp-mx, 0) * 0.3deg);
}


/* ==========================================================================
   Compact floating seal + the clean full-page cut
   ========================================================================== */

.fp-seal {
  gap: 0;
  right: clamp(16px, 2.3vw, 30px);
}

.fp-seal__ring {
  width: 46px;
  height: 46px;
  font-size: 18px;
}

.fp-seal__label {
  display: none;
}

body.is-page-cutting .fp-seal {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.82);
}

/* ==========================================================================
   Guestbook / daily / sound: a short paper entrance on every visit
   ========================================================================== */

@keyframes fp-rise-in {
  from {
    opacity: 0;
    translate: 0 18px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes fp-note-in {
  from {
    opacity: 0;
    translate: 0 26px;
    filter: blur(2.5px);
  }
  to {
    opacity: 1;
    translate: 0 0;
    filter: blur(0);
  }
}

@keyframes fp-sleeve-in {
  from {
    opacity: 0;
    translate: -20px 0;
    rotate: -2.4deg;
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }
}

@keyframes fp-photo-develop {
  from {
    opacity: 0;
    scale: 1.07;
    filter: grayscale(1) contrast(1.04) blur(7px);
  }
  to {
    opacity: 1;
    scale: 1;
    filter: grayscale(1) contrast(1.04) blur(0);
  }
}

/* --- guestbook ---------------------------------------------------------- */

#guestbook.is-reveal-ready:not(.is-section-inview) .fp-guestbook__lead > * {
  opacity: 0;
  translate: 0 16px;
}

#guestbook.is-reveal-ready:not(.is-section-inview) .fp-guestbook__list .guest-note {
  opacity: 0;
  translate: 0 24px;
}

#guestbook.is-reveal-ready.is-section-inview .fp-guestbook__lead > * {
  animation: fp-rise-in 0.8s var(--fp-ease) both;
}

#guestbook.is-reveal-ready.is-section-inview .fp-guestbook__lead > :nth-child(1) {
  animation-delay: 0.02s;
}

#guestbook.is-reveal-ready.is-section-inview .fp-guestbook__lead > :nth-child(2) {
  animation-delay: 0.08s;
}

#guestbook.is-reveal-ready.is-section-inview .fp-guestbook__lead > :nth-child(3) {
  animation-delay: 0.16s;
}

#guestbook.is-reveal-ready.is-section-inview .fp-guestbook__lead > :nth-child(4) {
  animation-delay: 0.24s;
}

#guestbook.is-reveal-ready.is-section-inview .fp-guestbook__lead > :nth-child(5) {
  animation-delay: 0.32s;
}

#guestbook.is-reveal-ready.is-section-inview .fp-guestbook__list .guest-note {
  animation: fp-note-in 0.85s var(--fp-ease) both;
}

#guestbook.is-reveal-ready.is-section-inview .fp-guestbook__list .guest-note:nth-child(1) {
  animation-delay: 0.16s;
}

#guestbook.is-reveal-ready.is-section-inview .fp-guestbook__list .guest-note:nth-child(2) {
  animation-delay: 0.25s;
}

#guestbook.is-reveal-ready.is-section-inview .fp-guestbook__list .guest-note:nth-child(3) {
  animation-delay: 0.34s;
}

#guestbook.is-reveal-ready.is-section-inview .fp-guestbook__list .guest-note:nth-child(4) {
  animation-delay: 0.43s;
}

/* --- daily -------------------------------------------------------------- */

#daily.is-reveal-ready:not(.is-section-inview) .fp-title > * {
  opacity: 0;
  translate: 0 16px;
}

#daily.is-reveal-ready:not(.is-section-inview) .fp-daily__tab {
  opacity: 0;
  translate: 0 15px;
}

#daily.is-reveal-ready:not(.is-section-inview) .fp-daily__feature {
  opacity: 0;
  translate: 0 24px;
}

#daily.is-reveal-ready:not(.is-section-inview) .fp-daily__copy > * {
  opacity: 0;
  translate: 0 13px;
}

#daily.is-reveal-ready:not(.is-section-inview) .fp-daily__media img {
  opacity: 0;
  scale: 1.07;
  filter: grayscale(1) contrast(1.04) blur(7px);
}

#daily.is-reveal-ready.is-section-inview .fp-title > * {
  animation: fp-rise-in 0.8s var(--fp-ease) both;
}

#daily.is-reveal-ready.is-section-inview .fp-title > :nth-child(1) {
  animation-delay: 0.02s;
}

#daily.is-reveal-ready.is-section-inview .fp-title > :nth-child(2) {
  animation-delay: 0.1s;
}

#daily.is-reveal-ready.is-section-inview .fp-title > :nth-child(3) {
  animation-delay: 0.18s;
}

#daily.is-reveal-ready.is-section-inview .fp-daily__tab {
  animation: fp-rise-in 0.72s var(--fp-ease) both;
}

#daily.is-reveal-ready.is-section-inview .fp-daily__tab:nth-child(1) {
  animation-delay: 0.14s;
}

#daily.is-reveal-ready.is-section-inview .fp-daily__tab:nth-child(2) {
  animation-delay: 0.2s;
}

#daily.is-reveal-ready.is-section-inview .fp-daily__tab:nth-child(3) {
  animation-delay: 0.26s;
}

#daily.is-reveal-ready.is-section-inview .fp-daily__tab:nth-child(4) {
  animation-delay: 0.32s;
}

#daily.is-reveal-ready.is-section-inview .fp-daily__feature {
  animation: fp-rise-in 0.9s var(--fp-ease) both;
  animation-delay: 0.22s;
}

#daily.is-reveal-ready.is-section-inview .fp-daily__copy > * {
  animation: fp-rise-in 0.78s var(--fp-ease) both;
}

#daily.is-reveal-ready.is-section-inview .fp-daily__copy > :nth-child(1) {
  animation-delay: 0.27s;
}

#daily.is-reveal-ready.is-section-inview .fp-daily__copy > :nth-child(2) {
  animation-delay: 0.34s;
}

#daily.is-reveal-ready.is-section-inview .fp-daily__copy > :nth-child(3) {
  animation-delay: 0.41s;
}

#daily.is-reveal-ready.is-section-inview .fp-daily__copy > :nth-child(4) {
  animation-delay: 0.48s;
}

#daily.is-reveal-ready.is-section-inview .fp-daily__media img {
  animation: fp-photo-develop 1.05s var(--fp-ease) both;
  animation-delay: 0.28s;
}

/* --- today's sound ------------------------------------------------------ */

#sound.is-reveal-ready:not(.is-section-inview) .fp-title > * {
  opacity: 0;
  translate: 0 16px;
}

#sound.is-reveal-ready:not(.is-section-inview) .fp-music.music-card,
#sound.is-reveal-ready:not(.is-section-inview) .fp-sound-files {
  opacity: 0;
  translate: 0 24px;
}

#sound.is-reveal-ready:not(.is-section-inview) .record-sleeve {
  opacity: 0;
  translate: -18px 0;
  rotate: -2.4deg;
}

#sound.is-reveal-ready:not(.is-section-inview) .fp-music__info > *,
#sound.is-reveal-ready:not(.is-section-inview) .fp-sound-file {
  opacity: 0;
  translate: 0 12px;
}

#sound.is-reveal-ready:not(.is-section-inview) .fp-music__wave {
  opacity: 0;
  translate: 0 8px;
}

#sound.is-reveal-ready.is-section-inview .fp-title > * {
  animation: fp-rise-in 0.8s var(--fp-ease) both;
}

#sound.is-reveal-ready.is-section-inview .fp-title > :nth-child(1) {
  animation-delay: 0.02s;
}

#sound.is-reveal-ready.is-section-inview .fp-title > :nth-child(2) {
  animation-delay: 0.1s;
}

#sound.is-reveal-ready.is-section-inview .fp-title > :nth-child(3) {
  animation-delay: 0.18s;
}

#sound.is-reveal-ready.is-section-inview .fp-music.music-card {
  animation: fp-rise-in 0.9s var(--fp-ease) both;
  animation-delay: 0.16s;
}

#sound.is-reveal-ready.is-section-inview .fp-sound-files {
  animation: fp-rise-in 0.9s var(--fp-ease) both;
  animation-delay: 0.24s;
}

#sound.is-reveal-ready.is-section-inview .record-sleeve {
  animation: fp-sleeve-in 0.95s var(--fp-ease) both;
  animation-delay: 0.28s;
}

#sound.is-reveal-ready.is-section-inview .fp-music__info > * {
  animation: fp-rise-in 0.75s var(--fp-ease) both;
}

#sound.is-reveal-ready.is-section-inview .fp-music__info > :nth-child(1) {
  animation-delay: 0.31s;
}

#sound.is-reveal-ready.is-section-inview .fp-music__info > :nth-child(2) {
  animation-delay: 0.36s;
}

#sound.is-reveal-ready.is-section-inview .fp-music__info > :nth-child(3) {
  animation-delay: 0.41s;
}

#sound.is-reveal-ready.is-section-inview .fp-music__info > :nth-child(4) {
  animation-delay: 0.46s;
}

#sound.is-reveal-ready.is-section-inview .fp-music__info > :nth-child(5) {
  animation-delay: 0.51s;
}

#sound.is-reveal-ready.is-section-inview .fp-music__wave {
  animation: fp-rise-in 0.8s var(--fp-ease) both;
  animation-delay: 0.52s;
}

#sound.is-reveal-ready.is-section-inview .fp-sound-file {
  animation: fp-rise-in 0.7s var(--fp-ease) both;
}

#sound.is-reveal-ready.is-section-inview .fp-sound-file:nth-child(1) {
  animation-delay: 0.32s;
}

#sound.is-reveal-ready.is-section-inview .fp-sound-file:nth-child(2) {
  animation-delay: 0.39s;
}

#sound.is-reveal-ready.is-section-inview .fp-sound-file:nth-child(3) {
  animation-delay: 0.46s;
}

#sound.is-reveal-ready.is-section-inview .fp-sound-file:nth-child(4) {
  animation-delay: 0.53s;
}

@media (max-width: 780px) {
  .fp-seal {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #guestbook.is-reveal-ready .fp-guestbook__lead > *,
  #guestbook.is-reveal-ready .fp-guestbook__list .guest-note,
  #daily.is-reveal-ready .fp-title > *,
  #daily.is-reveal-ready .fp-daily__tab,
  #daily.is-reveal-ready .fp-daily__feature,
  #daily.is-reveal-ready .fp-daily__copy > *,
  #daily.is-reveal-ready .fp-daily__media img,
  #sound.is-reveal-ready .fp-title > *,
  #sound.is-reveal-ready .fp-music.music-card,
  #sound.is-reveal-ready .fp-sound-files,
  #sound.is-reveal-ready .record-sleeve,
  #sound.is-reveal-ready .fp-music__info > *,
  #sound.is-reveal-ready .fp-sound-file,
  #sound.is-reveal-ready .fp-music__wave {
    opacity: 1 !important;
    translate: none !important;
    scale: 1 !important;
    animation: none !important;
    filter: none !important;
  }

  #daily.is-reveal-ready .fp-daily__media img {
    filter: grayscale(1) contrast(1.04) !important;
  }
}


/* The article sheets were still reading as long strips. Keep the four-panel
   composition, but bring each sheet back to a compact letter-card proportion. */
.fp-articles {
  padding: 70px 0 52px;
}

.fp-article-stage {
  min-height: 510px;
  padding: 22px 0 18px;
}

.fp-article-shell--one {
  --ty: 28px;
}

.fp-article-shell--two {
  --ty: 0px;
}

.fp-article-shell--three {
  --ty: 20px;
}

.fp-article-index {
  --ty: 40px;
}

.fp-article-shell--one .fp-article-card {
  min-height: 420px;
}

.fp-article-shell--two .fp-article-card {
  min-height: 445px;
}

.fp-article-shell--three .fp-article-card {
  min-height: 430px;
}

.fp-article-index__sheet {
  min-height: 398px;
}

@media (max-width: 1180px) {
  .fp-articles {
    padding-top: 64px;
    padding-bottom: 48px;
  }

  .fp-article-stage {
    min-height: 0;
  }

  .fp-article-shell--one,
  .fp-article-shell--two,
  .fp-article-shell--three,
  .fp-article-index {
    --ty: 0px;
  }

  .fp-article-shell--one .fp-article-card,
  .fp-article-shell--two .fp-article-card,
  .fp-article-shell--three .fp-article-card {
    min-height: 400px;
  }

  .fp-article-index__sheet {
    min-height: 380px;
  }
}

@media (max-width: 780px) {
  .fp-articles {
    padding-top: 60px;
    padding-bottom: 44px;
  }

  .fp-article-card,
  .fp-article-shell--one .fp-article-card,
  .fp-article-shell--two .fp-article-card,
  .fp-article-shell--three .fp-article-card {
    min-height: 400px;
  }

  .fp-article-index__sheet {
    min-height: 340px;
  }
}


/* Do not let the vertical copy dictate the sheet height. These are fixed
   letter-card proportions; the inner columns clip gracefully inside them. */
.fp-article-shell--one .fp-article-card {
  height: 420px;
  min-height: 0;
}

.fp-article-shell--two .fp-article-card {
  height: 445px;
  min-height: 0;
}

.fp-article-shell--three .fp-article-card {
  height: 430px;
  min-height: 0;
}

.fp-article-index__sheet {
  height: 398px;
  min-height: 0;
}

@media (max-width: 1180px) {
  .fp-article-shell--one .fp-article-card,
  .fp-article-shell--two .fp-article-card,
  .fp-article-shell--three .fp-article-card {
    height: 400px;
    min-height: 0;
  }

  .fp-article-index__sheet {
    height: 380px;
    min-height: 0;
  }
}

@media (max-width: 780px) {
  .fp-article-card,
  .fp-article-shell--one .fp-article-card,
  .fp-article-shell--two .fp-article-card,
  .fp-article-shell--three .fp-article-card {
    height: 400px;
    min-height: 0;
  }

  .fp-article-index__sheet {
    height: 340px;
    min-height: 0;
  }
}


/* ==========================================================================
   Article sheets · final fold + spatial pass
   One shared camera; text sits at the top; real non-coplanar fold faces.
   ========================================================================== */

:root {
  --sheet-h: 440px;
  --fold-top: 58deg;
  --fold-side: 58deg;
}

.fp-article-stage {
  perspective: 1050px;
  perspective-origin: 50% 26%;
  padding-top: 34px;
  min-height: 560px;
}

.fp-article-stage::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: 3%;
  bottom: 12px;
  left: 3%;
  height: 160px;
  background: radial-gradient(ellipse at 50% 50%, rgba(40, 32, 20, 0.2), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.fp-article-shell {
  z-index: 1;
  will-change: transform;
}

.fp-article-shell--one,
.fp-article-shell--two,
.fp-article-shell--three {
  z-index: 2;
}

.fp-article-shell--one {
  --ty: 28px;
  --tz: -50px;
  --rx: 3.5deg;
  --ry: 18deg;
  --rz: -1.2deg;
}

.fp-article-shell--two {
  --ty: 0px;
  --tz: 40px;
  --rx: 2.5deg;
  --ry: -12deg;
  --rz: 0.9deg;
}

.fp-article-shell--three {
  --ty: 20px;
  --tz: -25px;
  --rx: 4deg;
  --ry: -15deg;
  --rz: 0.6deg;
}

.fp-article-index {
  --ty: 38px;
  --tz: 0px;
  --rx: 2deg;
  --ry: 6deg;
  --rz: 0deg;
}

.fp-article-rig {
  transform:
    translate3d(0, var(--ty), var(--tz))
    rotateX(var(--rx))
    rotateY(var(--ry))
    rotateZ(var(--rz));
  transform-style: preserve-3d;
  will-change: transform;
}

.fp-article-shell:not(.is-inview) .fp-article-rig {
  transform:
    translate3d(0, calc(var(--ty) + 86px), calc(var(--tz) - 180px))
    rotateX(calc(var(--rx) + 12deg))
    rotateY(calc(var(--ry) * 0.7))
    rotateZ(var(--rz));
}

.fp-article-shell:not(.is-inview) .fp-plane,
.fp-article-shell:not(.is-inview) .fp-article-card {
  opacity: 0;
}

.fp-plane {
  position: absolute;
  z-index: 1;
  display: block;
  border: 1px solid rgba(21, 21, 20, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.58), transparent 54%),
    var(--fp-letter) url("../img/paper-silk.jpg") center / cover;
  box-shadow:
    0 2px 0 rgba(255, 253, 247, 0.66),
    0 14px 24px -14px rgba(30, 24, 16, 0.26);
  pointer-events: none;
  backface-visibility: visible;
}

.fp-plane--top {
  right: -1px;
  bottom: calc(100% - 1px);
  left: -1px;
  height: 46px;
  transform-origin: 50% 100%;
  transform: rotateX(var(--fold-top));
  background:
    linear-gradient(to top, rgba(21, 21, 20, 0.16), transparent 62%),
    var(--fp-letter) url("../img/paper-silk.jpg") center / cover;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 -12px 22px -14px rgba(30, 24, 16, 0.28);
}

.fp-plane--top::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.2));
}

.fp-plane--side {
  top: -1px;
  bottom: -1px;
  width: 30px;
  background:
    linear-gradient(to right, rgba(21, 21, 20, 0.18), transparent 66%),
    var(--fp-letter-deep) url("../img/paper-silk.jpg") center / cover;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    12px 0 20px -14px rgba(30, 24, 16, 0.3);
}

.fp-article-shell--one .fp-plane--side,
.fp-article-shell--three .fp-plane--side {
  right: calc(100% - 1px);
  transform-origin: 100% 50%;
  transform: rotateY(calc(-1 * var(--fold-side)));
}

.fp-article-shell--two .fp-plane--side,
.fp-article-index .fp-plane--side {
  left: calc(100% - 1px);
  transform-origin: 0 50%;
  transform: rotateY(var(--fold-side));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    -12px 0 20px -14px rgba(30, 24, 16, 0.3);
}

.fp-article-shell--one .fp-article-card,
.fp-article-shell--two .fp-article-card,
.fp-article-shell--three .fp-article-card,
.fp-article-index__sheet {
  height: var(--sheet-h);
  min-height: 0;
  clip-path: none !important;
  border: 1px solid rgba(21, 21, 20, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 24px 46px -28px rgba(21, 21, 20, 0.38),
    0 54px 90px -60px rgba(21, 21, 20, 0.38);
}

.fp-article-card::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  display: block;
  background:
    linear-gradient(to bottom, rgba(21, 21, 20, 0.12), transparent 30px),
    linear-gradient(to right, rgba(21, 21, 20, 0.075), transparent 25px);
  pointer-events: none;
}

.fp-article-shell--two .fp-article-card::after,
.fp-article-index .fp-article-card::after {
  background:
    linear-gradient(to bottom, rgba(21, 21, 20, 0.12), transparent 30px),
    linear-gradient(to left, rgba(21, 21, 20, 0.075), transparent 25px);
}

.fp-article-card__body {
  align-items: flex-start;
}

.fp-article-card__title,
.fp-article-card__summary {
  margin: 0 !important;
  height: 100%;
  max-height: 100%;
  align-self: flex-start;
}

.fp-article-card__title {
  flex: 0 0 58%;
  width: 58%;
  max-width: 58%;
}

.fp-article-card__summary {
  flex: 0 0 34%;
  width: 34%;
  max-width: 34%;
}

.fp-article-card__foot {
  flex: 0 0 auto;
}

/* Only the fold opens on hover; the sheet itself keeps its geometry. */
@media (hover: hover) and (pointer: fine) and (min-width: 1181px) {
  .fp-article-shell--one:hover .fp-article-rig,
  .fp-article-shell--two:hover .fp-article-rig,
  .fp-article-shell--three:hover .fp-article-rig,
  .fp-article-shell--one:focus-within .fp-article-rig,
  .fp-article-shell--two:focus-within .fp-article-rig,
  .fp-article-shell--three:focus-within .fp-article-rig {
    transform:
      translate3d(0, calc(var(--ty) - 12px), calc(var(--tz) + 34px))
      rotateX(calc(var(--rx) * 0.9))
      rotateY(calc(var(--ry) * 0.94))
      rotateZ(0deg);
  }

  .fp-article-shell--one:hover .fp-plane--top,
  .fp-article-shell--two:hover .fp-plane--top,
  .fp-article-shell--three:hover .fp-plane--top,
  .fp-article-shell--one:focus-within .fp-plane--top,
  .fp-article-shell--two:focus-within .fp-plane--top,
  .fp-article-shell--three:focus-within .fp-plane--top {
    transform: rotateX(calc(var(--fold-top) - 8deg));
  }

  .fp-article-shell--one:hover .fp-plane--side,
  .fp-article-shell--three:hover .fp-plane--side {
    transform: rotateY(calc(-1 * (var(--fold-side) - 8deg)));
  }

  .fp-article-shell--two:hover .fp-plane--side {
    transform: rotateY(calc(var(--fold-side) - 8deg));
  }
}

.fp-plane {
  transition: transform 0.62s var(--fp-ease), opacity 0.62s ease;
}

@media (max-width: 1180px) {
  .fp-article-stage {
    perspective: 1300px;
    perspective-origin: 50% 28%;
    padding-top: 30px;
  }

  .fp-article-shell--one,
  .fp-article-shell--two,
  .fp-article-shell--three,
  .fp-article-index {
    --ty: 0px;
    --tz: 0px;
    --rx: 1.2deg;
    --ry: 3deg;
    --rz: 0deg;
  }

  .fp-article-shell--one .fp-article-card,
  .fp-article-shell--two .fp-article-card,
  .fp-article-shell--three .fp-article-card,
  .fp-article-index__sheet {
    height: 400px;
    min-height: 0;
  }

  .fp-plane--top {
    height: 36px;
  }

  .fp-plane--side {
    width: 22px;
  }
}

@media (max-width: 780px) {
  .fp-article-stage {
    perspective: none;
    padding-top: 20px;
  }

  .fp-article-rig {
    transform: translate3d(0, var(--ty), 0) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }

  .fp-article-shell:not(.is-inview) .fp-article-rig {
    transform: translateY(34px);
  }

  .fp-article-shell--one .fp-article-card,
  .fp-article-shell--two .fp-article-card,
  .fp-article-shell--three .fp-article-card,
  .fp-article-index__sheet {
    height: 380px;
    min-height: 0;
  }

  .fp-plane--top {
    height: 28px;
    transform: rotateX(50deg);
  }

  .fp-plane--side {
    display: none;
  }

  .fp-article-card::after {
    background: linear-gradient(to bottom, rgba(21, 21, 20, 0.12), transparent 28px);
  }

  .fp-article-card__title {
    flex-basis: 56%;
    width: 56%;
    max-width: 56%;
  }

  .fp-article-card__summary {
    flex-basis: 36%;
    width: 36%;
    max-width: 36%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-article-shell {
    opacity: 1 !important;
    transition: none !important;
  }

  .fp-article-shell .fp-article-rig,
  .fp-article-shell:not(.is-inview) .fp-article-rig {
    opacity: 1 !important;
    filter: none !important;
    transform:
      translate3d(0, var(--ty), var(--tz))
      rotateX(var(--rx))
      rotateY(var(--ry))
      rotateZ(var(--rz)) !important;
    transition: none !important;
  }

  .fp-article-card,
  .fp-plane {
    opacity: 1 !important;
    transition: none !important;
  }
}


/* Pull the shared camera closer and make the fold silhouette more explicit. */
.fp-article-stage {
  perspective: 950px;
  perspective-origin: 50% 28%;
  gap: clamp(12px, 1.45vw, 20px);
}

.fp-article-shell--one {
  --ty: 32px;
  --tz: -70px;
  --rx: 4.5deg;
  --ry: 22deg;
  --rz: -1.5deg;
}

.fp-article-shell--two {
  --ty: -4px;
  --tz: 55px;
  --rx: 3deg;
  --ry: -14deg;
  --rz: 1deg;
}

.fp-article-shell--three {
  --ty: 18px;
  --tz: -35px;
  --rx: 5deg;
  --ry: -18deg;
  --rz: 0.8deg;
}

.fp-article-index {
  --ty: 42px;
  --tz: 0px;
  --rx: 2.5deg;
  --ry: 7deg;
  --rz: 0deg;
}

.fp-plane--top {
  height: 52px;
}

.fp-plane--side {
  width: 34px;
}

.fp-article-stage::before {
  opacity: 0.9;
}


@media (max-width: 1180px) {
  .fp-article-stage {
    row-gap: 48px;
  }

  .fp-plane--top {
    height: 34px;
  }

  .fp-plane--side {
    width: 22px;
  }
}

@media (max-width: 780px) {
  .fp-article-stage {
    row-gap: 18px;
  }

  .fp-plane--top {
    height: 26px;
  }

  .fp-plane--side {
    display: none;
  }
}


.fp-article-card__body {
  padding-bottom: 18px;
}

.fp-article-card__title,
.fp-article-card__summary {
  max-height: calc(100% - 6px);
}


/* ==========================================================================
   Final article pass: flat paper planes in shared perspective.
   No literal fold flaps, no fake stacked sheets, no box-like edges.
   ========================================================================== */

.fp-plane,
.fp-article-rig::before,
.fp-article-rig::after,
.fp-article-card::after {
  display: none !important;
}

.fp-article-stage {
  perspective: 1000px;
  perspective-origin: 50% 30%;
  padding-top: 24px;
}

.fp-article-stage::before {
  opacity: 0.5;
  filter: blur(24px);
}

.fp-article-shell {
  opacity: 0;
  filter: none;
  transform: none;
  translate: 0 22px;
  transition:
    opacity 0.62s ease,
    translate 0.8s var(--fp-ease);
  will-change: auto;
}

.fp-article-shell.is-inview {
  opacity: 1;
  transform: none;
  translate: 0 0;
}

.fp-article-shell--one {
  --ty: 28px;
  --tz: -48px;
  --rx: 2.4deg;
  --ry: 18deg;
  --rz: -1deg;
}

.fp-article-shell--two {
  --ty: 0px;
  --tz: 38px;
  --rx: 1.6deg;
  --ry: -11deg;
  --rz: 0.8deg;
}

.fp-article-shell--three {
  --ty: 16px;
  --tz: -28px;
  --rx: 2.6deg;
  --ry: -15deg;
  --rz: 0.5deg;
}

.fp-article-index {
  --ty: 34px;
  --tz: 0px;
  --rx: 1.5deg;
  --ry: 6deg;
  --rz: 0deg;
}

.fp-article-rig,
.fp-article-shell:not(.is-inview) .fp-article-rig {
  transform:
    translate3d(0, var(--ty), var(--tz))
    rotateX(var(--rx))
    rotateY(var(--ry))
    rotateZ(var(--rz));
  transition: transform 0.72s var(--fp-ease);
}

.fp-article-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 18px 38px -25px rgba(21, 21, 20, 0.32);
}

.fp-article-shell:hover .fp-article-card,
.fp-article-shell:focus-within .fp-article-card {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 28px 52px -28px rgba(21, 21, 20, 0.4);
}

@media (hover: hover) and (pointer: fine) and (min-width: 1181px) {
  .fp-article-shell--one:hover .fp-article-rig,
  .fp-article-shell--two:hover .fp-article-rig,
  .fp-article-shell--three:hover .fp-article-rig,
  .fp-article-shell--one:focus-within .fp-article-rig,
  .fp-article-shell--two:focus-within .fp-article-rig,
  .fp-article-shell--three:focus-within .fp-article-rig {
    transform:
      translate3d(0, calc(var(--ty) - 6px), calc(var(--tz) + 18px))
      rotateX(var(--rx))
      rotateY(var(--ry))
      rotateZ(var(--rz));
  }
}

@media (max-width: 1180px) {
  .fp-article-stage {
    perspective: 1300px;
    row-gap: 40px;
    padding-top: 20px;
  }

  .fp-article-shell--one,
  .fp-article-shell--two,
  .fp-article-shell--three,
  .fp-article-index {
    --ty: 0px;
    --tz: 0px;
    --rx: 1.2deg;
    --ry: 3deg;
    --rz: 0deg;
  }
}

@media (max-width: 780px) {
  .fp-article-stage {
    perspective: none;
    padding-top: 12px;
  }

  .fp-article-rig,
  .fp-article-shell:not(.is-inview) .fp-article-rig {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-article-shell,
  .fp-article-shell:not(.is-inview) {
    opacity: 1 !important;
    transform: none !important;
    translate: 0 0 !important;
    transition: none !important;
  }

  .fp-article-rig,
  .fp-article-shell:not(.is-inview) .fp-article-rig {
    opacity: 1 !important;
    transform:
      translate3d(0, var(--ty), var(--tz))
      rotateX(var(--rx))
      rotateY(var(--ry))
      rotateZ(var(--rz)) !important;
    transition: none !important;
  }
}


/* ==========================================================================
   Clean Fudan-style planes: cut paper silhouettes, flat faces, quiet depth.
   The literal flaps and “box” geometry are gone.
   ========================================================================== */

.fp-plane,
.fp-article-rig::before,
.fp-article-rig::after,
.fp-article-card::after {
  display: none !important;
}

.fp-article-stage {
  perspective: none;
  padding-top: 24px;
}

.fp-article-stage::before {
  opacity: 0.34;
  filter: blur(28px);
}

.fp-article-shell {
  opacity: 0;
  transform: none;
  translate: 0 22px;
  transition:
    opacity 0.6s ease,
    translate 0.78s var(--fp-ease);
}

.fp-article-shell.is-inview {
  opacity: 1;
  translate: 0 0;
}

.fp-article-shell--one {
  --ty: 30px;
  --rz: -0.7deg;
}

.fp-article-shell--two {
  --ty: 0px;
  --rz: 0.55deg;
}

.fp-article-shell--three {
  --ty: 18px;
  --rz: 0.35deg;
}

.fp-article-index {
  --ty: 36px;
  --rz: 0deg;
}

.fp-article-rig,
.fp-article-shell:not(.is-inview) .fp-article-rig {
  transform:
    translate3d(0, var(--ty), 0)
    rotateZ(var(--rz));
  transition: transform 0.7s var(--fp-ease);
}

.fp-article-card {
  border: 0;
  clip-path: polygon(5% 0, 100% 2%, 96% 100%, 0 98%);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.38), transparent 42%),
    var(--fp-letter) url("../img/paper-silk.jpg") center / cover;
  filter:
    drop-shadow(0 0 0.55px rgba(21, 21, 20, 0.5))
    drop-shadow(0 20px 24px rgba(21, 21, 20, 0.13));
  box-shadow: none;
}

.fp-article-shell--two .fp-article-card {
  clip-path: polygon(0 2%, 95% 0, 100% 98%, 5% 100%);
}

.fp-article-shell--three .fp-article-card {
  clip-path: polygon(6% 0, 100% 1.5%, 94% 100%, 0 98.5%);
}

.fp-article-index__sheet {
  clip-path: polygon(3% 0, 100% 2%, 97% 100%, 0 98%);
}

.fp-article-card__frame {
  inset: 19px;
}

.fp-article-card__frame::before {
  inset: 5px;
}

.fp-article-card__rules {
  inset: 23px 19px 25px;
}

.fp-article-shell:hover .fp-article-card,
.fp-article-shell:focus-within .fp-article-card {
  filter:
    drop-shadow(0 0 0.55px rgba(21, 21, 20, 0.5))
    drop-shadow(0 30px 30px rgba(21, 21, 20, 0.2));
}

@media (hover: hover) and (pointer: fine) and (min-width: 1181px) {
  .fp-article-shell--one:hover .fp-article-rig,
  .fp-article-shell--two:hover .fp-article-rig,
  .fp-article-shell--three:hover .fp-article-rig,
  .fp-article-shell--one:focus-within .fp-article-rig,
  .fp-article-shell--two:focus-within .fp-article-rig,
  .fp-article-shell--three:focus-within .fp-article-rig {
    transform:
      translate3d(0, calc(var(--ty) - 7px), 0)
      rotateZ(var(--rz));
  }
}

@media (max-width: 1180px) {
  .fp-article-stage {
    padding-top: 18px;
    row-gap: 28px;
  }

  .fp-article-shell--one,
  .fp-article-shell--two,
  .fp-article-shell--three,
  .fp-article-index {
    --ty: 0px;
    --rz: 0deg;
  }

  .fp-article-card,
  .fp-article-index__sheet {
    filter:
      drop-shadow(0 0 0.5px rgba(21, 21, 20, 0.45))
      drop-shadow(0 16px 22px rgba(21, 21, 20, 0.12));
  }
}

@media (max-width: 780px) {
  .fp-article-stage {
    padding-top: 10px;
  }

  .fp-article-rig,
  .fp-article-shell:not(.is-inview) .fp-article-rig {
    transform: none;
  }

  .fp-article-card {
    clip-path: polygon(3% 0, 100% 1%, 98% 100%, 0 99%);
  }

  .fp-article-index__sheet {
    clip-path: polygon(2% 0, 100% 1.2%, 98.5% 100%, 0 99%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-article-shell,
  .fp-article-shell:not(.is-inview) {
    opacity: 1 !important;
    translate: 0 0 !important;
    transition: none !important;
  }

  .fp-article-rig,
  .fp-article-shell:not(.is-inview) .fp-article-rig {
    opacity: 1 !important;
    transform: translate3d(0, var(--ty), 0) rotateZ(var(--rz)) !important;
    transition: none !important;
  }
}


/* Slightly stronger parallelogram silhouettes and lateral stagger, without
   intersecting the inner frame or the text block. */
.fp-article-card {
  clip-path: polygon(0 0, 100% 3.5%, 94.5% 100%, 0 96.5%);
}

.fp-article-shell--two .fp-article-card {
  clip-path: polygon(0 3.5%, 100% 0, 100% 96.5%, 5.5% 100%);
}

.fp-article-shell--three .fp-article-card {
  clip-path: polygon(4.5% 0, 100% 2.5%, 96% 100%, 0 98%);
}

.fp-article-index__sheet {
  clip-path: polygon(0 0, 100% 2.5%, 97% 100%, 0 98%);
}

.fp-article-shell--one {
  --tx: -6px;
  --ty: 36px;
}

.fp-article-shell--two {
  --tx: 4px;
  --ty: -6px;
}

.fp-article-shell--three {
  --tx: -3px;
  --ty: 20px;
}

.fp-article-index {
  --tx: 2px;
  --ty: 42px;
}

.fp-article-rig,
.fp-article-shell:not(.is-inview) .fp-article-rig {
  transform:
    translate3d(var(--tx, 0px), var(--ty), 0)
    rotateZ(var(--rz));
}

@media (hover: hover) and (pointer: fine) and (min-width: 1181px) {
  .fp-article-shell--one:hover .fp-article-rig,
  .fp-article-shell--two:hover .fp-article-rig,
  .fp-article-shell--three:hover .fp-article-rig,
  .fp-article-shell--one:focus-within .fp-article-rig,
  .fp-article-shell--two:focus-within .fp-article-rig,
  .fp-article-shell--three:focus-within .fp-article-rig {
    transform:
      translate3d(var(--tx, 0px), calc(var(--ty) - 7px), 0)
      rotateZ(var(--rz));
  }
}

@media (max-width: 780px) {
  .fp-article-shell--one,
  .fp-article-shell--two,
  .fp-article-shell--three,
  .fp-article-index {
    --tx: 0px;
    --ty: 0px;
  }

  .fp-article-card {
    clip-path: polygon(0 0, 100% 2%, 97% 100%, 0 98%);
  }

  .fp-article-index__sheet {
    clip-path: polygon(0 0, 100% 1.5%, 98% 100%, 0 98.5%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-article-rig,
  .fp-article-shell:not(.is-inview) .fp-article-rig {
    transform:
      translate3d(var(--tx, 0px), var(--ty), 0)
      rotateZ(var(--rz)) !important;
  }
}


/* ==========================================================================
   Final shape pass: the four paper planes now take the broad, tilted
   quadrilateral silhouette of the Fudan conference cards. Flat sheets only.
   ========================================================================== */

.fp-article-card {
  height: 460px;
  padding: 36px 24px 32px;
  clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%);
}

.fp-article-shell--two .fp-article-card {
  clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%);
}

.fp-article-shell--three .fp-article-card {
  clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%);
}

.fp-article-index__sheet {
  height: 460px;
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

.fp-article-shell--one {
  --tx: -4px;
  --ty: 26px;
}

.fp-article-shell--two {
  --tx: 6px;
  --ty: -8px;
}

.fp-article-shell--three {
  --tx: -2px;
  --ty: 16px;
}

.fp-article-index {
  --tx: 4px;
  --ty: 38px;
}

.fp-article-card__frame {
  inset: 30px 22px 34px;
}

.fp-article-card__frame::before {
  inset: 5px;
}

.fp-article-card__rules {
  inset: 34px 25px 38px;
}

/* Absolute index elements must clear the slanted top edge. */
.fp-article-index__eyebrow {
  top: 40px;
  left: 27px;
}

.fp-article-index__count {
  top: 38px;
  right: 25px;
}

.fp-article-index__title {
  top: 76px;
  right: 24px;
}

.fp-article-index__note {
  bottom: 46px;
  left: 28px;
}

.fp-article-index__seal {
  right: 26px;
  bottom: 28px;
}

@media (max-width: 1180px) {
  .fp-article-card {
    height: 420px;
    padding: 30px 22px 26px;
  }

  .fp-article-index__sheet {
    height: 420px;
  }

  .fp-article-card__frame {
    inset: 26px 20px 28px;
  }

  .fp-article-card__rules {
    inset: 30px 23px 32px;
  }
}

@media (max-width: 780px) {
  .fp-article-card {
    height: 400px;
    padding: 28px 20px 24px;
    clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  }

  .fp-article-shell--two .fp-article-card,
  .fp-article-shell--three .fp-article-card {
    clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
  }

  .fp-article-index__sheet {
    height: 400px;
    clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
  }

  .fp-article-card__frame {
    inset: 24px 18px 26px;
  }

  .fp-article-card__rules {
    inset: 28px 21px 30px;
  }

  .fp-article-index__eyebrow {
    top: 34px;
    left: 23px;
  }

  .fp-article-index__count {
    top: 32px;
    right: 22px;
  }

  .fp-article-index__title {
    top: 68px;
    right: 21px;
  }

  .fp-article-index__note {
    bottom: 40px;
    left: 24px;
  }

  .fp-article-index__seal {
    right: 23px;
    bottom: 24px;
  }
}


/* The short third title should read as one clean vertical column. */
.fp-article-shell--three .fp-article-card__title {
  font-size: clamp(27px, 2.2vw, 32px);
}

@media (max-width: 1180px) {
  .fp-article-shell--three .fp-article-card__title {
    font-size: 26px;
  }
}


/* ==========================================================================
   Make the angle unmistakable: large asymmetric trapezoids, inner content
   pulled away from every cut edge. No folds, no thickness, no box.
   ========================================================================== */

.fp-article-card {
  height: 480px;
  padding: 34px 40px 32px;
  clip-path: polygon(0 4%, 100% 0, 88% 100%, 0 96%);
}

.fp-article-shell--two .fp-article-card {
  clip-path: polygon(0 0, 100% 4%, 100% 96%, 12% 100%);
}

.fp-article-shell--three .fp-article-card {
  clip-path: polygon(0 5%, 100% 0, 90% 100%, 0 95%);
}

.fp-article-index__sheet {
  height: 480px;
  clip-path: polygon(0 3%, 100% 1%, 94% 100%, 0 97%);
}

.fp-article-shell--one {
  --ty: 30px;
}

.fp-article-shell--two {
  --ty: -10px;
}

.fp-article-shell--three {
  --ty: 20px;
}

.fp-article-index {
  --ty: 42px;
}

.fp-article-card__frame {
  inset: 31px 40px 33px;
}

.fp-article-card__frame::before {
  inset: 5px;
}

.fp-article-card__rules {
  inset: 35px 43px 37px;
}

.fp-article-index__eyebrow {
  top: 38px;
  left: 43px;
}

.fp-article-index__count {
  top: 36px;
  right: 43px;
}

.fp-article-index__title {
  top: 76px;
  right: 42px;
}

.fp-article-index__note {
  bottom: 44px;
  left: 45px;
}

.fp-article-index__seal {
  right: 44px;
  bottom: 31px;
}

@media (max-width: 1180px) {
  .fp-article-card {
    height: 440px;
    padding: 28px 30px 26px;
    clip-path: polygon(0 3%, 100% 0, 91% 100%, 0 97%);
  }

  .fp-article-shell--two .fp-article-card {
    clip-path: polygon(0 0, 100% 3%, 100% 97%, 9% 100%);
  }

  .fp-article-shell--three .fp-article-card {
    clip-path: polygon(0 4%, 100% 0, 91% 100%, 0 96%);
  }

  .fp-article-index__sheet {
    height: 440px;
    clip-path: polygon(0 2%, 100% 0, 95% 100%, 0 98%);
  }

  .fp-article-card__frame {
    inset: 26px 30px 28px;
  }

  .fp-article-card__rules {
    inset: 30px 33px 32px;
  }

  .fp-article-index__eyebrow {
    top: 32px;
    left: 33px;
  }

  .fp-article-index__count {
    top: 30px;
    right: 33px;
  }

  .fp-article-index__title {
    top: 66px;
    right: 32px;
  }

  .fp-article-index__note {
    bottom: 38px;
    left: 35px;
  }

  .fp-article-index__seal {
    right: 34px;
    bottom: 25px;
  }
}

@media (max-width: 780px) {
  .fp-article-card {
    height: 400px;
    padding: 26px 22px 22px;
    clip-path: polygon(0 2%, 100% 0, 95% 100%, 0 98%);
  }

  .fp-article-shell--two .fp-article-card,
  .fp-article-shell--three .fp-article-card {
    clip-path: polygon(0 1%, 100% 0, 96% 100%, 0 99%);
  }

  .fp-article-index__sheet {
    height: 400px;
    clip-path: polygon(0 1%, 100% 0, 97% 100%, 0 99%);
  }

  .fp-article-card__frame {
    inset: 24px 22px 24px;
  }

  .fp-article-card__rules {
    inset: 28px 25px 28px;
  }

  .fp-article-index__eyebrow {
    top: 30px;
    left: 25px;
  }

  .fp-article-index__count {
    top: 28px;
    right: 25px;
  }

  .fp-article-index__title {
    top: 62px;
    right: 24px;
  }

  .fp-article-index__note {
    bottom: 34px;
    left: 27px;
  }

  .fp-article-index__seal {
    right: 26px;
    bottom: 22px;
  }
}


/* ==========================================================================
   Make the angle structural, not decorative: skew the paper itself and
   counter-skew the content so the writing stays level. No folds, no boxes.
   ========================================================================== */

.fp-article-card {
  height: 480px;
  padding: 38px 36px 34px;
  clip-path: none !important;
  transform: skewX(var(--sheet-skew, 0deg));
  transform-origin: 50% 50%;
}

.fp-article-shell--one {
  --sheet-skew: -6.5deg;
  --ty: 34px;
}

.fp-article-shell--two {
  --sheet-skew: 6.5deg;
  --ty: -12px;
}

.fp-article-shell--three {
  --sheet-skew: -5deg;
  --ty: 20px;
}

.fp-article-index {
  --sheet-skew: 2.5deg;
  --ty: 44px;
}

.fp-article-index__sheet {
  height: 480px;
  clip-path: none !important;
  transform: skewX(var(--sheet-skew, 0deg));
}

.fp-article-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  transform: skewX(calc(-1 * var(--sheet-skew, 0deg)));
  transform-origin: 50% 50%;
}

.fp-article-index__content {
  position: absolute;
  z-index: 2;
  inset: 0;
  transform: skewX(calc(-1 * var(--sheet-skew, 0deg)));
  transform-origin: 50% 50%;
}

.fp-article-card__frame {
  inset: 34px 35px 36px;
}

.fp-article-card__frame::before {
  inset: 5px;
}

.fp-article-card__rules {
  inset: 38px 39px 40px;
}

.fp-article-index__eyebrow {
  top: 40px;
  left: 38px;
}

.fp-article-index__count {
  top: 38px;
  right: 38px;
}

.fp-article-index__title {
  top: 78px;
  right: 37px;
}

.fp-article-index__note {
  bottom: 48px;
  left: 40px;
}

.fp-article-index__seal {
  right: 39px;
  bottom: 34px;
}

@media (max-width: 1180px) {
  .fp-article-card {
    height: 440px;
    padding: 32px 30px 28px;
  }

  .fp-article-shell--one,
  .fp-article-shell--three {
    --sheet-skew: -4.5deg;
  }

  .fp-article-shell--two {
    --sheet-skew: 4.5deg;
  }

  .fp-article-index {
    --sheet-skew: 2deg;
  }

  .fp-article-index__sheet {
    height: 440px;
  }

  .fp-article-card__frame {
    inset: 28px 29px 30px;
  }

  .fp-article-card__rules {
    inset: 32px 32px 34px;
  }

  .fp-article-index__eyebrow {
    top: 34px;
    left: 31px;
  }

  .fp-article-index__count {
    top: 32px;
    right: 31px;
  }

  .fp-article-index__title {
    top: 68px;
    right: 30px;
  }

  .fp-article-index__note {
    bottom: 42px;
    left: 33px;
  }

  .fp-article-index__seal {
    right: 32px;
    bottom: 29px;
  }
}

@media (max-width: 780px) {
  .fp-article-card {
    height: 410px;
    padding: 26px 22px 24px;
  }

  .fp-article-shell--one,
  .fp-article-shell--two,
  .fp-article-shell--three,
  .fp-article-index {
    --sheet-skew: 2deg;
  }

  .fp-article-index__sheet {
    height: 400px;
  }

  .fp-article-card__frame {
    inset: 24px 22px 26px;
  }

  .fp-article-card__rules {
    inset: 28px 25px 30px;
  }

  .fp-article-index__eyebrow {
    top: 30px;
    left: 24px;
  }

  .fp-article-index__count {
    top: 28px;
    right: 24px;
  }

  .fp-article-index__title {
    top: 62px;
    right: 23px;
  }

  .fp-article-index__note {
    bottom: 36px;
    left: 26px;
  }

  .fp-article-index__seal {
    right: 25px;
    bottom: 23px;
  }
}


/* ==========================================================================
   Direct Fudan-card geometry:
   vertical sides, strongly slanted top/bottom, large paper planes.
   The section title "文章" is a title again, not a paper card.
   ========================================================================== */

.fp-article-stage {
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(156px, 0.5fr);
  align-items: start;
  min-height: 610px;
  padding-top: 24px;
  column-gap: clamp(14px, 1.3vw, 22px);
  row-gap: 36px;
}

.fp-article-card {
  height: 520px;
  padding: 86px 34px 76px;
  transform: none !important;
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 86%) !important;
}

.fp-article-shell--two .fp-article-card {
  clip-path: polygon(0 0, 100% 14%, 100% 86%, 0 100%) !important;
}

.fp-article-shell--three .fp-article-card {
  clip-path: polygon(0 11%, 100% 0, 100% 100%, 0 89%) !important;
}

.fp-article-shell--one {
  --ty: 24px;
}

.fp-article-shell--two {
  --ty: -10px;
}

.fp-article-shell--three {
  --ty: 18px;
}

.fp-article-card__content {
  transform: none !important;
}

.fp-article-card__frame {
  inset: 80px 32px 80px;
}

.fp-article-card__frame::before {
  inset: 5px;
}

.fp-article-card__rules {
  inset: 84px 35px 84px;
}

.fp-article-shell--three .fp-article-card__title {
  font-size: clamp(27px, 2.2vw, 32px);
}

/* The two characters are now a section title, not a sheet of paper. */
.fp-article-title {
  order: 4;
  align-self: start;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  align-items: flex-start;
  padding: 2px 0 0 8px;
  color: var(--fp-ink);
}

.fp-article-title .fp-eyebrow {
  margin: 0;
  color: var(--fp-gray);
}

.fp-article-title h2 {
  margin: 26px 0 0;
  color: var(--fp-ink);
  font-family: var(--brush-font);
  font-size: clamp(72px, 7vw, 104px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.05;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

.fp-article-title__count {
  margin-top: 12px;
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1;
}

.fp-article-title__count b {
  color: var(--fp-ink);
  font-family: var(--brush-font);
  font-size: 28px;
  font-weight: 400;
}

.fp-article-title__rule {
  display: block;
  width: 100%;
  height: 1px;
  margin: 26px 0 0;
  background: rgba(21, 21, 20, 0.22);
}

.fp-article-title__note {
  margin-top: 14px;
  color: var(--fp-gray);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.8;
}

.fp-article-title__arrow {
  display: grid;
  width: 36px;
  height: 36px;
  margin-top: auto;
  place-items: center;
  border: 1px solid rgba(21, 21, 20, 0.35);
  border-radius: 50%;
  color: var(--fp-ink);
  font-size: 13px;
}

@media (max-width: 1180px) {
  .fp-article-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
    row-gap: 42px;
  }

  .fp-article-card {
    height: 450px;
    padding: 68px 28px 62px;
  }

  .fp-article-card__frame {
    inset: 62px 27px 64px;
  }

  .fp-article-card__rules {
    inset: 66px 30px 68px;
  }

  .fp-article-title {
    grid-column: 1 / -1;
    order: -1;
    min-height: 0;
    flex-direction: row;
    align-items: flex-end;
    gap: 24px;
    padding: 0 0 6px;
  }

  .fp-article-title h2 {
    margin: 0;
    font-size: clamp(54px, 7vw, 72px);
    line-height: 1;
    writing-mode: horizontal-tb;
  }

  .fp-article-title__count {
    margin: 0 0 7px;
  }

  .fp-article-title__rule {
    display: none;
  }

  .fp-article-title__note {
    margin: 0 0 7px auto;
  }

  .fp-article-title__arrow {
    margin: 0 0 2px;
  }
}

@media (max-width: 780px) {
  .fp-article-stage {
    grid-template-columns: 1fr;
    row-gap: 22px;
  }

  .fp-article-card {
    height: 430px;
    padding: 58px 22px 54px;
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 92%) !important;
  }

  .fp-article-shell--two .fp-article-card,
  .fp-article-shell--three .fp-article-card {
    clip-path: polygon(0 0, 100% 8%, 100% 92%, 0 100%) !important;
  }

  .fp-article-card__frame {
    inset: 52px 21px 54px;
  }

  .fp-article-card__rules {
    inset: 56px 24px 58px;
  }

  .fp-article-title {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .fp-article-title h2 {
    font-size: 54px;
  }

  .fp-article-title__note {
    flex-basis: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-article-card,
  .fp-article-card__content {
    transform: none !important;
  }
}


/* Final geometry: no skew. The silhouette comes only from the vertical-sided,
   slanted-top/bottom cut, exactly like the reference crop. */
.fp-article-card {
  transform: none !important;
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 86%) !important;
}

.fp-article-shell--two .fp-article-card {
  clip-path: polygon(0 0, 100% 14%, 100% 86%, 0 100%) !important;
}

.fp-article-shell--three .fp-article-card {
  clip-path: polygon(0 11%, 100% 0, 100% 100%, 0 89%) !important;
}

.fp-article-card__content {
  transform: none !important;
}

.fp-article-index__content {
  transform: none !important;
}

@media (max-width: 780px) {
  .fp-article-stage {
    grid-template-columns: 1fr !important;
  }

  .fp-article-shell {
    width: 100% !important;
    justify-self: stretch !important;
  }

  .fp-article-card {
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 92%) !important;
  }

  .fp-article-shell--two .fp-article-card,
  .fp-article-shell--three .fp-article-card {
    clip-path: polygon(0 0, 100% 8%, 100% 92%, 0 100%) !important;
  }
}


/* ==========================================================================
   Authoritative article-card layer. Older paper/refine nth-child rules were
   still winning the cascade and shrinking the new sheets. This layer wins.
   ========================================================================== */

#articles .fp-article-stage > .fp-article-shell {
  margin-top: 0 !important;
  width: auto;
}

#articles .fp-article-stage .fp-article-rig {
  transform: translate3d(0, var(--ty), 0) rotateZ(0deg) !important;
}

#articles .fp-article-stage .fp-article-card {
  height: 520px !important;
  min-height: 0 !important;
  padding: 86px 34px 76px !important;
  transform: none !important;
  border: 0 !important;
  box-shadow: none !important;
  filter:
    drop-shadow(0 0 0.55px rgba(21, 21, 20, 0.5))
    drop-shadow(0 20px 24px rgba(21, 21, 20, 0.13)) !important;
}

#articles .fp-article-stage .fp-article-shell--one .fp-article-card {
  clip-path: polygon(0 14%, 100% 0, 100% 100%, 0 86%) !important;
}

#articles .fp-article-stage .fp-article-shell--two .fp-article-card {
  clip-path: polygon(0 0, 100% 14%, 100% 86%, 0 100%) !important;
}

#articles .fp-article-stage .fp-article-shell--three .fp-article-card {
  clip-path: polygon(0 11%, 100% 0, 100% 100%, 0 89%) !important;
}

#articles .fp-article-stage .fp-article-card__content {
  transform: none !important;
}

#articles .fp-article-stage .fp-article-card__frame {
  inset: 80px 32px 80px !important;
}

#articles .fp-article-stage .fp-article-card__frame::before {
  inset: 5px;
}

#articles .fp-article-stage .fp-article-card__rules {
  inset: 84px 35px 84px !important;
}

#articles .fp-article-stage .fp-article-card__title,
#articles .fp-article-stage .fp-article-card__summary {
  margin: 0 !important;
  transform: none !important;
}

#articles .fp-article-stage .fp-article-shell:hover .fp-article-card,
#articles .fp-article-stage .fp-article-shell:focus-within .fp-article-card {
  transform: none !important;
}

@media (max-width: 1180px) {
  #articles .fp-article-stage .fp-article-card {
    height: 450px !important;
    padding: 68px 28px 62px !important;
  }

  #articles .fp-article-stage .fp-article-shell--one .fp-article-card,
  #articles .fp-article-stage .fp-article-shell--three .fp-article-card {
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%) !important;
  }

  #articles .fp-article-stage .fp-article-shell--two .fp-article-card {
    clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%) !important;
  }

  #articles .fp-article-stage .fp-article-card__frame {
    inset: 62px 27px 64px !important;
  }

  #articles .fp-article-stage .fp-article-card__rules {
    inset: 66px 30px 68px !important;
  }
}

@media (max-width: 780px) {
  #articles .fp-article-stage .fp-article-shell {
    width: 100% !important;
    justify-self: stretch !important;
  }

  #articles .fp-article-stage .fp-article-card {
    height: 430px !important;
    padding: 58px 22px 54px !important;
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 92%) !important;
  }

  #articles .fp-article-stage .fp-article-shell--two .fp-article-card,
  #articles .fp-article-stage .fp-article-shell--three .fp-article-card {
    clip-path: polygon(0 0, 100% 8%, 100% 92%, 0 100%) !important;
  }

  #articles .fp-article-stage .fp-article-card__frame {
    inset: 52px 21px 54px !important;
  }

  #articles .fp-article-stage .fp-article-card__rules {
    inset: 56px 24px 58px !important;
  }
}


/* ==========================================================================
   Final correction layer:
   - the paper itself is skewed on Y, so the internal ruled/frame lines move too
   - the article title is text, not a paper block
   - every major section gets one viewport of height
   ========================================================================== */

.fp-section {
  min-height: 100svh;
}

#articles .fp-article-stage .fp-article-card {
  height: 520px !important;
  min-height: 0 !important;
  padding: 86px 34px 76px !important;
  clip-path: none !important;
  transform: skewY(var(--sheet-skew-y, 0deg)) !important;
  transform-origin: 50% 50%;
  border: 0 !important;
  box-shadow: none !important;
  filter:
    drop-shadow(0 0 0.55px rgba(21, 21, 20, 0.5))
    drop-shadow(0 20px 24px rgba(21, 21, 20, 0.13)) !important;
}

#articles .fp-article-stage .fp-article-shell--one {
  --sheet-skew-y: -6.5deg;
}

#articles .fp-article-stage .fp-article-shell--two {
  --sheet-skew-y: 6.5deg;
}

#articles .fp-article-stage .fp-article-shell--three {
  --sheet-skew-y: -5deg;
}

#articles .fp-article-stage .fp-article-card__content {
  transform: skewY(calc(-1 * var(--sheet-skew-y, 0deg))) !important;
  transform-origin: 50% 50%;
}

#articles .fp-article-stage .fp-article-card__frame {
  inset: 80px 32px 80px !important;
}

#articles .fp-article-stage .fp-article-card__rules {
  inset: 84px 35px 84px !important;
}

#articles .fp-article-stage .fp-article-shell:hover .fp-article-card,
#articles .fp-article-stage .fp-article-shell:focus-within .fp-article-card {
  transform: skewY(var(--sheet-skew-y, 0deg)) !important;
}

@media (max-width: 1180px) {
  #articles .fp-article-stage .fp-article-card {
    height: 450px !important;
    padding: 68px 28px 62px !important;
  }

  #articles .fp-article-stage .fp-article-shell--one,
  #articles .fp-article-stage .fp-article-shell--three {
    --sheet-skew-y: -4.5deg;
  }

  #articles .fp-article-stage .fp-article-shell--two {
    --sheet-skew-y: 4.5deg;
  }

  #articles .fp-article-stage .fp-article-card__frame {
    inset: 62px 27px 64px !important;
  }

  #articles .fp-article-stage .fp-article-card__rules {
    inset: 66px 30px 68px !important;
  }
}

@media (max-width: 780px) {
  #articles .fp-article-stage .fp-article-card {
    height: 430px !important;
    padding: 58px 22px 54px !important;
    transform: skewY(var(--sheet-skew-y, 0deg)) !important;
  }

  #articles .fp-article-stage .fp-article-shell--one,
  #articles .fp-article-stage .fp-article-shell--two,
  #articles .fp-article-stage .fp-article-shell--three {
    --sheet-skew-y: 2deg;
  }

  #articles .fp-article-stage .fp-article-card__frame {
    inset: 52px 21px 54px !important;
  }

  #articles .fp-article-stage .fp-article-card__rules {
    inset: 56px 24px 58px !important;
  }
}


/* ==========================================================================
   Full-page section fill + clean article spread
   Article title returns to the section head; three sheets fill the stage.
   ========================================================================== */

.fp-workblog,
.fp-guestbook,
.fp-daily,
.fp-sound {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fp-workblog > .fp-wrap,
.fp-guestbook > .fp-wrap,
.fp-daily > .fp-wrap,
.fp-sound > .fp-wrap {
  width: 100%;
}

.fp-work-grid {
  gap: clamp(22px, 4svh, 48px) clamp(20px, 2.6vw, 34px);
}

.fp-work-item {
  min-height: clamp(172px, 20svh, 235px);
  padding-top: clamp(12px, 2svh, 22px);
  padding-bottom: clamp(14px, 2.4svh, 26px);
}

.fp-guestbook__list {
  gap: clamp(14px, 2.4svh, 28px) clamp(14px, 2vw, 24px);
}

.fp-guestbook__list .guest-note,
.fp-guestbook__list .guest-note:nth-child(2n),
.fp-guestbook__list .guest-note:nth-child(3n) {
  min-height: clamp(190px, 24svh, 260px) !important;
}

.fp-daily__feature {
  height: clamp(440px, 57svh, 620px) !important;
  min-height: 0;
}

.fp-daily__media {
  min-height: clamp(380px, 49svh, 540px);
}

.fp-music.music-card {
  min-height: clamp(380px, 49svh, 520px);
}

.record-sleeve {
  width: clamp(250px, 31svh, 340px);
}

.fp-sound-files {
  min-height: clamp(340px, 44svh, 460px);
}

/* --- article section ---------------------------------------------------- */

#articles {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100svh;
  padding: calc(var(--fp-header) + 2svh) 0 clamp(22px, 4svh, 46px);
}

#articles > .fp-wrap {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  width: 100%;
}

#articles .fp-articles__top {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(12px, 2svh, 24px);
}

#articles .fp-articles__intro h2 {
  margin: 8px 0 0;
  font-family: var(--brush-font);
  font-size: clamp(50px, 5.4vw, 78px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
}

#articles .fp-articles__note {
  max-width: 300px;
  margin: 0;
  color: var(--fp-gray);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.7;
}

#articles .fp-articles__top-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 10px;
}

#articles .fp-articles__top-meta b {
  color: var(--fp-ink);
  font-family: var(--brush-font);
  font-size: 26px;
  font-weight: 400;
}

#articles .fp-article-stage {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
  align-items: stretch;
  min-height: 0;
  padding: 0;
  perspective: none;
}

#articles .fp-article-stage > .fp-article-shell {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0;
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.6s ease, translate 0.75s var(--fp-ease);
}

#articles .fp-article-stage > .fp-article-shell.is-inview {
  opacity: 1;
  translate: 0 0;
}

#articles .fp-article-rig {
  height: 100%;
  transform: none !important;
}

#articles .fp-article-card {
  display: flex;
  height: 100% !important;
  min-height: 0 !important;
  flex-direction: column;
  padding: clamp(22px, 3vh, 34px) clamp(20px, 2.1vw, 30px) clamp(18px, 2.4vh, 28px) !important;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 20, 0.2) !important;
  clip-path: polygon(0 1.2%, 100% 0, 100% 98.8%, 0 100%) !important;
  background: var(--fp-letter) url("../img/paper-silk.jpg") center / cover;
  box-shadow: none !important;
  filter: drop-shadow(0 18px 26px rgba(21, 21, 20, 0.1)) !important;
  transform: none !important;
}

#articles .fp-article-card__content {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  height: 100%;
  transform: none !important;
}

#articles .fp-article-card__top {
  flex: 0 0 auto;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(21, 21, 20, 0.16);
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

#articles .fp-article-card__body {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(14px, 1.8vw, 24px);
  min-height: 0;
  align-items: stretch;
  padding: clamp(14px, 2.2vh, 22px) 0;
}

#articles .fp-article-card__summary {
  display: -webkit-box;
  align-self: end;
  order: 0;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 !important;
  overflow: hidden;
  color: var(--fp-gray);
  font-family: var(--serif);
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.9;
  writing-mode: horizontal-tb !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

#articles .fp-article-card__title {
  display: block;
  order: 1;
  align-self: start;
  justify-self: end;
  width: auto;
  max-width: 2.65em;
  height: 100%;
  max-height: 100%;
  margin: 0 !important;
  overflow: hidden;
  color: var(--fp-ink);
  font-family: var(--brush-font);
  font-size: clamp(32px, 3.2vh, 45px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.28;
  writing-mode: vertical-rl !important;
  text-orientation: upright;
}

#articles .fp-article-card__foot {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 11px 0 0;
  border-top: 1px solid rgba(21, 21, 20, 0.16);
  font-size: 9px;
}

#articles .fp-article-card__frame {
  inset: 15px;
  border-color: rgba(21, 21, 20, 0.2);
}

#articles .fp-article-card__frame::before {
  display: none;
}

#articles .fp-article-card__rules {
  display: none;
}

#articles .fp-articles__foot {
  flex: 0 0 auto;
  margin-top: clamp(12px, 2svh, 22px);
}

#articles .fp-article-shell:hover .fp-article-card {
  filter: drop-shadow(0 26px 32px rgba(21, 21, 20, 0.16)) !important;
}

@media (max-width: 1180px) {
  #articles {
    min-height: 100svh;
  }

  #articles .fp-article-stage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #articles .fp-article-card {
    padding: 22px 20px 18px !important;
  }

  #articles .fp-article-card__title {
    font-size: clamp(30px, 4.2vh, 40px);
  }
}

@media (max-width: 780px) {
  #articles {
    min-height: 0;
    padding-top: 74px;
    padding-bottom: 48px;
  }

  #articles .fp-article-stage {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #articles .fp-article-stage > .fp-article-shell {
    height: auto;
    min-height: 0;
  }

  #articles .fp-article-card {
    height: 460px !important;
    min-height: 460px !important;
  }

  #articles .fp-article-card__body {
    gap: 16px;
  }

  #articles .fp-article-card__title {
    font-size: 34px;
  }

  #articles .fp-article-card__summary {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  #articles .fp-articles__top {
    align-items: flex-start;
    gap: 16px;
  }

  #articles .fp-articles__note {
    display: none;
  }
}


/* Keep every full-page section inside the site's 1240px measure. */
.fp-workblog > .fp-wrap,
.fp-guestbook > .fp-wrap,
.fp-daily > .fp-wrap,
.fp-sound > .fp-wrap,
#articles > .fp-wrap {
  width: min(1240px, calc(100% - (var(--fp-side) * 2)));
  margin-right: auto;
  margin-left: auto;
}

#articles .fp-article-stage {
  min-width: 0;
}

#articles .fp-article-shell {
  min-width: 0;
}


/* Let the three sheets use the full height of the article section. */
#articles .fp-article-stage {
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
}

#articles .fp-article-stage > .fp-article-shell {
  height: 100%;
  min-height: 0;
}

#articles .fp-article-rig {
  height: 100%;
}

#articles .fp-article-card {
  height: 100% !important;
  min-height: 0 !important;
}


/* Give the article sheets a real claim on the one-screen height. */
#articles .fp-article-card {
  height: clamp(520px, calc(100svh - 330px), 700px) !important;
}

@media (max-width: 780px) {
  #articles .fp-article-card {
    height: 460px !important;
  }
}


/* Final stabilization: no legacy paper layers, no skew, no clipped titles. */
#articles .fp-article-shell::before,
#articles .fp-article-shell::after,
#articles .fp-article-rig::before,
#articles .fp-article-rig::after,
#articles .fp-article-card::before,
#articles .fp-article-card::after,
#articles .fp-plane {
  display: none !important;
}

#articles .fp-article-stage {
  grid-template-rows: auto;
  align-items: center;
}

#articles .fp-article-stage > .fp-article-shell {
  height: auto;
}

#articles .fp-article-rig {
  height: auto;
}

#articles .fp-article-card {
  height: clamp(500px, calc(100svh - 390px), 610px) !important;
  clip-path: none !important;
  transform: none !important;
}

#articles .fp-article-card__title {
  font-size: clamp(29px, 3vh, 38px) !important;
}

#articles .fp-article-card__summary {
  -webkit-line-clamp: 3;
}

@media (max-width: 780px) {
  #articles .fp-article-card {
    height: 460px !important;
  }
}


/* Keep the complete vertical title inside the sheet. */
#articles .fp-article-card__title {
  height: auto !important;
  max-height: 100% !important;
  max-width: 2.7em !important;
  overflow: visible !important;
  font-size: clamp(26px, 2.2vh, 31px) !important;
  line-height: 1.25;
}

/* Give the work notes a fuller claim on their one-screen section. */
.fp-work-grid {
  row-gap: clamp(28px, 4.5svh, 54px) !important;
}

.fp-work-item {
  min-height: clamp(200px, 24svh, 280px);
}


/* Remove every remaining decorative paper plane from the article cards. */
#articles .fp-article-shell > :not(.fp-article-rig),
#articles .fp-article-rig > :not(.fp-article-card) {
  display: none !important;
}

#articles .fp-article-card__frame {
  display: none !important;
}

#articles .fp-article-card *::before,
#articles .fp-article-card *::after {
  display: none !important;
}

#articles .fp-article-card {
  border: 1px solid rgba(21, 21, 20, 0.18) !important;
  background: #fbfaf6 !important;
}

#articles .fp-article-card__title {
  font-size: clamp(25px, 2.1vh, 29px) !important;
}


/* The old sheet rules were also skewing the top/foot rows, which drew diagonal
   rules inside the new clean cards. Freeze every child transform. */
#articles .fp-article-card,
#articles .fp-article-card * {
  transform: none !important;
}


/* --------------------------------------------------------------------------
   Clean article sheets v44. New markup, isolated from all legacy card rules.
   -------------------------------------------------------------------------- */

#articles .fp-article-stage > .fp-article-shell {
  width: 100% !important;
  height: clamp(520px, calc(100svh - 380px), 600px) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0;
  translate: 0 22px;
  transition: opacity 0.6s ease, translate 0.75s var(--fp-ease);
}

#articles .fp-article-stage > .fp-article-shell.is-inview {
  opacity: 1;
  translate: 0 0;
}

#articles .fp-article-shell::before,
#articles .fp-article-shell::after {
  display: none !important;
}

#articles .fp-article-sheet {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  padding: clamp(22px, 2.6vh, 28px) clamp(22px, 2vw, 28px) clamp(18px, 2.1vh, 24px);
  border: 1px solid rgba(21, 21, 20, 0.2);
  background: #fbfaf6;
  color: var(--fp-ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 20px 28px rgba(21, 21, 20, 0.1);
  transition: transform 0.35s var(--fp-ease), box-shadow 0.35s ease;
}

#articles .fp-article-sheet:hover,
#articles .fp-article-sheet:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 30px 36px rgba(21, 21, 20, 0.16);
}

#articles .fp-article-sheet__top {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(21, 21, 20, 0.16);
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.07em;
}

#articles .fp-article-sheet__body {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(14px, 1.7vw, 22px);
  min-height: 0;
  align-items: stretch;
  padding: clamp(14px, 2.2vh, 22px) 0;
}

#articles .fp-article-sheet__summary {
  display: -webkit-box;
  align-self: end;
  max-width: 100%;
  overflow: hidden;
  color: var(--fp-gray);
  font-family: var(--serif);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.9;
  writing-mode: horizontal-tb;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

#articles .fp-article-sheet__title {
  display: block;
  align-self: start;
  justify-self: end;
  max-width: 2.7em;
  color: var(--fp-ink);
  font-family: var(--brush-font);
  font-size: clamp(26px, 2.3vh, 32px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.28;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

#articles .fp-article-sheet__foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px solid rgba(21, 21, 20, 0.16);
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

#articles .fp-article-sheet__foot i {
  font-style: normal;
}

@media (max-width: 780px) {
  #articles .fp-article-stage > .fp-article-shell {
    height: 460px !important;
  }

  #articles .fp-article-sheet {
    padding: 20px 20px 17px;
  }

  #articles .fp-article-sheet__summary {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  #articles .fp-article-sheet__title {
    font-size: 27px;
  }
}


/* The article sheets are always present; section-level reveal handles pacing. */
#articles .fp-article-stage > .fp-article-shell,
#articles .fp-article-stage > .fp-article-shell:not(.is-inview) {
  opacity: 1 !important;
  translate: 0 0 !important;
}


/* The legacy plane-hiding rule must not hide the new sheet. */
#articles .fp-article-shell > .fp-article-sheet {
  display: flex !important;
}


/* ==========================================================================
   Fudan #container-2 geometry, grayscale.
   Four cards, same silhouettes/angles as math.fudan.edu.cn, right title rail.
   ========================================================================== */

#articles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: calc(var(--fp-header) + 2svh) 0 4svh;
}

#articles > .fp-wrap {
  display: block;
  flex: 0 0 auto;
  width: min(1240px, calc(100% - (var(--fp-side) * 2)));
  margin: 0 auto;
}

#articles .fp-articles__fudan {
  display: flex;
  align-items: center;
  gap: 4.4%;
  width: 100%;
}

#articles .fp-article-stage {
  position: relative;
  display: block;
  flex: 0 0 78.7%;
  width: 78.7%;
  height: auto;
  min-height: 0;
  aspect-ratio: 963.5 / 514;
  padding: 0;
  perspective: none;
}

#articles .fp-article-stage > .fp-article-shell {
  position: absolute;
  top: auto;
  left: auto;
  width: 24.59% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  border: 0;
  background: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  translate: 0 0 !important;
  transform: none !important;
}

#articles .fp-article-shell--one {
  top: 12.21% !important;
  left: 0 !important;
  aspect-ratio: 226.5 / 365.25;
  z-index: 1;
}

#articles .fp-article-shell--two {
  top: 24.42% !important;
  left: 22.96% !important;
  aspect-ratio: 226.5 / 371.25;
  z-index: 2;
}

#articles .fp-article-shell--three {
  top: 24.42% !important;
  left: 52.45% !important;
  aspect-ratio: 226.5 / 371.25;
  z-index: 3;
}

#articles .fp-article-shell--four {
  top: 6.11% !important;
  left: 75.40% !important;
  aspect-ratio: 226.5 / 382.5;
  z-index: 4;
}

#articles .fp-article-shell > .fp-article-sheet {
  display: flex !important;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  padding: 17.9% 15.2% 16.6% 11.3%;
  border: 0;
  color: #151514;
  cursor: pointer;
  text-align: left;
  background: #dcdcd8;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  box-shadow: none;
  filter: none;
}

#articles .fp-article-shell--two .fp-article-sheet {
  padding-top: 38.1%;
  background: #b7b7b2;
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 80%);
}

#articles .fp-article-shell--three .fp-article-sheet {
  background: #ececea;
  clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
}

#articles .fp-article-shell--four .fp-article-sheet {
  background: #1d1d1c;
  color: #f2f0eb;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
}

#articles .fp-article-sheet:hover,
#articles .fp-article-sheet:focus-visible {
  transform: none;
  box-shadow: none;
  filter: brightness(1.03);
}

#articles .fp-article-sheet__top {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
  color: currentColor;
  font-family: var(--mono);
  font-size: clamp(7.5px, 0.65vw, 9px);
  letter-spacing: 0.06em;
  opacity: 0.66;
}

#articles .fp-article-sheet__body {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  padding: 10% 0 8%;
}

#articles .fp-article-sheet__summary {
  display: block;
  flex: 1;
  align-self: flex-start;
  max-width: none;
  overflow: hidden;
  color: currentColor;
  font-family: var(--serif);
  font-size: clamp(9px, 0.78vw, 10.5px);
  line-height: 1.85;
  writing-mode: vertical-rl;
  -webkit-line-clamp: unset;
  opacity: 0.72;
}

#articles .fp-article-sheet__title {
  display: block;
  flex: 0 0 auto;
  align-self: flex-start;
  justify-self: auto;
  max-width: none;
  max-height: 100%;
  overflow: hidden;
  color: currentColor;
  font-family: var(--brush-font);
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.35;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

#articles .fp-article-sheet__foot {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0;
  border: 0;
  color: currentColor;
  font-family: var(--mono);
  font-size: clamp(7px, 0.6vw, 8.5px);
  letter-spacing: 0.04em;
  opacity: 0.6;
}

#articles .fp-article-sheet__foot i {
  font-style: normal;
}

/* right title rail, like .tt at Fudan */
#articles .fp-articles__side {
  display: flex;
  flex: 0 0 16.9%;
  width: 16.9%;
  align-self: stretch;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vh, 18px);
  min-height: 0;
  padding: 2% 0;
  text-align: center;
}

#articles .fp-articles__side-eyebrow {
  color: rgba(21, 21, 20, 0.34);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

#articles .fp-articles__side h2 {
  margin: 0;
  color: var(--fp-ink);
  font-family: var(--brush-font);
  font-size: clamp(32px, 2.9vw, 42px);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1;
  writing-mode: vertical-rl;
}

#articles .fp-articles__side-rule {
  position: relative;
  display: block;
  width: 1px;
  height: clamp(78px, 12vh, 132px);
  background: rgba(21, 21, 20, 0.3);
}

#articles .fp-articles__side-rule::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -2.5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fp-ink);
}

#articles .fp-articles__side-count {
  margin: 0;
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

#articles .fp-articles__side-count b {
  color: var(--fp-ink);
  font-family: var(--brush-font);
  font-size: 24px;
  font-weight: 400;
}

#articles .fp-articles__side-link {
  color: var(--fp-ink);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  writing-mode: vertical-rl;
}

#articles .fp-articles__side-link span {
  display: inline-block;
  margin-top: 8px;
}

#articles .fp-articles__side .fp-owner-button {
  margin: 4px 0 0;
  padding: 4px 2px;
  border: 0;
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 8px;
  writing-mode: vertical-rl;
}

@media (max-width: 780px) {
  #articles {
    justify-content: flex-start;
    padding-top: calc(var(--fp-header) + 42px);
    padding-bottom: 54px;
  }

  #articles .fp-articles__fudan {
    display: block;
  }

  #articles .fp-article-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    gap: 18px;
  }

  #articles .fp-article-stage > .fp-article-shell {
    position: relative;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 340px !important;
    aspect-ratio: auto;
  }

  #articles .fp-article-shell--two,
  #articles .fp-article-shell--four {
    margin-top: 28px !important;
  }

  #articles .fp-article-shell > .fp-article-sheet {
    padding: 26px 20px 22px;
  }

  #articles .fp-article-shell--two .fp-article-sheet {
    padding-top: 56px;
  }

  #articles .fp-article-sheet__summary,
  #articles .fp-article-sheet__title {
    font-size: 15px;
  }

  #articles .fp-article-sheet__title {
    font-size: 21px;
  }

  #articles .fp-articles__side {
    flex: none;
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    padding: 30px 0 0;
  }

  #articles .fp-articles__side-eyebrow,
  #articles .fp-articles__side-count,
  #articles .fp-articles__side-link,
  #articles .fp-articles__side .fp-owner-button {
    writing-mode: horizontal-tb;
  }

  #articles .fp-articles__side-rule {
    width: 74px;
    height: 1px;
  }

  #articles .fp-articles__side-rule::after {
    top: -2.5px;
    left: auto;
    right: -5px;
  }
}


/* Fit the vertical text inside the original Fudan cuts. */
#articles .fp-article-shell--one .fp-article-sheet {
  padding-bottom: 24%;
}

#articles .fp-article-shell--two .fp-article-sheet,
#articles .fp-article-shell--three .fp-article-sheet {
  padding-top: 33%;
}

#articles .fp-article-sheet__title {
  font-size: clamp(14px, 1.02vw, 15px);
  line-height: 1.25;
}


/* ==========================================================================
   Final pass: +7% longer sheets, optical centering, and the paper entrance.
   ========================================================================== */

#articles .fp-article-stage {
  aspect-ratio: 963.5 / 550;
}

#articles .fp-article-shell--one {
  aspect-ratio: 226.5 / 390.75;
}

#articles .fp-article-shell--two,
#articles .fp-article-shell--three {
  aspect-ratio: 226.5 / 397.25;
}

#articles .fp-article-shell--four {
  aspect-ratio: 226.5 / 409.25;
}

#articles .fp-article-shell--one .fp-article-sheet {
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
}

#articles .fp-article-shell--two .fp-article-sheet {
  clip-path: polygon(0 18.7%, 100% 0, 100% 100%, 0 81.3%);
}

#articles .fp-article-shell--three .fp-article-sheet {
  clip-path: polygon(0 0, 100% 18.7%, 100% 81.3%, 0 100%);
}

#articles .fp-article-shell--four .fp-article-sheet {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92.5%);
}

/* centre the ink envelope, not just the flex boxes */
#articles .fp-articles__fudan {
  position: relative;
  left: clamp(18px, 2.95vw, 44px);
}

/* the right title rail is slightly high against the taller paper group */
#articles .fp-articles__side {
  padding-top: 34px;
}

/* --- entrance: paper drop-in ------------------------------------------- */

#articles .fp-article-sheet {
  opacity: 0;
}

#articles .fp-article-shell--one {
  --enter-delay: 60ms;
  --enter-lift: 28px;
  --enter-rot: -0.8deg;
}

#articles .fp-article-shell--two {
  --enter-delay: 140ms;
  --enter-lift: 28px;
  --enter-rot: 0.7deg;
}

#articles .fp-article-shell--three {
  --enter-delay: 220ms;
  --enter-lift: 28px;
  --enter-rot: -0.6deg;
}

#articles .fp-article-shell--four {
  --enter-delay: 300ms;
  --enter-lift: 36px;
  --enter-rot: 0.9deg;
}

#articles .fp-article-shell.is-inview .fp-article-sheet {
  animation: fp-sheet-enter 860ms var(--fp-ease) var(--enter-delay) both;
}

@keyframes fp-sheet-enter {
  0% {
    opacity: 0;
    translate: 0 var(--enter-lift, 28px);
    rotate: var(--enter-rot, 0deg);
  }
  42% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }
}

#articles .fp-articles__side > * {
  opacity: 0;
}

#articles.is-entering .fp-articles__side-eyebrow {
  animation: fp-side-enter 600ms var(--fp-ease) 360ms both;
}

#articles.is-entering .fp-articles__side h2 {
  animation: fp-side-enter 800ms var(--fp-ease) 300ms both;
}

#articles.is-entering .fp-articles__side-rule {
  transform-origin: 50% 0;
  animation: fp-rule-enter 550ms var(--fp-ease) 420ms both;
}

#articles.is-entering .fp-articles__side-count,
#articles.is-entering .fp-articles__side-link,
#articles.is-entering .fp-articles__side .fp-owner-button {
  animation: fp-side-enter 600ms var(--fp-ease) 460ms both;
}

@keyframes fp-side-enter {
  0% {
    opacity: 0;
    translate: 0 10px;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes fp-rule-enter {
  0% {
    opacity: 0;
    scale: 1 0.25;
  }
  100% {
    opacity: 1;
    scale: 1 1;
  }
}

@media (max-width: 780px) {
  #articles .fp-articles__fudan {
    left: 0;
  }

  #articles .fp-articles__side {
    padding-top: 30px;
  }

  #articles .fp-article-stage > .fp-article-shell {
    height: 360px !important;
  }

  #articles .fp-article-shell--one,
  #articles .fp-article-shell--two,
  #articles .fp-article-shell--three,
  #articles .fp-article-shell--four {
    aspect-ratio: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #articles .fp-article-sheet,
  #articles .fp-articles__side > * {
    animation: none !important;
    opacity: 1 !important;
    translate: none !important;
    rotate: none !important;
    scale: none !important;
    transition: none !important;
  }
}


/* ==========================================================================
   Final pass 2: k = 1.20 length, centre-band reveal, replayable entrance.
   ========================================================================== */

#articles .fp-article-stage {
  aspect-ratio: 963.5 / 616.8;
}

#articles .fp-article-shell--one {
  aspect-ratio: 226.5 / 438.3;
}

#articles .fp-article-shell--two,
#articles .fp-article-shell--three {
  aspect-ratio: 226.5 / 445.5;
}

#articles .fp-article-shell--four {
  aspect-ratio: 226.5 / 459;
}

#articles .fp-article-shell--one .fp-article-sheet {
  clip-path: polygon(0 0, 100% 0, 100% 87.5%, 0 100%);
}

#articles .fp-article-shell--two .fp-article-sheet {
  clip-path: polygon(0 16.667%, 100% 0, 100% 100%, 0 83.333%);
}

#articles .fp-article-shell--three .fp-article-sheet {
  clip-path: polygon(0 0, 100% 16.667%, 100% 83.333%, 0 100%);
}

#articles .fp-article-shell--four .fp-article-sheet {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 93.333%);
}

/* armed only after JS can replay it; no-JS and reduced-motion stay visible */
#articles.is-armed .fp-article-sheet {
  opacity: 0;
}

#articles.is-armed .fp-articles__side > * {
  opacity: 0;
}

#articles:not(.is-armed) .fp-article-sheet,
#articles:not(.is-armed) .fp-articles__side > * {
  opacity: 1;
}

#articles.is-armed:not(.is-entering) .fp-article-sheet {
  pointer-events: none;
}

#articles.is-armed .fp-article-shell:focus-within .fp-article-sheet,
#articles.is-armed .fp-article-sheet:focus-visible {
  opacity: 1 !important;
  animation: none !important;
  translate: none !important;
  rotate: none !important;
  pointer-events: auto;
}

#articles.is-armed .fp-articles__side:focus-within > * {
  opacity: 1 !important;
  animation: none !important;
}

/* tighter stagger now that playback happens at the visual centre */
#articles .fp-article-shell--one { --enter-delay: 0ms; }
#articles .fp-article-shell--two { --enter-delay: 70ms; }
#articles .fp-article-shell--three { --enter-delay: 140ms; }
#articles .fp-article-shell--four { --enter-delay: 210ms; }

@media (max-width: 780px) {
  #articles .fp-article-stage {
    aspect-ratio: auto;
  }
}


/* Pull the article composition a little closer to the top of its section. */
#articles .fp-articles__fudan {
  translate: 0 -6.5svh;
}

@media (max-width: 780px) {
  #articles .fp-articles__fudan {
    translate: 0 -2svh;
  }
}


/* One more trim of the blank above the paper group. */
#articles .fp-articles__fudan {
  translate: 0 -10svh;
}

@media (max-width: 780px) {
  #articles .fp-articles__fudan {
    translate: 0 -3svh;
  }
}


/* ==========================================================================
   Final pass 3: top-aligned article section, longer sheets, slower paper drop.
   ========================================================================== */

#articles {
  justify-content: flex-start;
  padding-top: calc(var(--fp-header) + 2svh);
  padding-bottom: 3svh;
}

#articles .fp-articles__fudan {
  translate: 0 0;
}

#articles .fp-article-stage {
  aspect-ratio: 963.5 / 719.6;
}

#articles .fp-article-shell--one {
  aspect-ratio: 226.5 / 511.35;
}

#articles .fp-article-shell--two,
#articles .fp-article-shell--three {
  aspect-ratio: 226.5 / 519.75;
}

#articles .fp-article-shell--four {
  aspect-ratio: 226.5 / 535.5;
}

#articles .fp-article-shell--one .fp-article-sheet {
  clip-path: polygon(0 0, 100% 0, 100% 89.286%, 0 100%);
}

#articles .fp-article-shell--two .fp-article-sheet {
  clip-path: polygon(0 14.286%, 100% 0, 100% 100%, 0 85.714%);
}

#articles .fp-article-shell--three .fp-article-sheet {
  clip-path: polygon(0 0, 100% 14.286%, 100% 85.714%, 0 100%);
}

#articles .fp-article-shell--four .fp-article-sheet {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 94.286%);
}

/* a slightly slower fall */
#articles .fp-article-shell.is-inview .fp-article-sheet {
  animation-duration: 1050ms;
}

#articles .fp-article-shell--one { --enter-delay: 0ms; }
#articles .fp-article-shell--two { --enter-delay: 90ms; }
#articles .fp-article-shell--three { --enter-delay: 180ms; }
#articles .fp-article-shell--four { --enter-delay: 270ms; }

#articles.is-entering .fp-articles__side-eyebrow {
  animation-duration: 750ms;
  animation-delay: 380ms;
}

#articles.is-entering .fp-articles__side h2 {
  animation-duration: 950ms;
  animation-delay: 320ms;
}

#articles.is-entering .fp-articles__side-rule {
  animation-duration: 700ms;
  animation-delay: 450ms;
}

#articles.is-entering .fp-articles__side-count,
#articles.is-entering .fp-articles__side-link,
#articles.is-entering .fp-articles__side .fp-owner-button {
  animation-duration: 750ms;
  animation-delay: 490ms;
}

@media (max-width: 780px) {
  #articles {
    padding-top: calc(var(--fp-header) + 30px);
  }

  #articles .fp-articles__fudan {
    translate: 0 0;
  }
}


/* Final pass 4: another +17.9% length, another slower fall. */
#articles .fp-article-stage {
  aspect-ratio: 963.5 / 848.1;
}

#articles .fp-article-shell--one {
  aspect-ratio: 226.5 / 602.66;
}

#articles .fp-article-shell--two,
#articles .fp-article-shell--three {
  aspect-ratio: 226.5 / 612.56;
}

#articles .fp-article-shell--four {
  aspect-ratio: 226.5 / 631.13;
}

#articles .fp-article-shell--one .fp-article-sheet {
  clip-path: polygon(0 0, 100% 0, 100% 90.909%, 0 100%);
}

#articles .fp-article-shell--two .fp-article-sheet {
  clip-path: polygon(0 12.121%, 100% 0, 100% 100%, 0 87.879%);
}

#articles .fp-article-shell--three .fp-article-sheet {
  clip-path: polygon(0 0, 100% 12.121%, 100% 87.879%, 0 100%);
}

#articles .fp-article-shell--four .fp-article-sheet {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 95.152%);
}

#articles .fp-article-shell.is-inview .fp-article-sheet {
  animation-duration: 1350ms;
}

#articles .fp-article-shell--one { --enter-delay: 0ms; }
#articles .fp-article-shell--two { --enter-delay: 120ms; }
#articles .fp-article-shell--three { --enter-delay: 240ms; }
#articles .fp-article-shell--four { --enter-delay: 360ms; }

#articles.is-entering .fp-articles__side-eyebrow {
  animation-duration: 950ms;
  animation-delay: 480ms;
}

#articles.is-entering .fp-articles__side h2 {
  animation-duration: 1200ms;
  animation-delay: 400ms;
}

#articles.is-entering .fp-articles__side-rule {
  animation-duration: 900ms;
  animation-delay: 560ms;
}

#articles.is-entering .fp-articles__side-count,
#articles.is-entering .fp-articles__side-link,
#articles.is-entering .fp-articles__side .fp-owner-button {
  animation-duration: 950ms;
  animation-delay: 620ms;
}

@media (max-width: 780px) {
  #articles .fp-article-stage {
    aspect-ratio: auto;
  }
}


/* Final pass 5: longer again, slower again. */
#articles .fp-article-stage {
  aspect-ratio: 963.5 / 976.6;
}

#articles .fp-article-shell--one {
  aspect-ratio: 226.5 / 693.98;
}

#articles .fp-article-shell--two,
#articles .fp-article-shell--three {
  aspect-ratio: 226.5 / 705.38;
}

#articles .fp-article-shell--four {
  aspect-ratio: 226.5 / 726.75;
}

#articles .fp-article-shell--one .fp-article-sheet {
  clip-path: polygon(0 0, 100% 0, 100% 92.105%, 0 100%);
}

#articles .fp-article-shell--two .fp-article-sheet {
  clip-path: polygon(0 10.526%, 100% 0, 100% 100%, 0 89.474%);
}

#articles .fp-article-shell--three .fp-article-sheet {
  clip-path: polygon(0 0, 100% 10.526%, 100% 89.474%, 0 100%);
}

#articles .fp-article-shell--four .fp-article-sheet {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 95.789%);
}

#articles .fp-article-shell.is-inview .fp-article-sheet {
  animation-duration: 1700ms;
}

#articles .fp-article-shell--one { --enter-delay: 0ms; }
#articles .fp-article-shell--two { --enter-delay: 150ms; }
#articles .fp-article-shell--three { --enter-delay: 300ms; }
#articles .fp-article-shell--four { --enter-delay: 450ms; }

#articles.is-entering .fp-articles__side-eyebrow {
  animation-duration: 1200ms;
  animation-delay: 560ms;
}

#articles.is-entering .fp-articles__side h2 {
  animation-duration: 1500ms;
  animation-delay: 470ms;
}

#articles.is-entering .fp-articles__side-rule {
  animation-duration: 1150ms;
  animation-delay: 650ms;
}

#articles.is-entering .fp-articles__side-count,
#articles.is-entering .fp-articles__side-link,
#articles.is-entering .fp-articles__side .fp-owner-button {
  animation-duration: 1200ms;
  animation-delay: 720ms;
}

@media (max-width: 780px) {
  #articles .fp-article-stage {
    aspect-ratio: auto;
  }
}


/* Return the four sheets to the confirmed 848px-stage version. */
#articles .fp-article-stage {
  aspect-ratio: 963.5 / 848.1;
}

#articles .fp-article-shell--one {
  aspect-ratio: 226.5 / 602.66;
}

#articles .fp-article-shell--two,
#articles .fp-article-shell--three {
  aspect-ratio: 226.5 / 612.56;
}

#articles .fp-article-shell--four {
  aspect-ratio: 226.5 / 631.13;
}

#articles .fp-article-shell--one .fp-article-sheet {
  clip-path: polygon(0 0, 100% 0, 100% 90.909%, 0 100%);
}

#articles .fp-article-shell--two .fp-article-sheet {
  clip-path: polygon(0 12.121%, 100% 0, 100% 100%, 0 87.879%);
}

#articles .fp-article-shell--three .fp-article-sheet {
  clip-path: polygon(0 0, 100% 12.121%, 100% 87.879%, 0 100%);
}

#articles .fp-article-shell--four .fp-article-sheet {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 95.152%);
}


/* Public static deployment is read-only: no owner entry, writes or edits. */
html[data-site-mode="static"] #ownerEntry,
html[data-site-mode="static"] #ownerEntryFooter,
html[data-site-mode="static"] #introEdit,
html[data-site-mode="static"] .owner-only,
html[data-site-mode="static"] [data-compose],
html[data-site-mode="static"] #openGuestbookForm,
html[data-site-mode="static"] .post-actions,
html[data-site-mode="static"] .fp-post-actions,
html[data-site-mode="static"] .guest-note__delete,
html[data-site-mode="static"] .fp-sound-file__delete {
  display: none !important;
}


/* --------------------------------------------------------------------------
   “更多”档案入口与全站档案弹窗
   -------------------------------------------------------------------------- */

.fp-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(21, 21, 20, 0.35);
  background: none;
  color: var(--fp-ink);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  cursor: pointer;
}

.fp-more:hover,
.fp-more:focus-visible {
  border-bottom-color: var(--fp-ink);
}

.fp-articles__side-link {
  padding: 4px 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(21, 21, 20, 0.3);
  background: none;
  cursor: pointer;
}

.fp-articles__side-link:hover,
.fp-articles__side-link:focus-visible {
  border-bottom-color: var(--fp-ink);
}

.fp-guestbook__lead .fp-more {
  margin-top: 14px;
}

.fp-sound-files__head .fp-more {
  align-self: flex-start;
}

.archive-modal .modal__surface {
  width: min(900px, calc(100vw - 36px));
  max-height: min(82svh, 780px);
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
}

.archive {
  display: flex;
  flex-direction: column;
}

.archive__head {
  flex: 0 0 auto;
  padding-right: 42px;
}

.archive__head h2 {
  margin: 8px 0 0;
  font-family: var(--brush-font);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  line-height: 1;
}

.archive__count {
  margin: 12px 0 0;
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.archive__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  min-height: 0;
  margin-top: 24px;
  padding-top: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.archive-entry {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 0 16px;
  border: 0;
  border-top: 1px solid rgba(21, 21, 20, 0.18);
  background: none;
  color: var(--fp-ink);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.archive-entry:hover,
.archive-entry:focus-visible {
  background: rgba(21, 21, 20, 0.035);
}

.archive-entry__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.archive-entry__title {
  font-family: var(--serif);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 600;
  line-height: 1.45;
}

.archive-entry__summary {
  color: var(--fp-gray);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.7;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.archive-entry__arrow {
  align-self: flex-end;
  margin-top: auto;
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 12px;
}

.archive-entry--note {
  cursor: default;
}

.archive-empty {
  grid-column: 1 / -1;
  padding: 42px 0;
  color: var(--fp-gray);
  font-family: var(--serif);
  font-size: 13px;
}

@media (max-width: 660px) {
  .archive__list {
    grid-template-columns: 1fr;
  }

  .archive-modal .modal__surface {
    max-height: 88svh;
  }
}

/* KaTeX inherits the page ink rather than default black. */
.katex {
  color: var(--fp-ink);
}

.katex-display {
  margin: 1.2em 0;
  overflow-x: auto;
  overflow-y: hidden;
}


/* ==========================================================================
   Mobile-only article layout. Desktop Fudan geometry is untouched.
   ========================================================================== */

@media (max-width: 780px) {
  #articles {
    display: block;
    min-height: 0;
    padding: calc(var(--fp-header) + 26px) 0 52px;
  }

  #articles > .fp-wrap {
    width: calc(100% - 32px);
    margin: 0 auto;
  }

  #articles .fp-articles__fudan {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    left: 0;
    translate: 0 0;
  }

  /* Horizontal title above the mobile stack */
  #articles .fp-articles__side {
    order: -1;
    display: flex;
    flex: none;
    width: 100%;
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 10px 16px;
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(21, 21, 20, 0.2);
    text-align: left;
  }

  #articles .fp-articles__side-eyebrow {
    flex: 0 0 100%;
    color: rgba(21, 21, 20, 0.4);
    font-size: 9px;
    letter-spacing: 0.16em;
    writing-mode: horizontal-tb;
  }

  #articles .fp-articles__side h2 {
    margin: 0;
    font-size: clamp(40px, 12vw, 54px);
    line-height: 1;
    writing-mode: horizontal-tb;
  }

  #articles .fp-articles__side-rule {
    width: auto;
    height: auto;
    flex: 1 1 40px;
    min-width: 26px;
    margin: 0 2px 0 0;
    border-top: 1px solid rgba(21, 21, 20, 0.25);
    background: none;
  }

  #articles .fp-articles__side-rule::after {
    display: none;
  }

  #articles .fp-articles__side-count,
  #articles .fp-articles__side-link {
    margin: 0;
    font-size: 11px;
    writing-mode: horizontal-tb;
  }

  #articles .fp-articles__side .fp-owner-button {
    display: none !important;
  }

  /* Single readable stack instead of the desktop absolute canvas */
  #articles .fp-article-stage {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 0;
    flex-direction: column;
    gap: 18px;
    aspect-ratio: auto;
    padding: 0;
  }

  #articles .fp-article-stage > .fp-article-shell,
  #articles .fp-article-stage > .fp-article-shell--one,
  #articles .fp-article-stage > .fp-article-shell--two,
  #articles .fp-article-stage > .fp-article-shell--three,
  #articles .fp-article-stage > .fp-article-shell--four {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    translate: 0 0 !important;
    transform: none !important;
  }

  #articles .fp-article-shell > .fp-article-sheet,
  #articles .fp-article-shell--one .fp-article-sheet,
  #articles .fp-article-shell--two .fp-article-sheet,
  #articles .fp-article-shell--three .fp-article-sheet,
  #articles .fp-article-shell--four .fp-article-sheet {
    display: flex !important;
    width: 100%;
    height: 464px !important;
    min-height: 464px !important;
    aspect-ratio: auto;
    padding: 24px 24px 20px !important;
    overflow: hidden;
    clip-path: none !important;
    border: 1px solid rgba(21, 21, 20, 0.16);
    box-shadow: 0 14px 26px rgba(21, 21, 20, 0.09);
  }

  #articles .fp-article-sheet__top {
    flex: 0 0 auto;
    padding-bottom: 10px;
    font-size: 9px;
  }

  #articles .fp-article-sheet__body {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 0;
    align-items: stretch;
    padding: 14px 0 10px;
  }

  #articles .fp-article-sheet__summary {
    display: -webkit-box;
    align-self: end;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.8;
    writing-mode: horizontal-tb !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  #articles .fp-article-sheet__title {
    height: 100%;
    max-height: 100%;
    max-width: 1.9em;
    overflow: hidden;
    font-size: 22px !important;
    line-height: 1.3;
    writing-mode: vertical-rl !important;
  }

  #articles .fp-article-sheet__foot {
    flex: 0 0 auto;
    padding-top: 9px;
    font-size: 9px;
  }

  #articles .fp-article-sheet:hover,
  #articles .fp-article-sheet:focus-visible {
    transform: none;
    filter: brightness(1.02);
  }
}

/* The public build now has an interactive guestbook. */
html[data-site-mode="static"] #openGuestbookForm {
  display: inline-flex !important;
}

/* Article / diary inline media and daily video. */
.article-media {
  width: 100%;
  margin: 28px 0;
}

.article-media img,
.article-media video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72svh;
  object-fit: contain;
  background: #141412;
  border: 1px solid rgba(21, 21, 20, 0.16);
}

.article-media figcaption {
  margin-top: 9px;
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-align: center;
}

.reader__text .article-media {
  margin: 22px 0;
}

.fp-daily__media video,
.post-detail__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
}

.post-detail__media img[hidden],
.post-detail__video[hidden] {
  display: none !important;
}


/* New portrait: circular crop with a thin double paper ring. */
.fp-avatar {
  background: #dce9f0;
  box-shadow:
    0 18px 30px rgba(24, 22, 17, 0.18),
    0 0 0 6px rgba(246, 243, 235, 0.72),
    0 0 0 7px rgba(21, 21, 20, 0.16);
}

.fp-avatar::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
}

.fp-avatar img {
  filter: saturate(0.9) contrast(1.03);
}

body.is-lifted .fp-avatar {
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.24),
    0 0 0 2px rgba(255, 255, 255, 0.28);
}

body.is-lifted .fp-avatar::after {
  inset: 2px;
}

/* Multiple daily photos */
.fp-daily__gallery {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 3px;
  background: #121211;
}

.fp-daily__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.fp-daily__gallery img:first-child:nth-last-child(3) {
  grid-row: span 2;
}

.fp-daily__gallery img:first-child:last-child {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.post-detail__gallery {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(120px, 1fr);
  gap: 3px;
  overflow-y: auto;
  background: #121211;
}

.post-detail__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}


.post-detail__gallery[hidden] {
  display: none !important;
}

/* ==========================================================================
   Readability pass: helper, meta and caption copy should never be microtype.
   ========================================================================== */

.fp-header__serial,
.fp-header__date {
  font-size: 11px !important;
  letter-spacing: 0.045em;
}

.fp-brand__copy small {
  font-size: 10.5px !important;
}

.fp-nav a {
  font-size: 12.5px !important;
}

.fp-hero__meta p,
.fp-hero__pager span,
.fp-hero__hint,
.fp-avatar-copy span {
  font-size: 11px !important;
}

.fp-eyebrow {
  font-size: 11px !important;
  letter-spacing: 0.1em;
}

.fp-title__meta {
  gap: 14px 18px;
  color: rgba(21, 21, 20, 0.56);
  font-size: 12.5px !important;
  line-height: 1.65;
}

.fp-title__meta b {
  font-size: 13px !important;
}

.fp-more,
.fp-text-link {
  font-size: 12px !important;
}

/* Work log cards */
.fp-work-item__date {
  font-size: 11px !important;
}

.fp-work-item__date b {
  font-size: 12.5px !important;
}

.fp-work-item__excerpt {
  font-size: 13.5px !important;
  line-height: 1.65 !important;
}

.fp-work-item__meta {
  font-size: 11px !important;
}

.fp-work-foot {
  font-size: 12px !important;
  line-height: 1.8;
}

/* Article cards */
#articles .fp-article-sheet__top,
#articles .fp-article-sheet__foot {
  font-size: 11px !important;
  line-height: 1.55;
}

#articles .fp-article-sheet__summary {
  font-size: 12.5px !important;
  line-height: 1.75 !important;
}

.fp-articles__side-eyebrow {
  font-size: 10.5px !important;
}

.fp-articles__side-count {
  font-size: 12px !important;
}

/* Guestbook */
.fp-count {
  font-size: 11px !important;
}

.fp-light-button {
  font-size: 12.5px !important;
}

.guest-note__meta {
  font-size: 11px !important;
}

.guest-note__name {
  font-size: 11.5px !important;
}

.fp-guestbook__list .guest-note__text {
  font-size: 15px !important;
}

/* Daily */
.fp-daily__tab-date {
  font-size: 10.5px !important;
}

.fp-daily__tab-tag {
  font-size: 10.5px !important;
}

.fp-daily__tab-title {
  font-size: 14.5px !important;
}

.fp-daily__meta,
.fp-daily__meta time,
.fp-daily__meta .tag {
  font-size: 11px !important;
}

.fp-daily__media figcaption {
  font-size: 11px !important;
}

.fp-daily__quote {
  font-size: 13.5px !important;
  line-height: 1.7;
}

.fp-daily__quote cite {
  font-size: 11px !important;
}

.fp-daily__actions button,
.fp-daily__actions .read-more {
  font-size: 11.5px !important;
}

/* Share / files */
#sound .fp-title__meta {
  font-size: 13px !important;
}

.record-sleeve__label {
  font-size: 10.5px !important;
}

.fp-music__sub {
  font-size: 11px !important;
}

.music-status,
#musicTime {
  font-size: 11px !important;
}

.fp-music__note {
  font-size: 13px !important;
  line-height: 1.8;
}

.fp-sound-files__count {
  font-size: 11.5px !important;
}

.fp-sound-file__stamp i {
  font-size: 9.5px !important;
}

.fp-sound-file__body b {
  font-size: 14px !important;
}

.fp-sound-file__body small {
  font-size: 12px !important;
  line-height: 1.55;
}

.fp-sound-file__body > span {
  font-size: 10.5px !important;
}

.fp-sound-files__foot {
  font-size: 11.5px !important;
  line-height: 1.7;
}

/* Footer */
.fp-footer__brand small {
  font-size: 11px !important;
}

.fp-footer__links a {
  font-size: 11.5px !important;
}

.fp-footer__bottom {
  font-size: 11px !important;
}

.fp-footer__meta {
  font-size: 10.5px !important;
}

.fp-footer .fp-text-link {
  font-size: 11.5px !important;
}

/* Dialog and form helper copy */
.article-reader__kicker,
.article-reader__meta,
.article-reader__summary,
.article-reader__foot,
.archive-entry__meta,
.archive-empty,
.field > span,
.field__hint,
.modal__eyebrow {
  font-size: 12px !important;
  line-height: 1.6;
}

@media (max-width: 780px) {
  #articles .fp-article-sheet__summary {
    font-size: 13.5px !important;
    line-height: 1.8 !important;
  }

  #articles .fp-article-sheet__top,
  #articles .fp-article-sheet__foot,
  .fp-work-item__date,
  .fp-work-item__meta {
    font-size: 11px !important;
  }

  .fp-daily__tab-date,
  .fp-daily__tab-tag {
    font-size: 10.5px !important;
  }
}

/* Second readability step: bring the remaining micro-labels to the new floor. */
.fp-header__serial,
.fp-header__date,
.fp-hero__meta p,
.fp-hero__pager span,
.fp-hero__hint,
.fp-avatar-copy span {
  font-size: 12px !important;
}

.fp-brand__copy small,
.fp-avatar-copy span {
  font-size: 11px !important;
}

.fp-eyebrow {
  font-size: 12px !important;
}

.fp-title__meta {
  font-size: 13px !important;
}

.fp-work-item__date,
.fp-work-item__meta {
  font-size: 12px !important;
}

#articles .fp-article-sheet__top,
#articles .fp-article-sheet__foot {
  font-size: 12px !important;
}

#articles .fp-article-sheet__summary {
  font-size: 13.5px !important;
}

#articles .fp-article-sheet__summary {
  line-height: 1.7 !important;
}

.fp-articles__side-eyebrow {
  font-size: 11px !important;
}

.fp-work-foot {
  font-size: 12.5px !important;
}

.fp-daily__tab-date,
.fp-daily__tab-tag {
  font-size: 11.5px !important;
}

.fp-daily__meta,
.fp-daily__meta time,
.fp-daily__meta .tag,
.fp-daily__media figcaption {
  font-size: 12px !important;
}

.fp-sound-file__body small {
  font-size: 12.5px !important;
}

.fp-sound-file__body > span {
  font-size: 11.5px !important;
}

.fp-footer__bottom {
  font-size: 11.5px !important;
}

.fp-footer__meta {
  font-size: 11.5px !important;
}

@media (max-width: 780px) {
  #articles .fp-article-sheet__summary {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }

  #articles .fp-article-sheet__top,
  #articles .fp-article-sheet__foot {
    font-size: 12px !important;
  }

  .fp-work-item__date,
  .fp-work-item__meta {
    font-size: 12px !important;
  }

  .fp-daily__tab-date,
  .fp-daily__tab-tag {
    font-size: 11.5px !important;
  }
}
  /* Bigger hero portrait, rectangular portrait in the header. */
  body:not(.is-lifted) .fp-avatar {
    width: 156px;
    height: 156px;
  }

  .fp-avatar-copy {
    top: calc(50% + 92px);
  }

  .fp-brand__slot {
    width: 76px;
    height: 42px;
    border-radius: 4px;
    border-color: rgba(255, 255, 255, 0.18);
  }

  body.is-lifted .fp-avatar {
    width: var(--fp-avatar-size, 76px);
    height: var(--fp-avatar-height, 42px);
    border-radius: 4px;
  }

  body.is-lifted .fp-avatar::after {
    inset: 2px;
    border-radius: 2px;
  }

  body.is-lifted .fp-avatar img {
    object-position: center 32%;
  }

  body.is-lifted .fp-avatar {
    box-shadow:
      0 8px 18px rgba(0, 0, 0, 0.24),
      0 0 0 1px rgba(255, 255, 255, 0.2);
  }

  @media (max-width: 780px) {
    body:not(.is-lifted) .fp-avatar {
      width: 136px;
      height: 136px;
    }

    .fp-avatar-copy {
      top: calc(50% + 82px);
    }

    .fp-brand__slot {
      width: 62px;
      height: 36px;
    }

    body.is-lifted .fp-avatar {
      width: var(--fp-avatar-size, 62px);
      height: var(--fp-avatar-height, 36px);
    }
  }

/* Final size adjustments for portrait and remaining small labels. */
body:not(.is-lifted) .fp-avatar {
  width: 168px !important;
  height: 168px !important;
}

.fp-avatar-copy {
  top: calc(50% + 102px);
}

.fp-brand__slot {
  width: 96px;
  height: 52px;
}

body.is-lifted .fp-avatar {
  width: var(--fp-avatar-size, 96px);
  height: var(--fp-avatar-height, 52px);
}

@media (max-width: 780px) {
  body:not(.is-lifted) .fp-avatar {
    width: 144px !important;
    height: 144px !important;
  }

  .fp-avatar-copy {
    top: calc(50% + 92px);
  }

  .fp-brand__slot {
    width: 72px;
    height: 42px;
  }

  body.is-lifted .fp-avatar {
    width: var(--fp-avatar-size, 72px);
    height: var(--fp-avatar-height, 42px);
  }
}

.guest-note__name,
.fp-daily__tab-date,
.fp-daily__tab-tag,
.fp-sound-file__body > span,
.fp-sound-files__foot,
.fp-footer__links a,
.fp-footer__bottom,
.fp-footer__meta,
.fp-footer .fp-text-link {
  font-size: 12.5px !important;
}

.fp-daily__actions button,
.fp-daily__actions .read-more,
.fp-sound-files__count {
  font-size: 12px !important;
}

.record-sleeve__label {
  font-size: 11.5px !important;
}

.fp-sound-file__stamp i {
  font-size: 11px !important;
}

/* Full-composition portrait, subject placed left; larger frames. */
.fp-avatar img {
  object-position: 55% center;
}

body:not(.is-lifted) .fp-avatar {
  width: 176px !important;
  height: 176px !important;
}

.fp-avatar-copy {
  top: calc(50% + 106px);
}

.fp-brand__slot {
  width: 112px;
  height: 58px;
}

body.is-lifted .fp-avatar {
  width: var(--fp-avatar-size, 112px);
  height: var(--fp-avatar-height, 58px);
}

body.is-lifted .fp-avatar img {
  object-position: 50% center;
}

/* Larger type inside the article sheets. */
#articles .fp-article-sheet__top,
#articles .fp-article-sheet__foot {
  font-size: 13px !important;
}

#articles .fp-article-sheet__summary {
  font-size: 15px !important;
  line-height: 1.7 !important;
}

#articles .fp-article-sheet__title {
  font-size: clamp(24px, 2vw, 27px) !important;
  max-width: 2.1em !important;
}

.fp-articles__side-count,
.fp-articles__side-link {
  font-size: 13px !important;
}

@media (max-width: 780px) {
  .fp-avatar img {
    object-position: 55% center;
  }

  body:not(.is-lifted) .fp-avatar {
    width: 152px !important;
    height: 152px !important;
  }

  .fp-avatar-copy {
    top: calc(50% + 94px);
  }

  .fp-brand__slot {
    width: 80px;
    height: 44px;
  }

  body.is-lifted .fp-avatar {
    width: var(--fp-avatar-size, 80px);
    height: var(--fp-avatar-height, 44px);
  }

  #articles .fp-article-sheet > .fp-article-sheet__top,
  #articles .fp-article-sheet__foot {
    font-size: 13px !important;
  }

  #articles .fp-article-sheet__summary {
    font-size: 15px !important;
    line-height: 1.8 !important;
  }

  #articles .fp-article-sheet__title {
    font-size: 24px !important;
  }

  #articles .fp-article-shell > .fp-article-sheet {
    height: 500px !important;
    min-height: 500px !important;
  }
}

/* Article cards: one notch down from the v66 readability scale. */
#articles .fp-article-sheet__top,
#articles .fp-article-sheet__foot {
  font-size: 12px !important;
}

#articles .fp-article-sheet__summary {
  font-size: 14px !important;
  line-height: 1.7 !important;
}

#articles .fp-article-sheet__title {
  font-size: clamp(23px, 1.9vw, 26px) !important;
}

.fp-articles__side-count,
.fp-articles__side-link {
  font-size: 12px !important;
}

@media (max-width: 780px) {
  #articles .fp-article-sheet__top,
  #articles .fp-article-sheet__foot {
    font-size: 12px !important;
  }

  #articles .fp-article-sheet__summary {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }

  #articles .fp-article-sheet__title {
    font-size: 23px !important;
  }

  #articles .fp-article-shell > .fp-article-sheet {
    height: 480px !important;
    min-height: 480px !important;
  }
}

/* Keep article card footers inside the paper silhouette. */
#articles .fp-article-shell--one > .fp-article-sheet {
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%) !important;
}

#articles .fp-article-shell--two > .fp-article-sheet {
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 94%) !important;
}

#articles .fp-article-shell--three > .fp-article-sheet {
  clip-path: polygon(0 0, 100% 20%, 100% 94%, 0 100%) !important;
}

#articles .fp-article-shell--four > .fp-article-sheet {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 96%) !important;
}

/* Daily body images, rendered inline like an article. */
.post-detail__text[hidden],
.post-detail__body[hidden] {
  display: none !important;
}

.post-detail__body {
  color: rgba(21, 21, 20, 0.78);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2;
}

.post-detail__body p {
  margin: 0 0 1.35em;
}

.post-detail__body .article-media {
  margin: 24px 0;
}

.post-detail__body .article-media img,
.post-detail__body .article-media video {
  max-height: 64svh;
  border: 1px solid rgba(21, 21, 20, 0.18);
}

/* Daily photos keep their colour. */
#daily .fp-daily__media img,
#daily .fp-daily__gallery img,
.post-detail__media img,
.post-detail__media video,
.post-detail__body .article-media img,
.post-detail__body .article-media video {
  filter: none !important;
}

/* Guestbook temporarily closed. */
#guestbook.is-closed .fp-guestbook__inner {
  align-items: stretch;
}

#guestbook.is-closed .fp-count,
#guestbook.is-closed #openGuestbookForm,
#guestbook.is-closed [data-archive="guestbook"],
#guestbook.is-closed #guestbookList {
  display: none !important;
}

#guestbook.is-closed .fp-guestbook__closed {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  border-top: 1px solid rgba(245, 241, 232, 0.2);
  color: rgba(245, 241, 232, 0.74);
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}

#guestbook.is-closed .fp-guestbook__note {
  color: rgba(245, 241, 232, 0.7);
  font-size: 16px;
}

.fp-guestbook__closed {
  display: none;
}

/* ==========================================================================
   Simplified mobile layout. Desktop styles above are not affected.
   ========================================================================== */

.fp-daily__mobile-feed {
  display: none;
}

@media (max-width: 780px) {
  /* Simple section shell: no forced full-screen blank space. */
  .fp-section:not(.fp-hero) {
    min-height: 0 !important;
    padding: 86px 0 46px !important;
    justify-content: flex-start !important;
  }

  #articles,
  #guestbook,
  #daily,
  #sound {
    min-height: 0 !important;
  }

  .fp-section .fp-wrap {
    width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .fp-vertical,
  .fp-workblog__ghost,
  .fp-workblog__ring,
  .fp-articles__texture,
  .fp-articles__seal,
  .fp-articles__thread,
  .fp-guestbook__fold,
  .fp-daily__ink,
  .fp-sound__texture,
  .fp-footer__ghost {
    display: none !important;
  }

  /* Consistent, left-aligned section headings. */
  .fp-title,
  .fp-title--center,
  .fp-title--left {
    margin: 0 0 22px !important;
    text-align: left !important;
  }

  .fp-title .fp-eyebrow {
    margin-bottom: 9px;
  }

  .fp-title__main,
  .fp-title--center .fp-title__main,
  .fp-title--left .fp-title__main {
    justify-content: flex-start !important;
    gap: 0 !important;
  }

  .fp-title__main h2 {
    font-size: clamp(40px, 12vw, 50px) !important;
    line-height: 1 !important;
  }

  .fp-title__rule {
    display: none !important;
  }

  .fp-title__meta,
  .fp-title--left .fp-title__meta {
    justify-content: flex-start !important;
    gap: 12px 18px !important;
    margin-top: 13px !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  /* Work log */
  #workblog .fp-work-grid {
    display: flex !important;
    flex-direction: column !important;
    border-top: 1px solid rgba(21, 21, 20, 0.28) !important;
  }

  #workblog .fp-work-col {
    width: 100% !important;
    padding: 0 !important;
    border-left: 0 !important;
  }

  #workblog .fp-work-item {
    padding: 18px 0 !important;
  }

  #workblog .fp-work-item__title {
    font-size: 21px !important;
  }

  #workblog .fp-work-item__excerpt {
    font-size: 14px !important;
    -webkit-line-clamp: 2 !important;
  }

  #workblog .fp-work-foot {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding-top: 8px !important;
    font-size: 12px !important;
  }

  /* Article section: a clean, horizontal list of paper cards. */
  #articles .fp-articles__fudan {
    gap: 16px !important;
  }

  #articles .fp-articles__side {
    order: -1;
    padding: 0 0 15px !important;
    border-bottom: 1px solid rgba(21, 21, 20, 0.24);
  }

  #articles .fp-articles__side h2 {
    font-size: 44px !important;
  }

  #articles .fp-articles__side-rule {
    display: none !important;
  }

  #articles .fp-articles__side-eyebrow {
    flex: 0 0 100%;
    font-size: 10px !important;
  }

  #articles .fp-articles__side-count,
  #articles .fp-articles__side-link {
    font-size: 12px !important;
  }

  #articles .fp-article-stage {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    height: auto !important;
    min-height: 0 !important;
  }

  #articles .fp-article-stage > .fp-article-shell,
  #articles .fp-article-stage > .fp-article-shell--one,
  #articles .fp-article-stage > .fp-article-shell--two,
  #articles .fp-article-stage > .fp-article-shell--three,
  #articles .fp-article-stage > .fp-article-shell--four {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    transform: none !important;
    translate: 0 0 !important;
    opacity: 1 !important;
  }

  #articles .fp-article-shell > .fp-article-sheet,
  #articles .fp-article-shell--one > .fp-article-sheet,
  #articles .fp-article-shell--two > .fp-article-sheet,
  #articles .fp-article-shell--three > .fp-article-sheet,
  #articles .fp-article-shell--four > .fp-article-sheet {
    display: flex !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 18px !important;
    clip-path: none !important;
    transform: none !important;
    border: 1px solid rgba(21, 21, 20, 0.2);
    box-shadow: 0 7px 16px rgba(21, 21, 20, 0.07);
  }

  #articles .fp-article-sheet__top,
  #articles .fp-article-sheet__foot {
    font-size: 12px !important;
    line-height: 1.5 !important;
    padding: 9px 0 !important;
  }

  #articles .fp-article-sheet__body {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 9px !important;
    padding: 14px 0 10px !important;
    align-items: flex-start !important;
  }

  #articles .fp-article-sheet__title {
    order: 1 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    font-size: 27px !important;
    line-height: 1.35 !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    letter-spacing: 0.02em !important;
  }

  #articles .fp-article-sheet__summary {
    order: 2 !important;
    display: -webkit-box !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    overflow: hidden !important;
    font-size: 14.5px !important;
    line-height: 1.75 !important;
    writing-mode: horizontal-tb !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
  }

  #articles .fp-article-sheet__foot {
    margin-top: 4px !important;
  }

  /* Daily: one simple vertical feed instead of tabs + giant feature. */
  #daily .fp-daily__layout {
    display: none !important;
  }

  #daily .fp-daily__mobile-feed {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  .daily-mobile-card {
    overflow: hidden;
    border: 1px solid rgba(21, 21, 20, 0.18);
    background: rgba(250, 248, 242, 0.78);
    box-shadow: 0 6px 16px rgba(21, 21, 20, 0.06);
  }

  .daily-mobile-card__photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #1a1a19;
    cursor: pointer;
  }

  .daily-mobile-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none !important;
  }

  .daily-mobile-card__body {
    padding: 16px 18px 17px;
  }

  .daily-mobile-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--fp-gray);
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.5;
  }

  .daily-mobile-card h3 {
    margin: 9px 0 8px;
    color: var(--fp-ink);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.45;
  }

  .daily-mobile-card p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--fp-gray);
    font-family: var(--serif);
    font-size: 15px;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .daily-mobile-card__more {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--fp-ink);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
  }

  /* Share: plain stacked cards. */
  #sound .fp-sound__layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  #sound .fp-music {
    display: flex !important;
    flex-direction: column !important;
    padding: 18px !important;
    border: 1px solid rgba(21, 21, 20, 0.18);
    box-shadow: none !important;
  }

  #sound .record-sleeve {
    width: 190px !important;
    height: 190px !important;
    margin: 0 auto 20px !important;
  }

  #sound .fp-music__info h3 {
    margin-top: 8px !important;
    font-size: 30px !important;
  }

  #sound .fp-music__note {
    font-size: 14px !important;
    line-height: 1.8 !important;
  }

  #sound .fp-sound-files {
    padding: 18px !important;
    border: 1px solid rgba(21, 21, 20, 0.18);
    box-shadow: none !important;
  }

  #sound .fp-sound-files__head {
    margin-bottom: 8px !important;
  }

  #sound .fp-sound-files__head h3 {
    font-size: 25px !important;
  }

  #sound .fp-sound-file__link {
    padding: 13px 0 !important;
  }

  #sound .fp-sound-files__foot {
    font-size: 12px !important;
  }

  /* Closed guestbook: short and clear. */
  #guestbook {
    padding-top: 86px !important;
    padding-bottom: 46px !important;
  }

  #guestbook .fp-guestbook__inner {
    display: block !important;
  }

  #guestbook .fp-guestbook__lead {
    padding: 0 !important;
  }

  #guestbook .fp-guestbook__lead h2 {
    margin: 8px 0 14px !important;
    font-size: 46px !important;
  }

  #guestbook .fp-guestbook__note {
    font-size: 16px !important;
  }

  #guestbook .fp-guestbook__closed {
    display: flex !important;
    min-height: 120px !important;
    margin-top: 18px !important;
    border: 1px solid rgba(245, 241, 232, 0.18) !important;
    font-size: 28px !important;
  }

  /* Footer: one simple column. */
  .fp-footer {
    min-height: 0 !important;
    padding: 42px 0 30px !important;
  }

  .fp-footer__top {
    display: flex !important;
    flex-direction: column !important;
    gap: 26px !important;
  }

  .fp-footer__slogan {
    margin: 0 !important;
    font-size: 24px !important;
    line-height: 1.55 !important;
  }

  .fp-footer__links {
    grid-template-columns: 1fr 1fr !important;
    gap: 9px 18px !important;
  }

  .fp-footer__links a {
    font-size: 13px !important;
  }

  .fp-footer__bottom {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 26px !important;
    padding-top: 16px !important;
    font-size: 11.5px !important;
  }

  .fp-footer__bottom > div {
    gap: 12px !important;
  }

  /* Full-screen enough dialogs on a phone. */
  .modal__surface {
    width: calc(100% - 20px) !important;
    max-height: 92svh !important;
  }

  .article-reader__body,
  .reader__text,
  .post-detail__body {
    font-size: 16.5px !important;
    line-height: 1.9 !important;
  }

  .post-detail {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .post-detail__media {
    min-height: 0 !important;
    max-height: 34svh !important;
  }

  .post-detail__main,
  .post-detail__scroll {
    min-height: 0 !important;
  }

  .post-detail__scroll {
    overflow-y: auto !important;
  }
}

/* ==========================================================================
   Mobile typography polish: lighter literary titles, calmer metadata.
   ========================================================================== */

@media (max-width: 780px) {
  :root {
    --mobile-display: "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", serif;
  }

  /* Section headings stay calligraphic, but stop shouting. */
  .fp-title__main h2,
  #articles .fp-articles__side h2,
  #guestbook .fp-guestbook__lead h2 {
    font-size: clamp(36px, 10.5vw, 42px) !important;
    letter-spacing: 0.02em !important;
    line-height: 1.08 !important;
  }

  .fp-eyebrow,
  #articles .fp-articles__side-eyebrow {
    font-family: var(--sans) !important;
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
    color: var(--fp-gray) !important;
  }

  .fp-title__meta,
  #articles .fp-articles__side-count,
  #articles .fp-articles__side-link {
    font-family: var(--sans) !important;
    font-size: 11.5px !important;
    letter-spacing: 0.02em !important;
    color: var(--fp-gray) !important;
  }

  /* Article cards: bookish titles, softer summaries, quieter labels. */
  #articles .fp-article-sheet__title {
    font-family: var(--mobile-display) !important;
    font-size: 23px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.015em !important;
  }

  #articles .fp-article-sheet__summary {
    font-family: var(--serif) !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
    color: rgba(21, 21, 20, 0.62) !important;
    letter-spacing: 0.01em !important;
  }

  #articles .fp-article-sheet__top,
  #articles .fp-article-sheet__foot {
    font-family: var(--sans) !important;
    font-size: 10.5px !important;
    letter-spacing: 0.08em !important;
    opacity: 0.82 !important;
  }

  /* Work log: smaller, more literary titles. */
  #workblog .fp-work-item__title {
    font-family: var(--mobile-display) !important;
    font-size: 20px !important;
    line-height: 1.5 !important;
    letter-spacing: 0.015em !important;
  }

  #workblog .fp-work-item__excerpt {
    font-family: var(--serif) !important;
    font-size: 13.5px !important;
    line-height: 1.75 !important;
    color: rgba(21, 21, 20, 0.62) !important;
  }

  #workblog .fp-work-item__date,
  #workblog .fp-work-item__meta,
  #workblog .fp-work-foot {
    font-family: var(--sans) !important;
    font-size: 11px !important;
    letter-spacing: 0.03em !important;
    color: var(--fp-gray) !important;
  }

  /* Daily feed: titles in Kaiti, body in Songti. */
  .daily-mobile-card h3 {
    display: -webkit-box;
    overflow: hidden;
    font-family: var(--mobile-display) !important;
    font-size: 21px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: 0.012em !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .daily-mobile-card p {
    font-size: 14.5px !important;
    line-height: 1.8 !important;
    color: rgba(21, 21, 20, 0.62) !important;
  }

  .daily-mobile-card__meta {
    font-family: var(--sans) !important;
    font-size: 10.5px !important;
    letter-spacing: 0.03em !important;
  }

  .daily-mobile-card__more {
    font-family: var(--sans) !important;
    font-size: 11.5px !important;
  }

  /* Share titles and files. */
  #sound .fp-music__info h3 {
    font-family: var(--mobile-display) !important;
    font-size: 27px !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
  }

  #sound .fp-music__note {
    font-family: var(--serif) !important;
    font-size: 14px !important;
    line-height: 1.85 !important;
    color: rgba(21, 21, 20, 0.62) !important;
  }

  #sound .fp-music__sub,
  #sound .music-status,
  #sound #musicTime,
  #sound .fp-sound-files__count {
    font-family: var(--sans) !important;
    font-size: 10.5px !important;
    letter-spacing: 0.03em !important;
  }

  #sound .fp-sound-files__head h3 {
    font-family: var(--mobile-display) !important;
    font-size: 23px !important;
    line-height: 1.4 !important;
  }

  #sound .fp-sound-file__body b {
    font-family: var(--mobile-display) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
  }

  #sound .fp-sound-file__body small {
    font-family: var(--serif) !important;
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    color: rgba(21, 21, 20, 0.6) !important;
  }

  #sound .fp-sound-file__body > span {
    font-family: var(--sans) !important;
    font-size: 10.5px !important;
    letter-spacing: 0.03em !important;
  }

  /* Footer: quieter labels, smaller brand. */
  .fp-footer__brand b {
    font-size: 20px !important;
    letter-spacing: 0.06em !important;
  }

  .fp-footer__brand small {
    font-family: var(--sans) !important;
    font-size: 10px !important;
  }

  .fp-footer__slogan {
    font-family: var(--mobile-display) !important;
    font-size: 23px !important;
    line-height: 1.55 !important;
    letter-spacing: 0.03em !important;
  }

  .fp-footer__links a,
  .fp-footer__bottom,
  .fp-footer__meta,
  .fp-footer .fp-text-link {
    font-family: var(--sans) !important;
    letter-spacing: 0.03em !important;
  }
}

/* Mobile display face: bundled LXGW WenKai, so every phone sees a real Kai font. */
@media (max-width: 780px) {
  :root {
    --mobile-display: "LXGW WenKai Screen", "Kaiti SC", "STKaiti", "KaiTi", "Songti SC", "Source Han Serif SC", serif;
  }

  .fp-title__main h2,
  #articles .fp-articles__side h2,
  #guestbook .fp-guestbook__lead h2 {
    font-family: var(--mobile-display) !important;
    font-size: clamp(38px, 11vw, 44px) !important;
    font-weight: 400 !important;
  }

  #articles .fp-article-sheet__title {
    font-size: 24px !important;
    line-height: 1.5 !important;
  }

  #workblog .fp-work-item__title {
    font-size: 21px !important;
  }

  .daily-mobile-card h3 {
    font-size: 22px !important;
  }

  #sound .fp-music__info h3 {
    font-size: 28px !important;
  }

  #sound .fp-sound-files__head h3 {
    font-size: 24px !important;
  }

  .fp-footer__slogan {
    font-family: var(--mobile-display) !important;
    font-size: 24px !important;
  }
}

/* ==========================================================================
   Mobile hero stability.
   iOS Safari can blank a large filtered layer while its blur/opacity
   transition is running. Keep the ink on a plain, fully-opaque layer.
   ========================================================================== */

@media (max-width: 780px) {
  .fp-hero {
    transform: none !important;
  }

  .fp-hero__art {
    transform: none !important;
  }

  .fp-hero__ink,
  body.is-lit .fp-hero__ink,
  body:not(.is-lit) .fp-hero__ink {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    translate: 0 0 !important;
    rotate: 0deg !important;
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
  }

  .fp-hero__ink img,
  .fp-hero__ink img[style] {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    translate: 0 0 !important;
    rotate: 0deg !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Markdown content inside article, work-log and daily readers.
   ========================================================================== */

.article-reader__body h1,
.article-reader__body h2,
.article-reader__body h3,
.article-reader__body h4,
.article-reader__body h5,
.article-reader__body h6,
.reader__text h1,
.reader__text h2,
.reader__text h3,
.reader__text h4,
.reader__text h5,
.reader__text h6,
.post-detail__body h1,
.post-detail__body h2,
.post-detail__body h3,
.post-detail__body h4,
.post-detail__body h5,
.post-detail__body h6 {
  margin: 1.55em 0 0.55em;
  color: var(--fp-ink);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.article-reader__body h1,
.reader__text h1,
.post-detail__body h1 {
  font-size: 30px;
}

.article-reader__body h2,
.reader__text h2,
.post-detail__body h2 {
  font-size: 24px;
}

.article-reader__body h3,
.reader__text h3,
.post-detail__body h3 {
  font-size: 20px;
}

.article-reader__body h4,
.reader__text h4,
.post-detail__body h4 {
  font-size: 18px;
}

.article-reader__body h5,
.reader__text h5,
.post-detail__body h5 {
  font-size: 16px;
}

.article-reader__body h6,
.reader__text h6,
.post-detail__body h6 {
  font-size: 15px;
  color: var(--fp-gray);
}

.article-reader__body h1:first-child,
.reader__text h1:first-child,
.post-detail__body h1:first-child {
  margin-top: 0;
}

.article-reader__body em,
.reader__text em,
.post-detail__body em {
  font-style: italic;
}

.article-reader__body strong,
.reader__text strong,
.post-detail__body strong {
  font-weight: 700;
  color: var(--fp-ink);
}

.article-reader__body del,
.reader__text del,
.post-detail__body del {
  opacity: 0.62;
}

.article-reader__body ul,
.article-reader__body ol,
.reader__text ul,
.reader__text ol,
.post-detail__body ul,
.post-detail__body ol {
  margin: 1em 0 1.3em;
  padding-left: 1.55em;
  font-family: var(--serif);
  font-size: inherit;
  line-height: 1.8;
}

.article-reader__body li,
.reader__text li,
.post-detail__body li {
  margin: 0.3em 0;
  padding-left: 0.1em;
}

.article-reader__body li::marker,
.reader__text li::marker,
.post-detail__body li::marker {
  color: var(--fp-gray);
}

.article-reader__body blockquote,
.reader__text blockquote,
.post-detail__body blockquote {
  margin: 1.3em 0;
  padding: 0.7em 1em;
  border-left: 2px solid rgba(21, 21, 20, 0.32);
  background: rgba(21, 21, 20, 0.035);
  color: rgba(21, 21, 20, 0.7);
  font-style: italic;
}

.article-reader__body blockquote p,
.reader__text blockquote p,
.post-detail__body blockquote p {
  margin: 0;
}

.article-reader__body code,
.reader__text code,
.post-detail__body code {
  padding: 0.12em 0.35em;
  border: 1px solid rgba(21, 21, 20, 0.1);
  background: rgba(21, 21, 20, 0.055);
  color: var(--fp-ink);
  font-family: var(--mono);
  font-size: 0.86em;
  border-radius: 2px;
}

.article-reader__body pre.markdown-code,
.reader__text pre.markdown-code,
.post-detail__body pre.markdown-code {
  overflow-x: auto;
  margin: 1.2em 0;
  padding: 1em 1.1em;
  border: 1px solid rgba(21, 21, 20, 0.14);
  background: rgba(21, 21, 20, 0.055);
  line-height: 1.65;
}

.article-reader__body pre.markdown-code code,
.reader__text pre.markdown-code code,
.post-detail__body pre.markdown-code code {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.84em;
  white-space: pre;
}

.article-reader__body a,
.reader__text a,
.post-detail__body a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-reader__body hr,
.reader__text hr,
.post-detail__body hr {
  width: 38%;
  margin: 1.8em auto;
  border: 0;
  border-top: 1px solid rgba(21, 21, 20, 0.24);
}

.article-reader__body .math-display,
.reader__text .math-display,
.post-detail__body .math-display {
  overflow-x: auto;
  margin: 1.2em 0;
  text-align: center;
}

.article-reader__body .math-display .katex-display,
.reader__text .math-display .katex-display,
.post-detail__body .math-display .katex-display {
  margin: 0;
}

@media (max-width: 780px) {
  .article-reader__body h1,
  .reader__text h1,
  .post-detail__body h1 {
    font-size: 27px;
  }

  .article-reader__body h2,
  .reader__text h2,
  .post-detail__body h2 {
    font-size: 22px;
  }

  .article-reader__body h3,
  .reader__text h3,
  .post-detail__body h3 {
    font-size: 19px;
  }

  .article-reader__body h4,
  .reader__text h4,
  .post-detail__body h4 {
    font-size: 17px;
  }
}

/* ==========================================================================
   Reading layouts: remove the empty half-page, add an expand control.
   ========================================================================== */

/* Daily text-only entries should not reserve an empty media column. */
.post-modal .modal__surface.post-detail.is-text-only {
  display: block;
  width: min(760px, calc(100vw - 48px));
  height: min(760px, calc(100vh - 48px));
}

.post-detail.is-text-only .post-detail__main {
  height: 100%;
  border-left: 0;
}

.post-detail.is-text-only .post-detail__scroll {
  height: 100%;
}

/* The date leaf becomes a narrow margin note, not half the book. */
.reader-modal .reader__book {
  grid-template-columns: clamp(150px, 17vw, 210px) 1px minmax(0, 1fr);
}

.reader__leaf--left {
  padding: 30px 22px;
}

.reader__day {
  font-size: clamp(58px, 6vw, 72px);
}

.reader__quote {
  max-width: 100%;
  font-size: 14px;
}

.reader__content {
  padding: 38px clamp(32px, 4.5vw, 68px) 30px;
}

/* Expand controls */
.post-detail__expand {
  position: absolute;
  top: 12px;
  right: 52px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid rgba(21, 21, 20, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.post-detail__expand:hover,
.post-detail__expand:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.reader__expand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  margin-left: 6px;
  padding: 4px 9px;
  border: 1px solid rgba(21, 21, 20, 0.18);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.reader__expand:hover,
.reader__expand:focus-visible {
  border-color: var(--ink);
  color: var(--ink);
}

.reader__expand[aria-expanded="true"],
.post-detail__expand[aria-expanded="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* Full-page reading state */
dialog.modal.is-expanded .modal__surface {
  width: 100vw !important;
  height: 100vh !important;
  height: 100svh !important;
  max-width: 100vw !important;
  max-height: 100svh !important;
  border: 0 !important;
}

.reader-modal.is-expanded .reader__book {
  grid-template-columns: clamp(170px, 16vw, 230px) 1px minmax(0, 1fr);
}

.post-modal.is-expanded .post-detail {
  width: 100vw !important;
  height: 100svh !important;
  max-height: 100svh !important;
}

.post-modal.is-expanded .post-detail.is-text-only {
  display: block;
}

.post-modal.is-expanded .post-detail__scroll {
  padding-left: clamp(36px, 9vw, 180px);
  padding-right: clamp(36px, 9vw, 180px);
  padding-bottom: 52px;
}

.post-modal.is-expanded .post-detail__text,
.post-modal.is-expanded .post-detail__body {
  max-width: 920px;
}

@media (max-width: 780px) {
  .reader-modal .reader__book {
    display: block;
  }

  .reader__leaf--left,
  .reader__gutter {
    display: none !important;
  }

  .reader__leaf--right {
    height: 100%;
  }

  .reader__content {
    height: 100%;
    padding: 26px 22px 30px;
  }

  .reader__expand {
    margin-left: 0;
    padding: 4px 7px;
  }

  .post-detail__expand {
    right: 48px;
    padding: 4px 8px;
  }

  .post-modal .modal__surface.post-detail.is-text-only {
    width: calc(100vw - 20px);
    height: min(88svh, 760px);
  }

  .post-modal.is-expanded .post-detail__scroll {
    padding-left: 22px;
    padding-right: 22px;
  }
}

.reader-modal.is-expanded .reader__content {
  width: 100%;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Work log index: a true row-major 3-column grid.
   Four entries read 3 + 1; six entries read 3 + 3.
   ========================================================================== */

#workblog .fp-work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

#workblog .fp-work-grid > .fp-work-item {
  width: 100%;
  padding: 24px 28px 22px;
}

#workblog .fp-work-grid > .fp-work-item:nth-child(3n + 1) {
  padding-left: 0;
}

#workblog .fp-work-grid > .fp-work-item:nth-child(3n) {
  padding-right: 0;
}

#workblog .fp-work-grid > .fp-work-item:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--fp-line);
}

@media (max-width: 780px) {
  #workblog .fp-work-grid {
    display: flex !important;
    flex-direction: column !important;
  }

  #workblog .fp-work-grid > .fp-work-item {
    width: 100% !important;
    padding: 18px 0 !important;
    border-left: 0 !important;
  }
}
