/* vdovjak.com — photographs first: near-black ground, serif prose, controls that stay out of the way. */
:root {
  --bg: #0b0b0c;
  --ink: #ece8e1;
  --muted: #9a948b;
  --line: rgba(236, 232, 225, .14);
  --glass: rgba(12, 12, 13, .58);
  --accent: #d9b77a;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
  /* the screen's safe area (viewport-fit=cover, index.html): a phone's notch or island, the status bar over a Home Screen
     web app, the home indicator; 0 where nothing is in the way */
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font-family: var(--sans); }
body { overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.view { position: fixed; inset: 0; }
.view[hidden] { display: none; }

/* ---------- home: the floating windows ---------- */
#home { background:
  radial-gradient(ellipse at 50% 38%, rgba(217, 183, 122, .07), transparent 60%),
  radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, .9), transparent 60%), var(--bg); }
.masthead { position: absolute; left: calc(clamp(20px, 4vw, 56px) + var(--safe-l)); top: calc(clamp(18px, 4vh, 44px) + var(--safe-t));
  z-index: 50; pointer-events: none; }
.masthead h1 { margin: 0; font: 500 clamp(30px, 4.2vw, 58px)/1 var(--serif); letter-spacing: .02em; }
.masthead p { margin: 10px 0 0; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
/* Contact, on the tagline's line: in reach for a visitor who does not look down to the footer */
.mast-contact { pointer-events: auto; color: #d8d3cb; text-decoration: none; }
.mast-contact::before { content: "·"; margin: 0 .9em; color: var(--muted); }
.mast-contact:hover, .mast-contact:focus-visible { color: var(--accent); }
.mast-contact[hidden] { display: none; }
#field { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 50%; } /* FIELD.persp in site.js */
.win { position: absolute; left: 0; top: 0; display: block; color: var(--ink); text-decoration: none; will-change: transform;
  outline: none; }
.win-inner { position: relative; display: block; background: #151516; border: 1px solid var(--line); border-radius: 7px; overflow: hidden;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s, filter .5s;
  animation: flyin 1.4s cubic-bezier(.16, .84, .24, 1) both; animation-delay: var(--delay, 0s);
  mask-size: 100% 100%; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; }
/* the window's shadow (and a featured story's glow) on a layer of its own behind the panel: the panel alone takes the
   cross-fade mask (site.js), so shadow and glow hold steady while an overlap fades. On the dark ground a shadow shows
   only where it falls on the window beneath: a nearer window casts a stronger one (Richard, 2026-09-26: "a bit of
   normal shadow for every win that is on top another one - adds this 3d feel"). Its shape stays; only its opacity
   follows --near (site.js), which the browser can change without repainting the window */
.win::before { content: ""; position: absolute; inset: 0; border-radius: 7px; pointer-events: none; will-change: opacity;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .82), 0 6px 16px rgba(0, 0, 0, .62);
  opacity: calc(.35 + .65 * var(--near, 1));
  animation: shadowin 1.4s cubic-bezier(.16, .84, .24, 1) backwards; animation-delay: var(--delay, 0s); }
@keyframes shadowin { from { opacity: 0; transform: translate3d(0, 60px, -600px) scale(.55) rotateX(12deg); } } /* with the panel's fly-in */
/* a featured story (the book projects): a small golden halo too; --glow is its size (the studio's look.glow, 0 for none) */
.win.featured::before { box-shadow: 0 22px 54px rgba(0, 0, 0, .82), 0 6px 16px rgba(0, 0, 0, .62),
  0 0 0 1px rgba(217, 183, 122, calc(.55 * min(1, var(--glow, 1)))),
  0 0 calc(40px * var(--glow, 1)) calc(4px * var(--glow, 1)) rgba(217, 183, 122, .3); }
@keyframes flyin {
  from { opacity: 0; transform: translate3d(0, 60px, -600px) scale(.55) rotateX(12deg); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
/* a phone's windows sway (the small-screens rules): tipped one way, then the other, about a level or a slightly aslant axis;
   and on a rhythm of their own they drift back, smaller and a little darker, and forward, bigger */
@keyframes sway {
  from { rotate: 1 var(--sway-y, 0) 0 var(--sway-a, 4deg); }
  to { rotate: 1 var(--sway-y, 0) 0 calc(-1 * var(--sway-a, 4deg)); }
}
@keyframes swaylight { from { opacity: 0; } to { opacity: .14; } } /* in step with sway: tipped back it faces the light */
@keyframes depth { from { translate: 0 0 -30px; } to { translate: 0 0 18px; } }
@keyframes depthlight { from { opacity: .12; } to { opacity: 0; } } /* in step with depth: further back, in the dark a little */
/* distance: a far window sits in the dark, and comes into the light as it nears */
.win-inner::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #070708;
  opacity: var(--shade, 0); pointer-events: none; }
.win .bar { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line);
  background: linear-gradient(#1c1c1d, #151516); white-space: nowrap; overflow: hidden; }
.win .bar i { width: 7px; height: 7px; border-radius: 50%; background: #3a3a3b; flex: none; }
.win .bar i:first-child { background: #7c5f36; }
.win img { display: block; width: 100%; aspect-ratio: var(--ratio, 1.5); object-fit: cover; filter: saturate(.92); }
.win .meta { display: block; padding: 10px 12px 12px; }
.win .meta strong { display: block; font: 500 clamp(19px, 1.75vw, 27px)/1.15 var(--serif); }
.win .meta span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.win:hover, .win:focus-visible { z-index: 200 !important; }
.win:hover .win-inner::after, .win:focus-visible .win-inner::after { opacity: 0; }
.win:hover::before, .win:focus-visible::before { opacity: 1;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .85), 0 0 0 1px rgba(217, 183, 122, .45); } /* it comes forward in site.js */
.win.featured:hover::before, .win.featured:focus-visible::before { box-shadow: 0 34px 90px rgba(0, 0, 0, .85),
  0 0 0 1px rgba(217, 183, 122, calc(.45 + .2 * min(1, var(--glow, 1)))),
  0 0 calc(44px * var(--glow, 1)) calc(5px * var(--glow, 1)) rgba(217, 183, 122, .34); }
#field.hovering .win:not(:hover):not(:focus-visible) .win-inner { opacity: .55; filter: grayscale(.4) brightness(.8); }
.foot { position: absolute; left: calc(clamp(20px, 4vw, 56px) + var(--safe-l)); right: calc(clamp(20px, 4vw, 56px) + var(--safe-r));
  bottom: calc(18px + var(--safe-b)); display: flex;
  justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .08em; color: var(--muted);
  z-index: 50; pointer-events: none; }
/* the copyright and the pages (Contact, Privacy): at the bottom left of the home page, and of a story while its controls
   show (Richard, 2026-09-26: "I miss the contact info in large picture view / slideshow") */
.foot-links, .chrome-links { display: inline-flex; gap: 18px; align-items: center; }
.pages { display: inline-flex; gap: 16px; pointer-events: auto; }
#chrome .pages { pointer-events: inherit; } /* in a story they take a click while the controls show, not once they fade */
.pages a { color: #d8d3cb; text-decoration: none; letter-spacing: .1em; text-transform: uppercase; }
.pages a:hover, .pages a:focus-visible { color: var(--accent); }
.chrome-links { position: absolute; left: calc(clamp(16px, 3vw, 36px) + var(--safe-l));
  bottom: calc(clamp(14px, 3vh, 30px) + var(--safe-b)); padding: 7px 15px;
  border-radius: 999px; background: rgba(12, 12, 13, .74); border: 1px solid rgba(255, 255, 255, .14); font-size: 11px;
  letter-spacing: .08em; color: var(--muted); } /* a pill like the buttons opposite, readable on a bright picture */
@media (max-width: 1100px) { .foot .hint { display: none; } }


/* ---------- pages and posts: a sheet over whatever is on screen; text first, pictures after ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center;
  padding: calc(clamp(14px, 5vh, 52px) + var(--safe-t)) calc(clamp(12px, 4vw, 48px) + var(--safe-r))
    calc(clamp(14px, 3vh, 26px) + var(--safe-b)) calc(clamp(12px, 4vw, 48px) + var(--safe-l)); }
.sheet[hidden] { display: none; }
.sheet:not(.open) { pointer-events: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(6, 6, 7, .72); -webkit-backdrop-filter: blur(6px) saturate(.8);
  backdrop-filter: blur(6px) saturate(.8); opacity: 0; transition: opacity .35s ease; }
.sheet-panel { position: relative; display: flex; flex-direction: column; width: min(760px, 100%); max-height: 100%;
  background: #0f0f10; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 40px 120px rgba(0, 0, 0, .65);
  opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .5s cubic-bezier(.2, .8, .2, 1); }
.sheet.open .sheet-backdrop, .sheet.open .sheet-panel { opacity: 1; transform: none; }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; border-radius: inherit; outline: none; }
.sheet-close { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 38px;
  height: 38px; padding: 0; border-radius: 50%; color: #d6d1c9; background: rgba(15, 15, 16, .82); }
.sheet-close:hover { color: var(--accent); }
body.locked { overflow: hidden; }
.page { max-width: 700px; margin: 0 auto; padding: clamp(40px, 7vh, 68px) clamp(22px, 5vw, 60px) clamp(34px, 6vh, 56px);
  color: #e4dfd7; font: 400 clamp(18px, 1.45vw, 21px)/1.62 var(--serif); }
.page h1 { margin: 14px 0 10px; font: 500 clamp(38px, 4.8vw, 64px)/1 var(--serif); letter-spacing: .01em; color: var(--ink); }
.page .sub { margin: 0 0 30px; font-style: italic; color: var(--muted); }
.page .date { margin: 0 0 8px; font: 500 11px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.page h2 { margin: 1.7em 0 .5em; font: 500 clamp(26px, 2.8vw, 36px)/1.12 var(--serif); color: var(--ink); }
.page p { margin: 0 0 1em; }
.page a { color: var(--accent); text-underline-offset: 3px; }
.page .cta-row { margin: 26px 0; }
.page .cta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border: 1px solid var(--accent);
  border-radius: 999px; font: 500 13px/1 var(--sans); letter-spacing: .08em; color: var(--ink); text-decoration: none;
  transition: background .2s, color .2s; }
.page .cta::after { content: "→"; color: var(--accent); }
.page .cta:hover { background: var(--accent); color: #151515; }
.page .cta:hover::after { color: #151515; }
.page figure { margin: 44px 0; }
.page figure img, .page figure video { display: block; width: 100%; height: auto; border-radius: 3px; }
.page figcaption { margin-top: 12px; font-size: .82em; line-height: 1.5; color: var(--muted); }
.page figcaption p { margin: 0 0 .5em; }
.journal { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 18px; }
.journal a { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; color: inherit; text-decoration: none; }
.journal img { width: 150px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.journal strong { display: block; font: 500 26px/1.15 var(--serif); }
.journal small { display: block; margin-top: 4px; font: 400 12px/1.4 var(--sans); letter-spacing: .06em; color: var(--muted); }
.journal a:hover strong { color: var(--accent); }
/* ---------- the contact form: on the Contact page, where its link to write was (one click fewer) ---------- */
.write { max-width: 540px; margin: 28px 0 8px; color: var(--ink); font: 400 15px/1.5 var(--sans); } /* the page's serif stays in its text */
.write[hidden] { display: none; }
.write-form { position: relative; }
.write .kicker { margin: 0 0 16px; font-size: 13px; letter-spacing: .08em; text-transform: none; color: var(--accent); } /* an address, as written */
.write-fields { display: grid; gap: 15px; min-width: 0; margin: 0; padding: 0; border: 0; }
.write .field { display: grid; gap: 7px; }
.write .field > span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.write .field small { font-size: inherit; letter-spacing: .04em; text-transform: none; color: #6f6a63; }
.write input, .write textarea { width: 100%; padding: 10px 12px; color: var(--ink); background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line); border-radius: 6px; font: 400 16px/1.4 var(--sans); outline: none;
  transition: border-color .2s, box-shadow .2s; }
.write textarea { min-height: 120px; resize: vertical; font: 400 18px/1.45 var(--serif); }
@media (max-height: 860px) { /* a laptop's window: the form's Send in view without scrolling */
  .page { padding-top: 30px; }
  .write { margin-top: 20px; }
  .write textarea { min-height: 96px; }
}
.write input:focus, .write textarea:focus { border-color: rgba(217, 183, 122, .65); box-shadow: 0 0 0 3px rgba(217, 183, 122, .12); }
.write-fields:disabled input, .write-fields:disabled textarea { opacity: .55; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.write-status { margin: 0; font: 400 17px/1.45 var(--serif); color: #e4dfd7; }
.write-status:empty { display: none; }
.write-status a { color: var(--accent); text-underline-offset: 3px; }
.write-actions { display: flex; align-items: center; gap: 16px; margin-top: 2px; }
.write-send, .write-done { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border: 1px solid var(--accent);
  border-radius: 999px; font: 500 13px/1 var(--sans); letter-spacing: .08em; transition: background .2s, color .2s; }
.write-send::after { content: "→"; color: var(--accent); }
.write-send:hover, .write-done:hover { background: var(--accent); color: #151515; }
.write-send:hover::after { color: #151515; }
.write-fields:disabled .write-send { cursor: progress; opacity: .75; }
.write-fields:disabled .write-send::after { content: none; }
.write-count { font-size: 11.5px; letter-spacing: .04em; color: var(--muted); }
.write-note { margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.write-sent { display: none; outline: none; font: 400 18px/1.5 var(--serif); color: #e4dfd7; }
.write-sent p { margin: 0 0 18px; }
.write-sent .write-thanks { margin: 0 0 6px; font: 500 34px/1.1 var(--serif); color: var(--ink); }
.write-form[data-state="sent"] .write-fields { display: none; }
.write-form[data-state="sent"] .write-sent { display: block; margin-top: 16px; }
.zooming { position: fixed; z-index: 100; object-fit: cover; border-radius: 7px;
  transition: all .75s cubic-bezier(.7, 0, .2, 1); }

/* ---------- story viewer ---------- */
#story { background: #000; }
#stage { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0;
  transition: opacity .7s ease; }
.slide.on { opacity: 1; }
.slide img, .slide video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; display: block; }
.slide.card { background: #0b0b0c; }
.slide .backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28;
  filter: blur(2px) saturate(.8); }
.card-body { position: relative; max-width: min(720px, 86vw); padding: 0 8px; text-align: left; }
.kicker { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.card-body h1, .card-body h2 { margin: 14px 0 6px; font: 500 clamp(40px, 6.5vw, 92px)/.98 var(--serif); letter-spacing: .01em; }
.card-body h2 { font-size: clamp(34px, 5vw, 70px); }
.card-body .sub { margin: 0 0 22px; font: italic 400 clamp(18px, 2vw, 24px)/1.35 var(--serif); color: var(--muted); }
.card-body .intro { font: 400 clamp(17px, 1.55vw, 21px)/1.55 var(--serif); color: #d8d3cb; max-height: 46vh; overflow-y: auto; }
.card-body .intro p { margin: 0 0 .8em; }
.card-body .go { margin-top: 26px; display: inline-flex; gap: 10px; align-items: center; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 13px; letter-spacing: .06em; }
.card-body .go:hover { border-color: var(--accent); color: var(--accent); }
.card-body .links { display: flex; gap: 12px; flex-wrap: wrap; }
/* the text over a picture: a plain window (no blur, the picture stays sharp) that site.js puts in the quietest part of the
   picture; it can be moved and closed, and where the reader puts it is kept for that picture. A long text scrolls in it */
.prose { position: absolute; left: calc(clamp(16px, 3vw, 40px) + var(--safe-l)); bottom: calc(clamp(16px, 4vh, 44px) + var(--safe-b));
  max-width: min(34em, 78vw);
  display: flex; flex-direction: column; background: rgba(12, 12, 13, .66); border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px; font: 400 clamp(16px, 1.3vw, 19px)/1.5 var(--serif); color: #efebe4; transition: opacity .45s,
  transform .45s; z-index: 5; max-height: 42vh; overflow: hidden; min-width: 220px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .35); }
.prose[hidden] { display: none; } /* its display: flex would otherwise keep an empty window up with no text */
.prose.placing { visibility: hidden; } /* until its picture is in and the quietest place is found */
/* the text switched off on a photograph that has one: a small tab where the text sits by default brings it back */
.prose-show { position: absolute; left: calc(clamp(16px, 3vw, 40px) + var(--safe-l));
  bottom: calc(clamp(16px, 4vh, 44px) + var(--safe-b)); z-index: 5;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 12px; letter-spacing: .06em;
  color: var(--muted); background: rgba(12, 12, 13, .72); border: 1px solid rgba(255, 255, 255, .12); cursor: pointer; transition: opacity .45s; }
.prose-show[hidden] { display: none; }
.prose-show:hover, .prose-show:focus-visible { color: var(--accent); border-color: var(--accent); }
.prose-show svg { width: 12px; height: 12px; }
#story.auto:not(.show-chrome) .prose-show { opacity: 0; pointer-events: none; } /* the slideshow's picture alone */
/* a video that has sound but plays silent (sound off, or not yet allowed by the browser): a tab at the bottom offers it */
.sound-show { position: absolute; left: 50%; bottom: calc(clamp(16px, 4vh, 44px) + var(--safe-b)); transform: translateX(-50%); z-index: 6;
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: 12px; letter-spacing: .06em;
  color: #e4dfd7; background: rgba(12, 12, 13, .78); border: 1px solid rgba(217, 183, 122, .5); cursor: pointer; }
.sound-show[hidden] { display: none; }
.sound-show:hover, .sound-show:focus-visible { color: var(--accent); border-color: var(--accent); }
.sound-show svg { width: 13px; height: 13px; color: var(--accent); }
.prose-bar { flex: none; display: flex; justify-content: space-between; align-items: center; height: 26px;
  padding: 4px 6px 0 14px; cursor: move; touch-action: none; }
.prose-grip { width: 34px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.prose:hover .prose-grip { background: rgba(255, 255, 255, .3); }
.prose-close { font: 300 20px/1 var(--sans); padding: 0 6px; color: rgba(255, 255, 255, .5); cursor: pointer; }
.prose-close:hover, .prose-close:focus-visible { color: var(--accent); }
.prose-text { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 2px 20px 16px; }
.prose.dragging { transition: none; user-select: none; }
.prose.off { opacity: 0; transform: translateY(12px); pointer-events: none; }
.prose p { margin: 0 0 .6em; }
.prose p:last-child { margin-bottom: 0; }
#chrome { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .45s; z-index: 10; }
#story.show-chrome #chrome { opacity: 1; }
#story.show-chrome #chrome > * { pointer-events: auto; }
#story:not(.show-chrome) { cursor: none; }
.topbar { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: calc(14px + var(--safe-t)) calc(clamp(16px, 3vw, 36px) + var(--safe-r)) 14px calc(clamp(16px, 3vw, 36px) + var(--safe-l));
  background: linear-gradient(rgba(0, 0, 0, .55), transparent); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: #d6d1c9; }
.topbar .right { display: flex; gap: 16px; align-items: center; }
.counter { white-space: nowrap; } /* "1 / 41" on one line beside a long story name on a phone */
.icon { font-size: 26px; line-height: 1; padding: 2px 6px; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); font: 300 54px/1 var(--serif); padding: 20px 14px;
  color: rgba(255, 255, 255, .8); }
.arrow.prev { left: calc(clamp(6px, 1.5vw, 20px) + var(--safe-l)); }
.arrow.next { right: calc(clamp(6px, 1.5vw, 20px) + var(--safe-r)); }
.arrow:hover, .icon:hover { color: var(--accent); }
.bottombar { position: absolute; right: calc(clamp(16px, 3vw, 36px) + var(--safe-r)); bottom: calc(clamp(14px, 3vh, 30px) + var(--safe-b));
  display: flex; gap: 8px;
  align-items: center; }
.bottombar button { font-size: 12px; letter-spacing: .06em; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; background: rgba(0, 0, 0, .35); }
.bottombar button:hover { border-color: var(--accent); }
.bottombar button[aria-pressed="false"] { color: var(--muted); }
/* Full screen on an iPhone, where a page cannot fill the screen: how to get there (site.js, toggleFull) */
.full-hint { position: absolute; right: calc(clamp(16px, 3vw, 36px) + var(--safe-r));
  bottom: calc(clamp(14px, 3vh, 30px) + 48px + var(--safe-b)); z-index: 12; display: flex; gap: 4px; align-items: flex-start;
  max-width: 360px; padding: 12px 6px 13px 16px; border-radius: 10px; background: rgba(15, 15, 16, .94);
  border: 1px solid var(--line); box-shadow: 0 16px 44px rgba(0, 0, 0, .55); font-size: 13px; line-height: 1.5; color: #d8d3cb; }
.full-hint[hidden] { display: none; }
.full-hint p { margin: 0; }
.full-hint strong { display: block; margin-bottom: 3px; font-weight: 500; color: var(--ink); }
.full-hint .icon { font-size: 22px; color: var(--muted); }

/* ---------- the slideshow: a slow dissolve, a drifting picture, prose that waits its turn ---------- */
/* timings come from SHOW in site.js (--dissolve, --prose-fade); the outgoing slide holds, then gives way */
#stage.dissolve .slide { transition: opacity calc(var(--dissolve, 2.2s) * .6) ease-in calc(var(--dissolve, 2.2s) * .4); }
#stage.dissolve .slide.on { transition: opacity var(--dissolve, 2.2s) ease-in-out; }
#story.auto .prose { transition: opacity var(--prose-fade, 1.2s) ease, transform var(--prose-fade, 1.2s) ease; }
.prose.veiled { opacity: 0; pointer-events: none; }
.slide img.drift { animation: drift var(--drift, 16s) linear both; will-change: transform; }
#story:not(.auto) .slide img.drift { animation-play-state: paused; } /* paused, taken over or resting: it holds still */
@keyframes drift { from { transform: none; } to { transform: scale(1.06) translate(var(--dx, 0%), var(--dy, 0%)); } }
.bottombar .show { position: relative; display: inline-flex; align-items: center; gap: 7px; overflow: hidden; }
.show svg { width: 9px; height: 9px; flex: none; color: var(--accent); }
.show .i-pause, #story.auto .show .i-play { display: none; }
#story.auto .show .i-pause { display: block; }
.show .line { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 1px; background: var(--accent); opacity: 0;
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.show .line.run { opacity: .85; animation: fill var(--step, 7s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
button:focus-visible, .win:focus-visible, a:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ---------- small screens: the windows become a scrolling stack ---------- */
@media (max-width: 760px) {
  .prose-show { bottom: calc(70px + var(--safe-b)); }
  /* the copyright and the pages show with the controls here too (Richard, 2026-09-26: "mobile slide show doesnt show
     contact on the left (like desktop)"). A phone's bottom is taken by the buttons and the text, so they sit at the top
     on the left, under the story's name however many lines it takes (--topbar-h, site.js) */
  .chrome-links { top: calc(var(--topbar-h, 58px) + 2px); bottom: auto; }
  .journal a { grid-template-columns: 96px 1fr; }
  .journal img { width: 96px; }
  .sheet { padding: calc(10px + var(--safe-t)) calc(8px + var(--safe-r)) calc(10px + var(--safe-b)) calc(8px + var(--safe-l)); }
  .page { padding: 46px 20px 30px; }
  body { overflow: auto; }
  #home { position: relative; min-height: 100%; overflow-y: auto; }
  #field { position: relative; inset: auto; padding: calc(128px + var(--safe-t)) calc(16px + var(--safe-r)) 64px calc(16px + var(--safe-l));
    display: grid; gap: 22px; perspective: none; }
  /* the windows hold their places and sway, each in its own time: a turn towards you and away, and a drift back
     (smaller) and forward (bigger). Richard, 2026-09-26: "the story panels rotate very slowly slightly front / back
     (angling to / from the viewer) while each locked in their positions", then "a bit faster a bit more pronounced ...
     maybe also a bit going back (getting smaller tiny bit) and front getting bigger". The turn and the drift are the
     rotate and translate properties, apart from the fly-in's transform; the shadow layer moves with its panel, and the
     panel takes a little more light facing up, and a little less further back. Each window's timings and axis (--sway-*,
     --depth-*) come from site.js */
  .win { position: relative; transform: none !important; perspective: 650px; --sway-a: 8deg; }
  .win-inner { animation: flyin 1.4s cubic-bezier(.16, .84, .24, 1) var(--delay, 0s) both,
    sway var(--sway-t, 5s) ease-in-out var(--sway-at, 0s) infinite alternate,
    depth var(--depth-t, 7s) ease-in-out var(--depth-at, 0s) infinite alternate; }
  .win::before { animation: shadowin 1.4s cubic-bezier(.16, .84, .24, 1) var(--delay, 0s) backwards,
    sway var(--sway-t, 5s) ease-in-out var(--sway-at, 0s) infinite alternate,
    depth var(--depth-t, 7s) ease-in-out var(--depth-at, 0s) infinite alternate; }
  .win-inner::after { animation: swaylight var(--sway-t, 5s) ease-in-out var(--sway-at, 0s) infinite alternate; }
  .win-inner::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #070708; opacity: 0;
    pointer-events: none; animation: depthlight var(--depth-t, 7s) ease-in-out var(--depth-at, 0s) infinite alternate; }
  .foot { position: relative; left: 0; right: 0; bottom: 18px;
    padding: 0 calc(16px + var(--safe-r)) calc(24px + var(--safe-b)) calc(16px + var(--safe-l)); }
  .foot .hint { display: none; }
  .arrow { display: none; }
  .prose { left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r)); max-width: none; bottom: calc(70px + var(--safe-b)); }
  .prose-bar { cursor: default; }
  .full-hint { left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r)); max-width: none; bottom: calc(70px + var(--safe-b)); }
}
@media (prefers-reduced-motion: reduce) {
  .win-inner, .win::before, .win-inner::after, .win-inner::before { animation: none; }
  .slide { transition: none; }
  .sheet-panel { transform: none; }
  .write[open] { animation-name: fade; }
}
