@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/caveat-latin.woff2") format("woff2");
}

.wall-back-link { display: inline-block; min-height: 44px; font-size: .9rem; }
/* The home page fills the window and never scrolls (2026-10-03, Jon's experiment; before, the
   wall was a window tall below the header, scrolled down to): the header at the top, then the
   wall, edge to edge, as tall as what's left. */
html:has(.memory-wall-page) { overflow: hidden; overscroll-behavior: none; }
/* Not a scroll container either (clip): whatever might stick out past the window can't shift the
   page sideways, where nothing would bring it back (2026-10-04). */
html:has(.memory-wall-page) body { overflow: hidden; overflow: clip; overscroll-behavior: none; }
#app:has(.memory-wall-page) { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.site-main:has(> .memory-wall-page) {
    display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; max-width: none;
    padding: var(--space-6) 0 0;
}
.memory-wall-page { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.wall-top { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--space-5); }
.wall-heading { margin: 0 0 1.25rem; text-align: center; }
.wall-eyebrow { margin: 0 0 .2rem; color: #b9a27f; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; }
.wall-heading h1 { margin: 0; font-size: clamp(2.1rem,4.2vw,3rem); font-weight: 500; letter-spacing: .01em; text-shadow: 0 2px 30px #e5b2660f; }
/* Above the name, which sits behind this row when the header is compact (faded, it would
   otherwise be painted over it). */
.wall-bar { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.wall-bar-actions { display: flex; align-items: center; gap: .75rem; }
/* "+" only where it's compact on a narrow screen; its tooltip only then. */
.wall-add-plus { display: none; font-size: 1.45rem; font-weight: 400; line-height: 1; }
.wall-add.tip::after { display: none; }
/* The wall's instructions fold away when the header is compact. */
.wall-instructions-row { display: grid; grid-template-rows: 1fr; padding: .9rem 0; }
.wall-instructions { min-height: 0; overflow: hidden; margin: 0; color: var(--ink-soft); font-size: .8rem; }
/* A phone's or touch screen's own instructions, and Explore wall (Stephen, 2026-10-04): there only. */
.wall-touch-instructions,.wall-explore-trigger { display: none; }
.wall-frame { position: relative; flex: 1; min-height: 0; }
.memory-wall {
    position: absolute; inset: 0; overflow: hidden;
    background-color: #201c18;
    background-image:
        radial-gradient(ellipse at 88% 0%,#ab793c22,transparent 54%),
        radial-gradient(ellipse at 18% 90%,#8f67311a,transparent 60%),
        radial-gradient(#bea37b0d .7px,transparent .7px);
    background-size: 100% 100%,100% 100%,6px 6px;
    border-top: 1px solid var(--rule-strong); touch-action: none; cursor: grab;
    /* Dragging moves memories, not a text selection. */
    user-select: none; -webkit-user-select: none;
    box-shadow: inset 0 0 110px #0005;
}
.memory-wall:active { cursor: grabbing; }
.memory-wall:focus-visible { outline-offset: -3px; }
/* The wall has no edges: the canvas is only the point memories are placed from. */
.memory-wall-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.wall-polaroid {
    position: absolute; width: 238px; padding: 12px 12px 17px; border: 0; background: linear-gradient(125deg,#f4eddf,#e9e0ce); color: #443c31;
    box-shadow: 0 14px 24px #0006, 0 3px 6px #0004; transform: rotate(var(--wall-angle)); cursor: pointer; text-align: center;
    transition: box-shadow .2s ease; line-height: 1.3;
}
.wall-polaroid:hover { box-shadow: 0 20px 35px #0008, 0 0 0 1px #ccb38440; }
/* Hidden in the first render, before the observer can start the entrance. The image and
   its paper arrive together, rather than fading twice while the photo is still decoding. */
@media (prefers-reduced-motion: no-preference) {
    .wall-polaroid[data-wall-arrival="pending"] { opacity: 0; }
    .wall-polaroid[data-wall-arrival="entering"] { will-change: transform, opacity; }
    .wall-polaroid[data-wall-arrival="entering"] img.fade.is-loaded { transition: none; }
}
/* Made with AI: a quiet mark before the byline; the polaroid's label says so in words. */
.wall-ai { margin-right: .25em; opacity: .75; }
/* Above any memory that was moved (each one moved lies on top of the last). */
.wall-polaroid:focus-visible { outline-color: #a2d5f7; outline-width: 4px; z-index: 10000; }
.wall-polaroid-image { position: relative; display: block; height: 185px; overflow: hidden; background: #d8d0c2; }
/* A memory with other views: how many, quietly, at the picture's corner. */
.wall-views-mark { position: absolute; top: 6px; right: 6px; padding: 1px 7px; color: #f5ecdd; background: rgb(32 28 24 / 78%); border-radius: 999px; font: 600 .7rem/1.5 var(--font-sans); }
.wall-polaroid-image img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.wall-polaroid-title { display: block; font: 600 1.65rem/1.2 "Caveat","Segoe Print",cursive; margin-top: .6rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wall-polaroid-author { display: block; color: #665a4a; margin-top: .35rem; font-size: .63rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wall-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #eee5d6; padding: 2rem; text-align: center; }
.wall-empty h2 { font-size: 2rem; }
.wall-empty p { color: #c9bcaa; }
/* The wall's own controls, inside it (2026-10-03, Jon; they were under it, with the count of
   memories): zoom at the bottom right, more memories at the bottom in the middle. */
.wall-zoom,.wall-more,.wall-explore-trigger {
    position: absolute; bottom: var(--space-4); z-index: 2; color: var(--ink);
    background: rgb(26 24 22 / 86%); border: 1px solid var(--rule-strong); border-radius: 999px;
    box-shadow: 0 8px 24px #0007; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.wall-zoom { right: var(--space-4); display: flex; align-items: center; overflow: hidden; }
.wall-zoom button { min-width: 44px; min-height: 44px; padding: 0 .8rem; color: inherit; background: none; border: 0; font: 1.2rem/1 var(--font-sans); cursor: pointer; }
.wall-zoom button:hover { background: rgb(255 255 255 / 8%); }
.wall-zoom button:focus-visible { outline-offset: -3px; }
.wall-zoom button:nth-child(2) { font-size: .8rem; border-inline: 1px solid var(--rule); }
.wall-more { left: 50%; transform: translateX(-50%); min-height: 44px; padding: 0 var(--space-5); font: 500 .9rem var(--font-sans); cursor: pointer; }
.wall-more:hover:not(:disabled) { background: var(--paper-raised); }
.wall-more:disabled { opacity: .7; cursor: default; }
/* Explore wall, on a phone or touch screen (Stephen, 2026-10-04): the way in at the wall's bottom
   right while its photos are a list; exploring, a row over the wall with the way out. */
.wall-explore-trigger { right: var(--space-4); align-items: center; gap: .45rem; min-height: 44px; padding: 0 var(--space-4); font: 500 .85rem var(--font-sans); cursor: pointer; }
.wall-explore-trigger:hover { background: var(--paper-raised); }
.wall-explore-bar {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    min-height: 3.5rem; padding: 0 var(--space-4); background: var(--paper); border-top: 1px solid var(--rule);
}
.wall-explore-bar p { margin: 0; color: var(--ink-soft); font-size: .8rem; }
.wall-explore-done { min-width: 64px; }
/* The grid scrolls within the wall (the page doesn't), with a quiet scrollbar. */
.memory-wall-grid { overflow: auto; touch-action: auto; cursor: auto; scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }
.memory-wall-grid .memory-wall-canvas { position: relative; display: grid; grid-template-columns: repeat(auto-fill,minmax(215px,1fr)); gap: 28px; width: 100%; height: auto !important; min-height: 100%; padding: 30px; transform: none !important; align-content: start; }
/* Its last row clear of "Load more memories". */
.wall-frame:has(.wall-more) .memory-wall-grid .memory-wall-canvas { padding-bottom: 5.5rem; }
.memory-wall-grid .wall-polaroid { position: relative; top: auto !important; left: auto !important; width: 100%; transform: rotate(calc(var(--wall-angle) / 2)); }
/* The background stays where it was, without a page scrollbar clipping the phone close-up. */
html:has(.wall-dialog[open]) { overflow: hidden; }
.wall-dialog {
    --wall-chrome: 220px;
    --carousel-width: min(700px,calc(100vw - 96px),calc((100dvh - var(--wall-chrome)) * .95));
    --carousel-height: min(800px,calc(100dvh - var(--wall-chrome)),calc(var(--carousel-width) * 1.3));
    border: 0; padding: max(8px,env(safe-area-inset-top)) 24px max(8px,env(safe-area-inset-bottom));
    margin: auto; background: transparent; color: #f3ebdd;
    width: 100vw; max-width: 100vw; max-height: 100dvh; overflow-x: hidden; overflow-y: auto;
    overscroll-behavior: contain;
}
.wall-dialog.has-other-views { --wall-chrome: 292px; }
.wall-dialog::backdrop { background: #0f0c09d9; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.wall-dialog[data-wall-motion="opening"]::backdrop { animation: wall-backdrop-in .48s ease both; }
.wall-dialog[data-wall-motion="closing"]::backdrop { animation: wall-backdrop-out .32s ease both; }
@keyframes wall-backdrop-in { from { background-color: #0f0c0900; backdrop-filter: blur(0); } }
@keyframes wall-backdrop-out { to { background-color: #0f0c0900; backdrop-filter: blur(0); } }
.wall-focus-header { display: flex; align-items: center; justify-content: space-between; margin: 0 auto 8px; max-width: 760px; }
.wall-focus-header p { font-size: .8rem; color: #cbbda9; margin: 0; }
.wall-close,.wall-step { background: #302923; color: #f5ecdd; border: 1px solid #665747; border-radius: 50%; width: 44px; height: 44px; font: 1.75rem/1 sans-serif; cursor: pointer; }
.wall-focus-stage {
    display: flex; justify-content: center; position: relative; isolation: isolate; touch-action: pan-y pinch-zoom;
    overflow: clip; padding-block: 24px; margin-block: -24px;
}
.wall-dialog[data-wall-motion] .wall-focus-stage { overflow: visible; }
.wall-flip-scene {
    perspective: 1600px; width: var(--carousel-width); height: var(--carousel-height); flex: 0 0 auto;
    transform-origin: center; touch-action: pan-y pinch-zoom; position: relative; z-index: 3;
}
.wall-neighbor {
    position: absolute; top: 24px; left: calc(50% - var(--carousel-width) / 2); z-index: 1;
    width: var(--carousel-width); height: var(--carousel-height); padding: 18px 18px 22px; border: 0;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    background: #f2ecdf; color: #302820; font: inherit; box-shadow: 0 14px 38px #0007;
    opacity: .45; cursor: pointer; transform-origin: center;
}
.wall-neighbor[data-carousel-slot="-1"] { transform: translate3d(calc(var(--carousel-width) * -.86),0,0) scale(.82) rotate(-5deg); }
.wall-neighbor[data-carousel-slot="1"] { transform: translate3d(calc(var(--carousel-width) * .86),0,0) scale(.82) rotate(5deg); }
.wall-neighbor-image { display: flex; width: 100%; flex: 1; min-height: 0; background: #ded5c6; }
.wall-neighbor-image img { width: 100%; height: 100%; object-fit: contain; }
.wall-carousel-card img { pointer-events: none; -webkit-user-drag: none; }
.wall-carousel-card img.fade { transition: none; }
.wall-photo-front,.wall-neighbor { user-select: none; -webkit-user-select: none; }
.wall-dialog[data-carousel-moving] .wall-carousel-card { will-change: transform, opacity; }
.wall-carousel-hint { text-align: center; color: #cbbda9; font-size: .7rem; margin: 10px 0 0; }
.wall-carousel-more { display: block; margin: 8px auto; }
.wall-flip { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.25,.7,.25,1); }
.wall-flip.is-flipped { transform: rotateY(180deg); }
.wall-photo-face { position: absolute; inset: 0; padding: 18px 18px 22px; background: #f2ecdf; color: #302820; box-shadow: 0 14px 38px #0007; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.wall-photo-front { width: 100%; height: 100%; display: flex; flex-direction: column; text-align: center; }
.wall-focus-image {
    display: flex; flex: 1; min-height: 0; width: 100%; align-items: center; justify-content: center;
    padding: 0; border: 0; background: #ded5c6; cursor: grab;
}
.wall-focus-image img { width: 100%; height: 100%; object-fit: contain; }
/* The bottom of the polaroid turns it over. */
.wall-focus-caption { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.wall-focus-caption:hover .wall-focus-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
/* A click anywhere on the back turns it over again. */
.wall-photo-back { cursor: pointer; }
.wall-focus-title { margin: 1rem 0 .35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; font: 600 2.1rem/1.1 "Caveat","Segoe Print",cursive; }
.wall-focus-author { font: .75rem/1.4 var(--font-sans); width: 100%; }
.wall-turn-hint { display: block; margin-top: .45rem; color: #766653; font: .65rem/1.3 var(--font-sans); }
.wall-turn-hint span { margin-left: .3em; font-size: 1rem; }
.wall-focus-view { display: block; margin: 0 0 .3rem; color: #665a4a; font: .75rem/1.4 var(--font-sans); }
/* The memory's other views, under it: tap one to see it in the polaroid. */
.wall-views { display: flex; align-items: center; gap: .5rem; width: max-content; max-width: 100%; margin: 8px auto 0; padding: 3px; overflow-x: auto; }
.wall-views > * { flex-shrink: 0; }
.wall-views-label { margin-right: .25rem; color: #cbbda9; font: .75rem var(--font-sans); }
.wall-view { width: 52px; height: 52px; padding: 0; overflow: hidden; background: #302923; border: 2px solid #665747; border-radius: 6px; cursor: pointer; }
.wall-view img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wall-view[aria-pressed="true"] { border-color: #e3c39b; box-shadow: 0 0 0 2px #e3c39b55; }
.wall-photo-back { transform: rotateY(180deg); display: flex; flex-direction: column; padding: 2rem; text-align: left; background-image: repeating-linear-gradient(transparent 0,transparent 31px,#bbae941d 32px); }
.wall-back-eyebrow { font-size: .6rem; letter-spacing: .13em; color: #766653; margin-bottom: 1.25rem; }
.wall-handwriting { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; overflow-wrap: anywhere; font: 400 1.9rem/1.4 "Caveat","Segoe Print",cursive; }
.wall-handwriting p { margin-bottom: 1rem; }
.wall-handwriting a { color: #714a27; }
.wall-handwriting .btn-quiet { color: #302820; background: #e4dbcb; font: .9rem var(--font-sans); }
.wall-signature { margin: .8rem 0 0; color: #665540; font: 500 1.5rem/1.2 "Caveat","Segoe Print",cursive; }
.wall-story-prompt { display: flex; min-height: 100%; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem; font: .95rem/1.65 var(--font-sans); color: #665540; }
.wall-story-prompt p { margin: 0; font: 500 1.8rem/1.2 var(--font-serif); color: #302820; }
.wall-story-prompt a { display: inline-flex; align-items: center; min-height: 44px; color: #714a27; }
.wall-focus-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 12px 0 0; }
.wall-flip-button { background: #eee4d3; color: #30251c; border: 0; border-radius: 7px; min-height: 44px; padding: .7rem 1.1rem; font: 500 .9rem var(--font-sans); cursor: pointer; }
.wall-flip-button > span { display: inline-block; margin-right: .35rem; font-size: 1.25rem; vertical-align: middle; }
.wall-focus-links { display: flex; gap: 1.25rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.wall-focus-links a,.wall-focus-links button { color: #e3c39b; font: .8rem var(--font-sans); min-height: 44px; display: inline-flex; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.wall-dialog button:disabled { opacity: .5; cursor: default; }
/* Copy a link: an icon in a circle, its explanation a tooltip (.tip). */
.wall-focus-links .wall-copy-link { justify-content: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; }
.wall-focus-links .wall-copy-link:hover { background: rgb(255 255 255 / 8%); }
.wall-copy-link svg { width: 1.3rem; height: 1.3rem; }
.wall-copy-status { margin: 0 auto; max-width: 480px; text-align: center; font-size: .8rem; color: #cbbda9; }
.wall-copy-status:empty { height: 0; }
.wall-card-lifted { visibility: hidden; }
@media (max-width: 40rem) {
    .site-main:has(> .memory-wall-page) { padding-top: var(--space-5); }
    .wall-top { padding: 0 var(--space-4); }
    .wall-heading { margin-bottom: 1rem; }
    .wall-heading h1 { font-size: 2.1rem; }
    .wall-eyebrow { font-size: .62rem; }
    .wall-bar { gap: .65rem; }
    .wall-bar-actions { width: 100%; justify-content: space-between; }
    .wall-instructions { font-size: .75rem; }
    .wall-zoom,.wall-explore-trigger { right: var(--space-3); bottom: var(--space-3); }
    .wall-more { left: var(--space-3); bottom: var(--space-3); transform: none; padding: 0 var(--space-4); font-size: .8rem; }
    .memory-wall-grid .memory-wall-canvas { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 18px 13px; gap: 20px 12px; }
    .memory-wall-grid .wall-polaroid { padding: 7px 7px 12px; }
    .memory-wall-grid .wall-polaroid-image { height: 130px; }
    .memory-wall-grid .wall-polaroid-title { font-size: 1.35rem; }
    .memory-wall-grid .wall-polaroid-author { font-size: .55rem; }
    .wall-dialog { padding-left: 12px; padding-right: 12px; --wall-chrome: 210px; --carousel-width: min(calc(100vw - 80px),calc((100dvh - var(--wall-chrome)) * .95)); }
    .wall-dialog.has-other-views { --wall-chrome: 282px; }
    .wall-copy-link.tip::after { left: auto; right: 0; transform: none; }
    .wall-photo-face,.wall-neighbor { padding: 12px 12px 18px; }
    .wall-photo-back { padding: 1.5rem; }
    .wall-handwriting { font-size: 1.65rem; }
    .wall-focus-title { font-size: 1.9rem; }
}
@media (max-height: 32rem) {
    .wall-dialog { --wall-chrome: 164px; }
    .wall-dialog.has-other-views { --wall-chrome: 226px; }
    .wall-focus-header { margin-bottom: 4px; }
    .wall-photo-face,.wall-neighbor { padding: 8px 8px 10px; }
    .wall-focus-title { font-size: 1.25rem; margin: .35rem 0 .15rem; -webkit-line-clamp: 1; }
    .wall-focus-author { font-size: .6rem; }
    .wall-turn-hint { display: none; }
    .wall-focus-actions { margin-top: 6px; }
    .wall-carousel-hint { margin-top: 5px; font-size: .65rem; }
    .wall-photo-back { padding: 1rem; }
    .wall-back-eyebrow { margin-bottom: .5rem; }
    .wall-signature { margin-block: .4rem 0; }
}
@media (prefers-reduced-motion: reduce) {
    .wall-flip,.wall-polaroid { transition: none; }
}

/* Browsing on a phone or touch screen (Stephen, 2026-10-04): the photos as a list that scrolls
   like any other, including a drag that starts on a photo; Explore wall gives the wall its own
   gestures, with a way out within reach. The list scrolls inside the wall, under the header (the
   page itself never scrolls, 2026-10-03; Stephen's scrolled the page, the header with it). */
@media (max-width: 48rem), (pointer: coarse), (max-height: 32rem) {
    body:has(.memory-wall-page) .site-header-inner {
        display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .25rem .75rem; padding: .5rem 1rem;
    }
    body:has(.memory-wall-page) .brand { grid-column: 1; grid-row: 1; }
    body:has(.memory-wall-page) .brand-name { font-size: 1.45rem; }
    body:has(.memory-wall-page) .brand-sub { display: none; }
    body:has(.memory-wall-page) .account { grid-column: 2; grid-row: 1; }
    body:has(.memory-wall-page) .site-nav {
        grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; min-width: 0; gap: .15rem; scrollbar-width: none;
    }
    body:has(.memory-wall-page) .site-nav::-webkit-scrollbar { display: none; }
    body:has(.memory-wall-page) .site-nav a { flex: 0 0 auto; padding-inline: .45rem; font-size: .8rem; white-space: nowrap; }
    .site-main:has(> .memory-wall-page) { padding-top: .75rem; }
    .wall-heading { margin-bottom: .6rem; }
    .wall-heading h1 { font-size: 1.8rem; }
    .wall-eyebrow { font-size: .58rem; }
    .wall-bar { gap: .6rem; }
    .wall-bar .filters { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
    .wall-bar .filter { flex: 0 0 auto; white-space: nowrap; font-size: .8rem; padding: .55rem .7rem; min-height: 44px; }
    .wall-bar-actions { width: 100%; justify-content: space-between; gap: .75rem; }
    .wall-bar-actions > .btn { font-size: .85rem; padding: .55rem .8rem; min-height: 44px; }
    .memory-wall-page:not(.is-exploring) .wall-explore-trigger { display: inline-flex; }
    .wall-instructions-row { padding: .65rem 0; }
    .wall-instructions { font-size: .75rem; }
    .wall-desktop-instructions { display: none; }
    .wall-touch-instructions { display: inline; }
    .memory-wall-page:not(.is-exploring) .memory-wall {
        --wall-browse: 1;
        overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; cursor: auto;
        scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent;
    }
    .memory-wall-page:not(.is-exploring) .memory-wall-canvas {
        position: relative; display: grid; grid-template-columns: repeat(auto-fill,minmax(128px,1fr));
        gap: 28px 20px; width: 100%; height: auto !important; padding: 26px 22px 5.5rem;
        transform: none !important; align-content: start;
    }
    .memory-wall-page:not(.is-exploring) .wall-polaroid {
        position: relative; top: auto !important; left: auto !important; width: 100%; min-width: 0; padding: 9px 9px 13px;
    }
    .memory-wall-page:not(.is-exploring) .wall-polaroid-image { height: auto; aspect-ratio: 1; }
    .memory-wall-page:not(.is-exploring) .wall-polaroid-title { font-size: 1.4rem; }
    .memory-wall-page:not(.is-exploring) .wall-polaroid-author { font-size: .6rem; }
    .memory-wall-page:not(.is-exploring) .wall-zoom { display: none; }
}
@media (min-width: 40rem) and (max-height: 32rem) {
    body:has(.memory-wall-page) .site-header-inner { grid-template-columns: minmax(120px,1fr) auto auto; }
    body:has(.memory-wall-page) .site-nav { grid-column: 2; grid-row: 1; }
    body:has(.memory-wall-page) .account { grid-column: 3; }
    .wall-heading { display: flex; align-items: baseline; justify-content: center; gap: .5rem; }
    .wall-heading h1 { font-size: 1.5rem; }
    .wall-bar { flex-wrap: nowrap; }
    .wall-bar-actions { width: auto; margin-left: auto; flex-shrink: 0; }
    .wall-instructions-row { padding: .45rem 0; }
}
/* Compact there, the brand says whose memorial it is again: the name over the wall steps aside. */
@media (max-width: 48rem), (pointer: coarse), (max-height: 32rem) {
    html.wall-compact:has(.memory-wall-page) .brand-sub { display: block; }
}

/* ---------- The header, full or compact (2026-10-03, Jon's experiment) ----------
   Full when the page opens, as before; compact after a few seconds or once the wall is used, and
   full again while the mouse rests on it (photo-wall.js, watchHeader, sets .wall-compact on
   <html>). Compact, everything is smaller, and the name sits in the middle of the row with the
   views and Add a memory: the header's parts change size smoothly while it changes (photo-wall.js
   sets .wall-header-changing then), and the wall takes the room. */
html.wall-header-changing:has(.memory-wall-page) :is(.site-header-inner, .brand, .brand-name, .brand-sub, .site-nav, .site-nav a, .account-button,
    .site-main, .wall-heading, .wall-eyebrow, .wall-heading h1, .wall-bar, .filters, .filter, .wall-add, .wall-instructions-row) {
    transition: padding .45s var(--ease), margin .45s var(--ease), gap .45s var(--ease), font-size .45s var(--ease),
        line-height .45s var(--ease), min-height .45s var(--ease), width .45s var(--ease), height .45s var(--ease),
        grid-template-rows .45s var(--ease), opacity .3s var(--ease), color .15s var(--ease),
        background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
}
/* On a phone, measuring where the header ends up (photo-wall.js): its changes held still. */
html.wall-header-still:has(.memory-wall-page) :is(.site-header-inner, .brand, .brand-name, .brand-sub, .site-nav, .site-nav a, .account-button,
    .site-main, .wall-heading, .wall-eyebrow, .wall-heading h1, .wall-bar, .filters, .filter, .wall-add, .wall-instructions-row) {
    transition: none !important;
}
/* While its height changes there, what's inside is clipped to it. */
.wall-header-moving { overflow: hidden; }
html.wall-compact:has(.memory-wall-page) .site-header-inner { padding-top: .3rem; padding-bottom: .3rem; }
html.wall-compact:has(.memory-wall-page) .brand { min-height: 0; }
html.wall-compact:has(.memory-wall-page) .brand-name { font-size: 1.2rem; }
html.wall-compact:has(.memory-wall-page) .brand-sub { font-size: .72rem; }
html.wall-compact:has(.memory-wall-page) .site-nav a { min-height: 2.25rem; font-size: .875rem; }
html.wall-compact:has(.memory-wall-page) .account-button { width: 2.25rem; height: 2.25rem; font-size: .78rem; }
html.wall-compact .site-main:has(> .memory-wall-page) { padding-top: .5rem; }
/* The name moves into the row below it: that row comes up beside it, in the middle. */
html.wall-compact .wall-top .wall-heading { margin-bottom: -2.65rem; pointer-events: none; }
html.wall-compact .wall-top .wall-eyebrow { margin-bottom: .1rem; font-size: .55rem; }
html.wall-compact .wall-top .wall-heading h1 { font-size: 1.45rem; line-height: 1.1; }
html.wall-compact .wall-top .filter { min-height: 2.25rem; padding: 0 .85rem; font-size: .85rem; }
html.wall-compact .wall-top .wall-add { min-height: 2.25rem; padding: 0 1rem; font-size: .875rem; }
html.wall-compact .wall-top .wall-instructions-row { grid-template-rows: 0fr; padding: .5rem 0 0; opacity: 0; }
/* Where the views and Add a memory would crowd it, the name steps aside (the header's brand
   still says it). */
@media (max-width: 56rem) {
    html.wall-compact .wall-top .wall-heading { opacity: 0; }
}
@media (max-width: 68rem) {
    html.wall-compact .wall-top:has(.filter-unposted) .wall-heading { opacity: 0; }
}
@media (max-width: 40rem) {
    html.wall-compact:has(.memory-wall-page) .brand-name { font-size: 1.1rem; }
    html.wall-compact:has(.memory-wall-page) .brand-sub { font-size: .68rem; }
    html.wall-compact:has(.memory-wall-page) .site-header-inner { row-gap: .2rem; }
    html.wall-compact:has(.memory-wall-page) .site-nav { gap: 0; }
    html.wall-compact:has(.memory-wall-page) .site-nav a { padding: 0 .5rem; font-size: .8rem; }
    html.wall-compact .wall-top .wall-bar { flex-wrap: nowrap; gap: .5rem; }
    html.wall-compact .wall-top .wall-bar-actions { width: auto; }
    html.wall-compact .wall-top .filter { padding: 0 .7rem; font-size: .8rem; }
    /* One line even while they shrink (clipped for that moment rather than wrapped). */
    html.wall-compact .wall-top .filters { flex-wrap: nowrap; min-width: 0; overflow: hidden; }
    html.wall-compact .wall-top .filter:focus-visible { outline-offset: -3px; }
    /* So the views fit on one line: the count of photos not posted yet waits for the full header
       (Photos I added has them too). */
    html.wall-compact .wall-top .filter-unposted { display: none; }
    /* Add a memory: a "+", its words for screen readers, its tooltip for a mouse. */
    html.wall-compact .wall-top .wall-add { width: 2.25rem; padding: 0; }
    html.wall-compact .wall-top .wall-add-plus { display: inline; }
    html.wall-compact .wall-top .wall-add-words {
        position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
    }
    html.wall-compact .wall-top .wall-add.tip::after { display: block; left: auto; right: 0; transform: none; }
}
