/* ==========================================================================
   私人书卷 · paper & scroll layer
   Second pass: sheets, folds, stitches, seals — no generic black blocks.
   ========================================================================== */

:root {
  --fp-card: #f5f0e4;
  --fp-card-deep: #e8e1d2;
  --fp-card-shadow: rgba(32, 28, 21, 0.17);
}

/* --- header: a small paper tab, not a black control ---------------------- */

.fp-edit {
  position: relative;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid rgba(247, 244, 235, 0.42);
  background: rgba(247, 244, 235, 0.055);
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    transform 0.3s var(--fp-ease);
}

.fp-edit::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 4px;
  bottom: 3px;
  left: 4px;
  border: 1px dashed rgba(247, 244, 235, 0.22);
  pointer-events: none;
}

.fp-edit::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.5;
  pointer-events: none;
}

.fp-edit .icon {
  box-sizing: content-box;
  padding: 3px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.fp-edit:hover,
body.is-owner .fp-edit {
  border-color: #f2efe7;
  background: #f2efe7 url("../img/paper-silk.jpg") center / cover;
  color: var(--fp-ink);
  transform: translateY(-1px);
}

.fp-edit:hover::before,
body.is-owner .fp-edit::before {
  border-color: rgba(21, 21, 20, 0.24);
}

.fp-edit:hover::after,
body.is-owner .fp-edit::after {
  background: linear-gradient(135deg, transparent 48%, rgba(21, 21, 20, 0.18) 50%, transparent 74%);
}

/* --- paper buttons ------------------------------------------------------- */

.fp-owner-button {
  position: relative;
  min-height: 31px;
  padding: 0 12px;
  border: 1px solid var(--fp-line-strong);
  clip-path: polygon(0 8%, 97% 0, 100% 91%, 3% 100%);
  background: rgba(250, 248, 241, 0.56);
  color: var(--fp-ink);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.3s var(--fp-ease);
}

.fp-owner-button::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(21, 21, 20, 0.2);
  pointer-events: none;
}

.fp-owner-button:hover {
  border-color: var(--fp-ink);
  background: var(--fp-paper-light);
  color: var(--fp-ink);
  transform: translateY(-1px) rotate(-0.35deg);
}

.fp-light-button {
  position: relative;
  border: 0;
  clip-path: polygon(0 7%, 98% 0, 100% 91%, 3% 100%);
  background: var(--fp-card) url("../img/paper-silk.jpg") center / cover;
  color: var(--fp-ink);
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s var(--fp-ease), background 0.2s ease;
}

.fp-light-button::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 7px;
  bottom: 5px;
  left: 7px;
  border: 1px solid rgba(21, 21, 20, 0.18);
  pointer-events: none;
}

.fp-light-button:hover {
  background: #f8f4e9;
  color: var(--fp-ink);
  transform: translateY(-2px) rotate(-0.5deg);
}

/* --- articles: irregular paper quadrilaterals --------------------------- */

.fp-articles {
  min-height: 760px;
  padding-top: 102px;
  padding-bottom: 84px;
  overflow: hidden;
  background: #d7d2c6;
}

.fp-articles__texture {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(250, 248, 242, 0.44), transparent 44%),
    url("../img/paper-silk.jpg") center / cover;
  filter: grayscale(1) contrast(1.06);
  opacity: 0.7;
  pointer-events: none;
}

.fp-articles::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 56% 48%, transparent 18%, rgba(42, 38, 30, 0.075) 100%),
    url("../img/calligraphy-ink.webp") right -8% center / 60% auto no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.1;
  pointer-events: none;
}

.fp-vertical--articles {
  top: 86px;
  right: 2.4vw;
  color: rgba(21, 21, 20, 0.062);
}

.fp-articles__seal {
  position: absolute;
  bottom: 5%;
  left: 3.2vw;
  z-index: 1;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 1px solid rgba(21, 21, 20, 0.09);
  color: rgba(21, 21, 20, 0.055);
  font-family: var(--serif);
  font-size: 76px;
  line-height: 1;
  transform: rotate(-7deg);
  pointer-events: none;
}

.fp-articles__thread {
  position: absolute;
  top: 225px;
  bottom: 86px;
  left: calc(var(--fp-side) - 15px);
  z-index: 1;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(21, 21, 20, 0.24) 0,
    rgba(21, 21, 20, 0.24) 4px,
    transparent 4px,
    transparent 12px
  );
  pointer-events: none;
}

.fp-articles__thread::before,
.fp-articles__thread::after {
  content: "";
  position: absolute;
  left: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(21, 21, 20, 0.28);
  border-radius: 50%;
  background: #d7d2c6;
}

.fp-articles__thread::before {
  top: -3px;
}

.fp-articles__thread::after {
  bottom: -3px;
}

.fp-side-title--articles {
  margin-bottom: 44px;
}

.fp-article-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.91fr) minmax(0, 1fr);
  align-items: start;
  gap: 38px;
  perspective: 1300px;
}

.fp-article-shell {
  position: relative;
  min-width: 0;
  opacity: 0;
  transform: translateY(46px) rotateX(10deg);
  transform-origin: 50% 65%;
  transition:
    opacity 0.75s ease var(--fp-delay, 0s),
    transform 1s var(--fp-ease) var(--fp-delay, 0s);
}

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

.fp-article-shell::before,
.fp-article-shell::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 7px;
  left: 13px;
  height: calc(100% - 14px);
  border: 1px solid rgba(21, 21, 20, 0.09);
  background: #e9e2d3;
  clip-path: polygon(0.8% 1.8%, 100% 0, 98.8% 98%, 0 100%);
  transition: transform 0.45s var(--fp-ease);
}

.fp-article-shell::before {
  top: 15px;
  right: 3px;
  left: 19px;
  height: calc(100% - 4px);
  border-color: rgba(21, 21, 20, 0.12);
  background: #eee6d6;
  transform: rotate(2.2deg) translate(13px, 5px);
  opacity: 0.88;
}

.fp-article-shell::after {
  top: 28px;
  right: 17px;
  left: 3px;
  height: calc(100% - 9px);
  border-color: rgba(21, 21, 20, 0.1);
  background: #e4dac8;
  transform: rotate(-2deg) translate(-12px, 10px);
  opacity: 0.7;
}

.fp-article-shell:hover::before {
  transform: rotate(3.2deg) translate(21px, 11px);
}

.fp-article-shell:hover::after {
  transform: rotate(-2.9deg) translate(-19px, 19px);
}

.fp-article-shell:nth-child(1) {
  --fp-delay: 0.04s;
  margin-top: 6px;
}

.fp-article-shell:nth-child(2) {
  --fp-delay: 0.16s;
  margin-top: 70px;
}

.fp-article-shell:nth-child(3) {
  --fp-delay: 0.28s;
  margin-top: 27px;
}

.fp-article-card {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  min-height: 425px;
  flex-direction: column;
  align-items: stretch;
  padding: 31px 29px 24px;
  overflow: hidden;
  border: 0;
  clip-path: polygon(4.2% 0, 100% 3.2%, 96.5% 100%, 0 96.8%);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.42), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0, transparent 31px, rgba(21, 21, 20, 0.023) 31px, rgba(21, 21, 20, 0.023) 32px),
    var(--fp-card) url("../img/paper-silk.jpg") center / cover;
  color: var(--fp-ink);
  text-align: left;
  filter:
    drop-shadow(8px 10px 0 rgba(80, 70, 52, 0.09))
    drop-shadow(0 27px 25px var(--fp-card-shadow))
    drop-shadow(0 7px 3px rgba(32, 28, 21, 0.08));
  transform:
    perspective(1200px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    rotateZ(var(--rot, 0deg));
  transform-origin: 50% 58%;
  transition:
    transform 0.35s var(--fp-ease),
    filter 0.35s ease;
}

.fp-article-shell:nth-child(1) .fp-article-card {
  --rx: 3deg;
  --ry: -6.5deg;
}

.fp-article-shell:nth-child(2) .fp-article-card {
  --rx: -2.6deg;
  --ry: 6.5deg;
  min-height: 372px;
  clip-path: polygon(0 3.5%, 97% 0, 100% 96%, 4% 100%);
}

.fp-article-shell:nth-child(3) .fp-article-card {
  --rx: 3.4deg;
  --ry: -5deg;
  min-height: 403px;
  clip-path: polygon(5% 1.5%, 100% 0, 98% 97%, 0 100%);
}

.fp-article-card::before {
  content: "";
  position: absolute;
  top: 9px;
  right: 10px;
  bottom: 9px;
  left: 10px;
  border: 1px solid rgba(21, 21, 20, 0.14);
  pointer-events: none;
}

.fp-article-card::after {
  content: "";
  position: absolute;
  top: -25%;
  right: -24%;
  width: 65%;
  height: 55%;
  background: radial-gradient(ellipse, rgba(79, 72, 59, 0.08), transparent 68%);
  pointer-events: none;
}

.fp-article-shell:hover .fp-article-card {
  filter: drop-shadow(0 34px 30px rgba(32, 28, 21, 0.22));
  transform:
    perspective(1200px)
    translateY(-9px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    rotateZ(calc(var(--rot, 0deg) * 0.22));
}

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

.fp-article-card__numeral {
  position: absolute;
  right: 19px;
  bottom: 17px;
  z-index: 0;
  color: rgba(21, 21, 20, 0.065);
  font-family: var(--serif);
  font-size: 116px;
  line-height: 0.8;
  pointer-events: none;
}

.fp-article-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-right: 46px;
  color: var(--fp-faint);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.fp-article-card__seal {
  position: absolute;
  top: 24px;
  right: 25px;
  z-index: 2;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(21, 21, 20, 0.46);
  color: var(--fp-ink);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1;
  transform: rotate(4deg);
  pointer-events: none;
}

.fp-article-card__title {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  max-width: 90%;
  margin-top: 48px;
  color: #111110;
  font-family: var(--serif);
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.36;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.fp-article-card__summary {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  overflow: hidden;
  margin-top: 17px;
  color: #5e594f;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.fp-article-card__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed rgba(21, 21, 20, 0.23);
  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: 10px;
}

.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__fold {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, transparent 48%, rgba(21, 21, 20, 0.12) 50%, #e3dccd 52%);
  pointer-events: none;
}

.fp-articles__foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 45px;
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
}

.fp-articles__empty {
  grid-column: 1 / -1;
  margin: 20px 0;
  padding: 54px 30px;
  border: 1px dashed var(--fp-line-strong);
  color: var(--fp-gray);
  font-family: var(--serif);
  font-size: 17px;
  text-align: center;
}

/* --- article reader: one long sheet ------------------------------------- */

.article-reader {
  position: relative;
  width: min(860px, calc(100vw - 46px));
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 20, 0.26);
  background: var(--fp-card) url("../img/paper-silk.jpg") center / cover;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.3);
}

.article-reader::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 34px;
  z-index: 2;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(21, 21, 20, 0.17) 0,
    rgba(21, 21, 20, 0.17) 4px,
    transparent 4px,
    transparent 11px
  );
  pointer-events: none;
}

.article-reader__bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 64px 16px 54px;
  border-bottom: 1px solid rgba(21, 21, 20, 0.16);
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
}

.article-reader__bar .reader__label {
  color: var(--fp-ink);
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.article-reader__page {
  position: relative;
  z-index: 1;
  max-height: calc(88vh - 54px);
  overflow-y: auto;
  padding: 46px clamp(34px, 7vw, 86px) 35px;
  scrollbar-width: thin;
}

.article-reader__page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 21, 20, 0.035), transparent 11%),
    radial-gradient(ellipse at 50% 0, rgba(255, 255, 255, 0.32), transparent 58%);
  pointer-events: none;
}

.article-reader__head {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
}

.article-reader__seal {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(21, 21, 20, 0.55);
  color: var(--fp-ink);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  transform: rotate(5deg);
}

.article-reader__meta {
  color: var(--fp-gray);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.article-reader__head h2 {
  max-width: 560px;
  margin-top: 16px;
  color: var(--fp-ink);
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.4;
}

.article-reader__summary {
  max-width: 560px;
  margin-top: 18px;
  color: var(--fp-gray);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.85;
}

.article-reader__rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 28px;
  background: repeating-linear-gradient(
    90deg,
    rgba(21, 21, 20, 0.3) 0,
    rgba(21, 21, 20, 0.3) 5px,
    transparent 5px,
    transparent 11px
  );
}

.article-reader__body {
  max-width: 660px;
  margin: 30px auto 0;
  color: var(--fp-ink-2);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.018em;
  line-height: 2.05;
}

.article-reader__body p {
  margin: 0 0 1.2em;
  text-indent: 2em;
}

.article-reader__body p:first-child {
  text-indent: 0;
}

.article-reader__body p:first-child::first-letter {
  float: left;
  margin: 0.11em 0.16em 0 0;
  color: var(--fp-ink);
  font-family: var(--serif);
  font-size: 3.1em;
  line-height: 0.8;
}

.article-reader__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 660px;
  margin: 35px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(21, 21, 20, 0.16);
  color: var(--fp-faint);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1.5;
}

.article-reader .modal__close {
  z-index: 4;
}

/* --- guestbook: notes pinned to dark silk -------------------------------- */

.fp-guestbook__list {
  gap: 15px;
  padding-top: 4px;
  border-top: 0;
  margin-top: 6px;
}

.fp-guestbook__list .guest-note,
.fp-guestbook__list .guest-note:nth-child(2n) {
  min-height: 150px;
  padding: 16px 18px 14px;
  border: 1px solid rgba(21, 21, 20, 0.14);
  border-radius: 0;
  background: var(--fp-card) url("../img/paper-silk.jpg") center / cover;
  color: var(--fp-ink);
  box-shadow: 0 15px 24px rgba(0, 0, 0, 0.2);
  clip-path: polygon(1.2% 2%, 100% 0, 98.4% 98%, 0 100%);
  transform: rotate(-0.45deg);
  transition: transform 0.35s var(--fp-ease), box-shadow 0.35s ease;
}

.fp-guestbook__list .guest-note:nth-child(2n) {
  background: var(--fp-card-deep) url("../img/paper-silk.jpg") center / cover;
  transform: rotate(0.55deg);
}

.fp-guestbook__list .guest-note:nth-child(3n) {
  background: #f1ebdd url("../img/paper-silk.jpg") center / cover;
  transform: rotate(-0.8deg);
}

.fp-guestbook__list .guest-note:hover {
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.28);
  transform: rotate(0deg) translateY(-3px);
}

.fp-guestbook__list .guest-note::before {
  content: "0" counter(guest);
  color: var(--fp-faint);
  font-family: var(--mono);
  font-size: 7.5px;
}

.fp-guestbook__list .guest-note__text {
  color: var(--fp-ink);
  font-size: 13px;
  line-height: 1.8;
}

.fp-guestbook__list .guest-note__meta {
  color: var(--fp-faint);
}

.fp-guestbook__list .guest-note__name {
  color: var(--fp-gray);
}

.fp-guestbook__list .guest-note__delete {
  color: var(--fp-gray);
}

.fp-guestbook__list .guest-note__delete:hover {
  color: var(--fp-ink);
}

/* --- daily: sheet corners and photo mounts ------------------------------- */

.fp-daily__feature {
  border: 0;
  clip-path: polygon(0.3% 0.7%, 99.8% 0, 100% 99.2%, 0 100%);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.35), transparent 44%),
    var(--fp-card) url("../img/paper-silk.jpg") center / cover;
  filter: drop-shadow(0 20px 24px rgba(30, 26, 20, 0.13));
}

.fp-daily__feature::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 31px;
  height: 31px;
  background: linear-gradient(135deg, transparent 48%, rgba(21, 21, 20, 0.12) 50%, #e4ddcf 52%);
  pointer-events: none;
}

.fp-daily__media::before,
.fp-daily__media::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-color: rgba(247, 244, 235, 0.62);
  border-style: solid;
  pointer-events: none;
}

.fp-daily__media::before {
  top: 13px;
  left: 13px;
  border-width: 1px 0 0 1px;
}

.fp-daily__media::after {
  right: 13px;
  bottom: 13px;
  border-width: 0 1px 1px 0;
}

.fp-daily__tab {
  position: relative;
  transition:
    background 0.25s ease,
    transform 0.3s var(--fp-ease),
    padding 0.3s ease;
}

.fp-daily__tab.is-active {
  clip-path: polygon(0 2%, 100% 0, 99.2% 98%, 0.4% 100%);
  background: var(--fp-card) url("../img/paper-silk.jpg") center / cover;
  box-shadow: 0 10px 18px rgba(28, 25, 19, 0.08);
  transform: rotate(-0.35deg);
}

.fp-daily__actions button {
  min-height: 26px;
}

.fp-daily__actions .icon {
  width: 12px;
  height: 12px;
}

/* --- workblog: stitched columns and slips -------------------------------- */

.fp-work-grid {
  position: relative;
}

.fp-work-grid::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(33.333% - 0.5px);
  z-index: 0;
  border-left: 1px dashed rgba(21, 21, 20, 0.13);
  pointer-events: none;
}

.fp-work-col + .fp-work-col {
  border-left-color: transparent;
}

.fp-work-item {
  position: relative;
  z-index: 1;
  transition: transform 0.3s var(--fp-ease), color 0.2s ease;
}

.fp-work-item::before {
  content: "";
  position: absolute;
  inset: -8px -12px;
  z-index: -1;
  border: 1px solid transparent;
  background: transparent;
  clip-path: polygon(0 5%, 99% 0, 100% 94%, 1% 100%);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.fp-work-item:hover::before {
  border-color: rgba(21, 21, 20, 0.13);
  background: rgba(250, 248, 242, 0.58);
}

.fp-work-item:hover {
  transform: translateX(3px);
}

.fp-work-item__date b {
  display: inline-flex;
  min-height: 19px;
  align-items: center;
  padding: 0 5px;
  border: 1px solid rgba(21, 21, 20, 0.24);
  background: rgba(250, 248, 242, 0.35);
  font-size: 11px;
  line-height: 1;
}

.fp-work-item__arrow {
  border: 1px solid transparent;
  border-radius: 50%;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.fp-work-item:hover .fp-work-item__arrow {
  border-color: rgba(21, 21, 20, 0.26);
  transform: translate(2px, -2px);
}

.fp-title__rule {
  background: repeating-linear-gradient(
    90deg,
    rgba(21, 21, 20, 0.28) 0,
    rgba(21, 21, 20, 0.28) 5px,
    transparent 5px,
    transparent 11px
  );
}

/* --- sound: paper sleeve + a stack of downloadable sheets ---------------- */

.fp-title--sound .fp-title__meta {
  justify-content: center;
  margin-top: 4px;
}

.fp-sound__layout {
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
  gap: 44px;
  align-items: stretch;
}

.fp-music.music-card {
  position: relative;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  padding: 26px;
  border: 1px solid rgba(21, 21, 20, 0.18);
  clip-path: polygon(0 0.6%, 99.7% 0, 100% 99.1%, 0.2% 100%);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.38), transparent 46%),
    rgba(249, 246, 238, 0.62);
  box-shadow: 0 18px 38px rgba(27, 24, 18, 0.11);
}

.fp-music.music-card::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 9px;
  bottom: 8px;
  left: 9px;
  border: 1px solid rgba(21, 21, 20, 0.1);
  pointer-events: none;
}

.fp-record.record-sleeve {
  width: 280px;
  height: 280px;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 20, 0.22);
  background:
    linear-gradient(138deg, rgba(255, 255, 255, 0.54), transparent 48%),
    var(--fp-card) url("../img/paper-silk.jpg") center / cover;
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.2),
    0 20px 34px rgba(25, 22, 17, 0.14);
  transform: rotate(-1.1deg);
}

.fp-record.record-sleeve::before {
  content: "声";
  position: absolute;
  right: -5px;
  bottom: -25px;
  color: rgba(21, 21, 20, 0.045);
  font-family: var(--serif);
  font-size: 188px;
  line-height: 1;
  pointer-events: none;
}

.fp-record.record-sleeve::after {
  inset: 11px;
  border-color: rgba(21, 21, 20, 0.15);
}

.fp-record .record-sleeve__label {
  top: 23px;
  left: 22px;
  color: var(--fp-gray);
}

.fp-record .record-sleeve__title {
  top: 49px;
  right: 23px;
  left: 22px;
  color: var(--fp-ink);
  font-size: 30px;
  line-height: 1.42;
}

.fp-record .record-sleeve__mark {
  top: auto;
  right: 24px;
  bottom: 66px;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(21, 21, 20, 0.45);
  border-radius: 50%;
  background: transparent;
}

.fp-record .record-sleeve__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fp-ink);
  transform: translate(-50%, -50%);
}

.fp-record .music-play {
  right: 19px;
  bottom: 17px;
  width: 43px;
  height: 43px;
  border-color: rgba(21, 21, 20, 0.52);
  background: rgba(245, 241, 231, 0.58);
  color: var(--fp-ink);
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}

.fp-record .music-play:hover {
  background: var(--fp-ink);
  color: var(--fp-paper-light);
  transform: rotate(7deg);
}

.fp-sound-files {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px 22px 16px;
  overflow: hidden;
  clip-path: polygon(0 1%, 100% 0, 99.3% 98%, 0.6% 100%);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.4), transparent 50%),
    rgba(249, 246, 238, 0.58);
  border: 1px solid rgba(21, 21, 20, 0.18);
  box-shadow: 0 18px 34px rgba(27, 24, 18, 0.1);
}

.fp-sound-files::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 9px;
  bottom: 8px;
  left: 9px;
  border: 1px dashed rgba(21, 21, 20, 0.16);
  pointer-events: none;
}

.fp-sound-files__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
}

.fp-sound-files__head h3 {
  margin-top: 6px;
  color: var(--fp-ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
}

.fp-sound-files__count {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--fp-faint);
  font-family: var(--mono);
  font-size: 7.5px;
  line-height: 1;
  white-space: nowrap;
}

.fp-sound-files__count b {
  color: var(--fp-ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}

.fp-sound-file-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.fp-sound-file {
  position: relative;
  border-top: 1px dashed rgba(21, 21, 20, 0.19);
}

.fp-sound-file:last-child {
  border-bottom: 1px dashed rgba(21, 21, 20, 0.19);
}

.fp-sound-file__link {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) 15px;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 9px 2px;
  color: var(--fp-ink);
  text-decoration: none;
  transition: background 0.2s ease, padding 0.25s ease;
}

.fp-sound-file__link:hover {
  padding-right: 5px;
  padding-left: 5px;
  background: rgba(250, 248, 242, 0.5);
}

.fp-sound-file__stamp {
  position: relative;
  display: grid;
  width: 35px;
  height: 41px;
  place-items: center;
  border: 1px solid rgba(21, 21, 20, 0.3);
  background: rgba(250, 248, 241, 0.5);
  clip-path: polygon(0 4%, 95% 0, 100% 93%, 5% 100%);
  color: var(--fp-ink);
  transition: transform 0.3s var(--fp-ease);
}

.fp-sound-file__link:hover .fp-sound-file__stamp {
  transform: rotate(-3deg) translateY(-1px);
}

.fp-sound-file__stamp .icon {
  width: 15px;
  height: 15px;
}

.fp-sound-file__stamp i {
  position: absolute;
  right: 3px;
  bottom: 2px;
  color: var(--fp-faint);
  font-family: var(--mono);
  font-size: 6px;
  font-style: normal;
  line-height: 1;
}

.fp-sound-file__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.fp-sound-file__body b {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.fp-sound-file__body small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--fp-gray);
  font-size: 8px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.fp-sound-file__body > span {
  color: var(--fp-faint);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.fp-sound-file__download {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--fp-gray);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.fp-sound-file__link:hover .fp-sound-file__download {
  border-color: rgba(21, 21, 20, 0.28);
  color: var(--fp-ink);
}

.fp-sound-file__download .icon {
  width: 13px;
  height: 13px;
}

.fp-sound-file__delete {
  position: absolute;
  top: 5px;
  right: 0;
  z-index: 3;
  display: none !important;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid rgba(21, 21, 20, 0.26);
  border-radius: 50%;
  background: var(--fp-card);
  color: var(--fp-ink);
  cursor: pointer;
}

body.is-owner .fp-sound-file__delete {
  display: inline-flex !important;
}

.fp-sound-file__delete .icon {
  width: 9px;
  height: 9px;
}

.fp-sound-files__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--fp-faint);
  font-family: var(--mono);
  font-size: 7px;
  line-height: 1.4;
}

.fp-sound-file-list > .comment-empty {
  padding: 28px 0;
  color: var(--fp-gray);
}

/* --- footer: a final stitched rule -------------------------------------- */

.fp-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--fp-side);
  left: var(--fp-side);
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(242, 239, 231, 0.18) 0,
    rgba(242, 239, 231, 0.18) 5px,
    transparent 5px,
    transparent 12px
  );
}

/* --- responsive: paper folds adapt -------------------------------------- */

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

  .fp-article-card {
    padding: 27px 23px 21px;
  }

  .fp-article-card__title {
    margin-top: 42px;
    font-size: 24px;
  }

  .fp-article-card__summary {
    font-size: 10.8px;
  }

  .fp-sound__layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    gap: 30px;
  }

  .fp-music.music-card {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    padding: 21px;
  }

  .fp-record.record-sleeve {
    width: 240px;
    height: 240px;
  }

  .fp-record .record-sleeve__title {
    font-size: 26px;
  }

  .fp-record.record-sleeve::before {
    font-size: 155px;
  }
}

@media (max-width: 980px) {
  .fp-article-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px;
  }

  .fp-article-shell:nth-child(3) {
    grid-column: 1 / -1;
    width: min(520px, 100%);
    margin-top: 0;
    justify-self: center;
  }

  .fp-article-shell:nth-child(1),
  .fp-article-shell:nth-child(2) {
    margin-top: 0;
  }

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

  .fp-article-card {
    min-height: 350px;
  }

  .fp-article-shell:nth-child(2) .fp-article-card,
  .fp-article-shell:nth-child(3) .fp-article-card {
    min-height: 350px;
  }

  .fp-articles__thread {
    display: none;
  }

  .fp-sound__layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .fp-music.music-card {
    grid-template-columns: 255px minmax(0, 1fr);
  }

  .fp-record.record-sleeve {
    width: 255px;
    height: 255px;
  }

  .fp-sound-files {
    min-height: 0;
  }

  .fp-sound-file-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 18px;
  }

  .fp-sound-file {
    border-bottom: 1px dashed rgba(21, 21, 20, 0.19);
  }

  .fp-sound-file__link {
    grid-template-columns: 34px minmax(0, 1fr) 14px;
    gap: 9px;
    min-height: 72px;
  }
}

@media (max-width: 780px) {
  .fp-articles {
    min-height: 0;
    padding-top: 82px;
    padding-bottom: 62px;
  }

  .fp-articles__seal {
    display: none;
  }

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

  .fp-article-shell,
  .fp-article-shell:nth-child(3) {
    width: 100%;
    margin-top: 0;
    opacity: 0;
    transform: translateY(24px);
  }

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

  .fp-article-shell:hover .fp-article-card {
    filter: drop-shadow(0 18px 20px rgba(32, 28, 21, 0.17));
    transform: none;
  }

  .fp-article-card,
  .fp-article-shell:nth-child(2) .fp-article-card,
  .fp-article-shell:nth-child(3) .fp-article-card {
    min-height: 0;
    padding: 27px 22px 22px;
    transform: none;
    filter: drop-shadow(0 16px 18px rgba(32, 28, 21, 0.14));
  }

  .fp-article-card::before {
    top: 7px;
    right: 8px;
    bottom: 7px;
    left: 8px;
  }

  .fp-article-card__title {
    margin-top: 36px;
    font-size: 25px;
  }

  .fp-article-card__summary {
    font-size: 11.5px;
  }

  .fp-article-card__numeral {
    right: 15px;
    bottom: 12px;
    font-size: 92px;
  }

  .fp-article-card__foot {
    margin-top: 30px;
  }

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

  .fp-sound__layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .fp-music.music-card {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 19px;
  }

  .fp-record.record-sleeve {
    width: 100%;
    height: auto;
    aspect-ratio: 1.42;
    transform: rotate(-0.6deg);
  }

  .fp-record .record-sleeve__title {
    top: 43px;
    left: 20px;
    font-size: 29px;
  }

  .fp-record.record-sleeve::before {
    font-size: 170px;
  }

  .fp-record .record-sleeve__mark {
    bottom: 58px;
    right: 20px;
  }

  .fp-sound-file-list {
    display: flex;
  }

  .fp-sound-files {
    padding: 22px 18px 15px;
  }

  .fp-sound-file__link {
    min-height: 70px;
  }

  .fp-guestbook__list {
    gap: 12px;
    margin-top: 8px;
  }

  .fp-guestbook__list .guest-note,
  .fp-guestbook__list .guest-note:nth-child(2n),
  .fp-guestbook__list .guest-note:nth-child(3n) {
    min-height: 0;
    padding: 16px 17px 14px;
    transform: none;
  }

  .fp-guestbook__list .guest-note:hover {
    transform: translateY(-2px);
  }

  .fp-daily__feature {
    clip-path: polygon(0 0.4%, 100% 0, 99.5% 99.5%, 0 100%);
  }

  .fp-work-grid::before {
    display: none;
  }

  .fp-work-item::before {
    display: none;
  }

  .fp-work-item:hover {
    transform: none;
  }
}

@media (max-width: 440px) {
  .fp-article-card__title {
    font-size: 23px;
  }

  .fp-article-card__top {
    font-size: 7px;
  }

  .fp-article-card__seal {
    right: 17px;
  }

  .fp-sound-file__body b {
    font-size: 12px;
  }

  .fp-sound-file__body small {
    font-size: 7.5px;
  }

  .fp-sound-file__body > span {
    font-size: 6px;
  }

  .fp-record .record-sleeve__title {
    font-size: 27px;
  }

  .fp-sound-files__head h3 {
    font-size: 17px;
  }

  .article-reader__bar {
    padding-right: 50px;
    padding-left: 45px;
  }

  .article-reader::before {
    left: 25px;
  }

  .article-reader__page {
    padding: 32px 24px 30px;
  }

  .article-reader__seal {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .article-reader__body {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fp-article-shell,
  .fp-article-card,
  .fp-article-shell::before,
  .fp-article-shell::after,
  .fp-guestbook__list .guest-note,
  .fp-work-item,
  .fp-sound-file__stamp {
    transition: none !important;
  }

  .fp-article-shell {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- paper details on common controls ----------------------------------- */

.fp-guestbook__list .guest-note::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, transparent 47%, rgba(21, 21, 20, 0.1) 49%, #ded5c2 52%);
  pointer-events: none;
}

.modal__close {
  width: 31px;
  height: 31px;
  border: 1px solid rgba(21, 21, 20, 0.4);
  border-radius: 50%;
  background: var(--fp-card) url("../img/paper-silk.jpg") center / cover;
  color: var(--fp-ink);
  box-shadow: 0 7px 13px rgba(0, 0, 0, 0.13);
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s var(--fp-ease);
}

.modal__close:hover {
  background: var(--fp-ink);
  color: var(--fp-paper-light);
  transform: rotate(8deg);
}

.ink-button {
  border: 1px solid var(--fp-line-strong);
  clip-path: polygon(0 8%, 97% 0, 100% 92%, 3% 100%);
  background: var(--fp-card) url("../img/paper-silk.jpg") center / cover;
  color: var(--fp-ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.ink-button:hover {
  background: var(--fp-ink);
  color: var(--fp-paper-light);
}

.fp-daily__feature .fp-daily__actions .read-more {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--fp-ink);
  font-family: var(--serif);
  font-size: 10px;
  cursor: pointer;
}

/* The ink reveals itself only after the portrait has settled. */
body:not(.is-lit) .fp-hero__ink {
  will-change: filter, opacity, transform;
}


@media (max-width: 780px) {
  .fp-edit {
    min-width: 52px;
    padding: 0 9px;
    justify-content: center;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .fp-edit .icon,
  .fp-edit::before,
  .fp-edit::after {
    display: none;
  }
}


.fp-side-title--articles .fp-side-title__aside {
  padding: 11px 13px 10px;
  border: 1px solid rgba(21, 21, 20, 0.1);
  background: rgba(246, 241, 230, 0.46);
  clip-path: polygon(0 3%, 100% 0, 99% 97%, 1% 100%);
}

@media (max-width: 780px) {
  .fp-edit .icon,
  .fp-edit::before,
  .fp-edit::after {
    display: none !important;
  }
}


.fp-side-title--articles .fp-side-title__aside {
  background: rgba(248, 243, 232, 0.82);
  box-shadow: 0 8px 18px rgba(45, 40, 31, 0.06);
}

.fp-side-title--articles .fp-side-title__aside p {
  color: var(--fp-ink-2);
  font-size: 10px;
}

