@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #f8f1ee;
  --paper-deep: #f2e7e5;
  --ink: #392a36;
  --muted: #81727e;
  --pink: #c782a7;
  --lavender: #8c689b;
  --line: #ddced5;
  --sans: Arial, Helvetica, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 12% 19%, rgb(167 127 150 / 4%), transparent 38%), radial-gradient(ellipse at 90% 60%, rgb(197 141 172 / 5%), transparent 42%);
}
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.museum-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(100% - 48px, 1450px);
  min-height: 102px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  border-bottom: 1px solid rgb(106 81 99 / 8%);
}
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 18px; text-decoration: none; }
.brand__mark { display: grid; width: 56px; height: 56px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #f0e4e7; }
.brand__mark svg { width: 31px; fill: none; stroke: #493343; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.brand__copy { display: grid; gap: 2px; }
.brand__name { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: .22em; line-height: 1.25; text-transform: uppercase; }
.brand__motto { color: var(--muted); font-family: var(--serif); font-size: 17px; font-style: italic; letter-spacing: .02em; }
.header-actions { position: relative; display: flex; align-items: center; gap: 14px; }
.icon-button { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid rgb(124 91 113 / 8%); border-radius: 50%; background: rgb(255 252 250 / 64%); cursor: pointer; transition: background-color 160ms ease, transform 160ms ease; }
.icon-button:hover { background: #fffaf9; transform: translateY(-1px); }
.icon-button:focus-visible, .view-toggle__button:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }
.icon-button svg { width: 23px; fill: none; stroke: #433641; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.icon-button--more { background: #f0e5e7; }
.icon-button--more svg { fill: #514151; stroke: none; }
.quick-menu { position: absolute; top: calc(100% + 9px); right: 0; display: grid; min-width: 210px; gap: 2px; padding: 8px; border: 1px solid rgb(124 91 113 / 12%); border-radius: 14px; background: #fffaf8; box-shadow: 0 12px 28px rgb(71 49 64 / 12%); }
.quick-menu a { padding: 11px 12px; border-radius: 9px; color: var(--ink); font-size: 14px; text-decoration: none; }
.quick-menu a:hover { background: var(--paper-deep); }

.search-panel { width: min(100% - 48px, 1450px); margin: 16px auto 0; padding: 16px 19px 19px; border: 1px solid rgb(124 91 113 / 10%); border-radius: 14px; background: rgb(255 252 250 / 76%); }
.search-panel label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.search-panel input { width: 100%; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line); outline: none; background: transparent; color: var(--ink); font-size: 16px; }
.search-panel input:focus { border-color: var(--lavender); }

main { width: 100%; }
.story-feature {
  position: relative;
  display: grid;
  width: min(100% - 48px, 1450px);
  min-height: 408px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(35px, 5vw, 88px);
  margin: 0 auto;
  padding: 22px 0 32px;
}
.story-feature__photo-wrap { position: relative; min-width: 0; padding: 7px 22px 10px 0; }
.story-photo { position: relative; width: 100%; aspect-ratio: 1.23; margin: 0; padding: 11px; transform: rotate(-1.2deg); background: #fcf8f4; box-shadow: 0 8px 24px rgb(81 60 69 / 11%); }
.story-photo::after { position: absolute; inset: 11px; border: 1px solid rgb(255 255 255 / 38%); content: ""; pointer-events: none; }
.story-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.story-photo figcaption { position: absolute; top: 10%; left: 10%; max-width: 145px; color: #fff6f0; font-family: var(--serif); font-size: clamp(17px, 2.2vw, 26px); font-style: italic; line-height: 1.22; text-shadow: 0 1px 10px rgb(26 17 30 / 43%); transform: rotate(-9deg); }
.mini-prints { position: absolute; right: -3px; bottom: -1px; display: flex; align-items: flex-end; gap: 9px; }
.mini-prints figure { width: clamp(75px, 9vw, 107px); height: clamp(92px, 11vw, 123px); margin: 0; padding: 6px 6px 13px; background: #fbf8f4; box-shadow: 0 5px 13px rgb(61 43 54 / 17%); }
.mini-prints figure:first-child { transform: rotate(8deg); }
.mini-prints figure:last-child { transform: translateY(12px) rotate(10deg); }
.mini-prints img { width: 100%; height: 100%; object-fit: cover; }
.story-feature__copy { position: relative; align-self: center; padding: 16px 0 24px; }
.section-index { display: flex; align-items: center; gap: 12px; margin: 0 0 7px; color: #7f6c78; font-family: var(--serif); font-size: 18px; }
.section-index i { display: block; width: 60px; height: 1px; background: #b8a2ae; }
.story-feature h1, .memories h2 { margin: 0; font-family: var(--serif); font-size: clamp(37px, 5.3vw, 58px); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.story-feature__description { margin: 13px 0 0; color: #796e77; font-family: var(--serif); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.round-link { display: grid; width: 48px; height: 48px; place-items: center; margin-top: 24px; border-radius: 50%; background: #f2dfeb; color: #4b3549; text-decoration: none; transition: background-color 160ms ease, transform 160ms ease; }
.round-link:hover { background: #e9cce0; transform: translateX(2px); }
.round-link svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.story-note { position: absolute; right: 4px; bottom: -9px; max-width: 145px; color: #8b7587; font-family: var(--serif); font-size: 16px; font-style: italic; line-height: 1.3; transform: rotate(-8deg); }

.memories { width: min(100% - 88px, 1370px); margin: 10px auto 0; padding: 24px 0 36px; }
.memories__heading .section-index { margin-bottom: 5px; }
.memories h2 { font-size: clamp(34px, 4.7vw, 51px); }
.memories__description { margin: 9px 0 0; color: var(--muted); font-size: clamp(15px, 1.8vw, 18px); }
.archive-controls { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 22px 0 18px; }
.chapter-count { margin: 0; color: #716674; font-family: var(--serif); font-size: 17px; font-style: italic; }
.view-toggle { display: flex; align-items: center; gap: 10px; }
.view-toggle__button { display: grid; width: 46px; height: 46px; place-items: center; border: 0; border-radius: 14px; background: transparent; color: #534651; cursor: pointer; }
.view-toggle__button svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.view-toggle__button.is-active { background: #8f639c; color: white; box-shadow: 0 5px 11px rgb(102 69 113 / 19%); }
.chapter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 18px; }
.chapter-card { display: block; min-width: 0; overflow: hidden; border: 1px solid rgb(124 95 109 / 6%); border-radius: 15px; background: rgb(255 252 249 / 60%); text-decoration: none; transition: transform 180ms ease, background-color 180ms ease; }
.chapter-card:hover { transform: translateY(-3px); background: #fffaf8; }
.chapter-card:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; }
.chapter-card__image-wrap { display: block; margin: 8px 8px 0; overflow: hidden; border-radius: 8px; background: #e7dce0; }
.chapter-card__image-wrap > img, .chapter-card__video-cover { display: flex; width: 100%; aspect-ratio: 1.88; align-items: center; justify-content: center; object-fit: cover; transition: transform 250ms ease; }
.chapter-card__image-wrap > img { display: block; }
.chapter-card:hover .chapter-card__image-wrap > img { transform: scale(1.025); }
.chapter-card__video-cover { position: relative; flex-direction: column; gap: 7px; background: #e9dee2; color: #725e76; }
.chapter-card__mood { font-size: 25px; }
.chapter-card__play { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgb(255 255 255 / 52%); border-radius: 50%; background: rgb(255 250 247 / 78%); }
.chapter-card__play svg { width: 13px; fill: currentColor; stroke: none; }
.chapter-card__video-label { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.chapter-card__body { display: grid; gap: 4px; padding: 9px 13px 13px; }
.chapter-card__topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chapter-card__number { color: var(--pink); font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: .08em; line-height: 1.05; text-transform: uppercase; }
.chapter-card__arrow { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #f2e2eb; color: #594257; }
.chapter-card__arrow svg { width: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.chapter-card__name { overflow: hidden; font-family: var(--serif); font-size: 18px; font-weight: 600; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.chapter-card__subtitle { overflow: hidden; color: #756679; font-family: var(--serif); font-size: 14px; font-style: italic; text-overflow: ellipsis; white-space: nowrap; }
.chapter-card__excerpt { display: -webkit-box; overflow: hidden; min-height: 34px; color: #817680; font-size: 12px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.chapter-card__meta { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.chapter-card__meta i { padding: 0 3px; color: #b89fac; font-style: normal; }
.chapter-card__media { display: flex; align-items: center; justify-content: space-between; color: #8a7987; font-size: 10px; }
.chapter-card__media span { font-size: 13px; }
.chapter-grid.is-list { grid-template-columns: 1fr; gap: 10px; }
.chapter-grid.is-list .chapter-card { display: grid; grid-template-columns: minmax(130px, 220px) 1fr; align-items: center; }
.chapter-grid.is-list .chapter-card__image-wrap { margin: 8px; }
.chapter-grid.is-list .chapter-card__image-wrap > img, .chapter-grid.is-list .chapter-card__video-cover { aspect-ratio: 1.6; }
.chapter-grid.is-list .chapter-card__body { grid-template-columns: 1fr auto; padding: 10px 18px 10px 7px; }
.chapter-grid.is-list .chapter-card__topline { grid-column: 1 / -1; }
.chapter-grid.is-list .chapter-card__excerpt, .chapter-grid.is-list .chapter-card__meta { grid-column: 1 / -1; }
.empty-state { padding: 30px 0; color: var(--muted); text-align: center; }

.bottom-dock { position: sticky; z-index: 5; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; width: min(100% - 48px, 580px); min-height: 78px; align-items: center; justify-content: space-around; gap: 10px; margin: 20px auto 14px; padding: 9px 16px; border: 1px solid rgb(125 92 111 / 8%); border-radius: 999px; background: rgb(252 246 243 / 94%); box-shadow: 0 8px 26px rgb(74 52 65 / 10%); backdrop-filter: blur(10px); }
.bottom-dock__item { display: grid; min-width: 94px; min-height: 58px; align-content: center; justify-items: center; gap: 3px; border-radius: 18px; color: #6f626d; font-size: 12px; text-decoration: none; }
.bottom-dock__item svg { width: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.bottom-dock__item.is-current { background: #f3e3eb; color: #5d4262; }
.bottom-dock__item span { white-space: nowrap; }
.page-end { position: absolute; top: 0; }

@media (min-width: 1100px) {
  .story-feature { min-height: 442px; }
  .story-feature__photo-wrap { padding-right: 26px; }
  .story-feature__copy { padding-left: 4px; }
  .memories { margin-top: 6px; }
}

@media (max-width: 760px) {
  .museum-header { width: calc(100% - 32px); min-height: 82px; }
  .brand { gap: 11px; }
  .brand__mark { width: 45px; height: 45px; }
  .brand__mark svg { width: 26px; }
  .brand__name { font-size: 15px; letter-spacing: .16em; }
  .brand__motto { font-size: 14px; }
  .header-actions { gap: 8px; }
  .icon-button { width: 42px; height: 42px; }
  .icon-button svg { width: 20px; }
  .story-feature { width: calc(100% - 32px); min-height: auto; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; padding: 18px 0 30px; }
  .story-feature__photo-wrap { padding: 5px 12px 7px 0; }
  .story-photo { aspect-ratio: .92; padding: 8px; }
  .story-photo::after { inset: 8px; }
  .story-photo img { object-position: 51% center; }
  .story-photo figcaption { top: 10%; left: 9%; max-width: 100px; font-size: 18px; }
  .mini-prints { right: -1px; bottom: 0; gap: 6px; }
  .mini-prints figure { width: 68px; height: 84px; padding: 5px 5px 10px; }
  .story-feature__copy { padding: 8px 0 22px; }
  .section-index { gap: 9px; margin-bottom: 5px; font-size: 15px; }
  .section-index i { width: 39px; }
  .story-feature h1 { font-size: clamp(30px, 6vw, 43px); }
  .story-feature__description { margin-top: 9px; font-size: clamp(14px, 2.5vw, 17px); line-height: 1.45; }
  .round-link { width: 39px; height: 39px; margin-top: 15px; }
  .story-note { right: 0; bottom: -2px; max-width: 93px; font-size: 13px; }
  .memories { width: calc(100% - 36px); margin-top: 0; padding-top: 11px; }
  .memories h2 { font-size: clamp(32px, 5.7vw, 42px); }
  .memories__description { max-width: 530px; margin-top: 7px; }
  .archive-controls { margin: 16px 0 13px; }
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .chapter-card__body { gap: 4px; padding: 8px 10px 10px; }
  .chapter-card__number { font-size: 14px; }
  .chapter-card__name { font-size: 16px; }
  .chapter-card__subtitle { font-size: 13px; }
  .chapter-card__excerpt { font-size: 11px; }
  .chapter-card__arrow { width: 30px; height: 30px; }
  .chapter-grid.is-list .chapter-card { grid-template-columns: minmax(105px, 165px) 1fr; }
  .bottom-dock { width: min(100% - 34px, 520px); min-height: 70px; }
  .bottom-dock__item { min-width: 90px; min-height: 54px; }
}

@media (max-width: 420px) {
  .museum-header { min-height: 74px; }
  .brand__mark { width: 39px; height: 39px; }
  .brand__mark svg { width: 23px; }
  .brand { gap: 8px; }
  .brand__name { font-size: 13px; letter-spacing: .13em; }
  .brand__motto { max-width: 180px; font-size: 12px; }
  .header-actions { gap: 5px; }
  .icon-button { width: 37px; height: 37px; }
  .story-feature { gap: 17px; }
  .story-feature__photo-wrap { padding-right: 7px; }
  .story-photo { aspect-ratio: .82; padding: 6px; }
  .story-photo::after { inset: 6px; }
  .story-photo figcaption { max-width: 77px; font-size: 15px; }
  .mini-prints { gap: 4px; }
  .mini-prints figure { width: 55px; height: 70px; padding: 4px 4px 8px; }
  .story-feature h1 { font-size: 29px; }
  .story-feature__description { font-size: 13px; }
  .story-note { max-width: 75px; font-size: 11px; }
  .round-link { width: 35px; height: 35px; }
  .memories h2 { font-size: 30px; }
  .memories__description { font-size: 14px; }
  .chapter-grid { gap: 10px; }
  .chapter-card__image-wrap { margin: 6px 6px 0; }
  .chapter-card__body { padding-right: 8px; padding-left: 8px; }
  .chapter-card__arrow { width: 27px; height: 27px; }
  .chapter-card__name { font-size: 15px; }
  .chapter-card__subtitle { font-size: 12px; }
  .chapter-card__excerpt { min-height: 31px; font-size: 10px; }
  .chapter-card__meta, .chapter-card__media { font-size: 9px; }
  .bottom-dock { min-height: 65px; padding: 6px 8px; }
  .bottom-dock__item { min-width: 82px; min-height: 51px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
