/* Landing page + Photos & Memories site. Shares the walkway's tokens; no 3D code is loaded with this stylesheet. */
@font-face { font-family: "Memorial Serif"; src: url("assets/fonts/EBGaramond-var.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
:root {
  --color-page: #16130f; --color-surface: #1e1a15; --color-surface-raised: #29231c;
  --color-ink: #f3ead9; --color-ink-muted: #c7b9a3; --color-border: #4a3f33;
  --color-accent: #e7a54b; --color-accent-strong: #f2bc6a; --color-on-accent: #20160b;
  --color-focus: #8fd3ff; --color-midnight: #0d4a50;
  --font-serif: "Memorial Serif", "EB Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px; --ease-out: cubic-bezier(.2,.7,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--color-page); scroll-padding-top: 76px; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body { animation: page-in .28s ease-out both; margin: 0; background: var(--color-page); color: var(--color-ink); font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
h1, h2 { font-weight: 400; line-height: 1.08; margin: 0; }
a { color: var(--color-accent-strong); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 80; background: var(--color-ink); color: var(--color-page); padding: .75rem 1rem; font-family: var(--font-ui); border-radius: var(--radius); }
.skip-link:focus { top: 1rem; }
.status-note { font-family: var(--font-ui); font-size: .85rem; color: var(--color-ink-muted); letter-spacing: .04em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; min-width: 48px; padding: .6rem 1.2rem; font: 600 1rem var(--font-ui); border-radius: var(--radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn--line { background: rgba(20,16,12,.55); color: var(--color-ink); border-color: #9c8b74; }
.btn--line:hover { border-color: var(--color-ink); }
.btn[disabled] { cursor: not-allowed; color: var(--color-ink-muted); border-style: dashed; background: transparent; }
.pending { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font: 600 .85rem var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent); }
.dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 10px var(--color-accent); }

/* ---------------- landing: "Night Under the El" (website design cycle, Nov 2 2026) ----------------
   One composition: the real walkway at night, kept dark, with Billy's photograph as the cream Polaroid
   (the same paper object as the Photo Book and the Polaroid wall). Photo shown whole: no crop, no filter. */
.btn--amber { background: var(--color-accent); color: var(--color-on-accent); border-color: var(--color-accent); }
.btn--amber:hover { background: var(--color-accent-strong); border-color: var(--color-accent-strong); }
.arrow { display: inline-block; transition: transform .2s var(--ease-out); }
a:hover > .arrow { transform: translateX(3px); }
.polaroid { margin: 0; background: #efe6d4; padding: 14px 14px 0; box-shadow: 0 1px 2px rgba(0,0,0,.35), 0 28px 70px rgba(0,0,0,.6), 0 0 70px rgba(231,165,75,.14); }
.polaroid img { width: 100%; height: auto; aspect-ratio: 1080 / 1072; }
.polaroid figcaption { padding: .55rem 0 .85rem; text-align: center; font-style: italic; font-size: 1.15rem; line-height: 1.2; color: #4a3b2b; }
.lockup__title { font-size: clamp(2.7rem, 5.4vw, 4.4rem); letter-spacing: .005em; line-height: 1.02; }
.lockup__name { margin: .75rem 0 0; font-size: clamp(1rem, 1.6vw, 1.2rem); letter-spacing: .22em; text-transform: uppercase; color: var(--color-ink); }
.lockup__dates { margin: .2rem 0 0; font-size: clamp(1rem, 1.6vw, 1.2rem); letter-spacing: .3em; color: var(--color-accent-strong); font-variant-numeric: lining-nums; }
.landing { min-height: 100svh; }
.night { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: grid; place-items: center;
  padding: clamp(1.25rem, 5svh, 3.5rem) clamp(1rem, 5vw, 3.5rem); }
.night__place { position: absolute; inset: 0; z-index: -1; }
.night__place img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.night__place::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(55% 45% at 72% 8%, rgba(110,76,160,.16), rgba(110,76,160,0) 70%),
    radial-gradient(70% 75% at 50% 50%, rgba(22,19,15,.5), rgba(22,19,15,.86) 78%),
    linear-gradient(180deg, rgba(22,19,15,.25), rgba(22,19,15,.9)); }
.night__inner { display: grid; grid-template-columns: auto minmax(0, 38rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; width: min(1120px, 100%); }
.polaroid--hero { width: clamp(240px, 33vw, 420px); max-width: calc((100svh - 7rem) * .93); transform: rotate(-1.5deg); }
.doors { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.5rem, 4svh, 2.4rem); }
.btn--door { flex: 1 1 13rem; min-height: 54px; font-size: 1.05rem; }
.doors__note { margin: 1rem 0 0; max-width: 34rem; font: .95rem/1.55 var(--font-ui); color: var(--color-ink-muted); }
@media (max-width: 760px) {
  .night { place-items: start center; padding: max(1.25rem, env(safe-area-inset-top)) 1.1rem 1.5rem; }
  .night__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.25rem; }
  .polaroid--hero { width: min(66vw, 260px, calc(100svh - 33rem)); min-width: 190px; padding: 9px 9px 0; }
  .polaroid--hero figcaption { font-size: 1rem; padding: .35rem 0 .55rem; }
  .lockup__title { font-size: clamp(2.3rem, 11vw, 2.9rem); }
  .lockup__name { margin-top: .5rem; }
  .doors { flex-direction: column; width: 100%; margin-top: 1.25rem; gap: .65rem; }
  .btn--door { flex: none; width: 100%; }
  .doors__note { font-size: .9rem; margin-left: auto; margin-right: auto; }
}
@media (min-width: 761px) and (max-width: 1024px) and (orientation: portrait) {
  .night__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .polaroid--hero { width: min(52vw, 400px); }
  .doors { justify-content: center; } .doors__note { margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) { .arrow { transition: none; } a:hover > .arrow { transform: none; } }

/* ---------------- transition veil (short; reduced-motion = none) ---------------- */
.veil { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; }
.veil img { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); object-fit: cover; border-radius: 8px; opacity: 0; }
.veil::after { content: ""; position: absolute; inset: 0; opacity: 0; }
.veil.is-on { visibility: visible; pointer-events: auto; }
.veil.is-on img { animation: veil-grow .46s var(--ease-out) forwards; }
.veil--walk::after { background: radial-gradient(60% 50% at 62% 48%, rgba(255,190,110,.25), #07080b 70%); }
.veil--site::after { background: var(--color-page); }
.veil.is-on::after { animation: veil-dim .46s ease-in forwards; }
@keyframes veil-grow { 0% { opacity: 1; } 100% { opacity: 1; left: 0; top: 0; width: 100vw; height: 100dvh; border-radius: 0; } }
.veil--walk.is-on img { animation-name: veil-grow-walk; }
@keyframes veil-grow-walk { 0% { opacity: 1; } 100% { opacity: 1; left: -12vw; top: -12dvh; width: 124vw; height: 124dvh; border-radius: 0; } }
@keyframes veil-dim { 0%, 45% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body { animation: none !important; }
  .veil { display: none; }
}

/* ---------------- Photos & Memories site ---------------- */
.site-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: .5rem 1.25rem; flex-wrap: wrap; padding: .5rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(22,19,15,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border); }
.site-bar__brand { font-size: 1.3rem; color: var(--color-ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-bar__nav { display: flex; flex-wrap: wrap; gap: 0 .25rem; margin-right: auto; }
.site-bar__nav a { font: 500 .95rem var(--font-ui); color: var(--color-ink-muted); text-decoration: none; padding: 0 .6rem; min-height: 44px; display: inline-flex; align-items: center; }
.site-bar__nav a:hover { color: var(--color-ink); }
.switch { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem .95rem; border-radius: 999px; border: 1px solid rgba(242,188,106,.7);
  font: 600 .95rem var(--font-ui); color: var(--color-ink); text-decoration: none; background: rgba(231,165,75,.08); white-space: nowrap; }
.switch:hover { background: rgba(231,165,75,.18); }
.switch__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 8px var(--color-accent); }
.switch__tag { font-size: .72rem; letter-spacing: .08em; padding: .1rem .4rem; border-radius: 3px; background: var(--color-accent); color: var(--color-on-accent); }
.hero { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; width: min(1180px, 100%); margin: 0 auto; padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem); }
.hero__photo { margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.hero__photo img { width: 100%; height: auto; }
.hero__kicker { margin: 0; font: 600 .85rem var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--color-accent); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-top: .4rem; }
.hero__aka { margin: .3rem 0 0; font-size: clamp(1.4rem, 3vw, 2rem); font-style: italic; color: var(--color-ink-muted); }
.hero__dates { margin: .6rem 0 0; font-size: 1.3rem; letter-spacing: .2em; color: var(--color-accent-strong); }
.block { width: min(1180px, 100%); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem); border-top: 1px solid var(--color-border); }
.block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 2rem; margin-bottom: 1.6rem; }
.block h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.block__meta { margin: 0; font: .95rem var(--font-ui); color: var(--color-ink-muted); }
.plaque { margin: 0; max-width: 620px; }
.plaque img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.plaque figcaption { margin-top: .9rem; font-family: var(--font-ui); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.plaque figcaption a { min-height: 44px; display: inline-flex; align-items: center; }
.memory-wall, .letter, .share { max-width: 720px; }
.letter p, .memory-wall p, .share p { margin: 0 0 .9rem; }
.site-footer { text-align: center; padding: 2.5rem 1rem 3rem; border-top: 1px solid var(--color-border); color: var(--color-ink-muted); font-size: 1rem; }
.landing .site-footer { border: 0; padding-top: 1rem; }
.site-footer p { margin: .2rem 0; } .site-footer a { display: inline-flex; min-height: 44px; min-width: 44px; justify-content: center; align-items: center; padding: 0 .25rem; }
.site-footer__name { font-size: 1.4rem; color: var(--color-ink); }
/* overlay */
.overlay { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(14,11,8,.97); color: var(--color-ink); display: grid; grid-template-rows: auto 1fr auto; }
.overlay:not([open]) { display: none; }
.overlay[open] { animation: ov-in .2s var(--ease-out); }
@keyframes ov-in { from { opacity: 0; } to { opacity: 1; } }
.overlay__bar { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; gap: 1rem; }
.overlay__count { margin: 0; font-size: 1.15rem; }
.overlay__figure { margin: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 1rem; gap: .5rem; }
.overlay__figure img { min-height: 0; max-width: 100%; max-height: calc(100% - 2rem); width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.overlay__caption { font: italic .95rem var(--font-ui); color: var(--color-ink-muted); }
.overlay__nav { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .75rem 1rem 1rem; }
.overlay__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.2rem; font: .95rem var(--font-ui); }
.overlay__links a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__photo { max-width: 320px; margin: 0 auto; }
  .site-bar { gap: 0 .5rem; }
  .site-bar__brand { font-size: 1.15rem; margin-right: auto; }
  .site-bar__nav { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .site-bar__nav a { padding: 0 .3rem; }
  .overlay__nav { flex-wrap: wrap; justify-content: center; }
  .overlay__links { order: -1; width: 100%; }
  html { scroll-padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) { .overlay[open] { animation: none; } .contact__tile img, .book__photo img { transition: none !important; } }

/* ---------------- Cycle B: Direction A polish (warm dark + amber) ---------------- */
.btn--amber { background: var(--color-accent); color: var(--color-on-accent); border-color: var(--color-accent); }
.btn--amber:hover { background: var(--color-accent-strong); }
.linkish { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; color: var(--color-accent-strong); text-decoration: underline; cursor: pointer; }
.site-bar__nav a[aria-current="true"], .site-bar__nav a:focus-visible { color: var(--color-ink); }
.hero { position: relative; }
.hero__photo { border: 1px solid rgba(242,188,106,.35); }
.hero__words h1 { letter-spacing: .005em; }
.hero__words::after { content: ""; display: block; width: 72px; height: 2px; margin-top: 1.4rem; background: linear-gradient(90deg, var(--color-accent), rgba(231,165,75,0)); }
.block { scroll-margin-top: 70px; }
.block h2 { letter-spacing: .005em; }
.block__head { border-bottom: 1px solid rgba(74,63,51,.6); padding-bottom: .9rem; }

.contact__title { margin: 2.2rem 0 .9rem; font: 600 .85rem var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent); }
.contact { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.contact__item { scroll-margin-top: 90px; }
.contact__tile { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--color-border); border-radius: 4px; overflow: hidden; cursor: pointer;
  background: #2a231b; }
.contact__tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .35s var(--ease-out), opacity .2s; opacity: .9; }
.contact__tile:hover img { transform: scale(1.04); opacity: 1; }
.contact__num { position: absolute; left: 6px; bottom: 6px; min-width: 1.6rem; padding: .05rem .35rem; border-radius: 3px; font: 600 .75rem var(--font-ui); text-align: center;
  color: var(--color-ink); background: rgba(14,11,8,.72); }
.contact__tile[aria-current="true"] { border-color: var(--color-accent); box-shadow: 0 0 0 2px var(--color-accent); }
.contact__tile[aria-current="true"] img { opacity: 1; }
.contact__tile[aria-current="true"] .contact__num { background: var(--color-accent); color: var(--color-on-accent); }

/* honest "kept" states: deliberate, calm cards instead of empty shells */
.kept { max-width: 720px; padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.2rem, 3vw, 2rem); border-radius: 8px; background: var(--color-surface);
  border: 1px solid var(--color-border); border-left: 3px solid var(--color-accent); }
.kept p { margin: 0 0 .8rem; } .kept p:last-child { margin-bottom: 0; }
.kept__label { display: inline-flex; align-items: center; gap: .5rem; font: 600 .82rem var(--font-ui) !important; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); }
.kept__steps { margin: 0 0 1.1rem; padding-left: 1.2rem; color: var(--color-ink-muted); }
.kept__steps li { margin: .35rem 0; } .kept__steps strong { color: var(--color-ink); font-weight: 600; }
.memory-wall { max-width: none; }
.plaque { padding: clamp(.8rem, 2vw, 1.2rem); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 8px; }

@media (max-width: 860px) {
}
@media (max-width: 760px) {
  .site-bar__nav { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .site-bar__nav a { white-space: nowrap; padding: 0 .55rem; }
  .contact { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .contact__num { font-size: .68rem; left: 3px; bottom: 3px; min-width: 1.3rem; }
  .switch { padding: .3rem .7rem; font-size: .85rem; }
  .site-bar__brand { font-size: 1.05rem; }
  .hero__words::after { margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) { .book__progress span, .contact__tile img { transition: none; } .contact__tile:hover img { transform: none; } }

/* ---------------- Cycle C: the Photo Book (cover → one photograph per spread → contents) ----------------
   Same paper as the walk's Polaroids and lectern book: cream stock, soft shadow, warm night around it. */
.pb { --paper: #efe6d4; --paper-edge: #e2d6bf; --paper-ink: #2a2017; --paper-muted: #5f4f3c; --paper-link: #7a4512;
  --board: #2e2117; --board-dark: #1f160e; --foil: #e2b46c;
  --photo-h: clamp(320px, 60vh, 560px);
  position: relative; padding: clamp(1.25rem, 4vw, 3rem) clamp(.75rem, 3vw, 2.5rem); border-radius: 12px;
  background: radial-gradient(70% 80% at 50% 0%, rgba(231,165,75,.14), rgba(231,165,75,0) 70%), linear-gradient(180deg, #1f1a14, #17130f);
  border: 1px solid var(--color-border); box-shadow: inset 0 1px 0 rgba(255,230,190,.05), 0 30px 80px rgba(0,0,0,.4); }
.pb [hidden] { display: none !important; }

/* the closed book */
.pb__cover { display: grid; grid-template-columns: auto minmax(0, 28rem); gap: clamp(2rem, 6vw, 5rem); align-items: center; justify-content: center; }
.pb__board { width: clamp(240px, 26vw, 330px); aspect-ratio: 3 / 4; border-radius: 4px 8px 8px 4px; padding: 14px 14px 14px 26px; position: relative;
  background: linear-gradient(90deg, var(--board-dark) 0 14px, rgba(0,0,0,0) 14px 18px), radial-gradient(120% 90% at 30% 20%, #3b2a1c, var(--board) 60%, var(--board-dark));
  box-shadow: inset 2px 0 0 rgba(255,220,170,.06), 5px 5px 0 -2px var(--paper), 8px 9px 0 -3px var(--paper-edge), 0 26px 60px rgba(0,0,0,.6), 0 0 80px rgba(231,165,75,.10); }
.pb__board-inner { height: 100%; border: 1px solid rgba(226,180,108,.45); outline: 1px solid rgba(226,180,108,.18); outline-offset: -6px; border-radius: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.2rem 1rem; color: var(--foil); }
.pb__board p { margin: 0; }
.pb__board-kicker { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.pb__board-title { margin-top: .9rem !important; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.1; color: #f0c98a; }
.pb__board-rule { display: block; width: 46px; height: 1px; margin: 1rem 0; background: rgba(226,180,108,.6); }
.pb__board-name { font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: #ead9bb; }
.pb__board-dates { margin-top: .3rem !important; font-size: .95rem; letter-spacing: .24em; }
.pb__board-count { margin-top: 1.6rem !important; font-size: .9rem; font-style: italic; opacity: .8; }
.pb__cover-words p { margin: 0 0 .8rem; }
.pb__cover-lead { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.3; }
.pb__cover-note { color: var(--color-ink-muted); }
.pb__cover-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

/* the open spread */
.pb__spread { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); padding: 10px; border-radius: 8px;
  background: linear-gradient(180deg, #33261a, var(--board-dark)); box-shadow: 0 30px 70px rgba(0,0,0,.55), 0 0 90px rgba(231,165,75,.08); }
.pb[data-state="open"] .pb__spread { animation: pb-open .32s var(--ease-out); }
.pb__leaf { margin: 0; position: relative; background: var(--paper); color: var(--paper-ink); }
.pb__leaf--photo { border-radius: 4px 0 0 4px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(1rem, 2.4vw, 1.8rem) clamp(1rem, 2.4vw, 2rem) 2.6rem;
  background: linear-gradient(270deg, rgba(60,40,20,.20), rgba(60,40,20,0) 7%), var(--paper); }
.pb__leaf--words { border-radius: 0 4px 4px 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(1.4rem, 3vw, 2.6rem);
  background: linear-gradient(90deg, rgba(60,40,20,.22), rgba(60,40,20,0) 6%), var(--paper); border-left: 1px solid rgba(60,40,20,.18); }
.pb__photo { display: flex; align-items: center; justify-content: center; width: 100%; height: var(--photo-h); padding: 0; border: 0; background: none; cursor: zoom-in; }
.pb__mount { position: relative; display: inline-block; max-width: 100%; background: #fbf7ee; padding: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 14px 30px rgba(40,25,10,.28); }
.pb__mount img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(var(--photo-h) - 24px); }
/* four paper photo corners */
.pb__mount::after { content: ""; position: absolute; inset: -3px; pointer-events: none;
  background: linear-gradient(135deg, #3a2a1c 0 13px, transparent 13px) top left / 24px 24px no-repeat,
    linear-gradient(225deg, #3a2a1c 0 13px, transparent 13px) top right / 24px 24px no-repeat,
    linear-gradient(45deg, #3a2a1c 0 13px, transparent 13px) bottom left / 24px 24px no-repeat,
    linear-gradient(315deg, #3a2a1c 0 13px, transparent 13px) bottom right / 24px 24px no-repeat; opacity: .82; }
.pb__folio { position: absolute; left: 0; right: 0; bottom: .7rem; text-align: center; font-size: .95rem; color: #7d6a52; letter-spacing: .1em; }
.pb__count { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; color: var(--paper-ink); outline-offset: 6px; }
.pb__progress { height: 3px; margin: .9rem 0 1.1rem; background: rgba(42,32,23,.14); border-radius: 2px; overflow: hidden; }
.pb__progress span { display: block; height: 100%; width: 0; background: #c27f2c; transition: width .3s var(--ease-out); }
.pb__caption { margin: 0 0 1.4rem; font-size: 1.15rem; color: var(--paper-ink); }
.pb__caption.is-waiting { font-style: italic; font-size: 1.02rem; color: var(--paper-muted); }
.pb__nav { display: flex; gap: .6rem; flex-wrap: wrap; }
.pb__nav .btn { flex: 1 1 7.5rem; }
.btn--ink { background: transparent; color: var(--paper-ink, #2a2017); border-color: #8a775f; }
.btn--ink:hover { border-color: var(--paper-ink, #2a2017); background: rgba(42,32,23,.05); }
.pb__links { margin: 1rem 0 0; font: .95rem var(--font-ui); color: var(--paper-muted); display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.pb__links a, .pb__links .linkish { color: var(--paper-link); min-height: 44px; display: inline-flex; align-items: center; }
.pb__hint { margin: .5rem 0 0; font: .85rem var(--font-ui); color: var(--paper-muted); }
/* focus stays visible on cream paper: the sky-blue ring sits on a thin night ring */
.pb__leaf :focus-visible, .pb__photo:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; box-shadow: 0 0 0 3px #16130f; border-radius: 3px; }

/* a calm page turn: the new page settles in from the side it came from. Reduced motion: an instant swap. */
@keyframes pb-open { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pb-in-next { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes pb-in-prev { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes pb-in-jump { from { opacity: 0; } to { opacity: 1; } }
.pb__spread.is-turn-next .pb__mount, .pb__spread.is-turn-next .pb__count, .pb__spread.is-turn-next .pb__caption { animation: pb-in-next .3s var(--ease-out); }
.pb__spread.is-turn-prev .pb__mount, .pb__spread.is-turn-prev .pb__count, .pb__spread.is-turn-prev .pb__caption { animation: pb-in-prev .3s var(--ease-out); }
.pb__spread.is-turn-jump .pb__mount, .pb__spread.is-turn-jump .pb__count, .pb__spread.is-turn-jump .pb__caption { animation: pb-in-jump .25s ease-out; }

/* contents: a numbered index of all 21, each a small print on cream */
.contents__title { margin: 2.6rem 0 1rem; font: 600 .85rem var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent); }
.contents__title:focus { outline: none; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 16px); }
.contact__tile { display: flex; flex-direction: column; align-items: center; gap: .35rem; width: 100%; aspect-ratio: auto; padding: 0; border: 0; border-radius: 0; overflow: visible; background: none; cursor: pointer; color: var(--color-ink-muted); }
.contact__mat { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; padding: 5px; background: var(--paper, #efe6d4); border-radius: 2px; box-shadow: 0 6px 16px rgba(0,0,0,.4); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.contact__mat img { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: cover; object-position: 50% 30%; opacity: 1; transition: none; }
.contact__tile:hover img { transform: none; }
.contact__tile:hover .contact__mat { outline-color: rgba(242,188,106,.55); }
.contact__num { position: static; min-width: 0; padding: 0; background: none; font: 400 1rem var(--font-serif); color: var(--color-ink-muted); letter-spacing: .06em; }
.contact__tile[aria-current="true"] { border: 0; box-shadow: none; }
.contact__tile[aria-current="true"] .contact__mat { outline-color: var(--color-accent); }
.contact__tile[aria-current="true"] .contact__num { background: none; color: var(--color-accent-strong); font-weight: 600; }
.contact__tile:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }

/* viewer: the same cream print, larger, on a fully dark night */
.overlay { background: #0e0b08; }
.overlay::backdrop { background: rgba(8,6,4,.92); }
.overlay__count { font-family: var(--font-serif); font-size: 1.3rem; }
.overlay__figure img { border: 8px solid #fbf7ee; max-height: calc(100% - 2.6rem); }
.overlay__caption { font-family: var(--font-serif); font-size: 1.05rem; }

@media (max-width: 900px) {
  .pb__cover { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.8rem; }
  .pb__cover-actions { justify-content: center; }
  .pb__spread { grid-template-columns: 1fr; }
  .pb__leaf--photo { border-radius: 4px 4px 0 0; background: linear-gradient(0deg, rgba(60,40,20,.16), rgba(60,40,20,0) 6%), var(--paper); }
  .pb__leaf--words { border-radius: 0 0 4px 4px; border-left: 0; border-top: 1px solid rgba(60,40,20,.18); background: var(--paper); }
}
@media (max-width: 760px) {
  .pb { --photo-h: min(50vh, 440px); padding: 1rem .5rem; }
  .pb__board { width: min(72vw, 270px); }
  .pb__cover-actions .btn { flex: 1 1 100%; }
  .pb__spread { padding: 6px; }
  .pb__leaf--photo { padding: .9rem .7rem 2.2rem; }
  .pb__leaf--words { padding: 1.1rem 1rem 1.2rem; }
  .pb__count { font-size: 1.45rem; }
  .pb__progress { margin: .6rem 0 .8rem; }
  .pb__caption { margin-bottom: 1rem; }
  .pb__links { font-size: .9rem; }
  .contact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .contact__num { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pb[data-state="open"] .pb__spread, .pb__spread .pb__mount, .pb__spread .pb__count, .pb__spread .pb__caption { animation: none !important; }
  .pb__progress span, .contact__mat { transition: none; }
}
@media (max-width: 760px) {
  .overlay__bar { padding: .6rem .75rem; }
  .overlay__count { font-size: 1.1rem; white-space: nowrap; }
  .overlay__close { white-space: nowrap; padding: .5rem .8rem; }
}

/* ---------------- Photo Book cycle (shared component photobook.js/.css): the warm stage it sits on in the page ---------------- */
.pb-stage { position: relative; padding: clamp(1.25rem, 3.5vw, 2.6rem) clamp(.5rem, 3vw, 2.5rem); border-radius: 12px;
  background: radial-gradient(70% 80% at 50% 0%, rgba(231,165,75,.13), rgba(231,165,75,0) 70%), linear-gradient(180deg, #1f1a14, #17130f);
  border: 1px solid var(--color-border); box-shadow: inset 0 1px 0 rgba(255,230,190,.05), 0 30px 80px rgba(0,0,0,.4); }
.pb-stage .pbk { --max-h: calc(100vh - 260px); }
.pb-contents { margin-top: 2.6rem; }
@media (max-width: 760px) {
  .pb-stage { padding: 1rem .35rem 1.1rem; border-radius: 8px; }
  .pb-stage .pbk { --max-h: calc(100svh - 250px); }
  .block--book .block__head { margin-bottom: 1rem; }
}
@media (max-width: 420px) { .site-bar__nav a { font-size: .88rem; padding: 0 .42rem; } .site-bar__nav { margin-left: -.42rem; } }

/* ---------------- website design cycle (Nov 2 2026): one memorial page, same lockup and paper as the homepage ---------------- */
.site-bar { gap: .25rem 1rem; padding: .4rem clamp(1rem, 4vw, 2.5rem); }
.site-bar__brand { font-size: 1.25rem; }
.switch { border-radius: var(--radius); background: rgba(20,16,12,.55); border-color: #9c8b74; color: var(--color-ink); font-size: .95rem; } /* quiet: the Photo Book holds the one amber action here */
.switch:hover { background: rgba(20,16,12,.55); border-color: var(--color-ink); }
.switch .arrow { color: var(--color-accent-strong); }
.hero { grid-template-columns: auto minmax(0, 36rem); justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); padding: clamp(1.5rem, 3.5vw, 2.5rem) clamp(1rem, 4vw, 2.5rem); }
.block--book { padding-top: clamp(1.75rem, 4vw, 3rem); }
.polaroid--page { width: clamp(200px, 21vw, 270px); transform: rotate(-1.5deg); }
.hero__words::after { display: none; }
.hero .lockup__title { font-size: clamp(2.4rem, 5vw, 4rem); margin-top: .35rem; }
.hero__lead { margin: 1.1rem 0 0; max-width: 30rem; color: var(--color-ink-muted); font-size: 1.15rem; }
.site-footer { font-size: 1rem; }
@media (max-width: 760px) {
  .site-bar { padding: .25rem .75rem .1rem; }
  .site-bar__brand { font-size: 1.15rem; }
  .switch { min-height: 40px; padding: .3rem .75rem; font-size: .9rem; }
  .site-bar__nav { justify-content: space-between; margin: 0 -.3rem; }
  .site-bar__nav a { font-size: .9rem; padding: 0 .3rem; min-height: 40px; }
  .nav-long { display: none; }
  .hero { grid-template-columns: 112px minmax(0, 1fr); text-align: left; align-items: center; gap: 1rem; padding: 1.1rem 1rem 1rem; }
  .polaroid--page { width: 112px; padding: 6px 6px 0; transform: rotate(-2deg); }
  .polaroid--page figcaption { font-size: .85rem; padding: .2rem 0 .3rem; }
  .hero__kicker { font-size: .72rem; }
  .hero .lockup__title { font-size: 1.85rem; }
  .hero .lockup__dates { font-size: .95rem; }
  .hero__lead { display: none; }
  .block--book { padding-top: 1.25rem; }
  html { scroll-padding-top: 96px; }
}
@media (max-width: 420px) { .site-bar__nav { margin-left: -.3rem; } .site-bar__nav a { font-size: .9rem; padding: 0 .3rem; } }
