/* THE READER — Haute Lumière, Ivory Season by default, any outfit and any of the seven lights by the reader's choice.
 * THE LIFT (Ammanuel's rule, 3 Dec 2026: "lift the text always lift the text of the background"): every block of words stands
 * on its own sheet of the outfit's paper, above Komorebi and above every picture, with the house's one long shadow. Words never
 * sit on moving light or on a photograph. Serene: one column, wide margins, nothing competing with the reading. */
:root {
  --rd-sheet-a: 96%;
  --shadow-sheet: 0 30px 80px -42px rgba(var(--veil, 12, 30, 22), .42);
  --rd-leaf: var(--text-muted); --rd-pot: var(--text-muted);
  --rd-size: 1.22rem; --rd-measure: 36em; --rd-lead: 1.62;
}
html { background: var(--paper); }
body { margin: 0; color: var(--text-body); font: 400 1.125rem/1.55 var(--font-serif); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; container-type: inline-size; min-height: 100vh; }
a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold-d); }
:focus-visible { outline: 1px solid var(--gold-d); outline-offset: 3px; }
.rd-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rd-skip { position: absolute; left: -999px; top: 8px; z-index: 50; }
.rd-skip:focus { left: 12px; background: var(--paper); padding: 10px 14px; }

/* THE LIFT: the one sheet every word stands on */
.lift { background: color-mix(in srgb, var(--paper) var(--rd-sheet-a), transparent); -webkit-backdrop-filter: blur(16px) saturate(1.04); backdrop-filter: blur(16px) saturate(1.04);
  box-shadow: var(--shadow-sheet); position: relative; isolation: isolate; }
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .lift { background: var(--paper); } }

/* the furniture: Manrope caps, quiet */
.rd-kicker, .rd-chip, .rd-rb, .rd-link, .rd-button, .rd-nav a, .rd-account, .rd-tile-state, .rd-count, .rd-tile-series, .wd-door { font: 500 .68rem/1.5 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; }
.rd-kicker { color: var(--gold-d); margin: 0 0 10px; }
.rd-quiet { color: var(--text-muted); font-style: italic; }
.rd-held { color: var(--ink); font-style: italic; }
.rd-title { font: 300 clamp(2.2rem, 7cqi, 4.2rem)/1.04 var(--font-serif-display, var(--font-serif)); color: var(--ink); margin: 0 0 14px; text-wrap: balance; letter-spacing: -.005em; }
.rd-lede { font-size: 1.3rem; line-height: 1.5; font-style: italic; color: var(--text-body); margin: 0 0 22px; max-width: 34em; }
.rd-h2 { font: 300 2rem/1.1 var(--font-serif); color: var(--ink); margin: 52px 0 18px; }
.rd-button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.rd-button:hover { background: var(--ink); color: var(--paper); }
.rd-link { background: none; border: 0; padding: 0 2px; min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .5em; }
.rd-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin: 18px 0 0; }

/* the bar */
.rd-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: clamp(10px, 2.5cqi, 28px); padding: 10px clamp(14px, 4cqi, 44px); padding-top: max(10px, env(safe-area-inset-top)); min-height: 60px; flex-wrap: wrap; }
.rd-brand { font: 400 1.5rem/1 var(--font-serif); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.rd-brand-mark { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); display: inline-block; }
.rd-nav { display: flex; gap: 18px; }
.rd-nav a { color: var(--text-muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; }
.rd-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--gold); }
.rd-find { flex: 1 1 220px; max-width: 520px; margin-left: auto; }
.rd-find input, .rd-send input, .rd-jq { width: 100%; box-sizing: border-box; min-height: 44px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); font: italic 400 1.1rem/1.3 var(--font-serif); padding: 6px 2px; border-radius: 0; -webkit-appearance: none; appearance: none; }
.rd-find input:focus, .rd-send input:focus, .rd-jq:focus { outline: none; border-bottom-color: var(--gold); }
.rd-find input::placeholder, .rd-send input::placeholder, .rd-jq::placeholder { color: var(--text-muted); }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.rd-tools { display: flex; align-items: center; gap: 14px; }
.rd-account { color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-wheel { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
@media (max-width: 720px) {
  .rd-bar { gap: 6px 14px; }
  .rd-find { order: 9; flex-basis: 100%; max-width: none; margin: 0; }
  .rd-tools { margin-left: auto; gap: 8px; }
}

/* the results of a search: a lifted sheet below the bar */
.rd-results { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); top: 76px; width: min(760px, calc(100vw - 24px)); max-height: min(74vh, 900px); overflow: auto; padding: 22px clamp(16px, 4cqi, 34px) 26px; box-sizing: border-box; overscroll-behavior: contain; }
@media (max-width: 720px) { .rd-results { top: 118px; } }
.rd-results h2 { margin-top: 18px; }
.rd-res-books, .rd-res-pass { list-style: none; margin: 0; padding: 0; }
.rd-res-books a { display: flex; gap: 14px; align-items: center; padding: 8px 0; text-decoration: none; color: var(--ink); min-height: 44px; }
.rd-res-books img, .rd-mini-cover { width: 34px; height: 50px; object-fit: cover; object-position: 50% 0%; background: var(--paper-2); flex: none; box-shadow: var(--shadow-plate); }
.rd-res-books strong { display: block; font-weight: 400; font-size: 1.15rem; line-height: 1.25; }
.rd-res-books em, .rd-res-title { color: var(--text-muted); font-style: italic; font-size: .98rem; }
.rd-res-pass a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--text-body); }
.rd-res-title { display: block; margin-bottom: 2px; }
.rd-res-snip { display: block; line-height: 1.5; }
.rd-res-note { display: block; color: var(--ink); font-style: italic; margin-top: 4px; padding-left: 12px; border-left: 1px solid var(--gold); }
.rd-results mark, .rd-res-pass mark { background: none; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .2em; }

main { display: block; outline: none; }

/* the hero: a plate, and the words on their own sheet beside it, never on it */
.rd-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(22px, 5cqi, 74px); align-items: center; max-width: var(--sheet); margin: clamp(28px, 6cqi, 84px) auto clamp(40px, 7cqi, 96px); padding: 0 clamp(16px, 5cqi, 56px); }
.rd-hero-plate { margin: 0; aspect-ratio: 4 / 5; max-height: 72vh; box-shadow: var(--shadow-plate); overflow: hidden; background: var(--paper-2); }
.rd-hero-plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; }
.rd-hero-words { padding: clamp(24px, 4cqi, 52px); }
@media (max-width: 760px) { .rd-hero { grid-template-columns: 1fr; } .rd-hero-plate { max-height: 56vh; aspect-ratio: 4 / 4.6; } .rd-hero-words { margin-top: -64px; margin-inline: 10px; } }
.rd-bring { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 8px 0 18px; }
.rd-bring-line { font-style: italic; color: var(--text-muted); }
.rd-send { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 14px; }
.rd-send input { flex: 1 1 240px; }
html[data-drop] body::after { content: "Let it go, and the Reader sets its pages"; position: fixed; inset: 14px; z-index: 60; display: grid; place-items: center; border: 1px solid var(--gold); background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); font: italic 300 2rem var(--font-serif); pointer-events: none; }

/* the plant */
.rd-plant-line { display: flex; align-items: flex-end; gap: 12px; margin-top: 22px; min-height: 52px; }
.rd-plant { flex: none; transform-origin: 50% 100%; }
.rd-plant-words { font-style: italic; color: var(--text-muted); }
@media (prefers-reduced-motion: no-preference) {
  .rd-plant { animation: rd-sway calc(var(--breath-period, 10s) * 3) ease-in-out var(--breath-offset, 0s) infinite alternate; } /* hl-ok: a living plant breathes on its own clock (Breath Clock) */
  @keyframes rd-sway { from { transform: rotate(-1.4deg) } to { transform: rotate(1.4deg) } }
}

/* the shelf */
.rd-shelf { max-width: var(--sheet); margin: 0 auto clamp(48px, 8cqi, 120px); padding: clamp(18px, 3.5cqi, 40px) clamp(16px, 4cqi, 48px) clamp(28px, 5cqi, 56px); box-sizing: border-box; }
.rd-shelf-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.rd-chips { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.rd-chip { background: none; border: 0; border-bottom: 1px solid transparent; color: var(--text-muted); min-height: 44px; padding: 0 2px; cursor: pointer; transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); }
.rd-chip:hover { color: var(--ink); }
.rd-chip[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.rd-count { margin: 10px 0 24px; }
.rd-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(22px, 3.5cqi, 40px) clamp(14px, 3cqi, 34px); grid-template-columns: repeat(auto-fill, minmax(clamp(118px, 22cqi, 168px), 1fr)); }
.rd-tile { content-visibility: auto; contain-intrinsic-size: 160px 320px; }
.rd-tile-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.rd-cover { display: block; aspect-ratio: 2 / 3; background: var(--paper-2); box-shadow: var(--shadow-plate); overflow: hidden; margin-bottom: 10px; transition: transform var(--dur-base) var(--ease); }
.rd-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; display: block; }
.rd-tile-link:hover .rd-cover, .rd-tile-link:focus-visible .rd-cover { transform: translateY(-3px); }
.rd-cover-type { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; height: 100%; padding: 14px; box-sizing: border-box; text-align: center; border: 1px solid var(--gold); outline: 6px solid var(--paper-2); outline-offset: -12px; }
.rd-cover-type span { font: 300 1.1rem/1.15 var(--font-serif); }
.rd-cover-type em { font-size: .85rem; color: var(--text-muted); }
.rd-progress { display: block; height: 1px; background: var(--rule); margin: -6px 0 6px; position: relative; overflow: hidden; }
.rd-progress::after { content: ""; position: absolute; inset: 0; border-top: 1px solid var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.rd-tile-title { font: 400 1.08rem/1.25 var(--font-serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rd-tile-author { font-style: italic; color: var(--text-muted); font-size: .95rem; line-height: 1.3; }
.rd-tile-series, .rd-tile-state { color: var(--text-muted); }
.rd-tile-state { color: var(--gold-d); }
.rd-tile-state.rd-held { color: var(--ink); font: italic .92rem/1.35 var(--font-serif); letter-spacing: 0; text-transform: none; }

/* a centred sheet: sending, opening, not here */
.rd-center { max-width: 640px; margin: 12vh auto; padding: clamp(26px, 5cqi, 56px); }

/* THE READING ROOM */
html[data-view="room"] .rd-bar { position: relative; }
.rd-room { display: grid; grid-template-columns: minmax(0, 1fr) min(var(--rd-measure), 100%) minmax(0, 1fr); gap: 0 clamp(18px, 3cqi, 44px); margin: clamp(14px, 4cqi, 52px) auto 140px; padding: 0 clamp(8px, 3cqi, 40px); align-items: start; }
.rd-sheet { grid-column: 2; padding: clamp(26px, 6cqi, 76px) clamp(20px, 6cqi, 72px) clamp(36px, 6cqi, 80px); font-size: var(--rd-size); line-height: var(--rd-lead); box-sizing: content-box; max-width: var(--rd-measure); justify-self: center; width: 100%; }
@media (max-width: 760px) { .rd-room { grid-template-columns: 1fr; padding: 0 6px; } .rd-sheet { grid-column: 1; box-sizing: border-box; max-width: none; } .rd-margin { display: none; } }
.rd-margin { grid-column: 3; position: relative; min-height: 1px; }
.rd-room-head { margin-bottom: clamp(28px, 5cqi, 52px); }
.rd-chapter { font: 300 clamp(1.9rem, 5cqi, 2.9rem)/1.1 var(--font-serif-display, var(--font-serif)); color: var(--ink); margin: 0; text-wrap: balance; }
.rd-text { color: var(--text-body); hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.rd-text p { margin: 0 0 1em; }
.rd-text h1, .rd-text h2, .rd-text h3, .rd-text h4 { font-family: var(--font-serif-display, var(--font-serif)); font-weight: 400; color: var(--ink); line-height: 1.2; margin: 1.8em 0 .6em; text-wrap: balance; }
.rd-text h1 { font-size: 1.8em; font-weight: 300; } .rd-text h2 { font-size: 1.5em; font-weight: 300; } .rd-text h3 { font-size: 1.22em; } .rd-text h4 { font-size: 1.05em; font-style: italic; }
.rd-text blockquote { margin: 1.4em 0; padding-left: 1.1em; border-left: 1px solid var(--gold); font-style: italic; }
.rd-text img, .rd-text svg { max-width: 100%; height: auto; display: block; margin: 1.6em auto; box-shadow: var(--shadow-plate); }
.rd-text figure { margin: 1.6em 0; } .rd-text figcaption { font-style: italic; font-size: .9em; color: var(--text-muted); }
.rd-text pre, .rd-text code { font-family: var(--font-serif); white-space: pre-wrap; }
.rd-text table { border-collapse: collapse; width: 100%; font-size: .9em; } .rd-text td, .rd-text th { border-bottom: 1px solid var(--rule); padding: 6px 8px; text-align: left; }
.rd-text hr { border: 0; border-top: 1px solid var(--rule); margin: 2em auto; width: 30%; }
.rd-text ul, .rd-text ol { padding-left: 1.3em; }
.rd-page { position: relative; padding-top: .2em; }
.rd-page + .rd-page { border-top: 1px solid var(--rule); margin-top: 1.6em; padding-top: 1.6em; }
.rd-folio { font: 500 .62rem/1 var(--font-sans); letter-spacing: .16em; color: var(--text-muted); text-align: right; margin: 0 0 .6em !important; }
.rd-page--printed { min-height: 60vh; border: 0 !important; }
.rd-printed-page { width: 100%; height: auto; display: block; margin: 0 auto 28px; box-shadow: var(--shadow-plate); }
.rd-source { margin-top: 2.4em !important; font-style: italic; color: var(--text-muted); }
.rd-opening { min-height: 40vh; display: grid; place-content: center; justify-items: center; gap: 18px; }
.rd-opening-cover { width: 160px; box-shadow: var(--shadow-plate); }
.rd-note-top { font-size: .95em; }
/* the kept passages: a gold underline, a mark and never a fill; a passage with a note underlined twice */
::highlight(rd-kept) { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .22em; }
::highlight(rd-noted) { text-decoration: underline double; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .22em; }
::highlight(rd-found) { background-color: color-mix(in srgb, var(--gold) 26%, transparent); color: var(--ink); }
.rd-text ::selection { background: color-mix(in srgb, var(--gold) 30%, transparent); color: var(--ink); }

.rd-turn { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--rule); }
.rd-turn-b { background: none; border: 0; text-align: left; color: var(--ink); font: 400 1.1rem/1.3 var(--font-serif); cursor: pointer; padding: 8px 0; min-height: 44px; }
.rd-turn-b .rd-kicker { display: block; margin-bottom: 4px; }
.rd-turn-next { text-align: right; grid-column: 2; }
.rd-end { grid-column: 2; text-align: right; }

.rd-mnote { position: absolute; left: 0; top: 0; width: min(260px, 100%); text-align: left; background: color-mix(in srgb, var(--paper) var(--rd-sheet-a), transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow-sheet); border: 0; border-left: 1px solid var(--gold);
  padding: 12px 14px; font: italic 400 1rem/1.45 var(--font-serif); color: var(--ink); cursor: pointer; transition: transform var(--dur-base) var(--ease); }

/* the room's bar, at the foot, out of the way */
.rd-room-bar { position: fixed; z-index: 25; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 4px clamp(10px, 2.4cqi, 22px); padding: 4px clamp(12px, 2.5cqi, 22px); flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 20px); box-sizing: border-box; }
.rd-rb { background: none; border: 0; border-bottom: 1px solid transparent; color: var(--ink); min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; text-decoration: none; padding: 0 4px; }
.rd-rb[aria-expanded="true"], .rd-rb[aria-pressed="true"] { border-bottom: 1px solid var(--gold); }
.rd-rb-progress { width: 90px; height: 1px; background: var(--rule); position: relative; overflow: hidden; }
.rd-rb-progress span { position: absolute; inset: 0; border-top: 1px solid var(--gold); transform-origin: 0 50%; transform: scaleX(0); transition: transform var(--dur-base) var(--ease); }
html:not([data-view="room"]) .rd-room-bar { display: none; }
.rd-panel { position: fixed; z-index: 26; left: 50%; transform: translateX(-50%); bottom: 82px; width: min(560px, calc(100vw - 24px)); max-height: 62vh; overflow: auto; padding: 22px 26px; box-sizing: border-box; overscroll-behavior: contain; }
.rd-panel .rd-chips { margin-bottom: 14px; }
.rd-toc { list-style: none; padding: 0; margin: 0; counter-reset: c; }
.rd-toc button { background: none; border: 0; border-bottom: 1px solid var(--rule); width: 100%; text-align: left; padding: 10px 0; min-height: 44px; font: 400 1.08rem/1.3 var(--font-serif); color: var(--text-body); cursor: pointer; }
.rd-toc button[aria-current] { color: var(--ink); border-left: 1px solid var(--gold); padding-left: 10px; }

/* Keep this */
.rd-keep { position: fixed; z-index: 40; display: flex; gap: 2px; padding: 2px 6px; }
.rd-keep[data-dock] { left: 50% !important; transform: translateX(-50%); top: auto !important; bottom: max(78px, calc(env(safe-area-inset-bottom) + 70px)); }
.rd-keep-b { background: none; border: 0; border-bottom: 1px solid transparent; color: var(--ink); min-height: 44px; padding: 0 12px; cursor: pointer; font: 500 .68rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; }
.rd-keep-b:first-child { border-bottom: 1px solid var(--gold); }
.rd-card { position: fixed; z-index: 45; right: clamp(12px, 3vw, 40px); bottom: clamp(80px, 12vh, 120px); width: min(460px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; padding: 22px 24px; box-sizing: border-box; }
.rd-card-quote { margin: 0 0 14px; padding-left: 14px; border-left: 1px solid var(--gold); font-style: italic; color: var(--ink); }
.rd-note { width: 100%; box-sizing: border-box; border: 0; border-bottom: 1px solid var(--rule); background: transparent; color: var(--ink); font: 400 1.08rem/1.5 var(--font-serif); padding: 6px 0; resize: vertical; border-radius: 0; }
.rd-note:focus { outline: none; border-bottom-color: var(--gold); }
.rd-card-do { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; margin-top: 14px; }
.rd-card-more { margin-top: 12px; }
.rd-versions { padding-left: 1.2em; }
@media (max-width: 720px) { .rd-card { left: 12px; right: 12px; width: auto; bottom: 74px; } }

/* the journal */
.rd-journal { max-width: 860px; margin: 0 auto 120px; padding: clamp(22px, 5cqi, 60px); box-sizing: border-box; }
.rd-jq { margin-bottom: 28px; }
.rd-jbook { padding: 26px 0; border-bottom: 1px solid var(--rule); }
.rd-jbook > header { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.rd-jbook-head { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.rd-jbook-head img { width: 42px; height: 63px; object-fit: cover; object-position: 50% 0%; box-shadow: var(--shadow-plate); }
.rd-jbook-title { display: block; font: 400 1.35rem/1.2 var(--font-serif); }
.rd-jbook-head em { color: var(--text-muted); }
.rd-jmark { margin: 16px 0; padding-left: 16px; border-left: 1px solid var(--gold); }
.rd-jmark a { color: var(--text-body); text-decoration: none; font-style: italic; }
.rd-jnote { margin: 6px 0 0; color: var(--ink); }
.rd-jfrom { margin: 4px 0 0; font-size: .9rem; color: var(--text-muted); }

/* the keepsake, set for the page and for print */
.rd-keepsake { max-width: 720px; margin: clamp(20px, 5cqi, 64px) auto 120px; padding: clamp(28px, 7cqi, 84px); box-sizing: border-box; }
.rd-keep-head { text-align: center; margin-bottom: 44px; }
.rd-keep-cover { width: 150px; box-shadow: var(--shadow-plate); margin-bottom: 26px; }
.rd-keep-head .rd-actions { justify-content: center; }
.rd-keep-mark { margin: 0 0 34px; padding: 0 0 28px; border-bottom: 1px solid var(--rule); break-inside: avoid; }
.rd-keep-mark p { font: italic 400 1.28rem/1.55 var(--font-serif); color: var(--ink); margin: 0; }
.rd-keep-mark footer { margin-top: 12px; padding-left: 14px; border-left: 1px solid var(--gold); color: var(--text-body); }
.rd-keep-foot { text-align: center; color: var(--text-muted); font: 500 .62rem/1 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; margin-top: 48px; }
@media print {
  .rd-bar, .rd-room-bar, .rd-noprint, .wd-door, .kmr, #whisper, .rd-results { display: none !important; }
  body, html { background: var(--paper) !important; }
  .lift { box-shadow: none !important; backdrop-filter: none !important; background: transparent !important; }
  .rd-keepsake { margin: 0 auto; padding: 0; }
}

/* the whisper: one quiet line, never an alert */
.rd-whisper { position: fixed; z-index: 50; left: 50%; bottom: 90px; transform: translate(-50%, 8px); margin: 0; padding: 12px 18px; max-width: min(560px, calc(100vw - 28px)); box-sizing: border-box;
  background: color-mix(in srgb, var(--paper) 96%, transparent); box-shadow: var(--shadow-sheet); color: var(--ink); font: italic 400 1.05rem/1.4 var(--font-serif); opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); }
.rd-whisper[data-on] { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
html:not([data-view="room"]) .rd-whisper { bottom: 26px; }
.rd-noscript { max-width: 520px; margin: 20vh auto; padding: 30px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

@media (max-width: 720px) {
  .rd-room-bar { flex-wrap: nowrap; gap: 0 10px; padding: 2px 10px; overflow-x: auto; scrollbar-width: none; width: max-content; max-width: calc(100vw - 16px); }
  .rd-room-bar::-webkit-scrollbar { display: none; }
  .rd-rb { white-space: nowrap; }
  .rd-rb-progress { display: none; }
}
