/* ============================================================
   首页 · 一间真的可以走近的暮色书房
   ============================================================ */

.home-page {
  background: #090b10;
  color: #f4e7d2;
}

.home-page .site-header,
.home-page .theme-orbit {
  color: #f4e7d2;
}

.home-page .primary-nav a {
  color: #cbbba5;
}

.home-page .primary-nav a:hover,
.home-page .primary-nav a[aria-current="page"] {
  color: #f4e7d2;
}

/* First room */

.room-hero {
  position: relative;
  min-height: max(48rem, 100svh);
  overflow: hidden;
  isolation: isolate;
  background: #17130f;
}

.room-picture {
  position: absolute;
  z-index: -4;
  inset: 0;
  background: #18130f url("../images/twilight-study.webp") center center / cover no-repeat;
  transform: scale(1.025) translate3d(var(--room-x, 0), var(--room-y, 0), 0);
  transition: transform 1.2s var(--ease), filter .65s;
  will-change: transform;
}

.room-picture::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 7, 7, .74) 0%, rgba(8, 7, 7, .44) 32%, rgba(8, 7, 7, .04) 61%, rgba(8, 7, 7, .08) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, .34), transparent 26%, transparent 70%, rgba(5, 5, 6, .48));
  content: "";
}

[data-theme="day"] .room-picture {
  filter: brightness(1.16) saturate(.78) contrast(.9);
}

[data-theme="day"] .room-picture::before {
  background:
    linear-gradient(90deg, rgba(26, 22, 19, .58) 0%, rgba(26, 22, 19, .25) 34%, transparent 67%),
    linear-gradient(180deg, rgba(10, 8, 7, .18), transparent 70%, rgba(10, 8, 7, .38));
}

.room-grain {
  position: absolute;
  z-index: -3;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.room-dust {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.room-dust i {
  position: absolute;
  width: .18rem;
  height: .18rem;
  border-radius: 50%;
  background: #f3d59c;
  box-shadow: 0 0 .75rem rgba(243, 213, 156, .85);
  animation: drift 8s ease-in-out infinite;
  opacity: .48;
}

.room-dust i:nth-child(1) { top: 31%; left: 34%; animation-delay: -1s; }
.room-dust i:nth-child(2) { top: 44%; left: 42%; animation-delay: -5s; animation-duration: 10s; }
.room-dust i:nth-child(3) { top: 63%; left: 27%; animation-delay: -2.8s; animation-duration: 7s; }
.room-dust i:nth-child(4) { top: 22%; left: 55%; animation-delay: -4s; animation-duration: 11s; }
.room-dust i:nth-child(5) { top: 74%; left: 51%; animation-delay: -7s; animation-duration: 9s; }

.hero-copy {
  position: absolute;
  z-index: 5;
  top: clamp(12rem, 30vh, 19rem);
  left: var(--gutter);
  width: min(33rem, 42vw);
  color: #f4e7d2;
}

.hero-copy h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(4.7rem, 8.2vw, 8.4rem);
  line-height: .95;
  letter-spacing: .01em;
  text-shadow: 0 .2rem 1.7rem rgba(0, 0, 0, .32);
}

.hero-copy > p {
  max-width: 31rem;
  margin: 0;
  color: #dfcfba;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.65vw, 1.35rem);
  letter-spacing: .08em;
  line-height: 1.9;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.7rem;
}

.hero-actions .paper-action {
  border-color: rgba(245, 229, 205, .72);
  color: #f7e9d5;
}

.hero-actions .paper-action:hover {
  background: #f4e7d2;
  color: #18120e;
}

.hero-actions .line-action { color: #ead9c1; }

/* Spatial navigation */

.room-hotspots {
  position: absolute;
  z-index: 9;
  inset: var(--header-h) 0 8rem;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(249, 232, 205, .72);
  border-radius: 50%;
  color: #f5e3c8;
  pointer-events: auto;
  transition: transform .35s var(--ease), border-color .3s, background .3s;
}

.hotspot::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .38rem;
  height: .38rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 .8rem rgba(245, 210, 150, .75);
  content: "";
}

.hotspot::after {
  position: absolute;
  inset: -.55rem;
  border: 1px solid rgba(245, 226, 198, .12);
  border-radius: 50%;
  content: "";
  animation: breathe 3.4s ease-in-out infinite;
}

.hotspot span {
  position: absolute;
  top: 50%;
  right: calc(100% + .85rem);
  width: max-content;
  padding: .35rem .55rem;
  transform: translate(.4rem, -50%);
  border: 1px solid rgba(240, 220, 191, .16);
  background: rgba(10, 9, 9, .72);
  color: #f1dfc5;
  font-size: .75rem;
  letter-spacing: .1em;
  opacity: 0;
  transition: transform .3s var(--ease), opacity .2s;
  pointer-events: none;
}

.hotspot:hover,
.hotspot:focus-visible {
  transform: scale(1.16);
  border-color: #f5d28e;
  background: rgba(230, 183, 107, .12);
}

.hotspot:hover span,
.hotspot:focus-visible span {
  transform: translate(0, -50%);
  opacity: 1;
}

.hotspot-board { top: 18%; right: 15.5%; }
.hotspot-books { top: 31%; right: 5.7%; }
.hotspot-desk { top: 67%; right: 20%; }
.hotspot-window { top: 12%; right: 30%; }

.secret-star {
  position: absolute;
  z-index: 12;
  right: 22%;
  bottom: 31%;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
}

.secret-star span,
.secret-star span::before,
.secret-star span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
}

.secret-star span {
  width: .34rem;
  height: .34rem;
  transform: translate(-50%, -50%) rotate(45deg);
  background: #f9cf78;
  box-shadow: 0 0 .75rem #eeb55d, 0 0 1.8rem rgba(238, 181, 93, .52);
  animation: breathe 3s ease-in-out infinite;
}

.secret-star span::before,
.secret-star span::after {
  width: 1.2rem;
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, #f8d797, transparent);
}

.secret-star span::after { transform: translate(-50%, -50%) rotate(90deg); }

.secret-star.is-remembered span {
  background: #f7b8bd;
  box-shadow: 0 0 .8rem #dc919a, 0 0 2rem rgba(220, 145, 154, .55);
}

.room-edge-note {
  position: absolute;
  z-index: 14;
  right: var(--gutter);
  bottom: 0;
  display: grid;
  grid-template-columns: auto minmax(15rem, 31rem) auto;
  align-items: center;
  gap: clamp(1rem, 2.7vw, 2.7rem);
  width: min(57rem, calc(100% - 2 * var(--gutter)));
  min-height: 7rem;
  padding: 1.15rem 1.8rem 1.15rem 2.2rem;
  background:
    linear-gradient(100deg, transparent 0 1.2%, rgba(90, 65, 47, .05) 1.2% 1.4%, transparent 1.4%),
    #f0e4d2;
  color: #302921;
  box-shadow: 0 -1rem 3rem rgba(0, 0, 0, .22);
  clip-path: polygon(1.4% 6%, 100% 0, 98.4% 100%, 0 95%);
}

.room-edge-note time {
  color: #895965;
  font-size: .74rem;
  font-weight: 680;
  letter-spacing: .12em;
  white-space: nowrap;
}

.room-edge-note p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.75;
}

.room-edge-note a {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid rgba(57, 44, 33, .27);
  border-radius: 50%;
}

.room-edge-note svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

/* Desk */

.desk-section {
  position: relative;
  padding: clamp(8rem, 12vw, 12rem) 0 clamp(7rem, 11vw, 11rem);
  overflow: hidden;
}

.desk-section::before {
  position: absolute;
  top: 3rem;
  right: -8rem;
  width: 28rem;
  height: 28rem;
  border: 1px solid rgba(123, 86, 65, .12);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2.7rem var(--paper), inset 0 0 0 calc(2.7rem + 1px) rgba(123, 86, 65, .08);
  content: "";
  opacity: .6;
}

.desk-shell { position: relative; }

.desk-heading {
  display: grid;
  grid-template-columns: 6rem minmax(0, 44rem);
  align-items: start;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.section-number {
  margin: .35rem 0 0;
  color: var(--rose-deep);
  font-size: .72rem;
  font-weight: 720;
  letter-spacing: .2em;
}

.desk-heading h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 5vw, 5.1rem);
  line-height: 1.09;
}

.desk-heading p {
  max-width: 36rem;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.95;
}

.desk-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(18rem, .78fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: start;
  margin-left: min(6rem, 7vw);
}

.latest-memory {
  position: relative;
  min-height: 31rem;
  padding: clamp(2.2rem, 5vw, 4.7rem);
  border: 1px solid rgba(73, 51, 34, .14);
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(163, 95, 108, .17) 12% calc(12% + 1px), transparent calc(12% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 2.15rem, rgba(72, 51, 36, .06) 2.15rem calc(2.15rem + 1px)),
    #f7efe2;
  box-shadow: var(--shadow-paper);
  transform: rotate(-.65deg);
}

.latest-memory::before {
  position: absolute;
  top: -1.1rem;
  left: 16%;
  width: 6.6rem;
  height: 2.1rem;
  transform: rotate(-2deg);
  background: rgba(209, 181, 142, .65);
  content: "";
  mix-blend-mode: multiply;
}

.latest-memory .memory-label {
  margin: 0 0 2.6rem;
  color: var(--rose-deep);
  font-size: .76rem;
  font-weight: 720;
  letter-spacing: .16em;
}

.latest-memory h3 {
  max-width: 30rem;
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 3.8vw, 3.45rem);
  line-height: 1.15;
}

.latest-memory .memory-copy {
  max-width: 38rem;
  margin: 0 0 2.2rem;
  color: #50463e;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 2;
  white-space: pre-line;
}

.latest-memory button {
  padding: .6rem 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--rose-deep);
  cursor: pointer;
  font-size: .86rem;
  letter-spacing: .1em;
}

.drawer-pocket-home {
  position: relative;
  min-height: 25rem;
  margin-top: 6rem;
  padding: 3.3rem clamp(1.8rem, 3.2vw, 3.1rem);
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, .035), transparent 38%),
    #3f2d31;
  color: #f2e2d0;
  box-shadow: 1rem 1.2rem 0 rgba(64, 43, 46, .12), var(--shadow-deep);
}

.drawer-pocket-home::after {
  position: absolute;
  right: 2.2rem;
  bottom: -4.2rem;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(232, 195, 146, .18);
  border-radius: 50%;
  content: "";
}

.drawer-thread {
  position: absolute;
  top: -2rem;
  left: 2.7rem;
  width: 1px;
  height: 5.4rem;
  background: var(--rose);
}

.drawer-thread::after {
  position: absolute;
  bottom: -.25rem;
  left: -.25rem;
  width: .5rem;
  height: .5rem;
  transform: rotate(45deg);
  background: var(--gold);
  content: "";
}

.drawer-kicker {
  margin: 0 0 1.4rem;
  color: #d8a5aa;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .17em;
}

.drawer-pocket-home h3 {
  max-width: 18rem;
  margin: 0 0 2.2rem;
  font-size: clamp(1.7rem, 2.7vw, 2.65rem);
  line-height: 1.35;
}

.drawer-pull {
  padding: .7rem 0;
  border-bottom: 1px solid rgba(244, 226, 204, .5);
  background: none;
  color: #f4dfc4;
  cursor: pointer;
  font-size: .84rem;
  letter-spacing: .11em;
}

.drawer-letter-home {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .5s var(--ease), opacity .35s, margin .5s;
}

.drawer-letter-home > * { overflow: hidden; }

.drawer-letter-home p {
  margin: 1.8rem 0 1.2rem;
  color: #d7c3b4;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.85;
}

.drawer-letter-home a {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: max-content;
  color: var(--gold-bright);
  font-size: .84rem;
  letter-spacing: .1em;
}

.drawer-pocket-home.is-open .drawer-letter-home {
  grid-template-rows: 1fr;
  opacity: 1;
}

/* Story shelf */

.home-stories {
  position: relative;
  padding: clamp(7rem, 11vw, 11rem) 0;
  overflow: hidden;
  border-top: 1px solid rgba(240, 217, 184, .1);
  background:
    linear-gradient(90deg, rgba(217, 181, 125, .04) 1px, transparent 1px) 0 0 / 8rem 100%,
    radial-gradient(circle at 82% 24%, rgba(37, 68, 109, .34), transparent 29rem),
    #0d1119;
  color: #efe1cd;
}

.home-stories::after {
  position: absolute;
  right: 4vw;
  bottom: -18rem;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(229, 189, 125, .1);
  border-radius: 50%;
  content: "";
}

.story-heading {
  display: grid;
  grid-template-columns: 6rem minmax(0, 42rem);
  margin-bottom: clamp(4rem, 7vw, 6.5rem);
}

.story-heading .section-number { grid-row: 1 / 4; color: #cf9399; }

.story-heading h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  line-height: 1.05;
}

.story-heading p:last-child { color: #b8aa99; }

.story-catalog-home {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(19rem, .78fr) minmax(0, 1.22fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: stretch;
  margin-left: min(6rem, 7vw);
}

.story-index {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(233, 212, 182, .16);
}

.story-row {
  position: relative;
  display: grid;
  width: 100%;
  padding: 1.45rem .8rem 1.45rem 1.3rem;
  border-bottom: 1px solid rgba(233, 212, 182, .14);
  background: transparent;
  color: #c8baa8;
  text-align: left;
  cursor: pointer;
  transition: color .3s, padding-left .4s var(--ease), background .3s;
}

.story-row::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: .22rem;
  transform: scaleY(0);
  background: var(--story-color, var(--rose));
  content: "";
  transform-origin: bottom;
  transition: transform .35s var(--ease);
}

.story-row:hover,
.story-row.is-selected {
  padding-left: 1.75rem;
  background: rgba(242, 221, 190, .035);
  color: #f2e2cc;
}

.story-row.is-selected::before { transform: scaleY(1); }

.story-row-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.35;
}

.story-row-sub {
  display: block;
  margin-top: .28rem;
  color: #8f8477;
  font-size: .72rem;
  line-height: 1.55;
}

.story-preview {
  position: relative;
  min-height: 38rem;
  padding: clamp(3rem, 6vw, 6rem);
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(151, 90, 102, .16) 10% calc(10% + 1px), transparent calc(10% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 2.25rem, rgba(70, 52, 38, .055) 2.25rem calc(2.25rem + 1px)),
    #f2e7d5;
  color: #302820;
  box-shadow: var(--shadow-deep);
}

.preview-ribbon {
  position: absolute;
  top: 0;
  right: clamp(2rem, 7vw, 5.7rem);
  width: 1.15rem;
  height: 7.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%);
}

.story-preview h3,
.story-preview h2 {
  max-width: 34rem;
  margin: 1.7rem 0 1rem;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1.02;
}

.preview-epigraph {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.8;
}

.paper-rule {
  width: min(15rem, 45%);
  height: 1px;
  margin: 2rem 0;
  background: var(--line-paper);
}

.preview-copy {
  max-width: 38rem;
  margin-bottom: 2rem;
  color: #5d5147;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 2;
}

.story-preview .paper-action { color: #5e3c45; }

/* Fragment wall */

.home-fragments {
  position: relative;
  padding: clamp(7rem, 11vw, 11rem) 0 clamp(8rem, 13vw, 13rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(107, 65, 70, .25), transparent 27rem),
    #151215;
  color: #eee0cf;
}

.fragment-heading {
  display: grid;
  grid-template-columns: 6rem minmax(0, 43rem);
  margin-bottom: clamp(5rem, 9vw, 9rem);
}

.fragment-heading .section-number { grid-row: 1 / 4; color: #d199a0; }

.fragment-heading h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 1.06;
}

.fragment-heading p:last-child { color: #afa097; }

.fragment-table {
  position: relative;
  margin-left: min(6rem, 7vw);
}

.fragment-thread {
  position: absolute;
  z-index: 0;
  top: 4rem;
  right: -15vw;
  left: -15vw;
  height: 1px;
  transform: rotate(-3deg);
  background: linear-gradient(90deg, transparent, #b87581 12%, #b87581 86%, transparent);
  opacity: .7;
}

.fragment-thread::before,
.fragment-thread::after {
  position: absolute;
  top: -.25rem;
  width: .5rem;
  height: .5rem;
  transform: rotate(45deg);
  background: #dfb66e;
  content: "";
}

.fragment-thread::before { left: 25%; }
.fragment-thread::after { right: 22%; }

.home-fragment-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(10rem, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
  align-items: start;
}

.home-fragment {
  position: relative;
  min-height: 20rem;
  padding: 2rem 1.5rem;
  border: 0;
  background: #efe3d1;
  color: #382f29;
  text-align: left;
  box-shadow: 0 1.3rem 3rem rgba(0, 0, 0, .24);
  cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .35s;
}

.home-fragment:nth-child(1) { transform: translateY(1.8rem) rotate(-2.4deg); }
.home-fragment:nth-child(2) { transform: translateY(-1rem) rotate(1.4deg); }
.home-fragment:nth-child(3) { transform: translateY(3.4rem) rotate(-.8deg); }
.home-fragment:nth-child(4) { transform: translateY(.2rem) rotate(2deg); }
.home-fragment:nth-child(5) { transform: translateY(2.3rem) rotate(-1.4deg); }

.home-fragment::before {
  position: absolute;
  top: -.75rem;
  left: 50%;
  width: 3.7rem;
  height: 1.45rem;
  transform: translateX(-50%) rotate(-1deg);
  background: rgba(200, 170, 132, .62);
  content: "";
}

.home-fragment:hover,
.home-fragment:focus-visible {
  z-index: 3;
  transform: translateY(-.6rem) rotate(0) scale(1.025);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, .34);
}

.fragment-label {
  display: block;
  margin-bottom: 1.7rem;
  color: var(--rose-deep);
  font-size: .7rem;
  font-weight: 720;
  letter-spacing: .13em;
}

.fragment-peek {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.9;
}

.fragment-more {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin: 6.5rem 0 0;
  padding-bottom: .55rem;
  border-bottom: 1px solid rgba(239, 220, 194, .42);
  color: #dac7b1;
  font-size: .83rem;
  letter-spacing: .1em;
}

/* Timeline */

.home-timeline {
  position: relative;
  padding: clamp(8rem, 12vw, 12rem) 0;
  overflow: hidden;
}

.timeline-heading {
  display: grid;
  grid-template-columns: 6rem minmax(0, 44rem);
  margin-bottom: clamp(5rem, 9vw, 9rem);
}

.timeline-heading .section-number { grid-row: 1 / 4; }

.timeline-heading h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 1.06;
}

.timeline-preview {
  position: relative;
  margin-left: min(6rem, 7vw);
}

.timeline-axis {
  position: absolute;
  top: .65rem;
  bottom: .65rem;
  left: 9.5rem;
  width: 1px;
  overflow: hidden;
  background: rgba(100, 71, 51, .14);
}

.timeline-axis span {
  display: block;
  width: 100%;
  height: calc(var(--timeline-progress, 0) * 100%);
  background: linear-gradient(var(--rose), var(--gold));
  transition: height 1.1s var(--ease);
}

.home-moments {
  display: grid;
  gap: 0;
}

.home-moment {
  display: grid;
  grid-template-columns: 8rem 3rem minmax(0, 1fr);
  min-height: 8rem;
  color: var(--ink);
  opacity: .34;
  transform: translateY(1rem);
  transition: opacity .65s, transform .65s var(--ease);
}

.home-moment.is-seen {
  opacity: 1;
  transform: translateY(0);
}

.home-moment::before {
  grid-column: 2;
  align-self: start;
  justify-self: center;
  width: .68rem;
  height: .68rem;
  margin-top: .35rem;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 1px var(--rose);
  content: "";
}

.home-moment-memory,
.home-moment > .moment-static {
  display: contents;
}

.home-moment .when {
  grid-column: 1;
  grid-row: 1;
  padding-top: .35rem;
  color: var(--rose-deep);
  font-size: .72rem;
  font-weight: 680;
  letter-spacing: .08em;
  line-height: 1.6;
}

.home-moment .what {
  grid-column: 3;
  grid-row: 1;
  max-width: 47rem;
  padding: 0 0 2.5rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.9;
  text-align: left;
}

.home-moment-memory {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.home-moment-memory .what {
  text-decoration-color: rgba(143, 93, 103, .32);
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-underline-offset: .45rem;
}

.timeline-ending {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin: 3.5rem 0 0 min(18.5rem, 24vw);
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: 1.05rem;
}

/* Responsive */

@media (max-width: 1100px) {
  .room-picture { background-position: 62% center; }

  .hotspot-board { right: 9%; }
  .hotspot-books { right: 3%; }
  .hotspot-desk { right: 12%; }
  .hotspot-window { right: 24%; }

  .desk-spread,
  .story-catalog-home {
    gap: 3rem;
    margin-left: 0;
  }

  .home-fragment-list {
    grid-template-columns: repeat(3, minmax(10rem, 1fr));
  }

  .home-fragment:nth-child(n) { transform: none; }
  .home-fragment:nth-child(2),
  .home-fragment:nth-child(5) { transform: translateY(2rem); }
}

@media (max-width: 820px) {
  .room-hero { min-height: max(45rem, 100svh); }
  .hero-copy { top: 25%; width: min(33rem, 58vw); }
  .room-edge-note { right: 1.2rem; width: calc(100% - 2.4rem); }
  .room-edge-note time { display: none; }

  .desk-heading,
  .story-heading,
  .fragment-heading,
  .timeline-heading {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .desk-spread,
  .story-catalog-home {
    grid-template-columns: 1fr;
  }

  .drawer-pocket-home {
    width: min(31rem, 88%);
    margin: 0 0 0 auto;
  }

  .story-index {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .story-row { min-height: 6.7rem; }

  .home-fragment-list { grid-template-columns: repeat(2, 1fr); }

  .timeline-preview { margin-left: 0; }
  .timeline-ending { margin-left: 11.5rem; }
}

@media (max-width: 600px) {
  .home-page .site-header {
    background: linear-gradient(to bottom, rgba(6, 6, 7, .76), transparent);
  }

  .room-hero {
    min-height: 51rem;
  }

  .room-picture {
    background-position: 65% center;
    transform: scale(1.035);
  }

  .room-picture::before {
    background:
      linear-gradient(180deg, rgba(7, 7, 8, .67) 0%, rgba(7, 7, 8, .22) 28%, transparent 58%, rgba(7, 7, 8, .55) 100%),
      linear-gradient(90deg, rgba(7, 7, 8, .54), transparent 76%);
  }

  .hero-copy {
    top: 8.7rem;
    left: var(--gutter);
    width: calc(100% - 2 * var(--gutter));
  }

  .hero-copy h1 {
    margin-bottom: .9rem;
    font-size: clamp(4.2rem, 22vw, 6.3rem);
  }

  .hero-copy > p {
    max-width: 19rem;
    font-size: 1.02rem;
    line-height: 1.8;
  }

  .hero-actions {
    gap: 1.35rem;
    margin-top: 1.8rem;
  }

  .room-hotspots {
    inset: 5rem 0 7rem;
  }

  .hotspot { width: 2.75rem; height: 2.75rem; }
  .hotspot span { display: none; }
  .hotspot-board { top: 50%; right: 11%; }
  .hotspot-books { top: 36%; right: 5%; }
  .hotspot-desk { top: 73%; right: 21%; }
  .hotspot-window { top: 28%; right: 26%; }

  .secret-star {
    right: 23%;
    bottom: 26%;
  }

  .room-edge-note {
    grid-template-columns: 1fr auto;
    min-height: 6.7rem;
    padding: 1rem 1.25rem 1rem 1.45rem;
  }

  .room-edge-note p {
    font-size: .88rem;
    line-height: 1.65;
  }

  .desk-section {
    padding-top: 7.5rem;
  }

  .desk-heading,
  .story-heading,
  .fragment-heading,
  .timeline-heading {
    display: block;
  }

  .section-number { margin-bottom: 1.3rem; }

  .desk-heading h2,
  .story-heading h2,
  .fragment-heading h2,
  .timeline-heading h2 {
    font-size: clamp(2.45rem, 13vw, 3.8rem);
  }

  .latest-memory {
    min-height: 0;
    padding: 2.5rem 1.65rem 2.7rem 2.5rem;
  }

  .latest-memory h3 { font-size: 2.25rem; }
  .latest-memory .memory-copy { font-size: 1rem; }

  .drawer-pocket-home {
    width: 94%;
    min-height: 22rem;
  }

  .story-catalog-home { gap: 2rem; }

  .story-index {
    display: flex;
    flex-direction: row;
    gap: .55rem;
    padding: 0 0 .85rem;
    overflow-x: auto;
    border: 0;
    scroll-snap-type: x mandatory;
  }

  .story-row {
    flex: 0 0 72%;
    min-height: 7.4rem;
    padding: 1rem;
    border: 1px solid rgba(233, 212, 182, .14);
    scroll-snap-align: start;
  }

  .story-row:hover,
  .story-row.is-selected { padding-left: 1rem; }

  .story-preview {
    min-height: 32rem;
    padding: 2.6rem 1.7rem 3rem 2.55rem;
  }

  .story-preview h3,
  .story-preview h2 { font-size: 2.75rem; }

  .home-fragments { padding-bottom: 9rem; }

  .home-fragment-list {
    display: flex;
    gap: 1.2rem;
    padding: 1.2rem .2rem 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .home-fragment {
    flex: 0 0 78%;
    min-height: 18rem;
    transform: none !important;
    scroll-snap-align: center;
  }

  .fragment-more { margin-top: 1.7rem; }

  .home-moment {
    grid-template-columns: 1.2rem minmax(0, 1fr);
    min-height: 0;
    padding-bottom: 2.4rem;
  }

  .timeline-axis { left: .34rem; }

  .home-moment::before {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
    width: .62rem;
    height: .62rem;
  }

  .home-moment .when {
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 .45rem 1rem;
  }

  .home-moment .what {
    grid-column: 2;
    grid-row: 2;
    padding: 0 0 0 1rem;
    font-size: 1rem;
  }

  .timeline-ending { margin-left: 2.2rem; }
}

@media (min-width: 1500px) {
  .room-picture { background-position: center 48%; }
  .hero-copy { left: max(var(--gutter), calc((100vw - 100rem) / 2)); }
}

@media (prefers-reduced-motion: reduce) {
  .room-picture { transform: scale(1.025); }
}
