/* Carnet de Paris (carnet.html): the Language Café as a notebook on a Paris café wall.
   Laid out in book units (a page is 540 × 740) and scaled, like the sound dictionaries. */
:root {
  --wall: #e8dfcd;
  --wall-lo: #cfc2a8;
  --paper: #f8f5ec;
  --paper-2: #ece7da;
  --ink: #23201c;
  --ink-2: #5a544b;
  --pencil: #8b8479;
  --fountain: #1f3a7a;   /* your lines: blue-black fountain-pen ink */
  --cafe: #8f1c17;       /* the wax seal, the stamps, the ribbon */
  --cloth: #2b4d3d;      /* bottle-green cover */
  --gilt: #d6b56a;
  --terra: #b5452b;
  --rose: #c06d7a;
  --lilac: #8a7aa6;
  --bordeaux: #7a2230;
  --kraft: #c6a57a;
  --W: 540px;
  --H: 740px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; font: inherit; }
body {
  color: var(--ink); font-family: 'EB Garamond', serif; overflow: hidden; -webkit-font-smoothing: antialiased;
  /* warm limestone in afternoon light through the front window, upper left */
  background-color: var(--wall);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.007' numOctaves='4' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .43 0 0 0 0 .32 0 0 0 .38 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38 0 0 0 0 .33 0 0 0 0 .26 0 0 0 .3 -.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    radial-gradient(60% 65% at 24% 30%, rgba(255,240,210,.85), transparent 70%),
    radial-gradient(130% 100% at 50% 50%, transparent 55%, var(--wall-lo) 100%);
  background-size: 100% 100%, 180px 180px, auto, auto;
  background-repeat: no-repeat, repeat, no-repeat, no-repeat;
  background-attachment: fixed;
}
#defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* the wall's shadows */
.wall { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.wall svg { position: absolute; }
.wall .awning { left: -2vw; top: -6px; width: 104vw; height: 70px; opacity: .1; filter: blur(3px); transform-origin: 50% 0; }
.wall .window { left: -3vw; top: 6vh; width: min(46vw, 640px); opacity: .085; filter: blur(4px); transform: skewX(-10deg); transform-origin: 0 0; }
.wall .chair { right: 5vw; bottom: -2vh; height: 46vh; opacity: .09; filter: blur(3px); transform: skewX(14deg); transform-origin: 50% 100%; }

/* ---------------------------------------------------------------- the book (the Palabrario engine) */
.frame { position: fixed; left: 50%; top: 50%; width: calc(var(--W) * 2); height: var(--H); z-index: 10; }
.frame.single { width: var(--W); clip-path: inset(-40px 0 -220px 0); touch-action: none; }
.book { position: absolute; left: 0; top: 0; width: calc(var(--W) * 2); height: var(--H); perspective: 3800px; }
.block { position: absolute; top: 0; height: 100%; width: var(--W); border-radius: 3px; background: var(--paper-2); }
.block.l { left: 0; } .block.r { left: var(--W); }
.page, .face { position: absolute; top: 0; width: var(--W); height: var(--H); overflow: hidden; background: var(--paper); }
.slot-l { left: 0; } .slot-r { left: var(--W); }
.page::before, .face::before { /* a fine grain in the paper */
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .45;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .27 0 0 0 0 .22 0 0 0 .4 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.pg-l::after, .pg-r::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.pg-l::after { background: linear-gradient(270deg, rgba(50,35,20,.14), transparent 7%); }
.pg-r::after { background: linear-gradient(90deg, rgba(50,35,20,.14), transparent 7%); }
.page > *, .face > * { position: absolute; z-index: 1; }
.gutter { position: absolute; left: calc(var(--W) - 1px); width: 2px; top: 0; height: 100%; pointer-events: none; z-index: 60; background: rgba(50,35,20,.16); }
.frame.closed .gutter, .frame.closed .tabs { display: none; }
.leaf { position: absolute; left: var(--W); top: 0; width: var(--W); height: var(--H); transform-origin: 0% 50%; transform-style: preserve-3d; z-index: 100; }
.leaf .face { left: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf .face.back { transform: rotateY(180deg); }
.leaf .shade { position: absolute; inset: 0; z-index: 30; pointer-events: none; opacity: 0; }
.leaf .front .shade { background: linear-gradient(90deg, rgba(40,25,10,.5), rgba(40,25,10,.12) 40%, transparent); }
.leaf .back .shade { background: linear-gradient(270deg, rgba(40,25,10,.4), rgba(40,25,10,.1) 40%, transparent); }

/* ---------------------------------------------------------------- the cover: bottle-green cloth, a red elastic */
.cover { inset: 0; background: var(--cloth); overflow: hidden; border-radius: 0 14px 14px 0; }
.cover > * { position: absolute; }
.cv-cloth { inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.09) 0 1px, transparent 1px 3px),
    radial-gradient(75% 55% at 38% 28%, rgba(140,190,160,.22), transparent 70%),
    radial-gradient(50% 40% at 80% 90%, rgba(0,0,0,.28), transparent 70%); }
.cv-band { right: 46px; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, #6e130f, #a8261f 45%, #6e130f); box-shadow: 2px 0 4px rgba(0,0,0,.35), -1px 0 2px rgba(0,0,0,.25); }
.cv-title { left: 60px; right: 90px; top: 210px; margin: 0; text-align: center; font: 500 76px/0.95 'Cormorant Garamond', serif; letter-spacing: .01em;
  color: transparent; background: linear-gradient(160deg, #f4dc96 0%, #c8994a 40%, #f0d58c 58%, #a87a32 82%, #e8c672 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 1.2px 0 rgba(0,0,0,.4)); }
.cv-title em { font-style: italic; font-size: 60px; }
.cv-sub { left: 60px; right: 90px; top: 400px; margin: 0; text-align: center; font: 500 15px 'Cormorant Garamond', serif; letter-spacing: .5em; text-transform: uppercase; color: rgba(214,181,106,.85); }
.cv-foot { left: 60px; right: 90px; bottom: 60px; margin: 0; text-align: center; font: italic 16px 'EB Garamond', serif; color: rgba(230,215,180,.55); letter-spacing: .06em; }

/* ---------------------------------------------------------------- endpapers: kraft, a métro ticket, a receipt */
.endp .kraft { inset: 0; background-color: var(--kraft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03 .4' numOctaves='3' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .12 0 0 0 .35 -.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E"); }
.ticket { width: 190px; height: 84px; padding: 12px 16px; background: #efe6c9; border-radius: 4px; box-shadow: 0 2px 4px rgba(60,40,10,.3); display: flex; flex-direction: column; color: #2d5a3e; }
.ticket b { font: 600 26px 'Cormorant Garamond', serif; letter-spacing: .3em; }
.ticket span { font: italic 14px 'EB Garamond', serif; }
.ticket i { position: absolute; right: 14px; bottom: 10px; font: 400 11px ui-monospace, Menlo, monospace; font-style: normal; color: #6b5a3a; }
.ticket::after { content: ''; position: absolute; right: 52px; top: 0; bottom: 0; border-left: 1.5px dashed rgba(45,90,62,.35); }
.receipt { width: 200px; padding: 16px 16px 26px; background: #fbfaf6; box-shadow: 0 2px 5px rgba(60,40,10,.28); display: flex; flex-direction: column; gap: 3px; font: 400 12px ui-monospace, Menlo, monospace; color: #444;
  -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/12px 8px repeat-x;
          mask: linear-gradient(#000 0 0) top/100% calc(100% - 8px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom/12px 8px repeat-x; }
.receipt b { font: 600 17px 'Cormorant Garamond', serif; text-align: center; margin-bottom: 6px; letter-spacing: .1em; color: #222; }
.receipt .tot { border-top: 1px dashed #aaa; padding-top: 4px; margin-top: 2px; }
.receipt i { text-align: center; font: italic 15px 'Caveat', cursive; margin-top: 6px; color: var(--fountain); }

/* ---------------------------------------------------------------- title, contents, how-to */
.tp-kicker { left: 0; right: 0; top: 110px; margin: 0; text-align: center; font: 500 13px 'Cormorant Garamond', serif; letter-spacing: .45em; text-transform: uppercase; color: var(--pencil); }
.tp-title { left: 0; right: 0; top: 150px; margin: 0; text-align: center; font: 500 92px/0.92 'Cormorant Garamond', serif; }
.tp-title em { font-style: italic; font-size: 70px; color: var(--cafe); }
.tp-sub { left: 0; right: 0; top: 350px; margin: 0; text-align: center; font: italic 21px 'EB Garamond', serif; color: var(--ink-2); }
.tp-cast { left: 60px; right: 60px; top: 410px; display: flex; justify-content: center; gap: 4px; }
.tp-cast .pt { width: 104px; height: 104px; }
.tp-en { left: 0; right: 0; bottom: 80px; margin: 0; text-align: center; font: 400 16px/1.5 'EB Garamond', serif; color: var(--pencil); }
.pg-h { left: 70px; top: 64px; margin: 0; font: 500 44px 'Cormorant Garamond', serif; }
.toc { left: 64px; right: 56px; top: 150px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.toc li { position: relative; display: grid; grid-template-columns: 58px 1fr; padding: 14px 8px 14px 0; border-top: 1px solid rgba(35,32,28,.14); cursor: pointer; transition: background .2s; }
.toc li:hover { background: rgba(143,28,23,.04); }
.toc .n { grid-row: span 2; font: 500 34px/1 'Cormorant Garamond', serif; color: var(--pencil); }
.toc .t { font: 500 26px/1.1 'Cormorant Garamond', serif; display: flex; align-items: baseline; gap: 12px; }
.toc .t i { font: italic 16px 'EB Garamond', serif; color: var(--ink-2); }
.toc .m { font: 400 15px/1.35 'EB Garamond', serif; color: var(--pencil); margin-top: 3px; }
.toc .tick { position: absolute; right: 8px; top: 16px; font: 600 15px 'Cormorant Garamond', serif; letter-spacing: .2em; text-transform: uppercase; color: var(--cafe); border: 1.6px solid var(--cafe); border-radius: 3px; padding: 2px 8px; transform: rotate(-8deg); opacity: .85; filter: url(#stamp); }
.pg-foot { left: 64px; bottom: 56px; margin: 0; font: italic 15px 'EB Garamond', serif; color: var(--pencil); }
.how { left: 70px; right: 64px; top: 150px; margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 18px; font: 400 18px/1.45 'EB Garamond', serif; color: var(--ink-2); }
.how b { color: var(--ink); font-weight: 500; }
.how em { color: var(--cafe); }
.how-keys { left: 70px; right: 64px; bottom: 60px; margin: 0; font: italic 14px 'EB Garamond', serif; color: var(--pencil); }
.how-keys b { font-style: normal; color: var(--cafe); font-weight: 500; }

/* ---------------------------------------------------------------- a chapter: the card (left) */
.ch-n { left: 64px; top: 58px; margin: 0; font: 600 13px 'Cormorant Garamond', serif; letter-spacing: .35em; text-transform: uppercase; color: var(--c); }
.ch-title { left: 62px; top: 78px; margin: 0; font: 500 54px/1 'Cormorant Garamond', serif; }
.ch-place { left: 64px; top: 140px; margin: 0; font: italic 17px 'EB Garamond', serif; color: var(--pencil); }
.ch-who { left: 50px; right: 50px; top: 162px; display: flex; gap: 10px; }
.ch-who figure { margin: 0; display: flex; align-items: center; gap: 12px; }
.ch-who .pt { width: 124px; height: 124px; }
.ch-who figcaption { display: flex; flex-direction: column; font: italic 15px 'EB Garamond', serif; color: var(--ink-2); }
.ch-who figcaption b { font: 500 24px 'Cormorant Garamond', serif; font-style: normal; color: var(--ink); }
.lbl { display: block; font: 600 11px 'Cormorant Garamond', serif; letter-spacing: .35em; text-transform: uppercase; color: var(--pencil); margin-bottom: 6px; }
.mission { left: 64px; right: 64px; top: 304px; padding: 14px 18px 14px; background: #fffdf6; box-shadow: 0 1px 3px rgba(60,40,10,.18); transform: rotate(-0.8deg); }
.mission::before { content: ''; position: absolute; left: 50%; top: -9px; width: 70px; height: 20px; margin-left: -35px; background: rgba(230,215,170,.75); transform: rotate(2deg); box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.mission .fr { margin: 0; font: 500 21px/1.25 'Cormorant Garamond', serif; }
.mission .en { margin: 3px 0 0; font: italic 15px 'EB Garamond', serif; color: var(--pencil); }
.mots { left: 58px; right: 52px; top: 432px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.mots .lbl { grid-column: 1 / -1; margin-left: 6px; }
.mot { appearance: none; background: none; border: 0; border-radius: 4px; padding: 3px 6px; text-align: left; cursor: pointer; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 8px; transition: background .2s; }
.mot:hover, .mot.playing, .mot.flash { background: rgba(181,69,43,.08); }
.mot .w { font: 500 18px 'EB Garamond', serif; color: var(--ink); }
.mot .g { grid-column: 1 / -1; font: italic 13px 'EB Garamond', serif; color: var(--pencil); }
.mot .parts { display: inline-flex; gap: 2px; justify-self: end; }
.mot .parts i { font: 400 11px 'EB Garamond', serif; font-style: normal; color: var(--pencil); padding: 0 3px; border-radius: 2px; transition: background .15s, color .15s; }
.mot .parts i.on { background: var(--terra); color: #fff; }
.accompli { right: 46px; top: 66px; width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; text-align: center; font: 600 17px/1.1 'Cormorant Garamond', serif; letter-spacing: .14em; text-transform: uppercase; color: var(--cafe); border: 3px solid var(--cafe); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--cafe); transform: rotate(-14deg); opacity: .88; filter: url(#stamp); }

/* ---------------------------------------------------------------- a chapter: the conversation (right) */
.talk-page { /* Seyès ruling: fine blue lines, a stronger one every fourth, the red margin */
  background-image:
    linear-gradient(90deg, transparent 77px, rgba(200,60,60,.32) 77px 78.5px, transparent 78.5px),
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(80,120,190,.26) 31px 32px),
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(80,120,190,.11) 7px 8px);
  background-position: 0 0, 0 4px, 0 4px; }
.talk-h { left: 92px; right: 40px; top: 36px; display: flex; justify-content: space-between; align-items: center; font: 600 12px 'Cormorant Garamond', serif; letter-spacing: .35em; text-transform: uppercase; color: var(--pencil); }
.en-btn { appearance: none; background: none; border: 1px solid rgba(35,32,28,.2); border-radius: 999px; padding: 2px 9px; cursor: pointer; font: 600 11px 'Cormorant Garamond', serif; letter-spacing: .2em; color: var(--pencil); }
.show-en .en-btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.talk { left: 6px; right: 40px; top: 72px; bottom: 150px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 70px); mask-image: linear-gradient(transparent, #000 70px); }
.line { position: relative; flex: 0 0 auto; }
.line.them, .line.note { padding-left: 86px; }   /* the text starts past the red margin; the mood sits in the margin */
.line p { margin: 0; }
.line .who { display: block; font: 600 11px 'Cormorant Garamond', serif; letter-spacing: .3em; text-transform: uppercase; color: var(--pencil); }
.line .mood { position: absolute; left: 0; top: 14px; width: 68px; text-align: right; font: 400 14px/1.05 'Caveat', cursive; color: var(--pencil); transform: rotate(-3deg); }
.line.them .txt { font: 500 24px/1.25 'Cormorant Garamond', serif; color: var(--ink-2); transition: color .3s; }
.line.them.on .txt, .line.them:last-of-type .txt { color: var(--ink); }
.line.them.on::before { content: ''; position: absolute; left: 76px; top: 18px; bottom: 2px; width: 2px; background: var(--cafe); border-radius: 2px; }
.line.help .txt { font-style: italic; }
.line .en { display: none; font: italic 15px 'EB Garamond', serif; color: var(--pencil); margin-top: 1px; }
.show-en .line .en { display: block; }
.voc { border-bottom: 1.5px dotted var(--terra); cursor: pointer; }
.voc:hover { color: var(--terra); }
.line.you { align-self: flex-end; max-width: 86%; text-align: right; padding-right: 6px; }
.line.you .txt { font: 500 28px/1.15 'Caveat', cursive; color: var(--fountain); }
.line.you.miss .txt { opacity: .6; }
.okstamp { position: absolute; right: -14px; top: -14px; font: 600 13px 'Cormorant Garamond', serif; letter-spacing: .2em; text-transform: uppercase; color: var(--cafe); border: 1.5px solid var(--cafe); border-radius: 3px; padding: 1px 6px; filter: url(#stamp); }
.line.note .txt { font: 400 19px/1.25 'Caveat', cursive; color: var(--pencil); padding-left: 2px; }
.line.note b { font-weight: 600; color: var(--ink-2); }
.line.note .en-n { font-size: 16px; }

.ctrl { left: 78px; right: 30px; bottom: 34px; height: 100px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.act { appearance: none; background: none; border: 0; padding: 4px 2px; cursor: pointer; font: italic 16px 'EB Garamond', serif; color: var(--ink-2); border-bottom: 1px solid rgba(35,32,28,.3); transition: color .2s, border-color .2s; }
.act:hover { color: var(--cafe); border-color: var(--cafe); }
.seal { appearance: none; border: 0; padding: 0; cursor: pointer; width: 84px; height: 84px; flex: 0 0 84px; border-radius: 50%; position: relative; display: grid; place-items: center;
  background: radial-gradient(circle at 36% 32%, #c8463a, #8f1c17 55%, #5e0f0b); box-shadow: 0 3px 6px rgba(60,10,5,.35), inset 0 -3px 6px rgba(0,0,0,.25), inset 0 2px 3px rgba(255,190,170,.25); transition: transform .15s; }
.seal::before { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 1.5px solid rgba(255,210,195,.35); }
.seal span { font: 600 15px 'Cormorant Garamond', serif; letter-spacing: .12em; color: #fbe6dd; text-shadow: 0 -1px 0 rgba(0,0,0,.3); }
.seal:hover { transform: scale(1.04); }
.seal.rec { animation: breathe 1.1s ease-in-out infinite; }
.seal.thinking span { animation: fade 1s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(143,28,23,.12), 0 3px 6px rgba(60,10,5,.35); } }
@keyframes fade { 50% { opacity: .35; } }
.write { position: absolute; left: 0; right: 0; bottom: 104px; }
.write input { width: 100%; border: 0; border-bottom: 1.5px solid var(--fountain); background: transparent; padding: 4px 4px; font: 500 26px 'Caveat', cursive; color: var(--fountain); outline: none; }

/* ---------------------------------------------------------------- the end */
.fin-h { left: 0; right: 0; top: 230px; margin: 0; text-align: center; font: italic 500 96px 'Cormorant Garamond', serif; }
.fin-sub { left: 0; right: 0; top: 360px; margin: 0; text-align: center; font: italic 22px 'EB Garamond', serif; color: var(--ink-2); }
.fin-en { left: 0; right: 0; top: 400px; margin: 0; text-align: center; font: 400 15px 'EB Garamond', serif; color: var(--pencil); }
.colo { left: 0; right: 0; bottom: 60px; margin: 0; text-align: center; font: italic 13px 'EB Garamond', serif; color: var(--pencil); }

/* portraits borrowed from index.html */
.pt { overflow: visible; }

/* ---------------------------------------------------------------- tabs, ribbon, controls */
.tabs { position: absolute; left: calc(var(--W) * 2); top: 86px; display: flex; flex-direction: column; gap: 10px; z-index: -1; }
.tab { appearance: none; width: 40px; height: 92px; border: 0; border-radius: 0 4px 4px 0; padding: 0 0 0 9px; margin-left: -4px; cursor: pointer; color: #fff8ec; font: 600 13px/1 'Cormorant Garamond', serif; letter-spacing: .14em; writing-mode: vertical-rl; display: grid; place-items: center; box-shadow: inset 6px 0 8px rgba(0,0,0,.16); transition: transform .2s; opacity: .9; }
.tab:hover, .tab.on { transform: translateX(6px); opacity: 1; }
.tab.light { color: var(--ink); background: #efe8d6; }
.frame.single .tabs { display: none; }
.ribbon { position: absolute; left: 0; top: 0; overflow: visible; z-index: 70; pointer-events: none; filter: drop-shadow(1px 2px 1.5px rgba(60,20,10,.35)); }
.ribbon .band { pointer-events: visibleStroke; cursor: pointer; }
.ribbon .hit { pointer-events: all; cursor: pointer; }
.nav { position: fixed; top: 50%; z-index: 20; appearance: none; background: none; border: 1px solid rgba(35,32,28,.25); border-radius: 999px; color: rgba(35,32,28,.75); cursor: pointer; display: flex; align-items: center; gap: 8px; transform: translateY(-50%); transition: color .2s, border-color .2s; padding: 9px 16px; font: 500 16px 'EB Garamond', serif; letter-spacing: .06em; }
.nav:hover { color: var(--ink); border-color: rgba(35,32,28,.6); }
.nav .a { font-size: 22px; line-height: 1; }
.nav.back { left: 18px; } .nav.fwd { right: 18px; }
.nav[disabled] { opacity: .25; cursor: default; }
.markbtn { position: fixed; right: 18px; bottom: 18px; z-index: 20; appearance: none; background: none; border: 1px solid rgba(35,32,28,.25); border-radius: 999px; color: rgba(35,32,28,.75); cursor: pointer; padding: 7px 14px; font: 500 15px 'EB Garamond', serif; display: flex; gap: 8px; align-items: baseline; }
.markbtn b { color: var(--cafe); font-weight: 500; }
.markbtn.on { border-color: var(--cafe); }
.markbtn[hidden], .tocbtn { display: none; }
.hint { position: fixed; left: 0; right: 0; bottom: 36px; margin: 0; text-align: center; z-index: 20; font: italic 15px 'EB Garamond', serif; color: rgba(35,32,28,.55); letter-spacing: .04em; }
.credit { position: fixed; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; z-index: 20; font: italic 13px 'EB Garamond', serif; color: rgba(35,32,28,.55); letter-spacing: .04em; pointer-events: none; }
.credit a { color: var(--cafe); text-decoration: none; border-bottom: 1px solid rgba(143,28,23,.35); pointer-events: auto; }
.back-link { position: fixed; top: 14px; left: 18px; z-index: 30; padding: 5px 13px 6px; border: 1px solid rgba(35,32,28,.22); border-radius: 999px; color: rgba(35,32,28,.7); text-decoration: none; font: 500 15px 'EB Garamond', serif; letter-spacing: .05em; }
.back-link:hover { color: var(--ink); border-color: rgba(35,32,28,.55); }

/* ---------------------------------------------------------------- one page at a time (phones) */
body.single .wall .window, body.single .wall .chair { opacity: .06; }
body.single .credit { bottom: auto; top: calc(10px + env(safe-area-inset-top)); left: 90px; right: 12px; text-align: right; font-size: 12px; }
body.single .hint { bottom: calc(76px + env(safe-area-inset-bottom)); font-size: 14px; }
body.single .back-link { top: calc(6px + env(safe-area-inset-top)); left: 10px; padding: 3px 10px 4px; font-size: 13px; background: rgba(255,255,255,.35); }
body.single .nav, body.single .tocbtn:not([hidden]), body.single .markbtn {
  top: auto; bottom: calc(14px + env(safe-area-inset-bottom)); transform: none; height: 44px; padding: 0 16px;
  background: rgba(248,245,236,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.single .nav.back { left: 12px; } body.single .nav.fwd { right: 12px; }
body.single .tocbtn:not([hidden]) { display: grid; place-items: center; position: fixed; z-index: 20; left: 50%; margin-left: -94px; width: 88px; appearance: none; border: 1px solid rgba(35,32,28,.22); border-radius: 999px; color: rgba(35,32,28,.75); font: 500 14px 'Cormorant Garamond', serif; letter-spacing: .04em; padding: 0; cursor: pointer; }
body.single .markbtn { left: 50%; right: auto; margin-left: 6px; width: 54px; justify-content: center; align-items: center; padding: 0; }
body.single .markbtn .t { display: none; }
.frame.tall .talk-page .talk { bottom: 170px; }
.frame.tall .talk-page .ctrl { bottom: 50px; }
.frame.tall .card .mots { top: 470px; }

/* a page whose ink hasn't settled yet (inkIn() reveals it) */
.pre .toc li, .pre .mot, .pre .how li { opacity: 0; }
