@font-face {
  font-family: Playwrite;
  src: url('/home-assets/playwrite-no-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Allura;
  src: url('/home-assets/allura-regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --page: #fbf9f5;
  --surface: #fffefd;
  --stage: #f2efeb;
  --ink: #26363e;
  --secondary: #50616a;
  --line: #d9d3cf;
  --accent: #2e657e;
  --shadow: 0 12px 32px rgba(69, 60, 55, .12);
  color-scheme: light;
  font-family: Playwrite, sans-serif;
  font-synthesis: none;
  font-weight: 400;
  scroll-padding-top: 28px;
  scrollbar-color: var(--secondary) var(--page);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); }
body { margin: 0; background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; }
body, body * { -webkit-user-select: none; user-select: none; }
.page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--page) url('/home-assets/artbook-continuation-20261016.webp') center top / 100% auto repeat-y;
}
.page::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 950px;
  z-index: 0;
  background: url('/home-assets/artbook-botanical-20261016.webp') center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  pointer-events: none;
}
.page > * { position: relative; z-index: 1; }
button, a { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
a { text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.topbar {
  max-width: 1460px;
  height: 72px;
  margin: auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark { font-family: Allura, Playwrite, cursive; font-size: 28px; line-height: 1; }
main { max-width: 1460px; margin: auto; padding: 0 24px; }

.cover {
  display: grid;
  grid-template-columns: minmax(0, 1.78fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  height: min(665px, calc(100dvh - 92px));
  min-height: 540px;
}
.cover:not(.has-photos) { grid-template-columns: 1fr; }
.cover-main {
  min-height: 0;
  position: relative;
  overflow: visible;
  isolation: isolate;
}
.names {
  z-index: 4;
  position: absolute;
  top: 48px;
  left: 8px;
  margin: 0;
  font-family: Allura, Playwrite, cursive;
  font-size: clamp(78px, 7vw, 116px);
  line-height: .9;
  letter-spacing: -.012em;
  font-weight: 400;
  white-space: nowrap;
}
.names > span { display: block; }
.name-second { margin: 4px 0 0 38px; }
.name-join { color: var(--accent); }
.portrait {
  z-index: 3;
  position: absolute;
  left: 17%;
  bottom: 49px;
  width: min(780px, 88%);
  margin: 0;
  pointer-events: none;
}
.portrait-motion { transform: translate3d(var(--portrait-x, 0px), var(--portrait-y, 0px), 0); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.portrait img { width: 100%; height: auto; display: block; }
.cover-photos {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(12px, 1.2vw, 20px);
  padding: 8px 0;
}
.cover-photo {
  display: block;
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 6px 26px rgba(90, 74, 69, .06);
}
.cover-photo:first-child { grid-column: 1 / -1; }
.cover-photo:only-child { grid-row: 1 / -1; }
.cover-photo:nth-child(2):last-child { grid-column: 1 / -1; }
.cover-photo img { position: absolute; top: 8px; left: 8px; display: block; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; background: var(--stage); }
.cover-photo.is-error { background: var(--stage); }
.cover-photo.is-error img { display: none; }
.cover-photo.is-error::after { content: 'Photo unavailable · Retry'; position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; color: var(--ink); text-align: center; font-size: 13px; }
.time {
  z-index: 5;
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  min-height: 78px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 254, 252, .78);
}
.time h2 { margin: 0; font-size: 15px; font-weight: 400; }
.day-line { margin: 0; display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.day-line #days { display: inline-block; min-width: 4ch; text-align: right; font-size: 49px; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.day-unit { font-size: 15px; }
.clock { display: flex; align-items: baseline; gap: 6px; font-size: 18px; font-variant-numeric: tabular-nums; }
.clock > span:not(.clock-separator) { white-space: nowrap; }
.clock #hours, .clock #minutes, .clock #seconds { display: inline-block; min-width: 2ch; text-align: right; }
.clock-unit { margin-left: 3px; color: var(--secondary); font-size: 12px; }
.clock-separator { color: var(--secondary); }
.time time { grid-column: 2 / -1; }

.collection { padding: 40px 0 120px; }
.section-line { display: flex; align-items: center; gap: 24px; margin-bottom: 14px; }
.section-line::before { content: ''; order: 2; flex: 1; height: 1px; background: var(--line); }
.section-line h2 { order: 1; margin: 0; font-family: Allura, Playwrite, cursive; font-size: 47px; line-height: 1.15; font-weight: 400; }
.collection-actions { order: 3; display: flex; gap: 10px; }
.collection-actions button {
  min-height: 44px;
  padding: 0 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
  font-size: 13px;
}
.collection-actions button:hover { border-color: var(--accent); color: var(--accent); }
.collection-actions button:active { transform: translateY(1px); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(240px, 23vw, 340px); gap: 14px; }
.photo { display: block; grid-column: span 4; min-width: 0; min-height: 0; overflow: hidden; padding: 6px; border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; }
.gallery > .photo:nth-child(1) { grid-column: span 6; }
.gallery > .photo:nth-child(2), .gallery > .photo:nth-child(3) { grid-column: span 3; }
.album-spread { display: grid; grid-column: 1 / -1; grid-row: span 2; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; min-height: 0; }
.album-spread--right { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.album-spread .photo { min-height: 0; position: relative; z-index: 1; box-shadow: 0 6px 18px rgba(69, 60, 55, .09); }
.album-spread .photo--spread-lead { grid-row: 1 / span 2; padding: 8px; }
.album-spread--left .photo--spread-lead { grid-column: 1; }
.album-spread--left .photo:nth-child(2) { grid-column: 2; grid-row: 1; }
.album-spread--left .photo:nth-child(3) { grid-column: 2; grid-row: 2; }
.album-spread--right .photo:nth-child(1) { grid-column: 1; grid-row: 1; }
.album-spread--right .photo:nth-child(2) { grid-column: 1; grid-row: 2; }
.album-spread--right .photo--spread-lead { grid-column: 2; }
.album-spread .photo--spread-side { padding: 8px 8px 18px; }
.album-spread .photo--tilt-left { transform: rotate(-.8deg); }
.album-spread .photo--tilt-right { transform: rotate(.8deg); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.album-spread .photo--spread-lead img { object-fit: contain; background: var(--stage); }
@media (hover: hover) { .photo:hover img { transform: scale(1.045); } }
.photo.is-error::after { content: 'Photo unavailable · Retry'; display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; font-size: 13px; background: var(--surface); }
.photo.is-error img { display: none; }
.gallery-empty { margin: 0; padding: 90px 20px; border-radius: 12px; background: var(--surface); color: var(--secondary); text-align: center; font-size: 15px; }

.flow-overlay { position: fixed; inset: 0; z-index: 20; overflow: hidden; background: var(--page); }
.flow-head {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  pointer-events: none;
}
.flow-actions { display: flex; align-items: center; gap: 8px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); pointer-events: auto; }
.round-button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.round-button:hover { border-color: var(--accent); }
.flow-scene { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.flow-scene.dragging { cursor: grabbing; }
.flow-scene:focus-visible { outline-offset: -5px; }
#flow-wall { position: absolute; inset: 0; }
.flow-photo { position: absolute; top: 0; left: 0; padding: 0; overflow: hidden; min-height: 0; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); cursor: zoom-in; will-change: transform; }
.flow-photo img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.flow-photo:focus-visible { outline-offset: 2px; z-index: 200 !important; }
.dragging .flow-photo { cursor: grabbing; }

.viewer { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 18px 32px; border: 0; background: var(--page) url('/home-assets/artbook-continuation-20261016.webp') center top / 100% auto repeat-y; color: var(--ink); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(7, 21, 30, .8); }
.viewer-top, .viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex: none; width: min(100%, 1360px); margin-inline: auto; font-size: 13px; }
.viewer-top { min-height: 54px; }
.viewer-actions { display: flex; align-items: center; gap: 20px; }
.viewer-actions a { display: grid; place-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.viewer-actions a:hover, .viewer-bottom button:hover { border-color: var(--accent); color: var(--accent); }
.viewer-stage { position: relative; display: flex; justify-content: center; align-items: center; flex: 0 1 auto; width: min(100%, calc((100dvh - 170px) * var(--photo-ratio, 1))); max-width: 1360px; max-height: calc(100dvh - 170px); aspect-ratio: var(--photo-ratio, 1); min-height: 0; margin: auto; overflow: auto; border: 10px solid var(--surface); outline: 1px solid var(--line); background: var(--stage); box-shadow: 0 18px 46px rgba(69, 60, 55, .12); overscroll-behavior: contain; touch-action: pan-y pinch-zoom; }
.viewer-stage img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-stage p { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 10px 18px; border-radius: 10px; background: var(--surface); font-size: 13px; }
.viewer-bottom { padding: 0 0 10px; }
.viewer-bottom button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.viewer-top #viewer-index { color: var(--secondary); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  .wordmark { animation: album-ink .58s .04s cubic-bezier(.16, 1, .3, 1) both; }
  .name-youmi { animation: album-ink .72s .12s cubic-bezier(.16, 1, .3, 1) both; }
  .name-join { animation: album-ink .72s .24s cubic-bezier(.16, 1, .3, 1) both; }
  .name-remi { animation: album-ink .72s .36s cubic-bezier(.16, 1, .3, 1) both; }
  .portrait { animation: album-portrait .78s .16s cubic-bezier(.16, 1, .3, 1) both; }
  .time { animation: album-ink .62s .48s cubic-bezier(.16, 1, .3, 1) both; }
  .cover-photo { animation: album-photo .72s cubic-bezier(.16, 1, .3, 1) both; }
  .cover-photo:nth-child(1) { animation-delay: .24s; }
  .cover-photo:nth-child(2) { animation-delay: .36s; }
  .cover-photo:nth-child(3) { animation-delay: .48s; }
  .viewer[open] .viewer-stage { animation: viewer-page .38s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes album-ink {
  from { opacity: 0; filter: blur(4px); transform: translateY(5px); }
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}
@keyframes album-portrait {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes album-photo {
  from { opacity: 0; clip-path: inset(0 0 22% 0); transform: translateY(12px); }
  to { opacity: 1; clip-path: inset(0 0 0 0); transform: translateY(0); }
}
@keyframes viewer-page {
  from { opacity: .72; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .cover { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); height: 620px; min-height: 0; }
  .names { top: 76px; left: 0; font-size: clamp(58px, 7.6vw, 84px); }
  .name-second { margin-left: 22px; }
  .portrait { left: 4%; bottom: 96px; width: min(600px, 105%); }
  .cover-photos { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-rows: minmax(0, 1fr); padding: 0; }
  .cover-photo:first-child { grid-column: auto; }
  .cover-photo:nth-child(2):last-child { grid-column: auto; }
  .cover-photo:only-child { grid-row: auto; }
  .time { grid-template-columns: 1fr auto; gap: 5px 8px; min-height: 108px; padding: 10px; }
  .time h2 { grid-column: 1 / -1; font-size: 13px; }
  .day-line #days { font-size: 38px; }
  .day-unit { font-size: 13px; }
  .clock { gap: 3px; font-size: 14px; }
  .clock-unit { margin-left: 2px; font-size: 10px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 12px; }
  .gallery > .photo, .gallery > .photo:nth-child(1), .gallery > .photo:nth-child(2), .gallery > .photo:nth-child(3) { grid-column: span 1; }
  .album-spread, .album-spread--right { grid-row: span 3; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
  .album-spread--right { grid-template-rows: minmax(0, 1fr) minmax(0, 2fr); }
  .album-spread--left .photo--spread-lead { grid-column: 1 / -1; grid-row: 1; }
  .album-spread--left .photo:nth-child(2) { grid-column: 1; grid-row: 2; }
  .album-spread--left .photo:nth-child(3) { grid-column: 2; grid-row: 2; }
  .album-spread--right .photo:nth-child(1) { grid-column: 1; grid-row: 1; }
  .album-spread--right .photo:nth-child(2) { grid-column: 2; grid-row: 1; }
  .album-spread--right .photo--spread-lead { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 700px) {
  .page { background-image: url('/home-assets/artbook-continuation-mobile-20261016.webp'); }
  .page::before { height: 760px; background-image: url('/home-assets/artbook-botanical-mobile-20261016.webp'); background-size: 100% auto; background-position: center top; }
  .topbar { height: 56px; padding: 0 16px; }
  .wordmark { font-size: 23px; }
  main { padding: 0 12px; }
  .cover { grid-template-columns: 1fr; gap: 12px; height: auto; min-height: 0; }
  .cover-main { height: clamp(500px, calc(100dvh - 90px), 610px); }
  .names { top: 20px; left: 8px; font-size: clamp(63px, 16vw, 86px); }
  .name-second { margin-left: 22px; }
  .portrait { left: 3%; bottom: 88px; width: 94%; }
  .cover-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 124px; gap: 8px; padding: 0 4px; }
  .cover-photo:first-child { grid-column: auto; }
  .cover-photo:only-child { grid-row: auto; }
  .cover-photo { padding: 4px; }
  .cover-photo img { top: 4px; left: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
  .time { min-height: 94px; grid-template-columns: 1fr auto; gap: 6px 8px; padding: 8px 6px; }
  .time h2 { grid-column: 1 / -1; font-size: 13px; }
  .day-line #days { font-size: 36px; }
  .day-unit { font-size: 13px; }
  .clock { gap: 3px; font-size: 14px; }
  .clock-unit { margin-left: 2px; font-size: 10px; }
  .collection { padding: 32px 0 88px; }
  .section-line { gap: 12px; margin: 0 4px 18px; }
  .section-line h2 { font-size: 41px; }
  .collection-actions button { padding: 0 14px; }
  .gallery { grid-auto-rows: calc((100vw - 34px) / 2 / 1.08); gap: 10px; }
  .gallery > .photo { padding: 4px; }
  .album-spread { gap: 10px; }
  .album-spread .photo--spread-lead { padding: 6px; }
  .album-spread .photo--spread-side { padding: 5px 5px 12px; }
  .flow-head { top: max(10px, env(safe-area-inset-top)); right: 10px; }
  .flow-actions { gap: 6px; }
  .round-button { width: 42px; height: 42px; }
  .viewer { padding: max(10px, env(safe-area-inset-top)) 12px 10px; background-image: url('/home-assets/artbook-continuation-mobile-20261016.webp'); }
  .viewer-actions { gap: 12px; }
  .viewer-actions a, .viewer-bottom button { padding-inline: 12px; }
  .viewer-stage { margin-block: auto; border-width: 6px; }
  .viewer-top, .viewer-bottom { font-size: 12px; }
  .viewer-bottom { padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}
@media (max-width: 410px) {
  .time { grid-template-columns: 1fr; min-height: 128px; gap: 4px; padding: 8px; }
  .time h2 { grid-column: 1; }
  .clock { justify-self: start; }
  .portrait { bottom: 116px; }
}
@media (max-width: 370px) {
  .names { font-size: 58px; }
  .cover-photos { grid-template-rows: 100px; }
  .day-line #days { font-size: 34px; }
  .clock { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .portrait-motion { transform: none; }
}
