:root {
  --paper: #0a0908;
  --card: #12100e;
  --card-2: #191613;
  --ink: #f0ece2;
  --muted: #a39b8c;
  --faint: #8b8376;
  --line: rgba(217, 195, 138, .16);
  --line-2: rgba(217, 195, 138, .32);
  --gold: #d9c38a;
  --gold-deep: #b28f55;
  --shine: linear-gradient(100deg, #b28f55 0%, #ecdcab 45%, #fff4d2 52%, #d9c38a 60%, #a8844b 100%);
  --error: #e58f7f;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --pad: clamp(20px, 5vw, 72px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video { max-width: 100%; display: block; }
/* the tiny blurred preview each photo carries shows until the photo itself has arrived */
img[style*="background-image"] { background-size: cover; background-position: var(--focus, 50% 50%); }
a { color: inherit; }
::selection { background: rgba(217, 195, 138, .35); color: #fff; }
[hidden] { display: none !important; }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 3px; }

/* film grain over everything, very quiet */
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.label { margin: 0; font: 600 11px/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.label::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 14px 2px 0; border-radius: 50%; background: var(--gold); vertical-align: middle; box-shadow: 0 0 12px rgba(217, 195, 138, .8); }
.shine { background: var(--shine); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(44px, 6.4vw, 92px); line-height: .98; letter-spacing: -.025em; }
h2 em { font-style: italic; font-weight: 300; }
.lead { max-width: 33em; margin: 0; font-size: clamp(16px, 1.25vw, 18px); color: #cfc8ba; text-wrap: pretty; }

/* ---------- intro veil: the wheel draws itself ---------- */
.veil { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--paper); transition: opacity 1.1s var(--ease), visibility 1.1s; }
.veil svg { width: min(34vw, 180px); fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.veil circle, .veil path { stroke-dasharray: 1100; stroke-dashoffset: 1100; animation: draw 1.5s var(--ease) forwards; }
.veil circle + circle { animation-delay: .15s; }
.veil path { stroke-dasharray: 60; stroke-dashoffset: 60; animation-delay: .7s; animation-duration: .7s; }
.veil.out { opacity: 0; visibility: hidden; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 22px) var(--pad) 22px; transition: background .5s, padding .5s, border-color .5s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(10, 9, 8, .78); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); padding-block: calc(env(safe-area-inset-top, 0px) + 14px) 14px; border-color: var(--line); }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 12px/1 var(--sans); letter-spacing: .32em; }
.mark svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 9; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 36px); }
.header-links { display: contents; }
.top nav a { text-decoration: none; font: 600 11px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.top nav a:hover { color: var(--gold); }
.lang { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: 99px; }
.lang button { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 0; border-radius: 99px; background: none; cursor: pointer;
  font: 500 12px/1 var(--sans); letter-spacing: .04em; color: var(--muted); transition: background .3s, color .3s; }
.lang button:hover { color: var(--ink); }
.lang button.on { background: rgba(217, 195, 138, .14); color: var(--ink); }
.flag { width: 18px; height: 9px; flex: none; border-radius: 1.5px; box-shadow: 0 0 0 .5px rgba(255, 255, 255, .25); }

/* ---------- memorial caretakers ---------- */
.top nav a.login-trigger { display: inline-flex; align-items: center; letter-spacing: normal; text-transform: none; }
.login-trigger { flex: none; min-height: 44px; padding: 8px 0 8px 16px; border: 0; border-left: 1px solid var(--line-2); background: none; color: var(--gold); font: 500 14px/1 var(--sans); cursor: pointer; }
.login-trigger:hover { color: var(--ink); }
.login-trigger:disabled { cursor: wait; opacity: .65; }
.login-dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: clamp(28px, 6vw, 48px); border: 1px solid var(--line-2); border-radius: 12px; color: var(--ink); background: radial-gradient(ellipse at top, rgba(217, 195, 138, .08), transparent 65%), var(--card); box-shadow: 0 32px 120px #0009; }
.login-dialog::backdrop { background: rgba(5, 4, 3, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.login-dialog[open] { animation: login-in .24s var(--ease); }
.login-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font: 300 30px/1 var(--sans); cursor: pointer; }
.login-close:hover { color: var(--gold); }
.login-wheel { display: block; width: 42px; height: 42px; margin: 0 auto 24px; fill: none; stroke: var(--gold); stroke-width: 7; }
.login-dialog h2 { text-align: center; font-size: 54px; }
.login-dialog #login-intro { margin: 16px 0 30px; color: var(--muted); text-align: center; font: italic 400 21px/1.4 var(--serif); }
.login-dialog form { gap: 24px; }
.login-dialog .btn { width: 100%; justify-self: stretch; }
.login-feedback:empty { display: none; }
body:has(.login-dialog[open]) { overflow: hidden; }
@keyframes login-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 1150px) {
  .top nav { gap: 14px; }
  .top nav a { letter-spacing: .14em; }
}
@media (min-width: 641px) and (max-width: 980px) {
  .top { flex-wrap: wrap; }
  .top nav { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
}
@media (max-width: 980px) {
  #top { flex-wrap: wrap; }
  #top nav { display: contents; }
  #top .lang { margin-left: auto; }
  #top .header-links { display: flex; order: 1; flex-basis: 100%; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
  .top .header-links a { display: flex; align-items: center; min-height: 44px; line-height: 1.4; text-align: center; }
  #top ~ main section[id] { scroll-margin-top: 180px; }
  body[data-workspace] #top ~ main section[id] { scroll-margin-top: calc(var(--workspace-height) + 180px); }
}
@media (max-width: 640px) {
  .top { gap: 8px; }
  .top nav { gap: 10px; }
  .top .mark { gap: 6px; letter-spacing: .18em; }
  .top .lang button { padding: 7px; gap: 4px; font-size: 11px; }
  .login-trigger { padding-left: 10px; font-size: 12px; }
}
@media (max-width: 360px) { .top .lang .flag { display: none; } }
@media (prefers-reduced-motion: reduce) { .login-dialog[open] { animation: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: clip; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); --focus: 58% 50%; }
.hero-media video.on { opacity: 1; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 60% 35%); transform: scale(1.1); animation: settle 14s var(--ease) forwards; filter: saturate(.92) contrast(1.04); }
@keyframes settle { to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 70% 30%, transparent 30%, rgba(10, 9, 8, .55) 70%, var(--paper) 100%),
              linear-gradient(180deg, rgba(10, 9, 8, .55) 0%, transparent 22%, transparent 45%, rgba(10, 9, 8, .82) 78%, var(--paper) 100%),
              linear-gradient(90deg, rgba(10, 9, 8, .7) 0%, transparent 55%); }
.hero-text { padding: 0 var(--pad) clamp(56px, 9vh, 120px); max-width: 1500px; width: 100%; margin: 0 auto; }
.hero h1 { font-size: clamp(132px, 23vw, 340px); line-height: .78; font-weight: 300; letter-spacing: -.045em; margin: 26px 0 0 -.04em; }
.hero .sub { margin: 22px 0 0; font: italic 300 clamp(24px, 2.6vw, 36px)/1.25 var(--serif); color: #e6dfcf; }
.hero .actions { margin-top: 40px; }
.scroll-cue { position: absolute; right: var(--pad); bottom: clamp(56px, 9vh, 120px); writing-mode: vertical-rl; font: 600 10px/1 var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 16px; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border: 0; border-radius: 6px;
  background: var(--shine); background-size: 220% 100%; background-position: 100% 0; color: #17130c; font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; box-shadow: 0 10px 40px -12px rgba(217, 195, 138, .55), inset 0 1px 0 rgba(255, 255, 255, .45); transition: background-position .9s var(--ease), transform .3s var(--ease), box-shadow .3s; }
.btn:hover { background-position: 0 0; transform: translateY(-1px); box-shadow: 0 16px 50px -14px rgba(217, 195, 138, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn.ghost { background: rgba(10, 9, 8, .35); color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.small { min-height: 44px; padding: 0 20px; font-size: 11px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
form > .btn { justify-self: start; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- sections ---------- */
section { position: relative; }
section[id] { scroll-margin-top: 64px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: clamp(96px, 14vw, 180px) var(--pad); }
.rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

.memory { text-align: center; }
.memory .wrap { padding-top: clamp(16px, 2.5vw, 36px); padding-bottom: clamp(48px, 6vw, 88px); }
.road .wrap { padding-top: clamp(16px, 2.5vw, 36px); }
.memory .ring { width: 64px; margin: 0 auto 40px; fill: none; stroke: var(--gold); stroke-width: 6; opacity: .9; }
.memory blockquote { margin: 28px auto 0; max-width: 22em; font: 300 clamp(28px, 3.6vw, 52px)/1.22 var(--serif); letter-spacing: -.01em; color: #efe9dc; text-wrap: balance; }
.memory .made-by { margin: 26px auto 0; max-width: 34em; font: italic 300 clamp(19px, 1.9vw, 24px)/1.5 var(--serif); color: var(--gold); text-wrap: balance; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 980px; margin: clamp(56px, 8vw, 96px) auto 0; border-block: 1px solid var(--line); }
.facts div { padding: 30px 20px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts strong { display: block; font: 300 clamp(40px, 4.4vw, 60px)/1 var(--serif); font-variant-numeric: lining-nums; }
.facts span { display: block; margin-top: 12px; font: 600 10.5px/1.5 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); text-wrap: balance; }

/* gallery */
.gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(40px, 6vw, 72px); }
.gallery-head h2 { margin-top: 22px; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(120px, 11vw, 168px); gap: clamp(8px, 1vw, 14px); }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 3px; background: var(--card); cursor: zoom-in; grid-column: span var(--c, 4); grid-row: span var(--r, 3); }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 40%); transition: transform 1.4s var(--ease), filter .8s; filter: saturate(.9); }
.gallery figure:hover img { transform: scale(1.045); filter: saturate(1); }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 40px 18px 14px; font: 600 10px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #e9e2d2;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72)); opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease); }
.gallery figure:hover figcaption { opacity: 1; transform: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: 1fr auto; background: rgba(6, 5, 4, .97); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { width: 100%; height: 100%; object-fit: contain; padding: clamp(56px, 6vw, 80px) clamp(16px, 7vw, 120px) 8px; }
.lightbox p { margin: 0; padding: 14px 20px calc(env(safe-area-inset-bottom, 0px) + 22px); text-align: center; font: 600 10.5px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.lightbox button { position: absolute; background: none; border: 1px solid var(--line-2); color: var(--ink); width: 48px; height: 48px; border-radius: 50%; font: 300 22px/1 var(--sans); cursor: pointer; transition: border-color .3s, color .3s; }
.lightbox button:hover { border-color: var(--gold); color: var(--gold); }
.lb-close { top: calc(env(safe-area-inset-top, 0px) + 16px); right: 16px; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }

/* ---------- his road ---------- */
.road-head { max-width: 760px; margin-bottom: clamp(64px, 9vw, 120px); }
.road-head h2 { margin: 22px 0 24px; }
.road-list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: clamp(56px, 8vw, 110px); }
.road-list::before, .road-list::after { content: ""; position: absolute; top: 0; left: 50%; width: 1px; }
.road-list::before { bottom: 0; background: var(--line); }
.road-list::after { height: var(--road, 0%); background: linear-gradient(var(--gold), var(--gold-deep)); box-shadow: 0 0 14px rgba(217, 195, 138, .55); }
.stop { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.stop::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border-radius: 50%; translate: -50% -50%; background: var(--paper); border: 1px solid var(--gold); z-index: 1; transition: background .6s, box-shadow .6s; }
.stop.in::before { background: var(--gold); box-shadow: 0 0 16px rgba(217, 195, 138, .85); }
.stop-text { text-align: right; }
.stop:nth-child(even) .stop-text { order: 2; text-align: left; }
.stop-year { display: block; font: 300 clamp(60px, 7.4vw, 112px)/.85 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.stop h3 { margin-top: 18px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.12; }
.stop-place { margin: 12px 0 0; font: 600 10.5px/1.5 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.stop-still { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: var(--card); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.stop-still img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92); transition: transform 1.6s var(--ease); }
.stop:hover .stop-still img { transform: scale(1.04); }
.stop-still.empty { aspect-ratio: auto; height: clamp(90px, 9vw, 130px); display: grid; place-items: center; background: none; box-shadow: none; }
.stop-still.empty svg { height: 100%; width: auto; fill: none; stroke: var(--gold); stroke-width: 5; opacity: .45; }
html[lang="hu"] .i18n[lang="en"], html[lang="en"] .i18n[lang="hu"] { display: none; }

/* ---------- the film ---------- */
.film-head { margin-bottom: clamp(36px, 5vw, 60px); }
.film-head h2 { margin-top: 22px; }
.player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #000; box-shadow: 0 50px 140px -50px rgba(0, 0, 0, .95), 0 0 0 1px var(--line); }
.player video { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: clamp(78px, 9vw, 116px); height: clamp(78px, 9vw, 116px); border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(240, 236, 226, .65); background: rgba(10, 9, 8, .35); color: var(--ink); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .5s var(--ease), border-color .3s, color .3s, opacity .4s; }
.play svg { width: 36%; fill: currentColor; margin-left: 7%; }
.play:hover { transform: scale(1.07); border-color: var(--gold); color: var(--gold); }
.player.playing .play { opacity: 0; pointer-events: none; }
.film-credit { margin: 18px 0 0; font: 600 10.5px/1.6 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }

/* ---------- light a candle ---------- */
@property --h { syntax: "<percentage>"; inherits: true; initial-value: 60%; }
/* crop sideways only, so the glow can fade out above and below the section */
.candle-band { overflow-x: clip; }
.candle-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 2.6s var(--ease) .3s;
  background: radial-gradient(closest-side at 27% 52%, rgba(255, 168, 86, .13), rgba(255, 150, 70, .04) 55%, transparent); }
.candle-band.lit::before { opacity: 1; }
.candle { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 140px); align-items: center; }
.candle h2 { margin: 22px 0 24px; }
.candle-art { position: relative; height: clamp(300px, 34vw, 460px); }
.candle-body { position: absolute; bottom: 0; left: 50%; width: 160px; margin-left: -80px; height: var(--h); }
.stick { position: absolute; inset: 0 56px; border-radius: 7px 7px 3px 3px; overflow: hidden;
  background: linear-gradient(90deg, #b9a985, #efe5cf 38%, #f7f0e0 52%, #ddd0b2 70%, #a99a78); box-shadow: inset 0 10px 12px -8px rgba(0, 0, 0, .3), 0 30px 60px -20px rgba(0, 0, 0, .9); }
.stick::after { content: ""; position: absolute; inset: 0 0 auto; height: 45%; background: linear-gradient(rgba(255, 196, 118, .42), transparent); opacity: 0; transition: opacity 2.2s .6s; }
.pool { position: absolute; top: 1px; left: 4px; right: 4px; height: 8px; border-radius: 50%; z-index: 1; opacity: 0; transition: opacity 2s .9s;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 222, 160, .95), rgba(255, 176, 92, .35) 58%, transparent 76%); }
.drip { position: absolute; top: 5px; right: 7px; width: 6px; height: 0; border-radius: 0 0 4px 4px; background: linear-gradient(#f7efdc, #e4d7bb); box-shadow: 1px 0 0 rgba(0, 0, 0, .08); }
.wick { position: absolute; bottom: 100%; left: 50%; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: #2b231b; }
.wick::after { content: ""; position: absolute; top: -2px; left: -1px; width: 4px; height: 4px; border-radius: 50%; background: #ff8b3d; box-shadow: 0 0 6px 2px rgba(255, 140, 60, .85); opacity: 0; transition: opacity .25s; }
.flame { position: absolute; left: 50%; bottom: calc(100% + 8px); width: 28px; height: 66px; margin-left: -14px; transform-origin: 50% 100%; opacity: 0; scale: .1 0; }
.flame span { position: absolute; left: 50%; bottom: 0; translate: -50% 0; border-radius: 50% 50% 50% 50% / 64% 64% 36% 36%; transform-origin: 50% 100%; }
.f-outer { width: 28px; height: 66px; filter: blur(1.4px); mix-blend-mode: screen;
  background: radial-gradient(ellipse at 50% 84%, rgba(255, 220, 150, .96) 0 22%, rgba(255, 152, 52, .86) 48%, rgba(255, 92, 24, 0) 74%); }
.f-inner { width: 12px; height: 36px; bottom: 4px; background: radial-gradient(ellipse at 50% 78%, #fff 0 32%, #fff3c6 56%, rgba(255, 232, 160, 0) 76%); }
.f-blue { width: 12px; height: 10px; bottom: -1px; border-radius: 50%; filter: blur(.6px); background: radial-gradient(circle at 50% 70%, rgba(110, 150, 255, .9), rgba(80, 110, 255, 0) 70%); }
.glow { position: absolute; left: 50%; bottom: 100%; width: 560px; height: 560px; margin: 0 0 -230px -280px; border-radius: 50%; pointer-events: none; opacity: 0; scale: .3;
  background: radial-gradient(circle, rgba(255, 200, 118, .34), rgba(255, 170, 80, .1) 38%, transparent 68%); }
.sparks i, .embers i { position: absolute; left: 50%; bottom: calc(100% + 14px); width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; opacity: 0;
  background: #ffd98f; box-shadow: 0 0 6px 1px rgba(255, 190, 90, .9); }
.embers i { bottom: calc(100% + 60px); width: 2px; height: 2px; }

/* lit: steady burning (a returning visitor sees this straight away) */
.candle-band.lit .candle-body { animation: burn 1200s linear forwards; }
.candle-band.lit .wick::after { opacity: .7; }
.candle-band.lit .stick::after, .candle-band.lit .pool { opacity: 1; }
.candle-band.lit .drip { animation: drip 50s ease-in 18s forwards; }
.candle-band.lit .flame { opacity: 1; scale: 1; animation: sway 4.6s ease-in-out infinite; }
.candle-band.lit .f-outer { animation: outer 1.6s ease-in-out infinite alternate; }
.candle-band.lit .f-inner { animation: inner 1.15s ease-in-out infinite alternate; }
.candle-band.lit .glow { opacity: 1; scale: 1; animation: breathe 5s ease-in-out infinite; }
.candle-band.lit .embers i { animation: ember var(--t) ease-out var(--d) infinite; }
/* lighting: the one-time moment the visitor lights it */
.candle-band.lighting .wick::after { animation: kindle .5s ease-out both; }
.candle-band.lighting .sparks i { animation: spark .95s cubic-bezier(.15, .7, .3, 1) var(--d) both; }
.candle-band.lighting .flame { animation: catch 1.3s cubic-bezier(.2, .9, .3, 1.15) .28s both, sway 4.6s ease-in-out 1.6s infinite; }
.candle-band.lighting .glow { animation: bloom 2.2s cubic-bezier(.2, .7, .1, 1) .35s both, breathe 5s ease-in-out 2.6s infinite; }
@keyframes kindle { 0% { opacity: 0; scale: .3; } 40% { opacity: 1; scale: 1.8; } 100% { opacity: .7; scale: 1; } }
@keyframes spark { 0% { opacity: 0; translate: 0 0; scale: 1.4; } 12% { opacity: 1; } 100% { opacity: 0; translate: var(--x) var(--y); scale: .3; } }
@keyframes catch { 0% { opacity: 0; scale: .12 0; } 30% { opacity: 1; scale: .55 1.3; } 58% { scale: 1.12 .9; } 80% { scale: .97 1.04; } 100% { opacity: 1; scale: 1; } }
@keyframes sway { 0%, 100% { rotate: -1.2deg; } 30% { rotate: 1.7deg; } 55% { rotate: -.5deg; } 78% { rotate: 1.1deg; } }
@keyframes outer { 0% { scale: 1 1; } 50% { scale: 1.07 .94; } 100% { scale: .95 1.07; } }
@keyframes inner { to { scale: .9 1.1; opacity: .88; } }
@keyframes bloom { 0% { opacity: 0; scale: .3; } 45% { opacity: 1; scale: 1.14; } 100% { opacity: 1; scale: 1; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 18% { opacity: .84; } 33% { opacity: .97; } 52% { opacity: .78; } 70% { opacity: .93; } }
@keyframes ember { 0% { opacity: 0; translate: 0 0; } 8% { opacity: .9; } 100% { opacity: 0; translate: var(--x) -170px; } }
@keyframes drip { to { height: 40px; } }
@keyframes burn { from { --h: 60%; } to { --h: 46%; } }
.candle-act { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 38px; }
.candle-count { margin: 0; font: italic 300 clamp(20px, 2vw, 26px)/1.3 var(--serif); color: var(--gold); transition: text-shadow 2s; }
.candle-band.lit .candle-count { text-shadow: 0 0 22px rgba(255, 190, 110, .35); }

/* ---------- story form ---------- */
.share { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.share-intro { position: sticky; top: 120px; }
.share-intro h2 { margin: 22px 0 28px; }
.portrait { margin: 44px 0 0; aspect-ratio: 4 / 5; max-width: 420px; overflow: hidden; border-radius: 3px; position: relative; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 30%); filter: grayscale(.25) contrast(1.05); }
.portrait::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 3px; }
.portrait figcaption { position: absolute; left: 16px; bottom: 14px; font: 600 10px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(240, 236, 226, .8); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); z-index: 1; }

form { display: grid; gap: 28px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
label, .field { display: grid; align-content: start; gap: 10px; font: 600 10.5px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
label small { font: 400 12.5px/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: var(--faint); }
input:not([type=checkbox]), textarea { width: 100%; font: 400 17px/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 10px 0 12px; transition: border-color .3s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { resize: vertical; min-height: 220px; border: 1px solid var(--line-2); border-radius: 4px; padding: 16px 18px; background: rgba(255, 255, 255, .015); line-height: 1.7; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); }

.drop { position: relative; border: 1px dashed var(--line-2); border-radius: 6px; padding: 40px 24px 34px; text-align: center; text-transform: none; letter-spacing: 0;
  background: radial-gradient(80% 120% at 50% 0%, rgba(217, 195, 138, .06), transparent 70%); transition: border-color .3s, background .3s; }
.drop.over { border-color: var(--gold); background: radial-gradient(80% 120% at 50% 0%, rgba(217, 195, 138, .14), transparent 75%); }
.drop svg { width: 46px; margin: 0 auto 16px; fill: none; stroke: var(--gold); stroke-width: 7; opacity: .9; }
.drop p { margin: 0 0 22px; font: 300 22px/1.35 var(--serif); color: var(--ink); }
.pick { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.picked { border: 1px solid var(--line); border-radius: 6px; background: var(--card); padding: 14px 18px; text-transform: none; letter-spacing: 0; }
.picked-head { display: flex; justify-content: space-between; gap: 12px; font: 500 14px var(--sans); color: var(--ink); }
.picked ul { list-style: none; margin: 10px 0 0; padding: 0; max-height: 190px; overflow: auto; font: 400 13px/1.5 var(--sans); color: var(--muted); }
.picked li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--line); }
.picked li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main-photo { display: grid; gap: 12px; min-width: 0; }
.main-photo > strong { font: 500 15px/1.4 var(--sans); color: var(--ink); }
.main-photo > small { font: 400 13px/1.5 var(--sans); }
.main-photo > button { justify-self: start; white-space: normal; }
.main-photo select { width: 100%; min-width: 0; padding: 10px; font: 400 15px/1.5 var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 4px; }
.main-photo select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#main-photo-selected { display: grid; gap: 10px; justify-items: start; }
#main-photo-preview { width: auto; max-width: 100%; height: auto; max-height: 220px; object-fit: contain; }
#main-photo-name { max-width: 100%; overflow-wrap: anywhere; font: 400 13px/1.5 var(--sans); }

.checks { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 14px; font: 400 15px/1.5 var(--sans); letter-spacing: 0; text-transform: none; color: #d8d1c3; cursor: pointer; }
.check input { appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1px solid var(--line-2); border-radius: 4px; display: grid; place-content: center; cursor: pointer; transition: background .2s, border-color .2s; }
.check input::before { content: ""; width: 10px; height: 6px; border: solid #17130c; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::before { opacity: 1; }
.error { margin: 0; color: var(--error); font: 400 14px/1.5 var(--sans); letter-spacing: 0; text-transform: none; }
.note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }

.progress .bar { height: 2px; background: var(--line); overflow: hidden; }
.progress .bar span { display: block; height: 100%; width: 0; background: var(--shine); transition: width .3s; }
.progress p { margin: 12px 0 0; font-size: 14px; }

.thanks { padding: clamp(32px, 4vw, 48px); border: 1px solid var(--line); border-radius: 6px; background: radial-gradient(90% 120% at 0% 0%, rgba(217, 195, 138, .08), transparent 60%), var(--card); }
.thanks h3 { font-size: clamp(40px, 4.4vw, 56px); font-weight: 300; margin-bottom: 12px; }
.thanks p { margin: 0 0 26px; color: #cfc8ba; }
.thanks .btn { margin: 0 10px 10px 0; }

/* ---------- book ---------- */
.book-band { background: radial-gradient(70% 90% at 75% 50%, rgba(217, 195, 138, .1), transparent 65%), linear-gradient(180deg, var(--paper), #0e0c0a 40%, var(--paper)); }
.book { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(48px, 8vw, 140px); align-items: center; }
.book h2 { margin: 22px 0 28px; }
.book form.inline { grid-template-columns: 1fr 1.2fr; gap: 20px 28px; margin-top: 44px; max-width: 620px; }
.book form.inline .btn, .book .cf-turnstile, .book .error { grid-column: 1 / -1; }
.book form.inline .btn { justify-self: start; }
.done { margin-top: 40px; font: italic 300 32px/1.3 var(--serif); }
.cover-stage { perspective: 1600px; display: grid; place-items: center; }
.cover { position: relative; width: min(100%, 340px); aspect-ratio: 2 / 3; transform: rotateY(-24deg) rotateX(4deg); transform-style: preserve-3d; transition: transform 1.2s var(--ease);
  box-shadow: 40px 50px 80px -30px rgba(0, 0, 0, .9), 0 0 120px -40px rgba(217, 195, 138, .35); border-radius: 2px 6px 6px 2px; }
.cover:hover { transform: rotateY(-12deg) rotateX(2deg); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 35%); border-radius: inherit; filter: grayscale(.2) contrast(1.08) brightness(.8); }
.cover::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .55) 0, rgba(255, 255, 255, .12) 2.5%, transparent 6%), linear-gradient(180deg, rgba(10, 9, 8, .1) 40%, rgba(10, 9, 8, .9)); }
.cover::after { content: ""; position: absolute; top: 1.5%; bottom: 1.5%; right: -14px; width: 14px; transform: rotateY(90deg); transform-origin: left; background: repeating-linear-gradient(0deg, #e8e1d1 0 1px, #cfc6b2 1px 2px); }
.cover-title { position: absolute; z-index: 2; inset: auto 0 9% 0; text-align: center; }
.cover-title strong { display: block; font: 300 clamp(64px, 7vw, 96px)/.85 var(--serif); letter-spacing: -.03em; }
.cover-title span { display: block; margin-top: 14px; font: 600 9px/1 var(--sans); letter-spacing: .42em; text-transform: uppercase; color: var(--gold); }

/* ---------- published stories ---------- */
.stories-list { columns: 2 420px; column-gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 6vw, 72px); }
.story { break-inside: avoid; margin: 0 0 clamp(20px, 3vw, 40px); padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.story header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.story header strong { font: 400 28px/1.15 var(--serif); }
.story header span { font: 600 10px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); text-align: right; }
.story .body p { margin: 0 0 1em; color: #d8d1c3; }
.story-video { display: inline-block; margin-top: 4px; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.story-video-block { margin: 18px 0; }
.story-player { width: 100%; min-height: 200px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: var(--card-2); }
.admin .story-video-block { max-width: 640px; }
.story-player iframe { display: block; width: 100%; height: 100%; min-height: 200px; border: 0; }
.story-play { width: 100%; height: 100%; padding: 24px; border: 1px solid var(--line); border-radius: inherit; background: transparent; color: var(--gold); font: 600 14px/1.5 var(--sans); cursor: pointer; }
.story-play:focus-visible { outline: 2px solid var(--gold); outline-offset: -4px; }
.story-main-photo { margin: 0 0 18px; }
.story-main-photo img { display: block; width: 100%; max-height: 65vh; object-fit: contain; border-radius: 3px; }
.story-main-photo figcaption { margin-top: 6px; color: var(--muted); font: 400 14px/1.5 var(--sans); overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 104px) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 40px); }
.foot-grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 48px clamp(32px, 5vw, 72px); }
.foot .mark svg { width: 30px; height: 30px; }
.foot-name { margin: 26px 0 0; font: 300 clamp(30px, 3vw, 40px)/1.05 var(--serif); }
.foot-made { margin: 12px 0 0; max-width: 24em; font: italic 300 18px/1.5 var(--serif); color: var(--gold); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-h { margin: 0 0 6px; font: 600 10.5px/1.4 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.foot-col a { font-size: 14.5px; color: #cfc8ba; text-decoration: none; transition: color .3s; }
.foot-col a:hover { color: var(--gold); }
.foot-mail { margin: 0; font-size: 14.5px; }
.foot-note { margin: 0; font-size: 13.5px; color: var(--muted); max-width: 22em; }
.foot-base { max-width: 1320px; margin: clamp(48px, 6vw, 72px) auto 0; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; }
.foot-base p { margin: 0; font-size: 12.5px; color: var(--faint); }
mark.todo { background: rgba(229, 143, 127, .16); color: #f2b4a7; padding: 1px 6px; border-radius: 3px; }

/* ---------- legal pages ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 150px) var(--pad) clamp(80px, 10vw, 140px); }
.doc .back { font: 600 10.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.doc h1 { margin: 28px 0 0; font: 300 clamp(46px, 6vw, 76px)/1 var(--serif); letter-spacing: -.02em; }
.doc .meta { margin: 18px 0 0; font-size: 13px; color: var(--muted); }
.doc .draft { display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 99px; background: rgba(229, 143, 127, .16); color: #f2b4a7; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.doc h2 { margin: 56px 0 14px; font: 400 clamp(26px, 2.6vw, 32px)/1.2 var(--serif); }
.doc h3 { margin: 30px 0 8px; font: 600 12px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.doc p, .doc li { color: #d8d1c3; font-size: 16px; line-height: 1.75; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--gold); }
.doc .lead { margin-top: 30px; font-size: 18px; }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 6px; }
.doc table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.doc th, .doc td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: #d8d1c3; line-height: 1.6; }
.doc th { font: 600 10.5px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); background: rgba(217, 195, 138, .05); }
.doc tr:last-child td { border-bottom: 0; }

/* ---------- share bar ---------- */
.share-bar { position: fixed; z-index: 60; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 24px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(16, 14, 12, .8);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 24px 70px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4);
  translate: -50% 160%; opacity: 0; transition: translate .7s var(--ease), opacity .5s; }
.share-bar.on { translate: -50% 0; opacity: 1; }
.share-number { color: var(--gold); font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; }
.share-label { margin: 0 10px 0 0; font: italic 300 19px/1 var(--serif); color: var(--gold); white-space: nowrap; }
.share-bar svg { width: 19px; height: 19px; }
.share-bar .s { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.share-bar .f { fill: currentColor; }
.share-icon, .share-close { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; text-decoration: none; transition: border-color .3s, color .3s, background .3s; }
.share-icon[aria-describedby] { grid-auto-flow: column; gap: 5px; width: auto; min-width: 42px; padding: 0 9px; border-radius: 99px; }
.share-icon:hover { border-color: var(--gold); color: var(--gold); background: rgba(217, 195, 138, .06); }
.share-close { border-color: transparent; color: var(--muted); width: 36px; height: 36px; margin-left: 2px; }
.share-close:hover { color: var(--ink); }
.share-native { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--shine); background-size: 220% 100%; background-position: 100% 0; color: #17130c; font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: background-position .9s var(--ease); }
.share-native[hidden] { display: none; }
.share-native:hover { background-position: 0 0; }
.share-native svg { width: 17px; height: 17px; }
.phone-only { display: none; }
.toast { position: fixed; z-index: 61; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); max-width: min(92vw, 460px); margin: 0; padding: 12px 20px; border-radius: 14px;
  background: rgba(16, 14, 12, .92); border: 1px solid var(--line-2); color: var(--ink); font: 400 14px/1.45 var(--sans); text-align: center;
  translate: -50% 12px; opacity: 0; pointer-events: none; transition: opacity .35s, translate .35s var(--ease); }
.toast.on { opacity: 1; translate: -50% 0; }
@media (pointer: coarse) { .phone-only { display: grid; } }
@media (max-width: 640px) {
  .share-bar { left: 12px; right: 12px; translate: 0 160%; padding: 7px; gap: 6px; justify-content: center; flex-wrap: wrap; border-radius: 20px; }
  .share-bar.on { translate: 0 0; }
  .share-label { display: none; }
  .share-icon { width: 40px; height: 40px; }
  .share-native { padding: 0 14px; }
}

/* ---------- scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .share, .book, .candle { grid-template-columns: 1fr; }
  .candle-art { height: 260px; }
  .candle-band::before { background: radial-gradient(closest-side at 50% 26%, rgba(255, 168, 86, .14), transparent); }
  .road-list::before, .road-list::after { left: 6px; }
  .stop { grid-template-columns: 1fr; gap: 22px; padding-left: 40px; }
  .stop::before { left: 6px; top: 28px; }
  .stop-text, .stop:nth-child(even) .stop-text { order: 0; text-align: left; }
  .stop-still.empty { display: none; }
  .share-intro { position: static; }
  .portrait { max-width: none; aspect-ratio: 4 / 3; }
  .cover-stage { order: -1; }
  .cover { width: min(70%, 280px); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 34vw; }
  .gallery figure { grid-column: span 1; grid-row: span 2; }
  .gallery figure:nth-child(3n + 1) { grid-column: span 2; grid-row: span 2; }
  .gallery figcaption { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .top nav a { display: none; }
  #top .header-links { display: none; }
  #top.solid .header-links { display: flex; }
  .top.solid .header-links a { display: flex; }
  .lang button { padding: 7px 10px; gap: 7px; }
  .row, .book form.inline { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .scroll-cue { display: none; }
  .hero h1 { margin-top: 18px; }
  .hero .actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .veil { display: none; }
  .hero-media img, .hero-media video { transform: none; }
}

/* Persistent navigation for a signed-in administrator. */
body[data-workspace] { --workspace-height: calc(48px + env(safe-area-inset-top, 0px)); padding-top: var(--workspace-height); }
#workspace-nav { position: fixed; z-index: 95; inset: 0 0 auto; height: var(--workspace-height); padding-top: env(safe-area-inset-top, 0px); display: flex; justify-content: center; gap: clamp(4px, 2vw, 28px); background: var(--paper); border-bottom: 1px solid var(--line); }
#workspace-nav a { display: grid; place-items: center; padding: 0 clamp(5px, 2vw, 18px); border-bottom: 2px solid transparent; color: var(--muted); font: 500 clamp(12px, 2.8vw, 15px)/1.15 var(--sans); text-align: center; text-decoration: none; }
#workspace-nav a:hover, #workspace-nav a[aria-current] { color: var(--gold); }
#workspace-nav a[aria-current] { border-color: currentColor; }
body[data-workspace] .top { top: var(--workspace-height); padding-top: 14px; }
body[data-workspace] section[id] { scroll-margin-top: calc(var(--workspace-height) + 70px); }
body[data-workspace="admin"] main > section, body[data-workspace="stories"] main > section:not(#stories),
body[data-workspace="memorial"] #stories, body[data-workspace] #nav-stories,
body:is([data-workspace="admin"], [data-workspace="stories"]) :is(.top, .foot, .share-bar, #veil) { display: none; }
#workspace-panel > :is(p, button) { margin: 24px var(--pad); }
#story-list-status { margin-top: 24px; }
