/* Winter A composition, with C's floral punctuation and paper album. */
:root {
  --page: #f0f3fc;
  --surface: #fcfaf7;
  --stage: #e6eaf3;
  --ink: #596581;
  --secondary: #636e88;
  --line: #c4cddd;
  --accent: #566995;
  --shadow: 0 8px 24px rgba(76, 89, 119, .09);
}
.page { min-height: 100dvh; background: var(--page) url('/home-assets/winter/snow.webp') center top / 960px 960px repeat; }
.page::before { display: none; }
main { max-width: 1120px; padding: 0 36px; }
.winter-header { padding: 56px 20px 14px; text-align: center; }
.winter-title { display: flex; align-items: center; justify-content: center; gap: 20px; }
.winter-title h1 { margin: 0; font: 400 clamp(42px, 4.3vw, 60px)/1.35 Allura, cursive; }
.winter-header nav { margin-top: 10px; font-size: 14px; }
.winter-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--line); }
.winter-header nav a:hover { color: var(--accent); text-decoration-color: currentColor; }
.ornament { display: block; flex: none; pointer-events: none; background-image: url('/home-assets/winter/ornaments.webp'); background-repeat: no-repeat; }
.ornament--flower { width: 72px; height: 74px; background-size: 1038px 391px; background-position: -9px -205px; }
.flower-mirror { transform: scaleX(-1); }
.winter-title .ornament--flower { width: 55px; height: 58px; background-size: 800px 301px; background-position: -7px -158px; }
.winter-cover, .cover:not(.has-photos) { display: block; height: auto; min-height: 0; }
.winter-scene { width: min(100%, 820px); height: 425px; position: relative; margin: 0 auto; }
.portrait { position: absolute; left: 46px; bottom: 0; width: 465px; margin: 0; }
.portrait::before { content: ''; position: absolute; inset: 42px 8px 0; background: url('/home-assets/winter/garden.webp') center / cover; opacity: .65; mask-image: linear-gradient(transparent, #000 15%, #000 80%, transparent), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-composite: intersect; -webkit-mask-image: linear-gradient(transparent, #000 15%, #000 80%, transparent), linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); -webkit-mask-composite: source-in; }
.portrait-motion { position: relative; mask-image: linear-gradient(#000 0%, #000 84%, transparent 100%); -webkit-mask-image: linear-gradient(#000 0%, #000 84%, transparent 100%); }
.portrait img { width: 100%; height: auto; }
.birthday { position: absolute; right: -20px; top: 96px; width: 274px; text-align: center; }
.birthday p { margin: 0 0 4px; font: 400 32px/1.3 Allura, cursive; }
.birthday time { font-size: 13px; }
.birthday img { display: block; width: 100%; height: auto; margin-top: 14px; }
.winter-time { display: flex; justify-content: center; align-items: center; gap: 24px; margin: 20px auto 0; }
.time { position: static; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 26px; min-height: 70px; padding: 12px 0; background: none; border: 0; }
.time h2 { font-size: 15px; }
.day-line { gap: 8px; line-height: 1.5; }
.day-line #days { width: 4.6ch; min-width: 4.6ch; font-size: 32px; letter-spacing: 0; }
.day-unit { font-size: 14px; }
.clock { font-size: 16px; gap: 5px; }
.clock #hours, .clock #minutes, .clock #seconds { width: 2.6ch; min-width: 2.6ch; }
.clock-unit { font-size: 11px; }
.ornament--sprig { width: 74px; height: 56px; background-size: 1038px 391px; background-position: -163px -120px; }
.sprig-mirror { transform: scaleX(-1); }
.ornament--ribbon { width: 440px; max-width: 80%; height: 42px; background-size: 1038px 391px; background-position: -360px -177px; margin: 10px auto 0; }
.collection { padding: 30px 0 100px; }
.section-line { gap: 18px; margin-bottom: 30px; }
.section-line h2 { display: flex; align-items: center; gap: 8px; font-size: 46px; }
.section-line h2 .ornament--flower { width: 55px; height: 58px; background-size: 800px 301px; background-position: -7px -158px; }
.collection-actions button { padding: 8px 4px; background: none; border: 0; border-radius: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--line); }
.collection-actions button:hover { text-decoration-color: currentColor; }
.gallery { grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 21vw, 260px); gap: 32px 25px; padding: 8px; }
.photo, .gallery > .photo:nth-child(1), .gallery > .photo:nth-child(2), .gallery > .photo:nth-child(3) { grid-column: span 4; }
.photo, .album-spread .photo, .album-spread .photo--spread-lead, .album-spread .photo--spread-side {
  position: relative; padding: 4px; border: 15px solid transparent; background: var(--surface); background-clip: padding-box;
  border-image: url('/home-assets/winter/frame.webp') 88 70 / 15px / 0 stretch;
  overflow: visible; box-shadow: none; transform: rotate(var(--tilt, -1.3deg)); transition: transform .45s ease;
}
.gallery > .photo:nth-child(3n + 2) { --tilt: 1.8deg; }
.gallery > .photo:nth-child(3n) { --tilt: -.6deg; }
.photo img, .album-spread .photo--spread-lead img { object-fit: contain; background: var(--surface); }
.photo--tilt-left { --tilt: -1.3deg; }
.photo--tilt-right { --tilt: 1.3deg; }
.album-spread { gap: 24px; }
@media (hover: hover) { .photo:hover, .album-spread .photo:hover { transform: rotate(0deg) translateY(-3px); } .photo:hover img { transform: none; } }
.photo:focus-visible { transform: rotate(0deg); z-index: 2; }
.photo.is-error::after { position: absolute; inset: 0; }
.viewer { background: var(--page) url('/home-assets/winter/snow.webp') center / 960px 960px repeat; }
.viewer-stage { box-shadow: var(--shadow); }
.flow-overlay { background: var(--page); }
@media (prefers-reduced-motion: no-preference) {
  .winter-title, .birthday { animation: winter-appear 1.2s cubic-bezier(.16, 1, .3, 1) both; }
  .birthday { animation-delay: .2s; }
}
@keyframes winter-appear { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  main { padding-inline: 28px; }
  .winter-scene { width: 700px; max-width: 100%; height: 390px; }
  .portrait { left: 0; width: 430px; bottom: 0; }
  .birthday { right: 0; width: 190px; top: 98px; }
  .winter-time { gap: 10px; }
  .time { column-gap: 18px; }
  .time h2 { width: 100%; text-align: center; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 26px 20px; }
  .gallery > .photo, .gallery > .photo:nth-child(1), .gallery > .photo:nth-child(2), .gallery > .photo:nth-child(3) { grid-column: span 1; }
  .album-spread { gap: 20px; }
}
@media (max-width: 600px) {
  main { padding-inline: 18px; }
  .winter-header { padding: 30px 12px 8px; }
  .winter-title { gap: 7px; }
  .winter-title h1 { font-size: clamp(36px, 9vw, 45px); }
  .winter-title .ornament--flower { width: 36px; height: 40px; background-size: 540px 203px; background-position: -4px -106px; }
  .winter-header nav { margin-top: 2px; font-size: 12px; }
  .winter-scene { height: clamp(280px, 76vw, 410px); }
  .portrait { left: -10px; width: 78%; bottom: 0; }
  .portrait::before { inset: 26px 4px 0; }
  .birthday { width: 31%; right: -2px; top: 17%; }
  .birthday p { font-size: 26px; }
  .birthday time { font: italic 14px/1.5 Georgia, serif; white-space: nowrap; }
  .birthday img { width: 138%; max-width: none; margin: 12px 0 0 -19%; }
  .winter-time { margin-top: 8px; gap: 0; }
  .time { width: calc(100% - 72px); min-height: 124px; gap: 3px 10px; padding: 8px 0; }
  .time h2 { width: 100%; font-size: 12px; }
  .day-line { justify-content: center; width: 100%; }
  .day-line #days { font-size: 29px; }
  .day-unit { font-size: 12px; }
  .clock { font-size: 13px; gap: 3px; }
  .clock-unit { font-size: 9px; }
  .ornament--sprig { width: 36px; height: 31px; background-size: 519px 196px; background-position: -82px -60px; }
  .ornament--ribbon { width: 275px; max-width: 90%; height: 30px; background-size: 650px 245px; background-position: -225px -110px; margin-top: 4px; }
  .collection { padding: 24px 0 70px; }
  .section-line { gap: 10px; margin: 0 0 24px; }
  .section-line h2 { font-size: 38px; gap: 1px; }
  .section-line h2 .ornament--flower { width: 36px; height: 40px; background-size: 540px 203px; background-position: -4px -106px; }
  .collection-actions button { font-size: 12px; }
  .gallery { padding: 4px; grid-auto-rows: calc((100vw - 60px) / 2 * 1.05); gap: 24px 16px; }
  .photo, .gallery > .photo, .album-spread .photo, .album-spread .photo--spread-lead, .album-spread .photo--spread-side { padding: 2px; border-width: 9px; border-image-width: 9px; }
  .album-spread { gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { .winter-title, .birthday { animation: none; } }
