:root {
  --paper: #e9ebe4;
  --ink: #1e1b16;
  --muted: #6a6d63;
  --line: #c9cdc3;
  --accent: #7a5340;
  --leaf: #5a6552;
  --font: "LXGW WenKai Lite", serif;
  --font-mono: "LXGW WenKai Mono Lite", monospace;
  --flip-w: 52px;
  --flip-h: 76px;
  --flip-fs: 42px;
}

/* 霞鹜文楷 Lite，SIL Open Font License 1.1，见 fonts/OFL.txt */
@font-face {
  font-family: "LXGW WenKai Lite";
  src: url("../fonts/LXGWWenKaiLite-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LXGW WenKai Lite";
  src: url("../fonts/LXGWWenKaiLite-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "LXGW WenKai Mono Lite";
  src: url("../fonts/LXGWWenKaiMonoLite-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  /* 永久远山改由 ::before 固定层绘制，避免 background-attachment:fixed 滚动卡顿 */
  isolation: isolate;
  font-family: var(--font);
  line-height: 2;
}

/* 视口固定远山（合成到纸色，无透明通道）；不参与滚动重绘 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--paper);
  background-image: url("../assets/mist-hills.jpg");
  background-image: image-set(
    url("../assets/mist-hills.webp") type("image/webp"),
    url("../assets/mist-hills.jpg") type("image/jpeg")
  );
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: min(100vw, 1600px) auto;
  transform: translateZ(0);
}

/* 旧贴底水墨山：全站改用 body 远山，不再叠一层 */
.site-hills {
  display: none !important;
}

@media (max-width: 800px) {
  body::before {
    background-position: center bottom;
    background-size: 140% auto;
  }
}

/* 软导航过渡；正文避开固定版权条 */
#site-page {
  padding-bottom: 36px;
  transition: opacity 0.18s ease;
}

#site-page.is-leaving,
#site-page.is-entering {
  opacity: 0;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  overflow: hidden;
}

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #8b9084;
  will-change: transform;
  transition: transform 0.45s ease-out;
}

.hero-core .reveal-item {
  opacity: 0;
  transform: translateY(8px);
  animation: rise-in 0.35s ease forwards;
  animation-delay: calc(var(--d, 0) * 0.06s + 0.04s);
}

#hero-saying {
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.45s ease;
}

#hero-saying.is-fading {
  opacity: 0;
  filter: blur(2px);
  transform: translateY(6px);
}

.vista .hill-far {
  animation: hill-drift 26s ease-in-out infinite alternate;
}

.vista .hill-mid {
  animation: hill-drift 20s ease-in-out infinite alternate-reverse;
}

.vista .hill-near {
  animation: hill-drift 16s ease-in-out infinite alternate;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hill-drift {
  from { transform: translateX(0); }
  to { transform: translateX(12px); }
}

.note,
.profile-card,
.page-body > p,
.slip-month,
.scrap-chip {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.slip {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.note.is-in,
.profile-card.is-in,
.page-body > p.is-in,
.slip-month.is-in,
.scrap-chip.is-in {
  opacity: 1;
  transform: translateY(0);
}

.slip.is-in {
  opacity: 1;
}

.note.is-in {
  transition-delay: 0s;
}

html:not(.js-ready) .note,
html:not(.js-ready) .slip,
html:not(.js-ready) .profile-card,
html:not(.js-ready) .page-body > p,
html:not(.js-ready) .slip-month,
html:not(.js-ready) .scrap-chip {
  opacity: 1;
}

html:not(.js-ready) .note,
html:not(.js-ready) .profile-card,
html:not(.js-ready) .page-body > p,
html:not(.js-ready) .slip-month,
html:not(.js-ready) .scrap-chip {
  transform: none;
}

.moon {
  position: absolute;
  top: 11vh;
  right: 14vw;
  width: min(120px, 18vw);
  height: min(120px, 18vw);
  border: 1px solid rgba(90, 101, 82, 0.45);
  border-radius: 50%;
}

.moon-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(233, 235, 228, 0.55) 0%,
    rgba(90, 101, 82, 0.12) 42%,
    transparent 70%
  );
  animation: moon-breathe 7.5s ease-in-out infinite;
}

.cloud {
  position: absolute;
  width: min(220px, 28vw);
  opacity: 0.55;
}

.cloud-left {
  top: 16vh;
  left: 8vw;
  animation: drift 22s ease-in-out infinite alternate;
}

.cloud-mid {
  top: 12vh;
  left: 42vw;
  width: min(150px, 18vw);
  opacity: 0.35;
  animation: drift 32s ease-in-out infinite alternate;
}

.cloud-right {
  top: 22vh;
  right: 22vw;
  width: min(180px, 22vw);
  animation: drift 28s ease-in-out infinite alternate-reverse;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(90, 101, 82, 0.55);
  box-shadow: 0 0 6px rgba(233, 235, 228, 0.8);
  animation: twinkle 4.8s ease-in-out infinite;
}

.star-a { top: 18%; left: 18%; animation-delay: 0.2s; }
.star-b { top: 28%; left: 62%; width: 2px; height: 2px; animation-delay: 1.4s; }
.star-c { top: 12%; left: 72%; animation-delay: 2.1s; }
.star-d { top: 34%; left: 12%; width: 2px; height: 2px; animation-delay: 3s; }

.mote {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(90, 101, 82, 0.35);
  animation: mote-float 16s ease-in-out infinite;
}

.mote-1 { top: 40%; left: 22%; animation-duration: 18s; }
.mote-2 { top: 55%; left: 70%; animation-duration: 22s; animation-delay: -4s; }
.mote-3 { top: 48%; left: 48%; animation-duration: 20s; animation-delay: -8s; }
.mote-4 { top: 62%; left: 18%; animation-duration: 24s; animation-delay: -2s; }
.mote-5 { top: 36%; left: 80%; animation-duration: 19s; animation-delay: -6s; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(28px); }
}

@keyframes moon-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.06); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.35); }
}

@keyframes mote-float {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.2; }
  50% { transform: translate3d(12px, -28px, 0); opacity: 0.7; }
}

.masthead {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto minmax(100px, 1fr);
  align-items: center;
  column-gap: 16px;
  padding: 16px 28px 0;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  line-height: 1;
  text-decoration: none;
}

.brand:hover,
.brand:visited,
.brand:active,
.brand:focus {
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  display: block;
  width: 88px;
  height: auto;
  aspect-ratio: 1280 / 658;
  object-fit: contain;
  object-position: center;
}

.nav {
  grid-column: 2;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0;
}

.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.28em;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 1.2em;
  height: 1px;
  background: var(--leaf);
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav a:hover::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.nav a.is-current {
  color: var(--ink);
}

.nav a.is-current::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.account {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.mode-nav {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.mode-nav a {
  color: #9a948a;
  text-decoration: none;
  border: 0;
  background: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

.mode-nav a:hover {
  color: #7a6f60;
}

.mode-nav-sep {
  margin: 0 0.55em;
  color: rgba(138, 118, 90, 0.28);
  font-weight: 400;
  letter-spacing: 0;
  user-select: none;
}

.account a {
  color: var(--muted);
  text-decoration: none;
}

.account a:hover,
.account a.is-current {
  color: var(--ink);
}

.account-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  overflow: hidden;
  color: var(--leaf);
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-avatar svg {
  width: 18px;
  height: 18px;
}

.account-role {
  margin-left: 4px;
  color: var(--leaf);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.inspire-write {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--leaf);
  font-family: inherit;
  text-decoration: none;
  letter-spacing: 0.12em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.inspire-write:hover,
.inspire-write:focus {
  color: var(--accent);
  outline: none;
}

.inspire-brush {
  display: block;
  flex-shrink: 0;
  transform: rotate(-18deg);
  transition: transform 0.2s ease;
}

.inspire-write:hover .inspire-brush {
  transform: rotate(-28deg) translateY(-1px);
}

.inspire-label {
  font-size: 12px;
  font-weight: 500;
}

.inspire-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.inspire-layer[hidden] {
  display: none !important;
}

.inspire-layer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.inspire-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(233, 235, 228, 0.72);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.inspire-panel {
  position: relative;
  z-index: 1;
  width: min(360px, calc(100% - 40px));
  padding: 28px 24px 20px;
  border: 1px solid rgba(138, 118, 90, 0.22);
  border-radius: 2px;
  box-shadow: none;
  background: rgba(255, 252, 246, 0.94);
  text-align: center;
  outline: none;
}

.inspire-panel:focus,
.inspire-panel:focus-visible {
  outline: none;
}

.inspire-layer.is-open .inspire-panel {
  animation: inspire-rise 0.28s ease both;
}

@keyframes inspire-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .inspire-layer { transition: none; }
  .inspire-layer.is-open .inspire-panel { animation: none; }
}

.inspire-kicker {
  margin: 0 0 6px;
  color: var(--leaf);
  font-size: 12px;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
}

.inspire-hint {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.18em;
}

.inspire-choices {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.inspire-choices a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 4px 14px 14px;
  border-top: 1px solid var(--line);
  border-left: 2px solid transparent;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease, border-left-color 0.2s ease;
  outline: none;
}

.inspire-choices a:focus,
.inspire-choices a:focus-visible {
  outline: none;
  border-left-color: rgba(138, 118, 90, 0.45);
}

.inspire-choices li:last-child a {
  border-bottom: 1px solid var(--line);
}

.inspire-choices a:hover {
  border-left-color: var(--leaf);
  background: transparent;
  color: var(--accent);
}

.inspire-choices span {
  font-size: 16px;
  letter-spacing: 0.22em;
}

.inspire-choices em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.inspire-dismiss {
  display: inline-block;
  margin: 18px 0 0;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.inspire-dismiss:hover {
  color: var(--ink);
}

body.inspire-open {
  overflow: hidden;
}

.gate {
  position: relative;
  z-index: 1;
  padding: 0 0 36px;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.tagline::before,
.tagline::after {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.hero-core .tagline {
  margin-top: 28px;
  font-size: 17px;
  letter-spacing: 0.16em;
}

.page-body {
  padding-top: 20px;
}

.page-edit {
  margin-left: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.page-edit:hover {
  color: var(--ink);
}

.page-flash {
  margin: 0 0 20px;
  color: var(--leaf);
  font-size: 15px;
}

.hero-core {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 120px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--leaf);
  font-size: 13px;
  letter-spacing: 0.62em;
}

.hero-core h1 {
  margin: 0;
  max-width: 12em;
  font-size: clamp(28px, 5.2vw, 48px);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.45;
}

.clock-wrap {
  margin-top: 56px;
}

.flip-clock {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.flip-group {
  display: flex;
  gap: 8px;
}

.flip-card {
  position: relative;
  width: var(--flip-w);
  height: var(--flip-h);
  color: #e9ebe4;
  background: #241f1a;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(36, 31, 26, 0.16);
  font-family: var(--font-mono);
  font-size: var(--flip-fs);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: var(--flip-h);
  perspective: 260px;
  transform-style: preserve-3d;
  overflow: hidden;
}

.flip-card .static,
.flip-card .panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50%;
  overflow: hidden;
}

.flip-card .static.top,
.flip-card .panel-top {
  top: 0;
}

.flip-card .static.bottom,
.flip-card .panel-bottom {
  bottom: 0;
}

.flip-card span {
  display: block;
  height: var(--flip-h);
  text-align: center;
}

.flip-card .static.bottom span,
.flip-card .panel-bottom span {
  margin-top: calc(var(--flip-h) / -2);
}

.flip-card .hinge {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  z-index: 4;
  height: 1px;
  background: rgba(233, 235, 228, 0.16);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.flip-card .panel {
  z-index: 3;
  background: #241f1a;
  backface-visibility: hidden;
}

.flip-card .panel-top {
  transform-origin: bottom center;
}

.flip-card .panel-bottom {
  transform-origin: top center;
  transform: rotateX(90deg);
  background: #322c25;
}

.flip-card.play .panel-top {
  animation: flip-down 0.3s ease-in forwards;
}

.flip-card.play .panel-bottom {
  animation: flip-up 0.3s ease-out 0.3s forwards;
}

@keyframes flip-down {
  from { transform: rotateX(0deg); }
  to { transform: rotateX(-90deg); }
}

@keyframes flip-up {
  from { transform: rotateX(90deg); }
  to { transform: rotateX(0deg); }
}

.flip-colon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0 4px;
}

.flip-colon i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #241f1a;
  opacity: 0.55;
}

.clock-date,
.clock-caption {
  margin: 0;
  color: var(--muted);
}

.clock-date {
  margin-top: 22px;
  font-size: 14px;
  letter-spacing: 0.18em;
}

.clock-caption {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  color: var(--leaf);
}

.hero-ground {
  display: none;
}

.hero-blurb {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 48px;
  z-index: 2;
  width: min(42em, calc(100% - 48px));
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.9;
  text-align: center;
  opacity: 0.92;
}

.hero-blurb p {
  margin: 0 0 1em;
}

.hero-blurb p:last-child {
  margin-bottom: 0;
}

.hero-beian {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  padding: 0 16px;
  color: var(--muted);
  font-size: 8px; /* 原 12px 的 2/3 */
  letter-spacing: 0.06em;
  text-align: center;
}

.hero-beian a {
  color: var(--muted);
  text-decoration: none;
}

.vista {
  display: block;
  width: 100%;
  height: auto;
}

.paper {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 64px));
  margin: 0 auto;
  padding: 8px 0 96px;
}

.section {
  padding: 88px 0 8px;
}

.section h2 {
  margin: 0 0 36px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5em;
  color: var(--leaf);
}

.section h2::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 14px;
  border: 1px solid var(--leaf);
  border-radius: 50%;
  vertical-align: 2px;
}

.section p {
  margin: 0 0 22px;
  font-size: 18px;
  color: #2c2822;
}

.lede {
  font-size: 20px;
  line-height: 2.15;
}

/* 关于页 · 居中立轴 */
body.about-page .paper {
  width: min(520px, calc(100% - 40px));
}

body.about-page .page-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  text-align: center;
  overflow: auto;
  padding-top: 12px;
  padding-bottom: 28px;
}

body.about-page .section p {
  margin-bottom: 0;
}

.about-scroll {
  width: 100%;
  margin: 0 auto;
  padding: 8px 0 20px;
}

.about-mast {
  text-align: center;
  margin-bottom: 36px;
}

.about-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55em;
  margin: 0;
  font-size: clamp(20px, 4.2vw, 26px);
  font-weight: 500;
  line-height: 1.4;
}

.about-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.72em;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
}

.about-brand {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.about-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px auto 0;
  color: var(--leaf);
  opacity: 0.45;
}

.about-rule-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.about-rule-line {
  width: min(88px, 28vw);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    currentColor 18%,
    currentColor 82%,
    transparent
  );
  opacity: 0.7;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1.35em;
}

body.about-page .about-body p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 2.05;
  letter-spacing: 0.04em;
  text-align: center;
}

body.about-page .about-body .lede {
  font-size: 18px;
  line-height: 2.15;
  letter-spacing: 0.05em;
}

body.about-page .about-contact {
  margin-top: 0.6em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.08em;
  text-align: center;
  opacity: 0.85;
}

.about-reveal {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  transition-delay: calc(var(--d, 0) * 0.07s);
}

.about-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

html:not(.js-ready) .about-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .about-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 800px) {
  body.about-page .paper {
    width: min(100% - 28px, 520px);
  }

  body.about-page .about-body .lede {
    font-size: 17px;
  }

  .about-mast {
    margin-bottom: 28px;
  }
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--leaf);
}

.profile-avatar svg {
  width: 44px;
  height: 44px;
}

.profile-name {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.profile-card .page-edit {
  margin-left: 0;
}

.month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 14px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.48em;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.month::after {
  content: "展开";
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.7;
}

.note {
  padding: 40px 0;
}

.note time {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.note h3 {
  margin: 10px 0 18px;
  font-size: 28px;
  font-weight: 500;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  margin: 0 !important;
  padding: 8px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  border: 0 !important;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: center;
  pointer-events: none;
  background: transparent;
  /* 勿加 transform：会新建 containing block，软导航时易被当成页内层跟着动 */
  transform: none !important;
}

.site-footer p {
  margin: 0;
}

.site-footer .copyright {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.75;
}

.beian {
  font-size: 6px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.beian a {
  color: var(--muted);
  text-decoration: none;
}

.beian a:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  :root {
    --flip-w: 34px;
    --flip-h: 50px;
    --flip-fs: 26px;
  }

  .paper {
    width: calc(100% - 36px);
  }

  /* 窄屏与桌面同构单行：品牌 | 导航 | 账号；收紧字距与账号文案以免折行 */
  .masthead {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 8px;
    padding: 12px 12px 0;
  }

  .brand {
    justify-self: start;
  }

  .nav {
    grid-column: 2;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: auto;
    padding-top: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    font-size: 12px;
    letter-spacing: 0.1em;
  }

  .account {
    justify-self: end;
    gap: 8px;
    min-width: 0;
    flex-wrap: nowrap;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .inspire-write {
    margin-right: 0;
  }

  .inspire-label {
    display: none;
  }

  .account-name,
  .account-role {
    display: none;
  }

  .brand img {
    width: 56px;
    height: auto;
  }

  .hero-core {
    padding-bottom: 120px;
  }

  .hero-core h1 {
    letter-spacing: 0.12em;
  }

  .tagline {
    gap: 12px;
    font-size: 15px;
    letter-spacing: 0.08em;
  }

  .tagline::before,
  .tagline::after {
    width: 20px;
  }

  .section {
    padding-top: 64px;
  }

  .note h3 {
    font-size: 22px;
  }
}

body.fit {
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.fit #site-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body.fit .hero,
body.fit .gate {
  flex-shrink: 0;
}

body.fit .hero {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow: hidden;
}

body.fit .hero-core {
  padding: 24px 24px 168px;
}

body.fit .clock-wrap {
  margin-top: 36px;
}

body.fit .gate {
  padding-bottom: 0;
}

body.fit .paper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: min(880px, calc(100% - 48px));
  padding: 0 0 18px;
}

body.fit .section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 12px 0 0;
}

body.fit .page-body {
  padding-top: 8px;
}

body.fit .section h2 {
  margin-bottom: 14px;
}

body.fit .section p {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.85;
}

body.fit .lede {
  font-size: 17px;
  line-height: 1.9;
}

body.fit .profile-card {
  margin-bottom: 16px;
}

body.fit .profile-avatar {
  flex-basis: 56px;
  width: 56px;
  height: 56px;
}

body.fit .profile-avatar svg {
  width: 34px;
  height: 34px;
}

body.fit .profile-name {
  font-size: 17px;
}

body.notes-page .paper {
  width: min(960px, calc(100% - 48px));
}

body.notes-page .notes-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 8px 40px;
  min-height: 0;
}

body.notes-page .notes-months {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

body.notes-page .notes-months .month {
  justify-content: flex-start;
  padding: 10px 0;
  color: var(--muted);
  letter-spacing: 0.28em;
  font-size: 14px;
}

body.notes-page .notes-months .month::after {
  content: none;
}

body.notes-page .notes-months .month.is-open {
  color: var(--accent);
}

body.notes-page .notes-panes {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body.notes-page .month-panel {
  display: none;
  height: 100%;
  overflow: auto;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.notes-page .month-panel.is-open {
  display: block;
}

body.notes-page .month-panel::-webkit-scrollbar {
  display: none;
}

body.notes-page .note {
  margin: 0 0 2.4em;
  padding: 22px 0;
}

body.notes-page .note:first-child {
  padding-top: 4px;
}

body.notes-page .note time {
  font-size: 13px;
  letter-spacing: 0.16em;
}

body.notes-page .note h3 {
  margin: 6px 0 12px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

body.notes-page .note p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.9;
}

body.notes-page .note-photo {
  margin: 0 0 12px;
  width: 100%;
}

body.notes-page .note-photo button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

body.notes-page .note-photo button:hover,
body.notes-page .note-photo button:focus,
body.notes-page .note-photo button:focus-visible {
  outline: none;
  transform: none;
  box-shadow: none;
}

body.notes-page .note-photo img {
  display: block;
  width: 100%;
  height: auto;
}

body.notes-page .note-photo figcaption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

body.reading-page .gate {
  padding-bottom: 0;
}

body.reading-page .paper {
  width: min(1100px, calc(100% - 32px));
  padding-bottom: 8px;
}

body.reading-page .page-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding-top: 0;
  display: flex;
  flex-direction: column;
}

.reading-nav {
  display: flex;
  justify-content: flex-end;
  padding: 0 4px 8px;
}

body.reading-page .slip-board {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.reading-page .slip-board::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.reading-page .slip-stage {
  position: relative;
  width: 100%;
  min-height: 100%;
}

.slip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: var(--slip-w, 240px);
  max-width: min(280px, calc(100% - 24px));
  margin: 0;
  padding: 18px 18px 14px 20px;
  background: #f4f1e8;
  color: #4a4741;
  font-weight: 400;
  line-height: 1.9;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: polygon(
    1.2% 2.4%, 7% 0.6%, 18% 1.8%, 29% 0.3%, 41% 1.4%, 54% 0.2%,
    67% 1.6%, 79% 0.5%, 90% 1.9%, 98.6% 0.8%,
    100% 11%, 98.8% 23%, 100% 36%, 98.7% 49%, 100% 63%, 99% 76%, 100% 89%,
    97.8% 100%, 86% 98.4%, 73% 100%, 59% 98.2%, 44% 100%, 31% 98.6%, 17% 100%, 4% 98.3%,
    0 87%, 1.4% 73%, 0.2% 58%, 1.6% 43%, 0 28%, 1.1% 14%
  );
  filter: drop-shadow(0 6px 14px rgba(48, 42, 34, 0.07));
  transform: rotate(var(--slip-r, -2.4deg));
  transition: z-index 0s, filter 0.2s ease, opacity 0.5s ease;
}

body.reading-page .slip {
  box-shadow: none;
  filter: none;
}

body.reading-page .slip:hover,
body.reading-page .slip:focus-within {
  filter: none;
}

.slip.is-pending {
  position: relative;
  display: inline-block;
  vertical-align: top;
  opacity: 0;
  pointer-events: none;
}

.slip:hover,
.slip:focus-within {
  z-index: 3;
  filter: drop-shadow(0 10px 18px rgba(48, 42, 34, 0.12));
}

.slip-1 {
  padding: 16px 16px 13px 18px;
  background: #f7f4ed;
  clip-path: polygon(
    0.4% 1.1%, 12% 1.7%, 24% 0.2%, 38% 1.5%, 52% 0.4%, 66% 1.8%,
    80% 0.3%, 93% 1.4%, 99.5% 2.2%,
    100% 16%, 98.6% 31%, 100% 47%, 98.9% 62%, 100% 79%, 98.4% 93%,
    96.6% 99.6%, 82% 100%, 68% 98.1%, 53% 100%, 39% 98.5%, 24% 100%, 9% 98.8%,
    0.6% 96%, 0 81%, 1.5% 66%, 0 50%, 1.2% 33%, 0.3% 17%
  );
}

.slip-2 {
  background: #f3efe4;
}

.reading-page .slip h4,
.reading-page .slip p {
  margin: 0 0 0.35em;
  font-size: 7.5px !important; /* 小标题与正文严格统一，并整体缩小 */
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.85;
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}

.reading-page .slip h4 {
  color: #6a7264;
}

.reading-page .slip p {
  max-width: 22em;
  color: #4a4741;
}

.reading-page .slip p:last-of-type {
  margin-bottom: 0;
}

.reading-page .slip time {
  display: block;
  margin-top: 1em;
  color: #7a7d74;
  font-size: 6.5px;
  letter-spacing: 0.12em;
}

body.scraps-page .gate {
  padding-bottom: 0;
}

body.scraps-page .page-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-top: 0;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.scraps-page .page-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.scraps-page .paper {
  width: min(960px, calc(100% - 40px));
  padding-bottom: 12px;
}

body.scraps-page .section p {
  margin: 0;
}

.scraps-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 36px;
  min-height: 0;
  align-items: start;
}

.scraps-months {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  max-height: calc(100svh - 120px);
  overflow: auto;
  padding: 4px 0 24px;
  scrollbar-width: none;
}

.scraps-months::-webkit-scrollbar {
  display: none;
}

.scraps-month-label {
  margin: 14px 0 4px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
}

.scraps-month-label:first-child {
  margin-top: 4px;
}

.scraps-day {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease;
}

.scraps-day:hover,
.scraps-day.is-current {
  color: var(--accent);
}

.scraps-stream {
  min-width: 0;
  padding-bottom: 32px;
}

.scrap-leaf {
  margin: 0 0 36px;
  padding: 0 0 28px;
  border-bottom: 1px solid rgba(201, 205, 195, 0.55);
}

.scrap-leaf:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 8px;
}

.scrap-preface {
  border-bottom: 0;
  padding-bottom: 8px;
  margin-bottom: 28px;
}

.scrap-preface-kicker {
  margin: 0 0 10px;
  color: var(--leaf);
  font-size: 12px;
  letter-spacing: 0.36em;
}

.scrap-preface p {
  margin: 0 0 8px;
  max-width: 28em;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.9;
}

.scrap-leaf-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 16px;
}

.scrap-leaf-head time {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.28em;
}

.scrap-leaf-tag {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.scrap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
}

.scrap-chip {
  min-width: 0;
}

.scrap-chip header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
}

.scrap-chip h3 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.scrap-chip p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.85;
}

.scrap-chip-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.scrap-chip-photos li {
  margin: 0;
}

.scrap-chip-photos button {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.scrap-chip-photos button:hover,
.scrap-chip-photos button:focus,
.scrap-chip-photos button:focus-visible {
  outline: none;
  transform: none;
  box-shadow: none;
}

.scrap-chip-photos img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 72px;
}

.scrap-chip .note-illus {
  flex: 0 0 36px;
  width: 36px;
  height: 24px;
  color: var(--leaf);
}

.scrap-chip .note-illus svg {
  width: 100%;
  height: 100%;
}


@media (max-width: 800px) {
  body.fit .section {
    padding-top: 8px;
  }

  body.notes-page .notes-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
  }

  body.notes-page .notes-months {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-bottom: 8px;
    background:
      linear-gradient(
        90deg,
        rgba(90, 101, 82, 0.18),
        transparent 24%,
        transparent 36%,
        rgba(90, 101, 82, 0.13) 52%,
        transparent 68%,
        rgba(90, 101, 82, 0.1) 88%,
        transparent
      )
      bottom / 100% 1px no-repeat;
  }

  body.notes-page .notes-months .month {
    padding: 6px 0;
    width: auto;
    letter-spacing: 0.16em;
  }

  .slip {
    max-width: min(280px, calc(100% - 24px));
  }

}

@media (max-width: 800px) {
  .scraps-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .scraps-months {
    position: relative;
    top: auto;
    max-height: none;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0 14px;
    overflow-x: auto;
    padding: 0 0 10px;
    background:
      linear-gradient(
        90deg,
        rgba(90, 101, 82, 0.18),
        transparent 24%,
        transparent 36%,
        rgba(90, 101, 82, 0.13) 52%,
        transparent 68%,
        rgba(90, 101, 82, 0.1) 88%,
        transparent
      )
      bottom / 100% 1px no-repeat;
  }

  .scraps-month-label {
    margin: 0;
    flex: 0 0 auto;
    font-size: 11px;
  }

  .scraps-day {
    flex: 0 0 auto;
    padding: 6px 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .scrap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
  }
}

@media (max-width: 520px) {
  .scrap-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 760px) {
  body.fit .hero-core {
    padding-bottom: 72px;
  }

  body.fit .clock-wrap {
    margin-top: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud-left,
  .cloud-right,
  .cloud-mid,
  .moon-glow,
  .star,
  .mote,
  .vista .hill-far,
  .vista .hill-mid,
  .vista .hill-near {
    animation: none;
  }

  #site-page {
    transition: none;
  }

  .hero-core .reveal-item {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .note,
  .slip,
  .profile-card,
  .page-body > p,
  .slip-month,
  .scrap-chip {
    opacity: 1;
    transition: none;
  }

  .note,
  .profile-card,
  .page-body > p,
  .slip-month,
  .scrap-chip {
    transform: none;
  }

  .hero-sky,
  .hero-ground {
    transition: none;
  }

  .flip-card.play .panel-top,
  .flip-card.play .panel-bottom {
    animation: none;
  }
}

/* 雾山纸本相册 */
body.albums-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(233, 235, 228, 0.62) 0%,
      rgba(233, 235, 228, 0.28) 38%,
      rgba(233, 235, 228, 0.18) 58%,
      rgba(233, 235, 228, 0.55) 100%
    );
}

.album-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 146px);
  justify-content: center;
  gap: 28px 22px;
  max-width: none;
  padding: 12px 4px 28px;
}

body.album-page .paper {
  width: min(1000px, calc(100% - 48px));
}

body.albums-page .section {
  padding-top: 40px;
}

body.albums-page .page-body,
body.album-page .page-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.albums-page .page-body::-webkit-scrollbar,
body.album-page .page-body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.albums-page #site-page {
  position: relative;
  z-index: 1;
}

body.albums-page .album-slip {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #4f5a48;
  text-decoration: none;
}

body.albums-page .album-slip:hover,
body.albums-page .album-slip:focus,
body.albums-page .album-slip:focus-visible {
  color: #4f5a48;
  box-shadow: none;
  outline: none;
}

body.albums-page .album-slip:focus-visible .album-leaf-front {
  outline: 1px dashed rgba(90, 101, 82, 0.45);
  outline-offset: 3px;
}

body.albums-page .album-book {
  position: relative;
  width: 146px;
  margin: 0 auto;
}

body.albums-page .album-leaf-back {
  position: absolute;
  left: 3px;
  right: 6px;
  top: -3px;
  z-index: 0;
  height: 52%;
  overflow: hidden;
  background: #f3efe4;
  box-shadow: 0 4px 10px rgba(48, 42, 34, 0.05);
  transition: transform 0.82s ease;
}

body.albums-page .album-leaf-back:nth-child(1) {
  transform: rotate(-2.2deg);
}

body.albums-page .album-leaf-back:nth-child(2) {
  left: 6px;
  right: 3px;
  top: -2px;
  transform: rotate(1.8deg);
  background: #f7f3e8;
}

body.albums-page .album-leaf-back img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.42;
  filter: saturate(0.8) contrast(0.96);
}

body.albums-page .album-leaf-front {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 5px 5px 8px;
  background: #faf8f0;
  box-shadow:
    0 8px 16px rgba(48, 42, 34, 0.08),
    0 1px 4px rgba(48, 42, 34, 0.04);
}

body.albums-page .album-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #faf8f0;
}

body.albums-page .album-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(0.98);
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.85s ease, filter 0.85s ease;
}

body.albums-page .album-slip:hover .album-cover img,
body.albums-page .album-slip:focus-visible .album-cover img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1.03);
}

body.albums-page .album-slip-copy {
  min-width: 0;
  padding: 6px 2px 0;
  text-align: center;
}

body.albums-page .album-slip h3 {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #4f5a48;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.albums-page .album-slip p {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  color: #6a7464;
}

body.albums-page .album-slip-meta {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #7a8374;
}

@media (prefers-reduced-motion: no-preference) {
  body.albums-page .album-slip:hover .album-leaf-back:nth-child(1),
  body.albums-page .album-slip:focus-visible .album-leaf-back:nth-child(1) {
    transform: rotate(-2.8deg) translate(-2px, -2px);
  }

  body.albums-page .album-slip:hover .album-leaf-back:nth-child(2),
  body.albums-page .album-slip:focus-visible .album-leaf-back:nth-child(2) {
    transform: rotate(2.4deg) translate(2px, -1px);
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 721px) {
  body.albums-page .album-list:not(.is-motion) .album-book {
    transition: transform 0.82s ease;
  }

  body.albums-page .album-list:not(.is-motion) .album-slip:nth-child(4n + 1) .album-book {
    transform: rotate(-1.6deg);
  }

  body.albums-page .album-list:not(.is-motion) .album-slip:nth-child(4n + 2) .album-book {
    transform: rotate(1.35deg);
  }

  body.albums-page .album-list:not(.is-motion) .album-slip:nth-child(4n + 3) .album-book {
    transform: rotate(-0.9deg);
  }

  body.albums-page .album-list:not(.is-motion) .album-slip:nth-child(4n + 4) .album-book {
    transform: rotate(1.15deg);
  }

  body.albums-page .album-list:not(.is-motion) .album-slip:hover .album-book,
  body.albums-page .album-list:not(.is-motion) .album-slip:focus-visible .album-book {
    transform: translateY(-3px) rotate(0deg);
  }
}

.album-head {
  margin: 0 0 28px;
}

.album-back {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.album-head h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 24px;
}

.album-shot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  min-width: 0;
}

.album-shot:hover,
.album-shot:focus,
.album-shot:focus-visible {
  outline: none;
  transform: none;
  box-shadow: none;
}

.album-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.album-shot span {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}

@media (max-width: 800px) {
  .album-grid {
    grid-template-columns: 1fr;
  }

  body.albums-page .album-list {
    grid-template-columns: repeat(auto-fill, minmax(0, 146px));
    gap: 22px 16px;
  }
}

@media (max-width: 720px) {
  body.albums-page .album-book,
  body.albums-page .album-slip:nth-child(odd) .album-book,
  body.albums-page .album-slip:nth-child(even) .album-book,
  body.albums-page .album-slip:hover .album-book,
  body.albums-page .album-slip:focus-visible .album-book {
    transform: none;
  }

  body.albums-page .album-slip:hover .album-book,
  body.albums-page .album-slip:focus-visible .album-book {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.albums-page .album-book,
  body.albums-page .album-leaf-back,
  body.albums-page .album-cover img {
    transform: none;
    transition: none;
    filter: none;
  }
}

.photo-layer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.photo-layer[hidden] {
  display: none !important;
}

.photo-layer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(233, 235, 228, 0.72);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.photo-layer-panel {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(920px, calc(100% - 40px));
  margin: 0;
  padding: 16px 16px 12px;
  border: 1px solid rgba(138, 118, 90, 0.22);
  border-radius: 2px;
  box-shadow: none;
  background: rgba(255, 252, 246, 0.94);
  text-align: center;
}

.photo-layer-panel img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(860px, calc(100vw - 88px));
  max-height: min(78vh, 860px);
  margin: 0 auto;
  object-fit: contain;
}

.photo-layer-panel figcaption {
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.photo-layer-panel button {
  margin: 0 8px;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  color: var(--leaf);
  letter-spacing: 0.16em;
  cursor: pointer;
  appearance: none;
}

@media (prefers-reduced-motion: no-preference) {
  .photo-layer {
    opacity: 0;
    transition: opacity 0.18s ease;
  }

  .photo-layer.is-open {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-layer, .photo-layer-panel {
    transition: none;
  }
}
