/* ============================================================
   PUJA • KOLKATA — design system
   Editorial heritage archive. Warm ivory / charcoal / sindoor.
   HTML + CSS + vanilla JS only.
   ============================================================ */
:root {
  --ivory: #FAF6EF;
  --ivory-2: #F2ECDF;
  --ivory-3: #EAE1D0;
  --ink: #1C1712;
  --ink-soft: #4B4238;
  --muted: #8C7F6D;
  --line: #E3D9C4;
  --vermilion: #A9321F;
  --vermilion-deep: #7E2415;
  --gold: #B08A2E;
  --maroon: #5E1F18;
  --night: #14100C;
  --card: #FFFDF8;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bn: 'Noto Serif Bengali', 'Fraunces', serif;
  --r: 4px;
  --sh: 0 14px 40px rgba(28, 23, 18, .08);
  --nav-h: 68px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.rm *, html.rm *::before, html.rm *::after { animation: none !important; transition: none !important; }
body {
  background: var(--ivory); color: var(--ink);
  font-family: var(--sans); line-height: 1.75;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.16; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin: .6rem 0 1.1rem; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .4rem; }
img { display: block; width: 100%; height: auto; }
p { margin-bottom: 1rem; color: var(--ink-soft); max-width: 70ch; }
a { color: inherit; }
::selection { background: var(--vermilion); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--ivory); padding: .7rem 1.2rem; z-index: 200; }
.skip:focus { left: 0; }

/* Bengali display */
.bn { font-family: var(--bn); color: var(--ink); }
.bn-big { font-family: var(--bn); font-weight: 600; font-size: clamp(2rem, 6vw, 4.2rem); line-height: 1.35; }

/* kickers, ledes */
.kicker { font-size: .7rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--vermilion); margin-bottom: .7rem; }
.kicker.light { color: var(--gold); }
.lede { font-size: 1.1rem; color: var(--ink-soft); }
.src { font-size: .8rem; color: var(--muted); font-style: italic; }
.textlink { color: var(--vermilion); text-decoration: none; font-weight: 500; border-bottom: 1px solid transparent; }
.textlink:hover { border-bottom-color: var(--vermilion); }
.updated { display: inline-block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }

/* layout */
.narrow { max-width: 1140px; margin: 0 auto; padding: 5rem 1.5rem; }
.narrow.tight { padding-top: 3rem; padding-bottom: 3rem; }
.page { padding-top: calc(var(--nav-h) + 2rem); }
.band { background: var(--ivory-2); }
.band-dark { background: var(--night); color: #EFE7D6; }
.band-dark p { color: #CFC3AB; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #F7F1E2; }
.band-dark .card h3 { color: var(--ink); }
.band-dark .card p { color: var(--ink-soft); }
.band-dark .quote p { color: #F7F1E2; }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.shead { margin-bottom: 2.4rem; max-width: 760px; }
.shead.center { margin-left: auto; margin-right: auto; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

body.is-home .nav:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.brand-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }

.brand-bn { font-family: 'Tiro Bangla', var(--bn); font-size: 1.4rem; line-height: 1.1; color: var(--ink); transition: color 0.3s; }
.brand-en { font-family: 'Inter', sans-serif; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.3em; line-height: 1; color: rgba(27, 21, 18, 0.6); margin-top: 0.1rem; transition: color 0.3s; }

body.is-home .nav:not(.scrolled) .brand-bn { color: var(--ivory); }
body.is-home .nav:not(.scrolled) .brand-en { color: rgba(247, 241, 226, 0.7); }
body.is-home .nav:not(.scrolled) .links a { color: var(--ivory); }
body.is-home .nav:not(.scrolled) .search-btn { color: var(--ivory); border-color: rgba(247, 241, 226, 0.4); }
body.is-home .nav:not(.scrolled) .menu-btn span { background: var(--ivory); }
.nav .links { display: flex; align-items: center; gap: 1.4rem; }
.nav .links a { text-decoration: none; font-size: .86rem; font-weight: 500; letter-spacing: .04em; color: var(--ink-soft); }
.nav .links a:hover, .nav .links a.active { color: var(--vermilion); }
.search-btn {
  font: inherit; font-size: .86rem; font-weight: 500; cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem 1.1rem; color: var(--ink-soft);
}
.search-btn:hover { border-color: var(--vermilion); color: var(--vermilion); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: .6rem; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: var(--night); }
.hero picture, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,8,6,.82) 0%, rgba(10,8,6,.25) 55%, rgba(10,8,6,.35) 100%); }
.hero-text { position: relative; z-index: 2; padding: 0 1.5rem 7rem; max-width: 1140px; margin: 0 auto; width: 100%; color: #F7F1E2; }
.hero-text .kicker { color: var(--gold); }
.hero-text h1 { color: #FFFDF6; font-size: clamp(3rem, 9vw, 7rem); margin: .4rem 0; letter-spacing: -.02em; }
.hero-text h1 .thin { display: block; font-weight: 400; font-size: .42em; letter-spacing: .34em; margin-bottom: .6rem; color: #EFE7D6; }
.hero-bn { font-family: var(--bn); font-size: clamp(1.3rem, 3vw, 2rem); color: var(--gold); margin-bottom: 1rem; }
.hero-tag { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.8rem); font-style: italic; color: #FFFDF6; margin-bottom: .6rem; }
.hero-sub { color: #D9CDB4; max-width: 52ch; font-size: 1rem; }
.cta-row { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .92rem;
  letter-spacing: .06em; padding: .95rem 1.9rem; border-radius: 2px; transition: .25s;
}
.btn.solid { background: var(--vermilion); color: #FFFDF6; }
.btn.solid:hover { background: var(--vermilion-deep); }
.btn.ghost { border: 1px solid rgba(247,241,226,.5); color: #F7F1E2; }
.btn.ghost:hover { border-color: #F7F1E2; background: rgba(247,241,226,.1); }
.btn.dark { background: var(--ink); color: var(--ivory); }
.btn.dark:hover { background: var(--vermilion); }
.scroll-cue { position: absolute; z-index: 2; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: #EFE7D6; font-size: 1.4rem; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translate(-50%,0); opacity:.7 } 50% { transform: translate(-50%,10px); opacity:1 } }

/* ---------- cinematic statement ---------- */
.statement { padding: 7rem 1.5rem; text-align: center; max-width: 900px; margin: 0 auto; }
.statement h2 { font-size: clamp(2.2rem, 6vw, 4.4rem); }
.statement .bn { font-size: clamp(1.2rem, 3vw, 1.8rem); color: var(--vermilion); margin-top: 1.2rem; }

/* ---------- story sequence ---------- */
.seq { position: relative; background: var(--night); }
.seq-frame { position: relative; min-height: 92svh; display: grid; align-items: end; overflow: hidden; }
.seq-frame picture, .seq-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seq-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,6,4,.85), transparent 60%); }
.seq-cap { position: relative; z-index: 2; padding: 0 1.5rem 5rem; max-width: 1140px; margin: 0 auto; width: 100%; color: #F7F1E2; }
.seq-cap .num { font-size: .75rem; letter-spacing: .3em; color: var(--gold); }
.seq-cap h3 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); color: #FFFDF6; margin: .5rem 0; }
.seq-cap p { color: #D9CDB4; max-width: 56ch; }
.seq-cap .bn { color: var(--gold); font-size: 1.15rem; }
.seq-cta { position: sticky; bottom: 1.2rem; z-index: 5; display: flex; justify-content: center; padding-bottom: .4rem; }

/* ---------- figures & captions ---------- */
figure { margin: 0; }
figcaption { font-size: .82rem; color: var(--muted); padding: .7rem .2rem 0; font-style: italic; }
figcaption .bn { font-style: normal; }
.ph { border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); background: var(--ivory-3); }
.ph img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.ph:hover img { transform: scale(1.025); }
.ph-frame { border: 1px solid var(--line); padding: .6rem; background: var(--card); border-radius: var(--r); }
.credit { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.band-dark figcaption { color: #B9AC93; }
.band-dark figcaption .credit { color: #8d8271; }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.flip > :first-child { order: 2; }

/* grids */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

/* cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.8rem; text-decoration: none; display: block; transition: .25s;
}
a.card:hover { border-color: var(--vermilion); transform: translateY(-3px); box-shadow: var(--sh); }
.card .bn { font-size: 1.05rem; color: var(--vermilion); }
.card h3 { margin: .5rem 0; }
.card p:last-child { margin-bottom: 0; }
.card .go { color: var(--vermilion); font-weight: 600; font-size: .9rem; margin-top: .8rem; }

/* day strip / chips */
.daystrip { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.daychip {
  border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem .9rem;
  text-decoration: none; background: var(--card); transition: .25s; display: block;
}
.daychip:hover { border-color: var(--vermilion); transform: translateY(-3px); }
.daychip strong { font-family: var(--serif); font-size: 1.05rem; display: block; }
.daychip .bn { color: var(--vermilion); font-size: .95rem; display: block; margin: .2rem 0; }
.daychip span.tag { font-size: .75rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .7rem; }
.chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: .55rem 1.2rem; text-decoration: none; font-size: .9rem; transition: .2s;
}
.chip:hover, .chip.on { border-color: var(--vermilion); color: var(--vermilion); }
.chip.on { background: #FBEEE9; }

/* ---------- timeline ---------- */
.timeline { position: relative; margin: 3rem 0 1rem; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 2.6rem 1.6rem; }
.tl-item::before {
  content: ""; position: absolute; left: -2rem; top: 8px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--ivory); border: 3px solid var(--vermilion); margin-left: -1px;
}
.tl-date { font-family: var(--serif); font-weight: 600; color: var(--vermilion); font-size: 1.05rem; }
.tl-item h3 { margin: .3rem 0 .4rem; }
.tl-item p { margin-bottom: .4rem; }

/* ---------- directory ---------- */
.dir-tools { display: flex; gap: .8rem; flex-wrap: wrap; margin: 1.6rem 0 2rem; }
.dir-tools input[type="search"], .dir-tools select {
  font: inherit; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--card); color: var(--ink); min-width: 200px;
}
.puja-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; text-decoration: none; display: flex; flex-direction: column; gap: .3rem; transition: .25s; }
.puja-card:hover { border-color: var(--vermilion); transform: translateY(-3px); box-shadow: var(--sh); }
.pc-zone { font-size: .7rem; letter-spacing: .22em; color: var(--vermilion); font-weight: 600; }
.puja-card h3 { margin: .2rem 0; }
.pc-area { font-size: .88rem; color: var(--muted); }
.pc-desc { font-size: .92rem; }
.pc-go { color: var(--vermilion); font-weight: 600; font-size: .88rem; margin-top: auto; padding-top: .8rem; }
.est { font-size: .8rem; color: var(--muted); font-style: italic; }
.detail-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2rem 0; }
.detail-meta div { border-left: 3px solid var(--vermilion); padding: .4rem 0 .4rem 1rem; }
.detail-meta dt { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.detail-meta dd { font-weight: 500; margin: 0; }

/* ---------- gallery ---------- */
.masonry { columns: 3 280px; column-gap: 1.2rem; }
.m-item { break-inside: avoid; margin-bottom: 1.2rem; cursor: zoom-in; border-radius: var(--r); overflow: hidden; background: var(--ivory-3); position: relative; }
.m-item img { transition: transform .8s ease; }
.m-item:hover img { transform: scale(1.03); }
.m-item figcaption { position: absolute; inset: auto 0 0 0; background: linear-gradient(transparent, rgba(10,8,6,.85)); color: #F2EAD8; padding: 2rem .9rem .8rem; font-style: normal; }
.m-item figcaption strong { font-family: var(--serif); display: block; font-size: .95rem; }
.m-item figcaption span { font-size: .75rem; opacity: .85; }
.gal-filters { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.4rem 0 2rem; }

/* ---------- overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(250,246,239,.97);
  backdrop-filter: blur(8px); overflow-y: auto; padding: 5rem 1.5rem 3rem;
}
.overlay[hidden] { display: none; }
.overlay-inner { max-width: 760px; margin: 0 auto; }
.overlay-close {
  position: fixed; top: 1.2rem; right: 1.4rem; z-index: 310;
  background: var(--ink); color: var(--ivory); border: 0; border-radius: 50%;
  width: 46px; height: 46px; font-size: 1.1rem; cursor: pointer;
}
.overlay-close.light { background: rgba(247,241,226,.15); color: #F7F1E2; border: 1px solid rgba(247,241,226,.4); }
.search-label { font-family: var(--serif); font-size: 1.6rem; display: block; margin-bottom: 1rem; }
#searchInput {
  width: 100%; font: inherit; font-size: 1.15rem; padding: 1rem 1.2rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
}
.search-results { margin-top: 1.4rem; display: grid; gap: .6rem; }
.sr-item { display: block; text-decoration: none; border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 1rem 1.2rem; }
.sr-item:hover { border-color: var(--vermilion); }
.sr-item .k { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--vermilion); font-weight: 600; }
.sr-item strong { font-family: var(--serif); font-size: 1.05rem; display: block; margin: .2rem 0; }
.sr-item p { font-size: .88rem; margin: 0; }
.sr-empty { color: var(--muted); font-style: italic; }

/* lightbox */
#lightbox { background: rgba(12, 9, 7, .94); display: grid; place-items: center; }
#lightbox[hidden] { display: none; }
.lb-fig { max-width: min(1000px, 92vw); text-align: center; }
.lb-fig img { max-height: 74vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--r); }
.lb-fig figcaption { color: #EFE7D6; font-style: normal; }
.lb-fig .lb-cap { color: #CFC3AB; font-size: .85rem; max-width: 60ch; margin: .4rem auto 0; }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(247,241,226,.12); color: #F7F1E2; border: 1px solid rgba(247,241,226,.3);
  width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
}
#lbPrev { left: 1.2rem; } #lbNext { right: 1.2rem; }
.lb-nav:hover { background: rgba(247,241,226,.25); }

/* story mode */
.overlay.story { background: #0E0B08; padding: 0; overflow: hidden; display: grid; }
.overlay.story[hidden] { display: none; }
.story-fig { position: relative; height: 100svh; }
.story-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-cap {
  position: absolute; inset: auto 0 0 0; padding: 0 1.5rem 6.5rem;
  background: linear-gradient(transparent, rgba(8,6,4,.88)); color: #F7F1E2;
  max-width: 1140px; margin: 0 auto;
}
.story-cap h2 { color: #FFFDF6; font-size: clamp(1.9rem, 5vw, 3.4rem); }
.story-cap p { color: #D9CDB4; }
.story-cap .bn { color: var(--gold); font-size: 1.2rem; }
.story-controls { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); display: flex; gap: .6rem; z-index: 312; }
.story-controls button {
  background: rgba(247,241,226,.12); color: #F7F1E2; border: 1px solid rgba(247,241,226,.35);
  border-radius: 999px; padding: .6rem 1.3rem; font: inherit; font-size: .88rem; cursor: pointer;
}
.story-controls button:hover { background: rgba(247,241,226,.25); }
.story-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 312; display: flex; gap: 4px; padding: 6px 8px 0; }
.story-progress i { flex: 1; background: rgba(247,241,226,.25); border-radius: 2px; overflow: hidden; position: relative; }
.story-progress i.done { background: var(--gold); }
.story-progress i.now::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: prog 7s linear forwards; transform-origin: left; }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- map ---------- */
.map-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.map-svg { width: 100%; height: auto; }
.map-pin { cursor: pointer; }
.map-pin circle { fill: var(--vermilion); stroke: #FFFDF8; stroke-width: 2; }
.map-pin text { font-size: 11px; fill: var(--ink-soft); font-family: var(--sans); }
.map-pin:hover circle, .map-pin.on circle { fill: var(--maroon); }
.map-card { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; min-height: 120px; }

/* ---------- misc components ---------- */
.quote { border-left: 4px solid var(--vermilion); padding: 1rem 0 1rem 1.6rem; margin: 2rem 0; }
.quote p { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); margin-bottom: .4rem; }
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 2rem 0; }
.contrast > div { padding: 2.2rem; }
.contrast .old { background: var(--ivory-3); }
.contrast .new { background: var(--night); color: #EFE7D6; }
.contrast .new p { color: #CFC3AB; }
.contrast .new h3 { color: #F7F1E2; }
.contrast .lbl { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; margin-bottom: .8rem; display: block; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { font-family: var(--serif); font-size: 1.1rem; cursor: pointer; font-weight: 600; }
.faq summary::marker { color: var(--vermilion); }
.faq details p { margin: .8rem 0 0; }
.gloss-term { border-bottom: 1px solid var(--line); padding: 1.3rem 0; display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: baseline; }
.gloss-term .bn { font-size: 1.5rem; color: var(--vermilion); }
.gloss-term h3 { font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
.process { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; margin: 2rem 0; }
.process div { text-align: center; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem .4rem; background: var(--card); }
.process .bn { font-size: 1.1rem; color: var(--vermilion); display: block; }
.process small { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.route-stop { display: grid; grid-template-columns: 64px 1fr; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.route-stop .n { font-family: var(--serif); font-size: 1.8rem; color: var(--vermilion); }
.memory-form label { display: block; font-weight: 600; margin: 1.1rem 0 .4rem; font-size: .92rem; }
.memory-form input, .memory-form textarea, .memory-form select {
  width: 100%; font: inherit; padding: .8rem 1rem; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--card); color: var(--ink);
}
.memory-form textarea { min-height: 140px; resize: vertical; }
.memory-card { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 1.6rem; }
.memory-card .who { font-size: .82rem; color: var(--muted); margin-top: .8rem; }
.notice { background: #FBF3E4; border: 1px solid var(--gold); border-radius: var(--r); padding: 1.1rem 1.4rem; font-size: .92rem; }
.notice strong { color: var(--maroon); }

/* final screen */
.final-screen { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; background: var(--night); text-align: center; }
.final-screen picture, .final-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.final-screen .shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(8,6,4,.25), rgba(8,6,4,.78)); }
.final-text { position: relative; z-index: 2; padding: 2rem 1.5rem; color: #F7F1E2; }
.final-text h2 { color: #FFFDF6; font-size: clamp(2.4rem, 7vw, 5rem); }
.final-text .bn { color: var(--gold); font-size: clamp(1.3rem, 3.4vw, 2.2rem); margin: 1rem 0 2rem; }
.final-text .place { letter-spacing: .34em; font-size: .8rem; color: #CFC3AB; }

/* footer */
.footer { background: var(--night); color: #CFC3AB; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 2.5rem; padding-top: 4rem; padding-bottom: 2rem; }
.f-brand { font-family: var(--serif); font-size: 1.5rem; color: #F7F1E2; letter-spacing: .06em; }
.f-brand span { color: var(--gold); }
.f-tag { color: #EFE7D6; margin: .6rem 0 .2rem; }
.f-bn { font-family: var(--bn); color: var(--gold); }
.f-links { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1rem; align-content: start; }
.f-links a { color: #CFC3AB; text-decoration: none; font-size: .9rem; }
.f-links a:hover { color: var(--gold); }
.f-note { font-size: .8rem; }
.f-copy { text-align: center; font-size: .78rem; color: #8d8271; padding: 1.4rem; border-top: 1px solid #2a231b; }

/* microcopy band */
.micro { padding: 4rem 1.5rem; text-align: center; }
.micro p { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: var(--ink); margin: 0 auto 0.4rem; }
.micro .bn { color: var(--vermilion); font-size: 1.1rem; }

/* error */
.err { text-align: center; padding: 8rem 1.5rem; }
