/* Appleby · Plan 3 Personal Computer · Personal Computer */
@font-face{font-family:M;font-weight:500;src:url(fonts/montserrat-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:M;font-weight:700;src:url(fonts/montserrat-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:M;font-weight:800;src:url(fonts/montserrat-latin-800-normal.woff2) format("woff2")}
@font-face{font-family:R;font-weight:400;src:url(fonts/newsreader-latin-400-normal.woff2) format("woff2")}
:root{
  --blue:#1424B2;            /* average of the original blue texture (sampled, not a client-specified value) */
  --navy:#08105e;
  --face:#c6c6c6;
  --ink:#141414;
  --task:44px;
  --titlebar-height:36px;
  --ease:cubic-bezier(.2,.7,.2,1);
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:var(--blue)}
body{font-family:M,system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;cursor:pointer}
img{display:block}
.px{image-rendering:pixelated}
:focus{outline:none}
:focus-visible{outline:2px dotted #fff;outline-offset:2px}
.win :focus-visible,.task :focus-visible{outline:2px dotted #000;outline-offset:-4px}

/* ---------- desktop ---------- */
#desk{position:absolute;inset:0 0 var(--task) 0;background:var(--blue) url(assets/blue_texture.png) center/cover;overflow:hidden}
.icons{position:absolute;left:clamp(16px,2.4vw,40px);top:clamp(16px,3vh,36px);display:flex;flex-direction:column;gap:clamp(10px,3.2vh,40px);z-index:1}
.ic{all:unset;box-sizing:border-box;width:150px;padding:6px 4px;display:flex;flex-direction:column;align-items:center;gap:10px;color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ic .im{width:76px;height:clamp(84px,12vh,118px);display:flex;align-items:flex-end;justify-content:center}
.shortcut-art{display:grid;place-items:center;position:relative;width:100%;aspect-ratio:1;pointer-events:none;transition:filter .12s}
.shortcut-art img{width:100%;height:100%;object-fit:contain}
.ic .lb{font-weight:700;font-size:12.5px;letter-spacing:.05em;padding:3px 7px;line-height:1.2}
.ic:hover .shortcut-art{filter:brightness(1.08)}
.ic.sel .lb{background:#fff;color:var(--blue)}
.ic.sel:not(.unsealing) .shortcut-art{filter:brightness(.6) contrast(1.08) saturate(1.25)}
.ic:focus-visible{outline:none}
.ic:focus-visible .lb{outline:1px dotted #fff;outline-offset:3px}
.hint{margin:0;min-height:18px;width:150px;text-align:center;color:#fff;font-size:11px;font-weight:500;letter-spacing:.03em;opacity:.85}
.title{position:absolute;left:clamp(16px,3.6vw,60px);bottom:clamp(20px,5vh,56px);color:#fff;z-index:0;pointer-events:none}
.title .kick{margin:0;font-weight:800;font-size:13px;letter-spacing:.24em;opacity:.9}
.title h1{margin:10px 0 0;font-weight:800;font-size:clamp(34px,3.4vw,56px);letter-spacing:-.01em;line-height:1.05}

/* ---------- shortcut artwork ---------- */
.shortcut-book,.shortcut-tape{display:block;position:relative}
.shortcut-book{width:88%;aspect-ratio:254/288}
.shortcut-book::after{
  content:"";position:absolute;left:57%;top:36%;width:33%;aspect-ratio:1;
  background:#fff7d9;opacity:0;transform:translate(-50%,-50%) scale(.25);
  clip-path:polygon(50% 0,57% 42%,100% 50%,57% 57%,50% 100%,43% 57%,0 50%,43% 42%);
}
.shortcut-tape{width:100%;aspect-ratio:396/250}
.shortcut-reel{
  position:absolute;left:29.5%;top:45%;width:7.5%;aspect-ratio:1;border-radius:50%;
  margin:-3.75% 0 0 -3.75%;
  background:repeating-conic-gradient(#aec7dc 0deg 35deg,#202a46 35deg 120deg);
  box-shadow:inset 0 0 0 1px #162746;
}
.shortcut-reel:last-child{left:71.7%;top:44.7%}
.shortcut-envelope>img{grid-area:1/1}
.shortcut-envelope-open{position:absolute;inset:0;opacity:0}
.shortcut-envelope-open>span{position:absolute;display:block}
.shortcut-envelope-back{
  inset:22% 7% 19%;background:#acb3c9;border:2px solid #12184b;
}
.shortcut-envelope-flap{
  inset:22% 7% auto;height:32%;transform-origin:top;
  background:#101744;
  clip-path:polygon(0 0,100% 0,100% 14%,90% 14%,90% 30%,79% 30%,79% 47%,68% 47%,68% 64%,57% 64%,57% 83%,50% 100%,43% 83%,43% 64%,32% 64%,32% 47%,21% 47%,21% 30%,10% 30%,10% 14%,0 14%);
}
.shortcut-envelope-flap::before{
  content:"";position:absolute;inset:2px;background:#d0d4e0;clip-path:inherit;
}
.shortcut-letter{
  inset:38% 21% auto 22%;height:46%;transform:translateY(0);
  border:2px solid #1d2a56;background:#fff5d7;
  box-shadow:inset -2px -2px #e3d4ae;
}
.shortcut-letter::before{
  content:"";position:absolute;inset:24% 20% 34%;
  background:repeating-linear-gradient(to bottom,#8494ba 0 1px,transparent 1px 4px);
}
.shortcut-envelope-pocket{
  inset:0;background:url(assets/icon_contact.png) center/contain no-repeat;image-rendering:pixelated;
  clip-path:polygon(7% 22%,50% 63%,93% 22%,93% 81%,7% 81%);
}
@media (prefers-reduced-motion:no-preference){
  .shortcut-book{transition:transform .28s var(--ease)}
  .ic:hover .shortcut-book{transform:rotate(-4deg) translateY(-1px)}
  .shortcut-book::after{animation:shortcut-glint 6.2s ease-in-out infinite}
  .shortcut-reel{animation:shortcut-reel-spin 1.85s steps(18,end) infinite}
  .shortcut-reel:last-child{animation-duration:2.2s}
  .shortcut-envelope>img,.shortcut-envelope-open{transition:opacity .1s linear}
  .shortcut-envelope-flap{transition:transform .19s var(--ease)}
  .shortcut-letter{transition:transform .30s var(--ease) .12s}
  .unsealing .shortcut-envelope>img{opacity:0}
  .unsealing .shortcut-envelope-open{opacity:1}
  .unsealing .shortcut-envelope-flap{transform:scaleY(-1)}
  .unsealing .shortcut-letter{transform:translateY(-100%) rotate(-7deg)}
}
@keyframes shortcut-glint{
  0%,69%,87%,100%{opacity:0;transform:translate(-50%,-50%) scale(.25) rotate(0deg)}
  76%{opacity:.88;transform:translate(-50%,-50%) scale(1) rotate(13deg)}
}
@keyframes shortcut-reel-spin{to{transform:rotate(1turn)}}

/* ---------- bevel system ---------- */
.bev{background:var(--face);box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px #808080,inset 2px 2px #dfdfdf;border:0}
.sunk{background:#fff;box-shadow:inset -1px -1px #fff,inset 1px 1px #808080,inset -2px -2px #dfdfdf,inset 2px 2px #0a0a0a}
.b{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:0 18px;font-weight:700;font-size:12.5px;letter-spacing:.05em}
.b:active:not(:disabled){box-shadow:inset 1px 1px #0a0a0a,inset -1px -1px #fff,inset 2px 2px #808080}
.b.pri{background:var(--blue);color:#fff;box-shadow:inset -1px -1px #02052e,inset 1px 1px #6f7cf0,inset -2px -2px #0b1478,inset 2px 2px #3546d6}
.b:disabled,.b.pri:disabled{background:var(--face);color:#8a8a8a;cursor:default;text-shadow:1px 1px #fff;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px #808080,inset 2px 2px #dfdfdf}
.lab{font-size:10.5px;font-weight:800;letter-spacing:.16em;color:#4a4a4a;margin:0}
.src{font-size:11px;color:#6b6b6b;margin:8px 0 0;font-weight:500;letter-spacing:.02em}

/* ---------- windows ---------- */
.win{position:absolute;padding:3px;display:flex;flex-direction:column;min-width:260px;filter:drop-shadow(4px 5px 0 rgba(4,8,60,.28))}
.win[hidden]{display:none}
.win.opening{animation:open .2s var(--ease)}
@keyframes open{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
.tb{height:var(--titlebar-height);flex:none;display:flex;align-items:center;gap:8px;padding:0 12px 0 9px;color:#fff;font-weight:700;font-size:12.5px;letter-spacing:.02em;background:linear-gradient(90deg,var(--navy),#1f35cf);user-select:none;touch-action:none;cursor:default}
.win:not(.active) .tb{background:linear-gradient(90deg,#7b7b7b,#b4b4b4);color:#ececec}
.tb .ti{width:18px;height:18px;object-fit:contain;flex:none}
.tb .tt{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb .back{display:none}
.cb{width:27px;height:24px;display:grid;place-items:center;padding:0;font-size:12px;font-weight:800;color:#000;flex:none}
.cb.x{margin-left:5px}
.wb{flex:1;position:relative;min-height:0;display:flex;flex-direction:column}
.status{height:24px;flex:none;display:flex;gap:3px;margin-top:3px;font-size:11.5px;font-weight:500}
.status span{padding:0 8px;display:flex;align-items:center;box-shadow:inset -1px -1px #fff,inset 1px 1px #808080;color:#222;white-space:nowrap;overflow:hidden}
.status span:first-child{flex:1}
.win.max{left:0!important;top:0!important;width:100%!important;height:100%!important;filter:none}

/* ---------- social profiles ---------- */
.follow-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  margin-top: 3px;
  background: #f7f3e9;
  touch-action: pan-y;
}
.follow-panel ul {
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  border: 1px solid #a6a297;
  background: #fffcf4;
}
.follow-panel li + li { border-top: 1px solid #c8c3b7; }
.follow-panel a {
  display: grid;
  grid-template-columns: 1fr auto 22px;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 9px 12px;
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
}
.follow-panel a:hover { background: #e6e8fa; }
.follow-handle { color: #4d4e60; font: 12px/1.2 ui-monospace, monospace; }
.follow-arrow { font: 18px/1 system-ui, sans-serif; text-align: center; }

/* ---------- photo viewer ---------- */
.viewer{flex:1;position:relative;padding:2px;min-height:0}
.viewer img{width:100%;height:100%;object-fit:contain;background:#111}
.vnav{display:flex;gap:4px;align-items:center}
.vnav .b{min-height:22px;padding:0 10px;font-size:11px}

/* ---------- music ---------- */
.mus{flex:1;display:flex;gap:5px;min-height:0}
.mlist{width:clamp(230px,26%,330px);flex:none;padding:16px 14px;overflow:auto}
.mlist .cv{display:flex;gap:12px;align-items:flex-end;margin-bottom:14px}
.mlist .cv img{width:96px;height:96px;object-fit:cover}
.ep{font-weight:800;font-size:16px;margin:0 0 4px}
.trk{list-style:none;margin:0;padding:0;border-top:1px solid #111}
.trk button{all:unset;box-sizing:border-box;width:100%;min-height:38px;display:flex;align-items:center;gap:12px;padding:6px 10px;font-size:14px;font-weight:500;border-bottom:1px solid #ececec;cursor:pointer}
.trk button .n{width:20px;flex:none;font-weight:700;color:#777}
.trk button .t{flex:1;min-width:0;overflow-wrap:anywhere}
.trk button .tag{font-size:9.5px;font-weight:800;letter-spacing:.14em;opacity:.8}
.trk button:hover{background:#e7e9fb}
.trk button:focus-visible{outline:2px dotted var(--blue);outline-offset:-3px}
.trk button[aria-current=true]{background:var(--blue);color:#fff;font-weight:700}
.trk button[aria-current=true] .n{color:#fff}
.mdet{flex:1;min-width:0;position:relative;background:#f4f3ef;display:flex;flex-direction:column}
.mbody{flex:1;min-height:0;overflow:auto;padding:clamp(18px,2.4vw,32px);display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(20px,2.6vw,40px);align-content:start;transition:opacity .18s}
.mbody.fade{opacity:0}
.art{width:100%;aspect-ratio:1;object-fit:cover;background:#ddd}
.cap{font-size:11px;color:#6b6b6b;margin:8px 0 0;font-weight:500}
.mt h2{font-weight:800;font-size:clamp(30px,3.2vw,52px);line-height:1;letter-spacing:-.015em;margin:12px 0 26px;overflow-wrap:break-word;hyphens:none}
.quote{font-family:R;font-size:clamp(17px,1.35vw,21px);line-height:1.5;margin:10px 0 0}
.pend{font-size:13px;line-height:1.55;color:#555;margin:10px 0 0;max-width:36ch}
.transport{flex:none;margin:3px;padding:12px clamp(14px,2vw,28px);display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.transport .note{font-size:12px;font-weight:500;color:#333}

/* ---------- visual bible ---------- */
.vb{flex:1;display:flex;gap:5px;min-height:0}
.side{width:124px;flex:none;padding:14px 10px;display:flex;flex-direction:column;gap:12px;overflow:auto;background:#eae7e0}
.side button{all:unset;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:6px;padding:5px;font-size:10.5px;font-weight:800;letter-spacing:.12em}
.side img{width:74px;height:116px;object-fit:cover;box-shadow:2px 3px 0 rgba(0,0,0,.14);transition:transform .15s var(--ease)}
.side button:hover img{transform:translateY(-2px)}
.side button[aria-current=true]{background:rgba(20,36,178,.14);outline:2px dotted var(--blue);outline-offset:-2px}
.side button[aria-current=true] span{color:var(--blue)}
.side button:focus-visible{outline:2px dotted #000;outline-offset:-2px}
.pane{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;background:#fbfaf6}
.phead{flex:none;display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid #ddd;flex-wrap:wrap}
.phead .sp{flex:1}
.tabs{display:flex;gap:4px;flex-wrap:wrap}
.tabs button{min-height:30px;padding:0 12px;font-size:12px;font-weight:700;letter-spacing:.02em;max-width:230px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tabs button[aria-current=true]{background:#fff;box-shadow:inset 1px 1px #0a0a0a,inset -1px -1px #fff,inset 2px 2px #808080}
.read{flex:1;min-height:0;overflow:auto;scroll-behavior:auto;overscroll-behavior:contain}
.read .inner{max-width:64ch;margin:0 auto;padding:clamp(22px,3vw,40px) clamp(20px,4vw,56px) 64px;font-family:R;font-size:clamp(18px,1.3vw,20px);line-height:1.62;color:#141414}
.read .inner p{margin:0 0 1.05em}
.read .end{font-family:M;font-size:11px;letter-spacing:.14em;color:#8a8a8a;margin-top:28px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;padding:18px}
.grid button{all:unset;cursor:pointer;display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:500;color:#444}
.grid img{width:100%;aspect-ratio:4/3;object-fit:cover;background:#ddd;box-shadow:0 0 0 1px #bbb}
.grid button:hover img{box-shadow:0 0 0 2px var(--blue)}
.grid button:focus-visible{outline:2px dotted #000;outline-offset:3px}
.vbfocus .side{display:none}
.focusbtn{min-height:30px!important;padding:0 12px!important;font-size:11.5px!important}

/* ---------- correspondence ---------- */
@property --letter-swap {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
#w-contact { container: mail-window / size; }
.correspondence {
  --paper: #f7f2e3;
  --pen: #162857;
  height: 100%; min-height: 0;
  font-family: M, sans-serif; color: var(--pen);
}
.correspondence [hidden] { display: none; }
.envelope {
  height: 100%; display: grid; grid-template-columns: 34px 1fr; align-content: center; align-items: center;
  gap: 16px 14px; padding: 7px 18px; background: var(--face); color: var(--ink);
}
.warning-sign {
  width: 32px; height: 29px; padding-top: 5px; display: grid; place-content: center;
  font: bold 21px/1 Arial, sans-serif; background: #e7c04a; color: #161400;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.envelope h2 { font: 500 14px/1.42 M, sans-serif; margin: 0; }
.envelope-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.envelope-actions button { min-width: 77px; }
#w-contact.is-warning .mx, #w-contact.is-warning .grip { display: none; }
.letter-stamp {
  position: relative; flex: none; display: grid; place-items: center;
  width: 57px; height: 67px; transform: rotate(4deg); color: #1e3975;
  background: radial-gradient(circle at 3px 3px, transparent 2px, #e6dfc9 2.7px) -3px -3px / 6px 6px;
  isolation: isolate;
}
.letter-stamp::before {
  content: ""; position: absolute; inset: 4px; z-index: -1;
  border: 2px solid #c9c5a9; outline: 1px solid #31426b; outline-offset: -6px;
  background: #263d78 url(assets/blue_texture.png) center/cover;
}
.letter-stamp img { width: 56%; height: 58%; object-fit: contain; filter: brightness(0) invert(.94); }
.letter-stamp::after {
  content: ""; position: absolute; right: 64%; top: 64%; width: 45px; height: 13px;
  border-block: 1px solid #34456899;
  background: linear-gradient(transparent 46%, #34456899 46% 53%, transparent 53%); transform: rotate(-12deg);
}
.correspondence .b { min-height: 32px; padding-inline: 13px; font-size: 12px; letter-spacing: .01em; }
.letter-editor {
  --turn: 520ms cubic-bezier(.22,.72,.18,1);
  display: flex; flex-direction: column; height: 100%; padding: 9px 8px 6px;
}
.mail-folders { flex: none; display: flex; align-items: end; padding-left: 2px; }
.mail-folders button {
  min-height: 32px; margin: 0 2px 0 0; padding: 5px 12px;
  background: #d8d7cf; color: #42444d; border: 1px solid #85867d; border-bottom: 0;
  box-shadow: inset 1px 1px #f8f6ed; font: 500 12px/1.25 M, sans-serif;
}
.mail-folders button[aria-pressed=true] { background: #fbf6e9; color: var(--pen); font-weight: 700; box-shadow: inset 0 2px var(--pen); }
.letter-spread {
  --letter-swap: 0;
  flex: 1; min-height: 0; position: relative; container-type: size; isolation: isolate;
  border: 1px solid #85867d; box-shadow: 1px 1px 0 #fff; overflow: hidden;
}
.letter-editor[data-mode=booking] .letter-spread { --letter-swap: 1; }
/* The moving sheet uncovers the next print while covering the previous one. */
.letter-photos { position: absolute; inset: 0; display: flex; justify-content: space-between; }
.letter-photos figure {
  width: 47%; min-width: 0; min-height: 0; overflow: hidden; display: flex; flex-direction: column;
  justify-content: center; margin: 0; padding: clamp(9px,2cqw,22px); gap: 9px; background: #2a3336;
}
.letter-photos img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; }
.letter-photos figcaption { flex: none; font: 12px/1.2 'Courier New', monospace; color: #f1ede2; }
.letter-photos [data-print=booking] { width: 53%; padding-inline: clamp(6px,1cqw,12px); background: #27231e; }
.letter-photos [data-print=booking] figcaption { color: #ead0a4; padding-left: 3px; }
.letter-paper {
  position: absolute; inset: 0 auto 0 0; z-index: 1; min-width: 0; min-height: 0;
  width: calc(53% - 6% * var(--letter-swap));
  transform: translateX(calc(47cqw * (1 - var(--letter-swap))));
  display: flex; flex-direction: column;
  padding: clamp(12px,4.6cqh,35px) clamp(14px,3cqw,36px);
  color: #17233e; background: #f8f4e8;
  box-shadow: -6px 0 14px -8px #18181199, 6px 0 14px -8px #18181199;
}
.letter-editor[data-mode=booking] .letter-paper { background: #f1ebdc; color: #332b22; }
.letter-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-bottom: clamp(12px,4cqh,26px); }
.letter-heading label { font: 400 clamp(28px,5.7cqw,64px)/1.03 R, Georgia, serif; letter-spacing: -.045em; cursor: text; }
.letter-heading .letter-stamp { margin: 0 0 clamp(13px,7cqh,48px) -12px; width: clamp(34px,6cqw,61px); height: clamp(41px,7.2cqw,74px); }
.letter-editor[data-mode=booking] .letter-stamp { transform: rotate(-2deg); }
.subject-slot { display: grid; grid-template-rows: 0fr; opacity: 0; }
.letter-editor[data-mode=booking] .subject-slot { grid-template-rows: 1fr; opacity: 1; }
.booking-subject { min-height: 0; overflow: hidden; display: flex; align-items: center; gap: 8px; }
.booking-subject label { font: bold 10px/1.2 'Courier New', monospace; text-transform: uppercase; letter-spacing: .05em; }
.booking-subject input {
  width: 0; flex: 1; border: 0; border-bottom: 1px solid #aa9b82; border-radius: 0;
  background: transparent; color: inherit; padding: 7px 2px; font: 14px/1.3 M,sans-serif;
}
.letter-paper textarea {
  flex: 1; min-height: 0; width: 100%; resize: none; padding: 0 2px;
  border: 0; border-radius: 0; color: #20242c; caret-color: #1c3271;
  font: 400 19px/29px R, Georgia, serif;
  background: repeating-linear-gradient(transparent 0 28px, #c6c2b4 28px 29px) local;
}
.letter-editor[data-mode=booking] textarea { margin-top: 10px; }
.letter-paper textarea::placeholder, .booking-subject input::placeholder { color: #636358; opacity: 1; }
.letter-paper textarea:focus-visible, .booking-subject input:focus-visible { outline: none; box-shadow: -2px 0 #8792ab; }
.mail-bar { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 10px 1px 1px; }
.mail-tools { order: 1; display: flex; align-items: center; gap: 6px; }
.mail-tools a { text-decoration: none; }
.mail-status { margin: 0; color: #414345; font: 11px/1.35 M, sans-serif; }
.postcard-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 17px; }
.journal-note .postcard-links .reply-link { font-weight: 700; color: #182b66; }
@media (prefers-reduced-motion: no-preference) {
  .letter-spread { transition: --letter-swap 660ms cubic-bezier(.42,.04,.2,1); }
  .letter-paper { transition: background-color var(--turn), color var(--turn); }
  .letter-stamp { transition: transform var(--turn); }
  .letter-photos figure { --print-x: 12px; --print-y: 0px; }
  .letter-photos [data-print=booking] { --print-x: -12px; }
  .letter-photos img, .letter-photos figcaption { transition: transform var(--turn), opacity var(--turn); }
  .letter-photos [aria-hidden=true] :is(img,figcaption) { transform: translate(var(--print-x),var(--print-y)); opacity: .76; }
  .subject-slot { transition: grid-template-rows var(--turn), opacity var(--turn); }
  .letter-paper textarea { transition: margin-top var(--turn); }
}
@container mail-window (max-width: 540px) and (min-height: 380px) {
  .letter-photos { flex-direction: column; }
  .letter-photos figure, .letter-photos [data-print=booking] { width: 100%; height: 46%; align-items: center; padding: 6px; gap: 3px; --print-x: 0px; --print-y: 7px; }
  .letter-photos [data-print=booking] { --print-y: -7px; }
  .letter-photos img { width: auto; max-width: 100%; }
  .letter-photos figcaption { font-size: 11px; }
  .letter-paper {
    width: 100%; height: 54%; padding: 10px 16px;
    transform: translateY(calc(46cqh * (1 - var(--letter-swap))));
    box-shadow: 0 -5px 12px -7px #18181199, 0 5px 12px -7px #18181199;
  }
  .letter-heading { align-items: center; margin-bottom: 7px; }
  .letter-heading .letter-stamp { width: 30px; height: 37px; margin: 0; }
}
@container mail-window (max-width: 600px) {
  .mail-bar { flex-direction: column; align-items: start; gap: 4px; }
  .mail-tools { order: 0; }
  .mail-folders button { padding-inline: 8px; font-size: 11px; }
}
@container mail-window (max-height: 370px) {
  .letter-editor { padding: 4px; }
  .letter-paper { padding: 7px 10px; }
  .letter-heading { align-items: center; margin-bottom: 5px; }
  .letter-heading label { font-size: clamp(20px,4.9cqw,36px); }
  .letter-heading .letter-stamp { width: 24px; height: 30px; margin: 0; }
  .letter-paper textarea { font-size: 16px; line-height: 23px; background-size: 100% 23px; background-image: linear-gradient(transparent 22px, #c6c2b4 22px); }
  .booking-subject input { padding-block: 2px; font-size: 12px; }
  .letter-editor[data-mode=booking] textarea { margin-top: 3px; }
  .mail-bar { padding-top: 4px; gap: 2px; }
  .mail-tools .b { min-height: 26px; }
}
@media (max-width:760px), (pointer:coarse) and (orientation:landscape) and (max-height:550px) and (max-width:1000px) {
  #w-contact.is-warning { left: 50%!important; top: 55%!important; width: min(390px,96%)!important; min-width: 0; height: min(155px,90%)!important; transform: translate(-50%,-50%); padding: 3px; }
  #w-contact.is-warning .tb { height: 30px; }
  #w-contact.is-warning .cb { height: 24px; width: 25px; }
  #w-contact.is-warning .back { display: none; }
  #w-contact.is-warning.opening { animation: none; }
}
/* ---------- taskbar ---------- */
.task{position:absolute;left:0;right:0;bottom:0;height:var(--task);display:flex;align-items:center;gap:6px;padding:4px 5px 3px;background:var(--face);box-shadow:inset 0 1px #dfdfdf,inset 0 2px #fff;z-index:10000}
.btn{height:34px;display:flex;align-items:center;gap:8px;padding:0 12px;font-size:12.5px;font-weight:700;letter-spacing:.02em;flex:none}
.btn img{height:20px;width:22px;object-fit:contain}
.start img{width:26px;height:25px;filter:brightness(0)}
.start b{font-weight:800;letter-spacing:.06em;font-size:13px}
.sep{width:2px;height:32px;box-shadow:inset 1px 0 #808080,inset -1px 0 #fff;margin:0 3px;flex:none}
.tasks{display:flex;gap:5px;min-width:0;flex:1;overflow-x:auto;scrollbar-width:none}
.tasks .btn{width:200px;flex:0 1 200px;min-width:120px;justify-content:flex-start}
.tasks .btn span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tasks .btn.on{box-shadow:inset 1px 1px #0a0a0a,inset -1px -1px #fff,inset 2px 2px #808080,inset -2px -2px #dfdfdf;background:#d8d8d8 repeating-conic-gradient(#c6c6c6 0 25%,#e6e6e6 0 50%) 0 0/2px 2px}
.tasks .btn.min span{font-weight:500}
.tray{height:34px;padding:0 14px;display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;letter-spacing:.06em;box-shadow:inset 1px 1px #808080,inset -1px -1px #fff;flex:none;white-space:nowrap}

/* ---------- small screens: one full-screen app at a time ---------- */
@media (max-width:760px), (pointer:coarse) and (orientation:landscape) and (max-height:550px) and (max-width:1000px) {
  :root{--task:56px}
  .icons{left:0;right:0;top:28px;flex-direction:row;justify-content:space-evenly;gap:0}
  .ic{width:110px}
  .ic .im{height:86px}
  .hint{display:none}
  .title{left:20px;right:20px;bottom:28px}
  .title h1{font-size:40px}
  .win{left:0!important;top:0!important;width:100%!important;height:100%!important;filter:none;padding:0}
  .win:not(.active){display:none}
  .tb{height:48px;font-size:14px}
  .tb .back{display:flex;min-height:36px;padding:0 10px;font-size:12px}
  .tb .ti{display:none}
  .cb.mx{display:none}
  .cb{width:40px;height:36px;font-size:15px}
  .mus{flex-direction:column;overflow:auto}
  .mlist{width:auto;order:2;overflow:visible}
  .mlist .cv{display:none}
  .mdet{order:1;flex:none}
  .mbody{grid-template-columns:1fr;overflow:visible}
  .vb{flex-direction:column}
  .side{width:auto;flex-direction:row;padding:8px;gap:4px;overflow-x:auto}
  .side{flex:none}
  .side img{display:none}
  .side button{padding:10px 12px;font-size:11px}
  .phead{padding:8px 12px;gap:6px}
  .phead .lab{display:none}
  .tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%}
  .tabs button{flex:none;max-width:210px}
  .cb.mn{display:none}
  .tasks .btn{width:auto;flex:0 0 auto;min-width:0}
  .tasks .btn img{display:none}
  .tray{display:none}
  .start b{display:none}
  .focusbtn{display:none!important}
}
@media (prefers-reduced-motion:reduce){
  .win.opening{animation:none}
  .mbody,.shortcut-art,.side img{transition:none}
}

/* The inset uses the four photographic edges of the approved monitor. */
body {
  --rim: clamp(24px, min(4vw, 6.4vh), 72px);
  --bottom-rim: max(var(--rim), 23px);
  position: relative;
  overflow: visible;
  border: var(--rim) solid #595650;
  border-bottom-width: var(--bottom-rim);
  border-image: url(assets/monitor.jpg) 64 / var(--rim) var(--rim) var(--bottom-rim) stretch;
  background: #282722;
}
.case-wordmark {
  position: absolute;
  top: calc(100% + var(--bottom-rim) * .56);
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(75 67 56 / 78%);
  font: normal 400 clamp(11px, calc(var(--bottom-rim) * .27), 16px) / 1.05 "Times New Roman", Times, serif;
  font-synthesis: none;
  letter-spacing: -.025em;
  white-space: nowrap;
}
/* The glass is one opening shared by the desktop, maximized apps and taskbar. */
.screen {
  --glass-radius: clamp(4px, calc(var(--rim) * .3), 22px);
  position: relative; height: 100%; overflow: hidden;
  border-radius: var(--glass-radius);
  clip-path: inset(0 round var(--glass-radius));
}
.screen::after {
  content: ""; position: absolute; inset: 0; z-index: 20000;
  border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 2px #19171270, inset 0 0 0 1px #1d1a1426;
}
.win.max {padding:0;box-shadow:none;}
.win.max > .tb {padding-inline:max(14px, var(--glass-radius));}
.task {padding-inline:max(5px, calc(var(--glass-radius) * .6));}
#desk { isolation: isolate; }
.grip {
  position: absolute;
  width: 18px;
  height: 18px;
  bottom: 1px;
  right: 1px;
  z-index: 1;
  border: 0;
  background: repeating-linear-gradient(135deg, transparent 0 2px, #777 2px 3px, white 3px 4px);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  cursor: nwse-resize;
  touch-action: none;
}
.win.max .grip { display: none; }
#w-music { container-type: inline-size; }
#w-bible { container: notebook-window / size; }
@container (max-width: 760px) {
  .mbody { display: block; padding: 16px; }
  .mbody figure { max-width: 320px; }
  .mbody .mt { margin-top: 18px; }
  .mlist { width: 34%; padding: 10px; }
  .mlist .cv img { width: 52px; height: 52px; }
  .trk button { gap: 5px; flex-wrap: wrap; }
  .side { width: 84px; padding: 8px 4px; }
  .side img { width: 52px; height: 80px; }
  .tabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .tabs button { flex: none; max-width: 145px; }
  .phead { min-width: 0; }
}
@media (max-width:760px), (pointer:coarse) and (orientation:landscape) and (max-height:550px) and (max-width:1000px) {
  body { --rim: clamp(5px, 1.8vw, 12px); }
  .win:not(.is-warning) {box-shadow:none;}
  .grip { display: none; }
  .mlist, .side { width: auto; }
  .ic { width: min(30vw, 110px); }
}
.transport [hidden] { display: none; }
.transport audio { width: 100%; }

.window-outline {
  position: absolute;
  z-index: 10001;
  pointer-events: none;
  border: 2px solid #171717;
  box-shadow: inset 0 0 0 1px white, 0 0 0 1px #ddd;
}
.window-outline::before {
  content: '';
  position: absolute;
  inset: 2px 2px auto;
  height: 5px;
  background: repeating-linear-gradient(to bottom, #111 0 1px, #eee 1px 2px);
}

/* Keep the original icon arrangement as the fallback; custom coordinates
   are relative to the usable screen, above the taskbar. */
.icons {
  inset: 0;
  padding: clamp(16px,3vh,36px) clamp(16px,2.4vw,40px) 0;
  align-items: flex-start;
  pointer-events: none;
}
.ic {
  position: relative;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0;
}
.ic.sel, .ic:focus-visible { z-index: 1; }
.ic.dragging { z-index: 2; cursor: grabbing; }
.icons .hint { position:absolute; width:1px; height:1px; min-height:0; overflow:hidden; clip-path:inset(50%); }
@media (min-width: 761px) {
  .icons {
    display: grid;
    grid-template-columns: repeat(2, 150px);
    align-content: start;
    column-gap: 12px;
  }
  .ic { grid-column: 1; }
  .ic[data-app=follow] { grid-area: 3 / 2; }
}
@media (max-width:760px), (pointer:coarse) and (orientation:landscape) and (max-height:550px) and (max-width:1000px) {
  .icons { display:flex; padding:28px 0 0; }
  .ic { width: min(23.5vw, 100px); }
  .ic .im { width: min(19vw, 76px); }
  .ic .lb { padding-inline: 4px; font-size: clamp(8px, 2.8vw, 12.5px); white-space: nowrap; }
}

#desktop-menu {
  position: absolute;
  z-index: 2147483647;
  padding: 3px;
  min-width: 168px;
  font: 13px/1.3 Tahoma, Arial, sans-serif;
  color: #111;
  box-shadow: inset 1px 1px white, inset -1px -1px #222, inset -2px -2px #777, 2px 2px 0 #1117;
}
#desktop-menu [role^=menuitem] { position: relative; padding: 6px 16px 6px 26px; }
#desktop-menu [aria-disabled] { color: #525252; border-bottom: 1px solid #999; }
#desktop-menu span { position: absolute; left: 7px; }
#desktop-refresh { display: block; width: 100%; text-align: left; font: inherit; background: transparent; border: 0; }
#desktop-refresh:hover, #desktop-refresh:focus-visible { color: white; background: var(--navy); outline: 0; }

#desk { touch-action: none; }
#marquee {
  position: absolute; z-index: 3; pointer-events: none;
  outline: 1px dashed white; outline-offset: -1px;
  background: rgb(160 178 255 / 12%);
}
#start-menu {
  position: absolute; bottom: calc(100% - 2px); left: 3px; z-index: 2;
  width: 208px; max-height: 70vh; overflow-y: auto; padding: 3px 3px 3px 29px;
  color: #111; font: 14px Tahoma, Arial, sans-serif;
}
.menu-brand {
  position: absolute; inset: 3px auto 3px 3px; width: 24px; padding: 6px 2px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  background: linear-gradient(#17288a,#081450); color: #fafafa;
  font: bold 15px/20px Arial, sans-serif; letter-spacing: .1em;
}
#start-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 34px;
  padding: 4px 8px; text-align: left; border: 0; background: transparent; font: inherit;
}
#start-menu button img { width: 24px; height: 24px; object-fit: contain; }
#start-menu button:hover, #start-menu button:focus { background: var(--navy); color: white; outline: none; }
#start-menu hr { margin: 3px 2px; border: 0; border-top: 1px solid #888; border-bottom: 1px solid white; }
#start[aria-expanded=true] { box-shadow: inset 1px 1px #222, inset -1px -1px white; }
#standby {
  position: absolute; z-index: 30000; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: #070707; outline: none; cursor: none;
  overflow: hidden; container-type: size;
}
#standby span { --mark: min(100px, 18cqw, 23cqh); position: absolute; top: 0; left: 0; width: var(--mark); height: var(--mark); animation: mark-x 14s -4s linear infinite alternate; }
#standby img { width: 100%; height: 100%; object-fit: contain; filter: brightness(0) invert(1); animation: mark-y 11s -3s linear infinite alternate; }
@keyframes mark-x { to { transform: translateX(calc(100cqw - var(--mark))); } }
@keyframes mark-y { to { transform: translateY(calc(100cqh - var(--mark))); } }
.task-cassette { position: relative; flex: none; display: inline-flex; }
.playing .min .task-cassette::before, .playing .min .task-cassette::after {
  content: ''; position: absolute; z-index: 1; top: 40%; left: 20%;
  width: 4px; height: 4px; border-radius: 50%; background: conic-gradient(white 25%, #173892 0 50%,white 0 75%, #173892 0);
  animation: cassette-reel 1.8s steps(8) infinite;
}
.playing .min .task-cassette::after { left: 62%; }
@keyframes cassette-reel { to { transform: rotate(1turn); } }
@media (max-width:760px), (pointer:coarse) and (orientation:landscape) and (max-height:550px) and (max-width:1000px) { .task-cassette { display: none; } }
@media (prefers-reduced-motion: reduce) {
  #standby span { animation: none; top: 50%; left: 50%; transform: translate(-50%, -50%); }
  #standby img, .playing .min .task-cassette::before, .playing .min .task-cassette::after { animation: none; }
}

/* The notebook cover occupies its own pane; the desktop still owns the window. */
.at-cover .side { display: none; }
.at-cover .pane { overflow: auto; overscroll-behavior: contain; }
.side .cover-back { font-size: 11px; letter-spacing: 0; white-space: nowrap; }
.notebook {
  --paper: #f4efe2;
  --ink: #242825;
  min-height: 100%;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  padding: clamp(17px, 4.6cqw, 42px);
  color: var(--ink);
  background: var(--paper);
}
.notebook header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid currentColor; }
.notebook h2 { margin: 0; font: 400 clamp(24px, 4cqw, 38px)/1 R, Georgia, serif; letter-spacing: -.045em; }
.notebook header span, .entry-kicker { font: 700 10px/1.2 M, sans-serif; text-transform: uppercase; letter-spacing: .15em; }
.notebook-spread { flex: 1; display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 5%; padding: clamp(24px, 6cqw, 58px) 0; }
.entry-kicker { margin: 0 0 20px; }
.notebook blockquote { margin: 0 0 22px; text-wrap: balance; font: 400 clamp(36px, 7.8cqw, 72px)/.99 R, Georgia, serif; letter-spacing: -.055em; }
.entry-link { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 5px 0; font-size: 12px; font-weight: 700; }
.entry-link span, .notebook-print i { margin-left: 8px; font-style: normal; }
.notebook-print { width: 100%; border: 0; padding: 7px 7px 0; background: #fffdf6; color: #222; box-shadow: 1px 3px 6px #17171538; }
.notebook-print img { width: 100%; height: auto; aspect-ratio: 2400/1714; object-fit: contain; }
.notebook-print span { display: flex; justify-content: space-between; padding: 7px 2px 8px; font: 12px/1.2 monospace; }
.notebook-tabs { display: flex; gap: 5px; align-items: end; }
.notebook-tabs button { text-transform: capitalize; }
.journal-cover { border-left: clamp(6px, 1.3cqw, 12px) solid #263c98; }
.journal-cover .notebook-print { transform: rotate(2deg); }
.journal-cover .notebook-tabs { border-top: 1px solid #a7a292; padding-top: 11px; }
.journal-cover .notebook-tabs button { flex: 1; min-height: 34px; border: 1px solid #b4ac98; background: #e9e2d0; color: #272822; font-size: 12px; }
.index-cover { flex: 1; min-height: 0; color: #fffdf6; background: #17299a url(assets/blue_texture.png) center/cover; padding: clamp(14px, 2.8cqw, 26px); gap: clamp(10px, 2cqw, 18px); }
.index-cover header { border: none; padding: 0; }
.index-cover h2 { font: 700 12px/1.3 M, sans-serif; letter-spacing: .02em; }
.notebook-feature {
  flex: 1; min-height: 0; grid-template-rows: minmax(0, 1fr); width: 100%; border: 0; padding: 0; text-align: left;
  display: grid; grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
  color: #182039; background: #f5efdf; box-shadow: 2px 4px 0 #091248;
}
.record-sleeve { min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(9px, 2.2cqw, 20px); background: #dfdacd; }
.record-sleeve img { width: auto; min-height: 0; max-width: min(100%, 31cqw, 278px); max-height: min(100%, 278px); object-fit: contain; height: auto; aspect-ratio: 1; box-shadow: 0 2px 4px #17213645; }
.morning-print img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; aspect-ratio: auto; box-shadow: none; }
.record-sleeve small { margin-top: 9px; font: 11px/1.4 monospace; color: #393932; }
.feature-note { align-self: center; padding: clamp(13px, 3.4cqw, 32px); display: grid; justify-items: start; gap: clamp(12px, 2.8cqw, 25px); }
.feature-note small { font: 11px/1.3 monospace; color: #43495c; }
.feature-quote { font: 400 clamp(30px, 6.1cqw, 58px)/1 R, Georgia, serif; letter-spacing: -.046em; text-wrap: balance; }
.feature-link { display: inline-flex; align-items: center; gap: 12px; font: 700 12px/1.3 M,sans-serif; background: #202e77; color: white; padding: 11px 14px; }
.notebook-feature:hover .feature-link, .notebook-feature:focus-visible .feature-link { background: #111c56; }
.index-cover .notebook-tabs { gap: clamp(6px, 1.5cqw, 14px); }
.index-cover .notebook-tabs button { padding: 0; border: 0; flex: 1; min-width: 0; background: transparent; }
.index-cover .notebook-tabs img { width: 100%; height: clamp(36px, 5.4cqw, 50px); object-fit: cover; box-shadow: 1px 2px 0 #0a1248; }
.index-cover .notebook-tabs button:hover { transform: translateY(-2px); }
@container (max-width: 500px) {
  .notebook-spread { grid-template-columns: 1fr; gap: 22px; }
  .journal-cover .notebook-print { width: min(76%, 270px); justify-self: end; }
  .journal-cover .notebook-tabs { gap: 3px; flex-wrap: wrap; }
  .notebook-feature { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); }
  .feature-quote { font-size: clamp(22px, 6.8cqw, 34px); }
  .feature-link { padding: 8px; gap: 5px; }
}

/* Four editorial spreads share notebook controls. Each image keeps its own frame. */
.spread-shell { flex: 1; min-height: 0; background: #f6f1e6; color: #252720; display: flex; flex-direction: column; }
.spread-bar, .spread-pager { display: flex; align-items: center; gap: 16px; font: 12px/1.2 monospace; }
.spread-bar { flex: none; padding: 6px clamp(14px, 3cqw, 28px); background: #ebe7db; border-bottom: 1px solid #a9a69a; text-transform: uppercase; }
.spread-bar button, .spread-pager button, .spread-link {
  color: inherit; border: 0; background: none; font: inherit; padding: 8px 0;
}
.spread-bar button, .spread-pager button { text-decoration: underline; text-underline-offset: 3px; }
.spread-count, .spread-pager button:last-child { margin-left: auto; }
.spread { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.spread-reader { flex: 1; min-height: 0; container: spread-page / size; display: flex; flex-direction: column; padding: 0 clamp(12px, 3.4cqw, 32px); }
.spread-reader > header { flex: none; padding-top: clamp(5px, 3cqh, 20px); }
.spread header { border-bottom: 1px solid currentColor; padding-bottom: clamp(3px, 2cqh, 10px); }
.spread-title { margin: 0; font: 400 clamp(19px, min(4.6cqw, 9cqh), 46px)/1.05 R, Georgia, serif; letter-spacing: -.04em; }
.spread-body { flex: 1; min-height: 0; display: grid; grid-template-rows: minmax(0,1fr); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; gap: 4%; padding: clamp(4px, 3cqh, 18px) 0; }
.spread figure { margin: 0; min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; text-align: center; }
.spread-plate, .spread-image { min-height: 0; }
.spread figure img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.fit-box { min-height: 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.fit-box > div { flex: none; }
.spread figcaption, .spread-credit { font: 11px/1.4 monospace; }
.spread figcaption { margin-top: 7px; }
.spread-image { padding: 0; display: block; width: 100%; border: 0; background: transparent; cursor: zoom-in; }
.spread blockquote { margin: 0; font: 400 clamp(26px, 4.4cqw, 41px)/1.06 R, Georgia, serif; letter-spacing: -.035em; }
.spread-context { max-width: 32ch; margin: 0 0 18px; font: 500 14px/1.48 M, sans-serif; }
.spread-credit { margin: 8px 0 17px; }
.spread-actions { display: grid; gap: 4px; justify-items: start; }
.spread-actions .spread-link, .spread-actions summary { font: 700 12px/1.4 M, sans-serif; text-decoration: underline; text-underline-offset: 3px; }
.spread-actions summary { padding: 7px 0; cursor: pointer; }
.spread-actions details p { max-width: 40ch; margin: 7px 0 12px; font: 400 18px/1.45 R, Georgia, serif; }
.spread-pager { flex: none; gap: 12px; border-top: 1px solid currentColor; padding: 0 max(22px, 3.4cqw); }
.spread-pager button { min-height: 42px; }
@container (max-width: 440px) {
  .spread-pager .next-title { display: none; }
}
.spread-ethos { background: #e1eaf0; color: #142736; }
.spread-ethos .spread-body { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.spread-journal .spread-reader { padding: 0; container-type: size; background: #292b28; }
.journal-desk { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 9px var(--reply-right, 9px) 9px var(--reply-left, 9px); }
.print-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* One angle drives the stock, cast shadow and light on both paper faces. */
@property --postcard-angle { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.journal-print {
  --postcard-angle: 0deg;
  --lift: sin(var(--postcard-angle));
  position: relative;
  width: min(100%, max(180px, calc((100cqh - 58px) * 1.5 + 10px)));
  height: min(100%, calc(min(100cqw - 28px, var(--paper-span, 100cqw)) / 1.5 + 42px));
  min-height: 0;
  perspective: max(1400px, 230cqw);
  transition: --postcard-angle 820ms cubic-bezier(.42,.03,.24,1);
}
.journal-print.is-reverse { --postcard-angle: 180deg; }
.journal-print::before {
  content: ""; position: absolute; inset: 3px 1px 0; pointer-events: none;
  background: #100d08; opacity: calc(.43 - var(--lift) * .15);
  transform: translate(2px, calc(3px + 9px * var(--lift))) scaleX(calc(1 - .72 * var(--lift)));
  filter: blur(calc(2px + 7px * var(--lift)));
}
.print-stock {
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: translate3d(0, calc(-7px * var(--lift)), calc(24px * var(--lift)))
    rotateZ(calc(-1.8deg * var(--lift))) rotateX(calc(4deg * var(--lift))) rotateY(var(--postcard-angle));
}
.print-stock::before {
  content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px;
  background: #d3c7ae; transform: rotateY(90deg);
}
.print-face {
  position: absolute; inset: 0; margin: 0; border: 0; padding: 5px 5px 0;
  display: flex; flex-direction: column; background: #f6f0e2; color: #282820;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.print-front { transform: translateZ(1px); }
.print-back { transform: rotateY(180deg) translateZ(1px); }
.print-face::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(95deg, #3e311966, transparent 68%);
  opacity: calc(.48 * var(--lift));
}
.journal-picture { display: block; width: 100%; min-height: 0; flex: 1; object-fit: contain; }
.print-turn { display: block; width: 100%; flex: none; border: none; background: transparent; text-align: right; color: #202953;
  font: 700 12px/1.25 M, sans-serif; padding: 11px 8px; text-decoration: underline; text-underline-offset: 3px; }
.print-copy { flex: 1; width: 100%; }
.journal-note { width: 100%; max-width: 60ch; margin-inline: auto; padding: 2px clamp(10px, 3cqw, 30px); }
.print-source { font: 11px/1.4 monospace; margin: 0 0 12px; }
.journal-note blockquote { font-size: clamp(21px, 3.1cqw, 30px); line-height: 1.2; letter-spacing: -.025em; margin: 0 0 14px; }
.journal-note .spread-link { display: block; font: 500 12px/1.4 M, sans-serif; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .journal-print { transition: none; }
}
.spread-lyrics .spread-reader { padding: 0; background: #141312; color: #f8f5ef; }
.lyric-frame { flex: 1; min-height: 0; padding: 0; border: 0; width: 100%; background: #201813; cursor: zoom-in; }
.lyric-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 52% 35%; }
.lyric-viewfinder { position: relative; flex: 1; min-height: 0; overflow: hidden; isolation: isolate; background: #201813; --eye-x: 54%; --eye-y: 35.5%; }
.lyric-viewfinder .lyric-frame { position: absolute; inset: 0; height: 100%; overflow: hidden; }
.lyric-viewfinder img { object-position: var(--eye-x) var(--eye-y); transform-origin: var(--eye-x) var(--eye-y); }
.finder-gate {
  position: absolute; pointer-events: none;
  --ink: linear-gradient(currentColor,currentColor);
  background: var(--ink) left top, var(--ink) left top, var(--ink) right top, var(--ink) right top,
              var(--ink) left bottom, var(--ink) left bottom, var(--ink) right bottom, var(--ink) right bottom;
  background-size: var(--arm) 1.5px, 1.5px var(--arm);
  background-repeat: no-repeat;
  filter: drop-shadow(0 1px 1px #27180ec9);
}
.finder-gate { inset: 5% 3.5%; --arm: clamp(12px,2.7cqw,24px); color: #fff5e2ad; }
.lyric-viewfinder + .lyric-subtitles .lyric-cues { display: grid; align-items: center; }
.lyric-viewfinder + .lyric-subtitles .lyric-cues > p { grid-area: 1 / 1; }
.lyric-viewfinder + .lyric-subtitles .lyric-line { visibility: hidden; }
.lyric-viewfinder + .lyric-subtitles .finder-intro,
.shot-running .lyric-viewfinder + .lyric-subtitles .finder-cue,
.shot-address .lyric-viewfinder + .lyric-subtitles .finder-cue + p { visibility: visible; }
.shot-running .lyric-viewfinder + .lyric-subtitles .finder-intro,
.shot-address .lyric-viewfinder + .lyric-subtitles :is(.finder-intro,.finder-cue) { visibility: hidden; }
@media (prefers-reduced-motion:no-preference) {
  .shot-running .lyric-viewfinder img {
    animation: finder-zoom 1.12s cubic-bezier(.34,0,.23,1) both, finder-glass 1.29s linear both;
  }
  .shot-address .lyric-viewfinder img { animation: none; transform: scale(1.31); }
  .finder-cue { transition: opacity .25s ease, visibility 0s .25s; }
  .finder-cue + p { opacity: 0; }
  .shot-address .finder-cue { opacity: 0; visibility: hidden; }
  .shot-address .finder-cue + p { opacity: 1; visibility: visible; transition: opacity .16s ease; }
}
@keyframes finder-zoom { 0%,24% { transform: scale(1); } 100% { transform: scale(1.31); } }
@keyframes finder-glass { 0%,54%,100% { filter: blur(0); } 73%,78% { filter: blur(2.6px); } 92% { filter: blur(.5px); } }
@media (prefers-reduced-motion:reduce) {
  .lyric-viewfinder img { transform: scale(1.15); }
  .finder-cue { font-size: .87em; color: #d5c4b6; }
}
.lyric-subtitles { flex: none; max-height: 62%; overflow-y: auto; padding: clamp(9px,3.2cqh,22px) clamp(13px,4cqw,45px); text-align: center; color: #faf8ed; background: #141312; }
.lyric-line { margin: 0; font: 500 clamp(18px,3.2cqw,34px)/1.32 M,sans-serif; letter-spacing: -.025em; text-wrap: balance; }
.lyric-line button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: #d59a71; }
.lyric-line button:is(:hover,:focus-visible,[aria-expanded=true]) { color: #ffd7b4; }
.lyric-disclosure-mark {
  display: inline-grid; vertical-align: .18em; margin-inline-start: .16em;
  width: clamp(8px,.33em,11px); aspect-ratio: 1; place-items: center; color: #b9b4a8;
}
.lyric-disclosure-mark::before, .lyric-disclosure-mark::after {
  content: ""; grid-area: 1 / 1; width: 100%; height: 1px; background: currentColor;
}
.lyric-disclosure-mark::after { transform: rotate(90deg); }
[data-lyric-phrase][aria-expanded=true] .lyric-disclosure-mark::after { transform: rotate(0deg); }
@media (prefers-reduced-motion: no-preference) {
  .lyric-disclosure-mark::after { transition: transform .2s ease-out; }
}
.lyric-emphasis { background: transparent; color: #f4aa72; }
.spread-reader:not(.word-sung) .timed-emphasis .lyric-emphasis { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .timed-emphasis .lyric-emphasis { transition: color 180ms ease-out; }
}
.lyric-line button.lyric-marker {
  display: inline-grid; max-width: 100%; vertical-align: middle; color: inherit;
  text-align: center; text-wrap: balance; text-decoration: none;
}
.lyric-marker > span { grid-area: 1 / 1; padding: .12em .32em; }
.marker-phrase { text-decoration: underline; text-decoration-color: #d59a71; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.marker-ink {
  position: relative; isolation: isolate; pointer-events: none; color: #28180f;
  clip-path: inset(0 100% 0 0);
}
.marker-ink::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(177deg,#ef914e,#f4a061 46%,#ee9455);
  clip-path: polygon(.4% 9%,27% 5%,53% 7%,78% 3%,99.7% 6%,99.5% 42%,100% 87%,81% 94%,49% 91%,23% 97%,0 92%,.3% 54%);
}
.marker-ink .lyric-disclosure-mark { color: inherit; }
.marker-ink .marker-phrase { text-decoration-color: currentColor; }
.lyric-marker[aria-expanded=true] .marker-ink { clip-path: inset(0); }
@media (prefers-reduced-motion:no-preference) {
  .marker-ink { transition: clip-path .3s ease-in-out; }
  .lyric-marker[aria-expanded=true] .marker-ink { transition-duration: .64s; }
  .lyric-cues:has(.lyric-marker) + .lyric-reply:not([inert]) { transition-delay: .76s; }
}
.lyric-reply { display: grid; grid-template-rows: 1fr; opacity: 1; }
.lyric-reply[inert] { grid-template-rows: 0fr; opacity: 0; }
.lyric-reply > div { overflow: hidden; min-height: 0; }
.lyric-reply blockquote { margin: .65em auto .45em; max-width: 44ch; font: 400 clamp(16px,2.6cqw,25px)/1.25 R,Georgia,serif; }
.lyric-reply summary { display: list-item; width: fit-content; margin: auto; cursor: pointer; font: 500 12px/1.65 M,sans-serif; color: #e8d3bc; }
.lyric-reply details p { max-width: 53ch; margin: .6em auto .2em; text-align: left; font: 400 clamp(15px,2.2cqw,19px)/1.4 R,Georgia,serif; }
@media (prefers-reduced-motion:no-preference) {
  .lyric-reply { transition: grid-template-rows .45s ease, opacity .36s ease; }
}
.spread-bar .lyric-song { margin-left: auto; text-transform: none; text-align: right; }
.lyric-pager { background: #141312; color: #eee1cb; border-color: #433a31; }
.lyric-line:focus { outline: none; }
.lyric-reply .whole-lyric { font-style: italic; color: #efd2ae; }
.lyric-ending { display: flex; flex-direction: column; overflow: hidden; }
.lyric-ending .lyric-cues { flex: none; }
.lyric-ending .lyric-line { position: relative; }
.lyric-ending [data-lyric-phrase][aria-expanded=true] { transform: translate(var(--ending-x,0px),var(--ending-y,0px)); }
.lyric-ending .lyric-reply { display: block; min-height: 0; overflow-y: auto; }
.lyric-ending .lyric-reply blockquote { max-width: 55ch; margin: .8em auto .2em; text-align: start; font: 400 clamp(16px,2.2cqw,21px)/1.42 R,Georgia,serif; color: #f0e5d7; }
.lyric-ending:has([aria-expanded=true]) .lyric-fading-lead { opacity: 0; }
@media (prefers-reduced-motion:no-preference) {
  .lyric-ending [data-lyric-phrase] { transition: transform .63s cubic-bezier(.4,0,.2,1); }
  .lyric-ending .lyric-fading-lead { transition: opacity .36s ease .26s; }
  .lyric-ending:has([aria-expanded=true]) .lyric-fading-lead { transition-delay: 0s; }
  .lyric-ending .lyric-reply { transition: opacity .24s ease; }
  .lyric-ending .lyric-reply:not([inert]) { transition: opacity .62s ease .85s; }
}
.lyric-memory { display: grid; grid-template-rows: minmax(0, 1fr); overflow: hidden; }
.lyric-memory > * { grid-area: 1 / 1; min-height: 0; }
.lyric-memory .lyric-cues { align-self: center; }
.lyric-memory .lyric-reply { display: block; overflow-y: auto; }
.lyric-memory .lyric-reply > div { padding: 2px; }
.lyric-memory blockquote { margin: 0 auto; max-width: 59ch; color: #f1e6d8; text-align: start; font: 400 clamp(16px,2.1cqw,21px)/1.4 R,Georgia,serif; }
.lyric-memory [data-back-to-lyric] { margin-top: .55em; border: 0; padding: .25em; background: none; color: #dcc7b4; text-decoration: underline; text-underline-offset: .2em; font: 12px/1.4 M,sans-serif; cursor: pointer; }
.lyric-memory .lyric-cues[inert] { opacity: 0; }
@media (prefers-reduced-motion:no-preference) {
  .lyric-memory .lyric-cues, .lyric-memory .lyric-reply { transition: opacity .52s ease .32s; }
  .lyric-memory [inert] { transition: opacity .28s ease; }
}
.spread-images { background: #222421; color: #faf8f0; }
.spread-images .spread-body { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.spread-images button:focus-visible { outline-color: #fff; }
.spread-title:focus { outline: none; }
.side [hidden] { display: none; }
@container spread-page (max-aspect-ratio: 1/1) {
  .spread .spread-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr); gap: 6px; }
  .spread .spread-body:has(details[open]) { grid-template-rows: minmax(0, 1fr) minmax(0, 2.1fr); }
  .spread blockquote { font-size: clamp(21px, 6.3cqw, 30px); }
  .spread-credit { margin: 5px 0; }
  .spread-actions details p { font-size: 16px; line-height: 1.3; margin-block: 5px; }
  .spread-actions .spread-link, .spread-actions summary { padding-block: 4px; }
}
@container notebook-window (max-height: 370px) {
  .index-cover { padding: 8px 12px; gap: 6px; }
  .index-cover .record-sleeve { padding: 4px; }
  .index-cover .feature-note { padding: 6px 10px; gap: 4px; }
  .index-cover .feature-quote { font-size: clamp(17px, 6cqh, 24px); }
  .index-cover .feature-link { padding: 4px 8px; }
  .index-cover .notebook-tabs img { height: 30px; }
  .spread-bar { padding-block: 0; }
  .spread-pager button { min-height: 28px; padding-block: 4px; }
  .spread .spread-body { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); }
  .spread-bar button { padding-block: 4px; }
  .spread-actions { display: flex; flex-wrap: wrap; gap: 1px 10px; align-items: center; }
  .spread-actions details { width: 100%; }
  .spread-actions details p { max-width: none; }
  .print-turn { padding-block: 5px; }
  .print-source { margin-bottom: 3px; }
  .journal-note blockquote { margin-bottom: 3px; }
  .journal-note .spread-link { padding-block: 3px; }
  .spread blockquote { font-size: clamp(17px, min(3.2cqw, 9cqh), 25px); }
  .spread-credit { margin: 3px 0; }
  .spread-actions details p { font-size: 14px; line-height: 1.22; margin: 3px 0; }
  .spread-actions summary, .spread-actions .spread-link { padding: 3px 0; }
  .journal-print { width: min(100%, 530px); }
}


/* The journal opens on a single memory. The four other entries form a short contents page. */
.journal-index, .journal-reading { color: #202644; background: #f6f2e7; }
.journal-index {
  flex: 1 0 100%; min-height: 0; height: 100%; display: flex; flex-direction: column;
  --journal-edge: clamp(12px, 3cqw, 32px);
}
.journal-mast, .journal-reader-tools {
  display: flex; align-items: center; flex: none; gap: 12px;
  padding: 7px var(--journal-edge, 18px); border-bottom: 1px solid #bdb9ac; background: #f6f2e7;
}
.journal-mast { display: grid; grid-template-columns: 1fr auto 1fr; }
.journal-mast h2 { margin: 0; font: 400 clamp(27px, 4.3cqw, 43px)/1.1 R, Georgia, serif; letter-spacing: -.055em; }
.journal-mast > span { justify-self: end; font: 700 11px/1 M, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.journal-back, .source-switch {
  justify-self: start; width: max-content; border: 0; background: transparent; padding: 7px 1px;
  font: 12px/1.2 'Courier New', monospace; text-decoration: underline; text-underline-offset: 3px;
}
.journal-index-body {
  padding: clamp(10px, 2.2cqh, 20px) var(--journal-edge); display: flex; flex-direction: column;
  gap: clamp(10px, 2.6cqh, 21px); flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain;
}
.balloon-feature {
  flex: 1 0 auto; min-height: 178px; display: grid; grid-template-columns: 46% minmax(0,1fr);
  color: #142963; background: #edf0ec; border: 1px solid #a8b1bb;
}
.balloon-sky {
  position: relative; overflow: hidden; isolation: isolate; border: 0; padding: 0;
  background: radial-gradient(ellipse at 87% 8%,#edf2f3 0,transparent 57%),linear-gradient(148deg,#a6c1d5,#b5cfe7 52%,#cbdbe2);
}
.balloon-sky::after {
  content: ''; pointer-events: none; position: absolute; inset: 0; opacity: .14; mix-blend-mode: multiply;
  background-image: radial-gradient(#7a87a2 .55px,transparent .8px); background-size: 3px 3px;
}
.balloon-object { position: absolute; inset: 8% 12% 5%; display: grid; place-items: center; transform: rotate(-6deg); transform-origin: 52% 64%; }
.balloon-object img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.balloon-replay { position: absolute; bottom: 10px; left: 12px; display: none; z-index: 1; font: 12px/1.3 'Courier New', monospace; text-decoration: underline; text-underline-offset: 3px; }
.balloon-feature.released .balloon-replay { display: block; }
.balloon-feature.released .balloon-object { visibility: hidden; }
.flying-zero { position: fixed; z-index: 100000; object-fit: contain; pointer-events: none; user-select: none; }
@media (prefers-reduced-motion:no-preference) {
  .balloon-object { transition: transform .5s ease-out; }
  .balloon-sky:hover .balloon-object, .balloon-sky:focus-visible .balloon-object { transform: translate(0,-2%) rotate(-2deg); }
  .balloon-feature.in-flight .balloon-lines { opacity: 0; transition: opacity .55s ease-in; }
  .balloon-feature.unfolding .balloon-lines h3 { animation: unfold-entry 1.15s ease-out both; }
  .balloon-feature.unfolding .balloon-lines p { animation: unfold-entry 1.45s .32s ease-out both; }
  @keyframes unfold-entry { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
}
.balloon-story {
  padding: clamp(14px, 3.5cqw, 46px); display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start; gap: clamp(9px, 2.1cqh, 18px); background: #f3efe3;
}
.balloon-story small, .journal-reading header small { font: 12px/1.3 'Courier New', monospace; }
.balloon-lines h3 {
  font: 400 clamp(38px, 7.9cqw, 90px)/.94 R, Georgia, serif; letter-spacing: -.055em; text-wrap: balance;
  margin: 0 0 clamp(8px, 1.8cqh, 17px);
}
.balloon-lines p { margin: 0; font: 400 clamp(16px, 2.3cqw, 23px)/1.25 R, Georgia, serif; max-width: 35ch; }
.balloon-feature.released:not(.in-flight) h3 { font-size: clamp(33px, 6cqw, 67px); }
.balloon-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 14px; }
.balloon-actions button { padding: 6px 0; border: 0; background: none; font: 700 clamp(11px,1.55cqw,14px)/1.25 M,sans-serif; text-underline-offset: 4px; text-decoration: underline; }
.balloon-actions [data-entry-link] { font-weight: 500; }
.balloon-actions button:first-child, .balloon-feature.released .balloon-actions button { color: #173a92; font-weight: 700; }
.journal-register { flex: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(12px, 3.8cqw, 38px); }
.journal-register button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
  min-height: 42px; padding: clamp(7px, 1.6cqh, 16px) 0; background: none; border: 0; border-top: 1px solid #bdb9ac;
  font: 400 clamp(18px, 2.7cqw, 29px)/1.03 R, Georgia, serif; letter-spacing: -.035em;
}
.journal-register i { font: normal 12px/1 'Courier New', monospace; padding-right: 2px; color: #394664; }
.journal-register button:hover span, .journal-register button:focus-visible span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.journal-reader-tools { color: #202644; }
.journal-reader-tools .source-switch { margin-left: auto; }
.journal-reading, .journal-original { outline-offset: -4px; }
.journal-reading .inner { width: 100%; max-width: 65ch; color: #26293a; }
.journal-reading header { margin: 0 0 1.1em; padding-bottom: 12px; border-bottom: 1px solid #bdb9ac; }
.journal-reading header h2 { margin: 12px 0 0; font: 400 clamp(32px, 5.4cqw, 55px)/1 R,Georgia,serif; letter-spacing: -.045em; }
.journal-original { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; background: #343633; padding: clamp(10px,2cqw,25px); }
.journal-original img { display: block; max-width: 100%; width: 43ch; height: auto; margin: auto; }
.journal-original[hidden], .journal-reading[hidden], .balloon-actions [hidden] { display: none; }
@container notebook-window (max-width: 520px) {
  .balloon-feature { grid-template-columns: 40% minmax(0,1fr); }
  .balloon-story { padding: 12px; }
  .balloon-lines h3 { font-size: clamp(32px, 9cqw, 46px); }
  .balloon-story small, .journal-mast > span { font-size: 10px; }
  .journal-register { grid-template-columns: 1fr; }
  .journal-register button { min-height: 35px; }
}
@container notebook-window (max-aspect-ratio: 3/4) and (min-height: 490px) {
  .balloon-feature { grid-template-columns: 1fr; grid-template-rows: minmax(110px,1fr) auto; }
  .balloon-sky { min-height: 110px; }
  .balloon-object { inset: 6% 10% 3%; }
  .balloon-story { gap: 5px; padding: 13px 17px; }
  .balloon-lines h3 { font-size: clamp(32px, 9cqw, 48px); margin-bottom: 6px; }
  .balloon-actions { gap: 3px 18px; }
}
@container notebook-window (max-height: 410px) {
  .journal-mast { padding-block: 3px; }
  .journal-mast h2 { font-size: 25px; }
  .journal-index-body { padding-block: 8px; gap: 8px; }
  .balloon-feature { min-height: 145px; }
  .balloon-story { padding-block: 9px; gap: 5px; }
  .balloon-lines h3, .balloon-feature.released:not(.in-flight) h3 { font-size: clamp(28px, 5cqw, 40px); margin-bottom: 5px; }
  .balloon-lines p { font-size: 16px; }
  .journal-register button { padding-block: 5px; min-height: 31px; }
}
@container notebook-window (min-width: 510px) and (max-height: 330px) {
  .journal-index-body { padding-block: 5px; gap: 6px; }
  .balloon-feature { min-height: 110px; grid-template-columns: 32% minmax(0,1fr); }
  .balloon-story { padding: 5px 13px; gap: 3px; }
  .balloon-story small { display: none; }
  .balloon-lines h3, .balloon-feature.released:not(.in-flight) h3 { font-size: 29px; margin-bottom: 3px; }
  .balloon-lines p { max-width: none; font-size: 15px; line-height: 1.14; }
  .balloon-actions button { padding-block: 4px; }
  .journal-register button { min-height: 28px; padding-block: 4px; font-size: 17px; }
}

.at-cover .pane { position: relative; isolation: isolate; }
.journal-entry-view { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 0; background: #f6f2e7; }
.pane > .journal-ghost { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.pane > .journal-turning { z-index: 2; }

.journal-continuation {
  flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 4px 14px;
  padding: 6px clamp(12px, 3cqw, 30px); border-top: 1px solid #bdb9ac; background: #f2eee2; color: #202644;
}
.journal-continuation span, .journal-continuation .journal-previous { font: 12px/1.2 'Courier New', monospace; }
.journal-continuation button {
  border: 0; padding: 6px 0; background: transparent; text-align: left; color: #182d68;
  font: 400 clamp(17px, 2.5cqw, 24px)/1.12 R, Georgia, serif; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.journal-continuation b { font: 14px/1 M,sans-serif; }
.journal-sequence .journal-reading .inner { padding-block: clamp(17px,3.5cqh,32px); }
@container notebook-window (max-width: 490px) {
  .journal-continuation { flex-wrap: wrap; align-items: center; gap: 0 10px; }
  .journal-continuation span { width: 100%; }
}

/* Each scene gives one journal passage a physical action, with the path outside the scrolling paper. */
.moment-page { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #f6f2e7; color: #232943; }
.moment-main { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; padding: clamp(10px,2.6cqw,26px); gap: 12px; }
.moment-main h2 { margin: 0; font: 400 clamp(25px,5cqw,50px)/1.05 R,Georgia,serif; letter-spacing: -.04em; }
.moment-card { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1fr); flex: 1 0 auto; min-height: 150px; border-block: 1px solid #b6b3a6; }
.moment-object { position: relative; border: 0; padding: 0; overflow: hidden; isolation: isolate; color: #f8edc9; background: #22344a; }
.moment-object > span { position: absolute; inset: 0; display: grid; place-items: center; }
.moment-copy { align-self: center; padding: clamp(12px,3.2cqw,38px); }
.moment-copy blockquote { margin: 0; font: 400 clamp(21px,3.8cqw,39px)/1.12 R,Georgia,serif; letter-spacing: -.03em; text-wrap: pretty; }
.moment-copy p { font: 400 clamp(17px,2.4cqw,23px)/1.25 R,Georgia,serif; }
.moment-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: clamp(9px,2.6cqh,23px); }
.moment-actions button,.room-page summary { padding: 6px 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; font: 700 12px/1.4 M,sans-serif; cursor: pointer; }
.moment-actions button+button { font-weight: 500; }
.path-pager { background: #f1eddf; color: #263456; }
.path-pager button { max-width: 75%; text-align: right; }
.moment-page[data-kind=portrait] .moment-object img { width: 100%; height: 100%; position: absolute; object-fit: contain; }
.moment-page[data-kind=portrait] .moment-object i { position: absolute; inset: 0; background: linear-gradient(110deg,#e6ded4dd,#e1dbd396); backdrop-filter: blur(3px); border-right: 1px solid #efece4; }
.moment-page.is-open[data-kind=portrait] .moment-object i { transform: translateX(-100%); }
.moment-page[data-kind=court] .moment-object { background:#436858; }
.court-lines { position:absolute; inset:13% 9%; border:2px solid #e6ead6; background:linear-gradient(90deg,transparent 49.7%,#e6ead6 49.7% 50.3%,transparent 50.3%); }
.court-lines::before { content:'';position:absolute;inset:12% 0;border-block:2px solid #dbe0c8; }
.tennis-ball { position:absolute;top:62%;left:16%;width:12%;max-width:43px;aspect-ratio:1;border-radius:50%;background:radial-gradient(ellipse at 0% 50%,transparent 41%,#f4f4ce 43% 47%,transparent 49%),radial-gradient(circle at 36% 29%,#e7e884,#95a946 78%);box-shadow:2px 4px 3px #283e2a66; }
.is-open .tennis-ball { left:74%;top:19%;transform:rotate(150deg); }
.room-page figure { margin:0; position:relative; min-height:110px; background:#e6e1d3;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:10px; }
.room-page figure img { width:100%; max-height:50cqh;object-fit:contain; }
.room-page figcaption,.room-page small {font:11px/1.4 monospace;margin-top:5px;}
.room-page details {margin-top:8px;}
@container notebook-window (width > 500px) or (height < 420px) {
  .room-page .moment-card { flex: 1 1 0; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .room-page figure { min-height: 0; }
  .room-page figure img { min-height: 0; }
  .room-page .moment-copy {
    display: grid;
    align-self: stretch;
    align-content: safe center;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-gutter: stable;
  }
}
@media(prefers-reduced-motion:no-preference) {
  .moment-object i,.moment-object i::after,.tennis-ball { transition: transform .7s ease, left .65s ease,top .65s ease,box-shadow .65s ease; }

}
@container notebook-window (max-width:500px) and (min-height:420px) {
  .moment-card { grid-template-columns:1fr;grid-template-rows:minmax(125px,1fr) auto; }
  .moment-copy {padding:13px 5px;}
  .room-page .moment-card { grid-template-rows: max(125px, 30cqh) auto; }
  .room-page figure img {max-height:26cqh;}
}
@container notebook-window (max-height:360px) {
  .moment-main {gap:5px;padding:6px 12px;}
  .moment-card { min-height:105px; }
  .moment-copy {padding:7px 10px;}
  .moment-copy blockquote {font-size:18px;}
  .moment-actions {margin-top:3px;}
}

.path-next { margin-left:auto; text-align:right; padding-block:5px; min-width:0; }
.path-next small { display:block; color:#535869; font:400 clamp(11px,1.45cqw,14px)/1.2 R,Georgia,serif; }
.path-next button { max-width:100%; min-height:25px; padding:4px 0; font-weight:700; }
@container notebook-window (max-height: 360px) {
  .path-next { padding-block:2px; }
  .path-next button { padding-block:2px; min-height:22px; }
}

/* The words share a shelf so the reading link stays put on either side of a gesture. */
.moment-words { display:grid; align-items:center; }
.moment-words > div { grid-area:1/1; }
.moment-words p { margin:.65em 0 0; }
.words-after,.is-open .words-before { opacity:0; visibility:hidden; transform:translateY(4px); }
.is-open .words-after { opacity:1; visibility:visible; transform:none; }
.disclosure-body { display:flow-root; overflow:hidden; }
.disclosure-body small {display:block;}
.jeep-panel {
  display:grid; grid-template-rows:minmax(92px,1fr) auto; min-width:0;
  color:#434a4d; background:radial-gradient(ellipse at 46% 42%,#fbf3de,#eee2c6 77%,#e3d4b7);
}
.jeep-panel .moment-object {background:transparent;}
.jeep-panel .moment-object > span {container-type:size;}
.jeep-stills {position:relative;display:block;width:min(85cqw,104cqh,450px);aspect-ratio:796/640;}
.jeep-stills img {position:absolute;bottom:0;left:50%;height:100%;width:auto;max-width:100%;transform:translateX(-50%);}
.jeep-tired,.is-open .jeep-ready {visibility:hidden;}
.is-open .jeep-tired {visibility:visible;}
.moment-page[data-kind=ignition] .moment-words {align-items:start;}
.moment-page[data-kind=ignition] .moment-words > div {transform:none;}
.jeep-panel .ignition-control {
  justify-self:center; display:flex; align-items:center; justify-content:center; gap:10px;
  padding:2px 6px 10px; border:0; background:transparent; color:#273048;
}
.moment-page[data-kind=ignition] .moment-actions {align-items:baseline;}
.moment-page[data-kind=ignition] .moment-actions button {
  padding:0;font:600 12px/1.4 M,sans-serif;text-align:left;
}
.moment-page[data-kind=ignition] .moment-actions [data-touch-moment] {min-inline-size:12ch;}
.switch-plate {
  display:block; width:90px; height:63px; position:relative; color:#e9debe; isolation:isolate;
  border:1px solid #615d50; border-radius:10px; background:
    radial-gradient(circle at 6px 55px,#aea795 0 1px,#57574d 1.4px 2.3px,transparent 2.7px),
    radial-gradient(circle at calc(100% - 6px) 55px,#aea795 0 1px,#57574d 1.4px 2.3px,transparent 2.7px),
    linear-gradient(145deg,#46544e,#303c39 60%,#283330);
  box-shadow:inset 0 1px 1px #d2c9ad,inset 0 -2px 1px #111c19,1px 2px 3px #403b322b;
}
.switch-plate small { position:absolute; top:6px; font:700 8px/1 monospace; letter-spacing:.035em; }
.off-mark { left:12px; } .start-mark { right:8px; }
.switch-collar {
  position:absolute; width:45px; height:45px; left:50%; bottom:3px; transform:translateX(-50%); border-radius:50%;
  background:conic-gradient(from 120deg,#676861,#c6bea7 14%,#76766c 26%,#f2e7c8 48%,#a8a795 73%,#66695e 90%,#676861);
  box-shadow:0 1px 3px #111a16, inset 0 0 0 1px #a9a99a;
}
.switch-rotor {
  position:absolute; inset:4px; border:1px solid #34362f; border-radius:50%; transform:rotate(-48deg);
  background:radial-gradient(circle at 68% 38%,#5e6259,#353b33 64%,#202720 74%);
  box-shadow:inset 0 0 0 1px #797d6f;
}
.switch-grip {
  position:absolute; top:-1px; bottom:1px; left:calc(50% - 6px); width:12px; border-radius:4px 4px 5px 5px;
  background:linear-gradient(90deg,#383a30,#908b75 15%,#c4b99a 36%,#a69c82 60%,#4b4c3f 93%);
  box-shadow:2px 2px 2px #121810aa;
}
.switch-grip::before {content:''; position:absolute; top:3px; left:4px; width:4px; height:8px; background:#ffedb4; border-radius:2px;}
.ignition-control:active .switch-plate {box-shadow:inset 0 1px 3px #101b16,0 1px 1px #49413726;}
.ignition-control:focus-visible { outline:2px dotted #334970; outline-offset:3px; }
.moment-page.trying-key .start-mark {color:#ffdd8a;}
@container notebook-window (max-height:390px) {
  .switch-plate {zoom:.80;}
  .jeep-panel .ignition-control {padding-bottom:4px;}
}
.pilot-portrait { position:relative; min-height:0; margin:0; }
.pilot-portrait img { position:absolute; inset:0; width:100%; height:100%; box-sizing:border-box; object-fit:contain; padding:clamp(8px,1.4cqh,16px) 0; }
.moment-page[data-kind=proof] .moment-object { color:#332f2b; background:repeating-linear-gradient(0deg,transparent 0 27px,#98a99844 28px 29px),#ede4ce; }
.proof-word { position:relative; display:inline-block; font:italic 400 clamp(40px,8cqw,92px)/1 R,Georgia,serif; letter-spacing:-.05em; }
.proof-word::after { content:''; position:absolute; top:47%; left:-9%; right:-12%; height:.09em; min-height:4px; background:#b02c29; transform:rotate(-4deg); clip-path:polygon(0 35%,11% 12%,60% 22%,91% 0,100% 20%,98% 61%,44% 91%,7% 85%,0 100%); transform-origin:left center; scale:0 1; }
.is-open .proof-word::after { scale:1 1; }
.voice-margin,.tea-margin { float:right; clear:right; position:relative; margin:.25em 0 .7em 1.4em; }
.voice-margin { width:32%; max-width:180px; padding:7px 7px 3px; background:#fcf7e9; box-shadow:0 3px 6px #534a3429; transform:rotate(2deg); }
.voice-margin::before {content:'';position:absolute;z-index:1;top:-7px;left:33%;width:33%;height:15px;transform:rotate(-7deg);background:#c5b89199;}
.voice-print img {width:100%; aspect-ratio:1.18; object-fit:cover;}
.voice-margin button {width:100%;padding:4px 3px 6px;border:0;background:none;font:11px/1.25 monospace;color:#283d70;text-align:left;}
.voice-margin svg {display:block;width:100%; height:auto; background:repeating-linear-gradient(0deg,transparent 0 7px,#b3beca70 8px);}
.breath-guide {fill:none;stroke:#2b4974;stroke-width:2.5;stroke-linecap:round;stroke-dasharray:230;stroke-dashoffset:181;}
.traced .breath-guide {stroke-dashoffset:0;}
.tea-margin { width:25%; max-width:145px; }
.tea-margin svg {display:block;width:100%;}
.pencil-loop,.pencil-mark,.pencil-strike {position:relative;}
.pencil-loop {border:1.5px solid #345984aa;border-radius:52% 42% 48% 38% / 37% 51% 40% 55%;padding:0 .14em;white-space:nowrap;}
.pencil-mark {text-decoration:underline;text-decoration-style:wavy;text-decoration-color:#3c608aaa;text-underline-offset:.12em;text-decoration-thickness:1.5px;}
.pencil-strike {text-decoration:line-through;text-decoration-color:#a24b44;text-decoration-thickness:1.5px;}
@media(prefers-reduced-motion:no-preference) {
  .moment-words > div {transition:opacity .32s ease, transform .4s ease, visibility 0s;}
  .words-after,.is-open .words-before {transition-delay:0s,0s,.32s;}
  .is-open .words-after {transition-delay:.13s,.13s,0s;}
  .proof-word::after {transition:scale .46s cubic-bezier(.32,.05,.26,1);}
  .breath-guide {transition:stroke-dashoffset 1.55s cubic-bezier(.26,.64,.35,1);}
  .tea-steam {animation:tea-cooling 2.8s ease-in-out infinite alternate;}
  @keyframes tea-cooling {from{opacity:.4;transform:translateY(2px);}to{opacity:.85;transform:translateY(-4px);}}
  .spread-body {transition:grid-template-rows .36s ease;}
}
@container notebook-window (max-width:480px) {
  .voice-margin {margin-left:.8em;width:35%;}
  .tea-margin {margin-left:.6em;width:28%;}
}

.revision-stroke { position:relative; display:inline-block; }
.revision-stroke::after {content:''; position:absolute; left:-3%;right:-3%;top:46%;height:.24em;
  background:repeating-linear-gradient(-5deg,#536477 0 1px,transparent 1px 2px);opacity:0;
  transform:rotate(-3deg) scaleX(0);transform-origin:left;}
.inner:has(.voice-margin.traced) .revision-stroke::after {opacity:.88;transform:rotate(-3deg) scaleX(1);}
@media(prefers-reduced-motion:no-preference) {
  .revision-stroke::after {transition:transform .75s ease,opacity .55s ease;}
}

/* Photographs: a paper contact sheet opens onto a dark, edge-to-edge lightbox. */
.album-sheet, .album-reader { flex:1; min-height:0; min-width:0; }
.album-sheet { display:flex; flex-direction:column; background:#f4efe4; }
.album-heading { display:flex; align-items:baseline; gap:12px; padding:12px 18px 9px; border-bottom:1px solid #c1bbad; }
.album-heading h2 { margin:0; font:400 clamp(24px,4cqw,35px)/1.1 R,Georgia,serif; letter-spacing:-.035em; }
.album-heading span { font:12px/1.2 monospace; color:#54534f; }
.album-sheet .grid { grid-template-columns:repeat(auto-fill,minmax(min(130px,100%),1fr)); gap:5px; padding:8px; }
.album-sheet .grid button { display:block; min-width:0; -webkit-tap-highlight-color:transparent; }
.album-sheet .grid img { box-shadow:none; }
.album-sheet .grid button:focus-visible { outline:3px solid var(--blue); outline-offset:-3px; }
.album-reader { display:grid; grid-template-rows:auto minmax(0,1fr) auto; color:#f8f4eb; background:#171716; }
.album-sheet[hidden], .album-reader[hidden] { display:none; }
.album-transition { position:relative; isolation:isolate; overflow:clip; }
.album-transition > .album-sheet { position:absolute; inset:0; z-index:1; }
.album-transition > .album-sheet[inert] { pointer-events:none; }
.album-moving-print { position:absolute; z-index:2; pointer-events:none; transform-origin:center; }
.album-tools { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 10px; border-bottom:1px solid #373835; background:#222320; }
.album-tools button { min-height:44px; border:0; background:transparent; color:inherit; }
.album-tools [data-sheet] { font:600 13px/1 M,sans-serif; }
.album-arrows { display:flex; }
.album-arrows button { width:42px; font:26px/1 Georgia,serif; }
.album-counter { color:#d7d4cb; font:12px/1 monospace; font-variant-numeric:tabular-nums; }
.album-stage { position:relative; display:flex; overflow-x:auto; overflow-y:hidden; min-width:0; min-height:0; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:none; }
.album-slide { flex:0 0 100%; height:100%; min-width:0; scroll-snap-align:center; scroll-snap-stop:always; display:grid; place-items:center; }
.album-slide img { width:100%; height:100%; min-height:0; object-fit:contain; }
.album-rail { --thumb-width:52px; --thumb-height:51px; --thumb-gap:4px; position:relative; min-width:0; background:#222320; border-top:1px solid #373835; }
.album-rail::after { content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); box-sizing:border-box; width:var(--thumb-width); height:var(--thumb-height); border:2px solid #fff9e9; border-radius:4px; pointer-events:none; }
.album-strip { position:relative; display:flex; align-items:center; gap:var(--thumb-gap); overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scrollbar-width:none; padding-block:8px; user-select:none; }
.album-strip::before, .album-strip::after { content:""; flex:0 0 max(0px,calc((100% - var(--thumb-width)) / 2 - var(--thumb-gap))); }
.album-strip button { flex:0 0 var(--thumb-width); height:var(--thumb-height); padding:5px; background:transparent; border:0; border-radius:4px; scroll-snap-align:center; }
.album-strip img { width:100%; height:100%; object-fit:cover; border-radius:1px; pointer-events:none; }
.album-strip.free-scroll { scroll-snap-type:none; }
.album-strip.dragging, .album-strip.dragging button { cursor:grabbing; }
.album-reader button:focus-visible, .album-reader .album-stage:focus-visible { outline:2px dotted #b1c7ff; outline-offset:-3px; }
.album-stage::-webkit-scrollbar, .album-strip::-webkit-scrollbar { display:none; }
@media (hover:hover) {
  .album-tools button:hover { color:#bfcdff; }
  .album-strip button:hover img { filter:brightness(1.12); }
}
@container notebook-window (max-width:520px) {
  .album-sheet .grid { grid-template-columns:repeat(3,minmax(0,1fr)); padding:4px; gap:3px; }
  .album-heading { padding:10px 12px 7px; }
}
@container notebook-window (max-height:370px) {
  .album-tools button { min-height:34px; }
  .album-strip { padding-block:2px; }
  .album-rail { --thumb-height:40px; }
}
@media (max-width:760px), (pointer:coarse) and (orientation:landscape) and (max-height:550px) and (max-width:1000px) {
  body { height:100dvh; }
  #desk { touch-action:auto; }
  .tasks .btn, .task .start, .tb .back, .tb .x { min-height:44px; }
  .spread-bar button, .spread-pager button, .room-page summary { min-height:44px; }
  .letter-paper textarea, .booking-subject input { font-size:16px; }
  .mail-tools .b { min-height:44px; }
}
.vb:has(.album-sheet) .side { display:none; }

.album-heading button { border:0; background:transparent; padding:0 4px; min-height:36px; color:#374366; font:12px monospace; }
.album-heading span { margin-left:auto; }

.desktop-album { flex:1; min-height:0; display:flex; flex-direction:column; container:notebook-window / size; }
#w-photo .status[hidden], #w-photo .viewer[hidden] { display:none; }
.photo-browse { padding:0 4px; color:var(--navy); border:0; background:transparent; font-size:12px; text-decoration:underline; text-underline-offset:2px; }
@media (pointer:coarse) {
  #w-photo .status { height:44px; }
  #w-photo .status button { min-height:44px; }
}

/* The photo stays inside Visual Bible so the underlying lyric can keep playing. */
.lyric-photo-preview { position:absolute; inset:0; z-index:4; display:grid; grid-template-rows:auto minmax(0,1fr); overflow:hidden; background:#171716; color:#faf5ec; }
.lyric-photo-preview > button { justify-self:start; min-height:44px; padding:0 15px; color:inherit; font:600 13px/1 M,sans-serif; background:none; border:0; }
.lyric-photo-stage { display:flex; align-items:center; justify-content:center; min-height:0; min-width:0; }
.lyric-photo-stage img { display:block; width:auto; height:auto; max-width:100%; max-height:100%; }
.pane > .reading-departure { position:absolute; inset:0; pointer-events:none; z-index:1; }
.pane:has(> .reading-departure) { overflow:clip; position:relative; isolation:isolate; }

/* Compact desktop: record title, a print from the opening session, then the four shortcuts. */
@media (max-width:760px), (pointer:coarse) and (orientation:landscape) and (max-height:550px) and (max-width:1000px) {
  body {
    height:var(--visible-height,100dvh);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    --rim:4px;
    --task:50px;
  }
  #desk {
    display:grid;
    grid-template-areas:"title" "print" "apps";
    grid-template-rows:auto minmax(0,1fr) clamp(80px,13dvh,122px);
    grid-template-columns:minmax(0,1fr);
  }
  #wins { display:contents; }
  .title { grid-area:title; position:static; padding:clamp(16px,4.5dvh,46px) 6% 0; }
  .title .kick { font-size:11px; }
  .title h1 { max-width:12ch; margin-top:7px; font-size:clamp(31px,min(10.4vw,6.2dvh),52px); line-height:1.02; }
  .home-print:not([hidden]) {
    grid-area:print; place-self:center; display:grid;
    width:min(87%,64dvh,500px); max-height:94%; min-height:0; grid-template-rows:minmax(0,1fr) auto;
    padding:5px; border:0; background:#f3ede0; color:#252525;
    box-shadow:2px 3px 0 #081258, 0 8px 18px #060b463d;
    text-align:left; font:12px/1.3 monospace;
  }
  .home-print > img { width:100%; height:100%; aspect-ratio:1600/1067; object-fit:contain; min-height:0; background:#24201d; }
  .home-print > span { display:flex; align-items:center; justify-content:space-between; padding:8px 6px 3px; }
  .icons { align-items:flex-end; padding:0 0 clamp(7px,2dvh,20px); }
  .ic { width:min(24%,101px); gap:5px; padding:4px 0; }
  .ic .im { width:clamp(48px,min(16vw,8dvh),70px); height:auto; aspect-ratio:1; }
  .ic .lb { font-size:clamp(9px,2.6vw,12px); }
  .tb, #w-contact.is-warning .tb { height:46px; gap:6px; padding-inline:4px; }
  .tb .back { padding-inline:9px; color:#171717; }
  .tb .x, #w-contact.is-warning .tb .x { width:44px; margin-left:0; }
  .tb .tt { font-size:clamp(12px,3.4vw,15px); }
  #w-contact.is-warning { height:min(175px,94%)!important; }
  .task { gap:4px; padding:3px 4px; }
  .task .start { padding:0; width:44px; justify-content:center; }
  .task .sep { margin:0 1px; }
  .tasks { gap:3px; }
  .tasks .btn { flex:1 1 0; min-width:44px; max-width:165px; justify-content:center; gap:5px; padding:0 5px; font-size:11px; }
  .tasks .btn img { display:block; width:19px; height:19px; }
  .tasks .task-cassette { display:inline-flex; }
  .tasks:has(:nth-child(4)) .btn:not(.on) { flex:0 0 44px; }
  .tasks:has(:nth-child(4)) .btn:not(.on) span { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .tasks [data-win=photo] img { content:url(assets/gallery/DSCF0232-thumb.webp); object-fit:cover; border:1px solid white; }
  #start-menu button, .index-cover .notebook-tabs button, .album-heading button, .mail-folders button, .lyric-memory [data-back-to-lyric] { min-height:44px; }
  .album-heading { align-items:center; padding-block:3px; }
  .spread-bar { padding-block:0; }
  .follow-panel { padding:clamp(10px,4vw,22px); }
  .follow-panel a { grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; padding:10px 13px; }
  .follow-handle { grid-column:1; overflow-wrap:anywhere; }
  .follow-handle:empty { display:none; }
  .follow-arrow { grid-column:2; grid-row:1 / span 2; }
}
@media (max-width:760px) and (orientation:portrait) {
  @container notebook-window (min-height:350px) {
    .index-cover .notebook-feature { grid-template: minmax(0,1fr) auto / minmax(0,1fr); }
    .index-cover .record-sleeve { gap:7px; padding:12px; }
    .index-cover .record-sleeve img { width:100%; height:100%; max-width:none; max-height:100%; object-fit:contain; box-shadow:none; }
    .index-cover .record-sleeve small { margin:0; text-align:center; }
    .index-cover .feature-note { align-self:stretch; padding:clamp(10px,3.5cqh,24px) 5%; gap:8px; }
    .index-cover .feature-quote { max-width:19ch; font-size:clamp(22px,7.5cqw,36px); }
    .index-cover .feature-link { padding:9px 12px; }
  }
  .lyric-subtitles { padding:clamp(12px,2.5cqh,22px) 5%; }
  .lyric-subtitles.lyric-memory:has(.lyric-reply:not([inert])) { min-height:min(35%,230px); }
  .letter-photos { flex-direction:column; }
  .letter-photos figure, .letter-photos [data-print=booking] { width:100%; height:36%; align-items:center; }
  .letter-paper { width:100%; height:64%; transform:translateY(calc(36cqh * (1 - var(--letter-swap)))); }
  .mail-tools { width:100%; gap:4px; }
  .mail-tools .b { flex:1; justify-content:center; padding-inline:4px; }
}
@media (orientation:landscape) and (max-height:550px) and (max-width:1000px) and (pointer:coarse),
       (orientation:landscape) and (max-height:550px) and (max-width:760px) {
  #desk { grid-template-areas:"title print" "apps print"; grid-template-columns:1fr 1fr; grid-template-rows:minmax(0,1fr) auto; }
  .title { align-self:center; padding:0 0 0 7%; }
  .title h1 { max-width:13ch; }
  .home-print:not([hidden]) { width:min(85%,83dvh); }
  .icons { right:50%; }
  .ic .im { width:clamp(39px,12dvh,59px); }
  .ic .lb { font-size:clamp(8px,1.45vw,11px); }
}
@media (max-width:760px) {
  @container mail-window (max-height:390px) {
    .letter-spread:focus-within .letter-paper { inset:0; width:100%; height:100%; transform:none; }
    .letter-spread:focus-within .letter-photos { visibility:hidden; }
  }
}

@media (pointer:coarse) and (orientation:landscape) and (max-width:1000px) {
  @container mail-window (max-height:260px) {
    .letter-spread:focus-within .letter-paper { inset:0; width:100%; height:100%; transform:none; }
  }
}
