/* Dəzgah, the sky of ideas (the owner's pick, 12-01; made whole, 12-02): the list is the sky seen from his doorway, a post one
   calm sheet hung in it; day and night; the landing's two faces, upright. See README.md § "Dəzgah". */
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/CormorantGaramond-wght-lat.woff) format("woff"); font-weight: 300 700; font-display: block; }
@font-face { font-family: "EB Garamond"; src: url(fonts/EBGaramond-wght-lat.woff) format("woff"); font-weight: 400 800; font-display: swap; }
/* the same two cut to Cyrillic: asked for only by a page that shows Russian */
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/CormorantGaramond-wght-cyr.woff) format("woff"); font-weight: 300 700; font-display: block; unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: "EB Garamond"; src: url(fonts/EBGaramond-wght-cyr.woff) format("woff"); font-weight: 400 800; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: "EB Garamond"; src: url(fonts/EBGaramond-Italic-wght-lat.woff2) format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(fonts/EBGaramond-Italic-wght-cyr.woff2) format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+2116; }
/* EB Garamond has no small capital for ə or Ə (a lowercase ə stood among them): its Ə drawn to their size, for the
   small-caps words alone (--sc), at each weight they use (tools/dezgah/schwa.py) */
@font-face { font-family: "Dz Schwa"; src: url(fonts/EBGaramond-schwa-500.woff) format("woff"); font-weight: 400 549; font-display: swap; unicode-range: U+018F, U+0259; }
@font-face { font-family: "Dz Schwa"; src: url(fonts/EBGaramond-schwa-600.woff) format("woff"); font-weight: 550 800; font-display: swap; unicode-range: U+018F, U+0259; }

:root {
  --display: "Cormorant Garamond", "EB Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sc: "Dz Schwa", var(--serif);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --vh: 100vh;
  --ease: cubic-bezier(.2, .75, .15, 1);
  /* the doorway: his painting's left end (900 x 875), as tall as --room-h; and where a post's paper stands */
  --room-h: min(66vh, 150vw); --room-w: calc(var(--room-h) * 900 / 875);
  --paper-w: 100vw; --paper-top: 62px; --paper-r: 16px;
  --plaque: #9d3a25; --plaque-hi: #c9603f; --plaque-lo: #7b2a19; --on-plaque: #fbecd6;
  /* day: the painting's own sky, cream paper, brown ink */
  --sky-0: #3a7592; --night-op: 0; --day-op: 1;
  --star: #fffbe9; --star-op: .5; --twinkle: none; --spark-glow: none;
  --mist-op: .5; --mist-c: rgba(255, 251, 240, .6); --cloud-op: 1; --fog: rgba(255, 251, 240, .94); --art-op: 1;
  /* the paper's tooth: one small tile of noise, drawn by the browser */
  --grain: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27180%27 height=%27180%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.85%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 .4 0 0 0 0 .28 0 0 0 0 .14 0 0 0 .1 0%27/%3E%3C/filter%3E%3Crect width=%27180%27 height=%27180%27 filter=%27url%28%23n%29%27/%3E%3C/svg%3E");
  --on-sky: #fff8ea; --on-sky-soft: rgba(255, 248, 234, .92); --on-sky-shadow: 0 1px 2px rgba(18, 48, 66, .5), 0 0 24px rgba(18, 48, 66, .4);
  --on-cloud: #3a2a1c; --on-cloud-soft: #5a4734; --on-cloud-shadow: 0 1px 0 rgba(255, 255, 255, .55);
  --on-low: #5a4734; --gold: #a87b2f; --gold-hi: #f3dba6;
  --sheet: #faf2e0; --sheet-2: #f1e5c9; --sheet-rim: rgba(255, 255, 255, .6); --fold: #e7d9b8; --fold-sh: rgba(90, 60, 30, .3);
  --sheet-shadow: 0 26px 40px -24px rgba(18, 52, 74, .62), 0 3px 6px -2px rgba(40, 30, 20, .2);
  --ink: #2f2419; --ink-soft: #62513d; --ink-faint: #94816a; --title: #2a2017; --lab: #9d3a25;
  --paper: #fbf5e8; --paper-2: #f6eeda; --paper-ink: #2a2118; --paper-soft: #6a5a47; --paper-rule: rgba(120, 90, 50, .24); --prose-h: #2a2017;
  --paper-shadow: 0 40px 90px -40px rgba(14, 44, 64, .75), 0 2px 8px -2px rgba(40, 30, 20, .2);
  --link: #98331f; --code-bg: rgba(110, 80, 40, .08);
  --snap-edge: #fffaf0; --snap-sh: 0 8px 16px -8px rgba(40, 30, 20, .5);
  --deco-sh: drop-shadow(0 12px 12px rgba(18, 52, 74, .35));
  --pill: rgba(251, 245, 232, .96); --pill-ink: #3b2c1f; --pill-rim: rgba(59, 44, 31, .16); --pill-on: rgba(59, 44, 31, .42);
  --thread: rgba(255, 250, 236, .85); --grain-op: 1;
  --sun-d: block; --moon-d: none;
  color-scheme: light;
}
@supports (height: 100svh) { :root { --vh: 100svh; --room-h: min(66svh, 150vw); } }
/* night follows the device, unless the switch chose day; and the switch's night */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --sky-0: #070b16; --night-op: 1; --day-op: 0;
  --star: #fff3d2; --star-op: 1; --twinkle: twinkle 3.6s ease-in-out infinite; --spark-glow: drop-shadow(0 0 4px rgba(255, 226, 160, .8));
  --mist-op: .5; --mist-c: rgba(120, 140, 190, .16); --cloud-op: .2; --fog: rgba(13, 20, 38, .7); --art-op: .86;
  --on-sky: #f0e7d3; --on-sky-soft: rgba(240, 231, 211, .82); --on-sky-shadow: 0 1px 14px rgba(0, 0, 0, .75);
  --on-cloud: #f3e6c6; --on-cloud-soft: rgba(240, 231, 211, .84); --on-cloud-shadow: 0 1px 14px rgba(0, 0, 0, .8);
  --on-low: rgba(240, 231, 211, .8); --gold: #c9a66b; --gold-hi: #e4c78f;
  --sheet: #0b1020; --sheet-2: #070b17; --sheet-rim: rgba(140, 160, 220, .16); --fold: #1c2540; --fold-sh: rgba(0, 0, 0, .55);
  --sheet-shadow: 0 30px 46px -24px rgba(0, 0, 0, .9), 0 0 60px -14px rgba(150, 170, 230, .28);
  --ink: #efe4cc; --ink-soft: #c2b49b; --ink-faint: #8e826f; --title: #f7e3b4; --lab: #e9a06e;
  --paper: #0a0e1c; --paper-2: #070a15; --paper-ink: #e8dec9; --paper-soft: #b3a68e; --paper-rule: rgba(228, 199, 143, .2); --prose-h: #f0d9a6;
  --paper-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 80px -30px rgba(226, 170, 104, .25);
  --link: #efb083; --code-bg: rgba(228, 199, 143, .09);
  --snap-edge: #1a2238; --snap-sh: 0 10px 20px -8px rgba(0, 0, 0, .7);
  --deco-sh: drop-shadow(0 0 12px rgba(226, 170, 104, .25)) drop-shadow(0 10px 12px rgba(0, 0, 0, .5));
  --pill: rgba(8, 11, 24, .95); --pill-ink: #f1e3c4; --pill-rim: rgba(255, 255, 255, .13); --pill-on: rgba(241, 227, 196, .45);
  --thread: rgba(228, 199, 143, .55); --grain-op: .5;
  --sun-d: none; --moon-d: block;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --sky-0: #070b16; --night-op: 1; --day-op: 0;
  --star: #fff3d2; --star-op: 1; --twinkle: twinkle 3.6s ease-in-out infinite; --spark-glow: drop-shadow(0 0 4px rgba(255, 226, 160, .8));
  --mist-op: .5; --mist-c: rgba(120, 140, 190, .16); --cloud-op: .2; --fog: rgba(13, 20, 38, .7); --art-op: .86;
  --on-sky: #f0e7d3; --on-sky-soft: rgba(240, 231, 211, .82); --on-sky-shadow: 0 1px 14px rgba(0, 0, 0, .75);
  --on-cloud: #f3e6c6; --on-cloud-soft: rgba(240, 231, 211, .84); --on-cloud-shadow: 0 1px 14px rgba(0, 0, 0, .8);
  --on-low: rgba(240, 231, 211, .8); --gold: #c9a66b; --gold-hi: #e4c78f;
  --sheet: #0b1020; --sheet-2: #070b17; --sheet-rim: rgba(140, 160, 220, .16); --fold: #1c2540; --fold-sh: rgba(0, 0, 0, .55);
  --sheet-shadow: 0 30px 46px -24px rgba(0, 0, 0, .9), 0 0 60px -14px rgba(150, 170, 230, .28);
  --ink: #efe4cc; --ink-soft: #c2b49b; --ink-faint: #8e826f; --title: #f7e3b4; --lab: #e9a06e;
  --paper: #0a0e1c; --paper-2: #070a15; --paper-ink: #e8dec9; --paper-soft: #b3a68e; --paper-rule: rgba(228, 199, 143, .2); --prose-h: #f0d9a6;
  --paper-shadow: 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 80px -30px rgba(226, 170, 104, .25);
  --link: #efb083; --code-bg: rgba(228, 199, 143, .09);
  --snap-edge: #1a2238; --snap-sh: 0 10px 20px -8px rgba(0, 0, 0, .7);
  --deco-sh: drop-shadow(0 0 12px rgba(226, 170, 104, .25)) drop-shadow(0 10px 12px rgba(0, 0, 0, .5));
  --pill: rgba(8, 11, 24, .95); --pill-ink: #f1e3c4; --pill-rim: rgba(255, 255, 255, .13); --pill-on: rgba(241, 227, 196, .45);
  --thread: rgba(228, 199, 143, .55); --grain-op: .5;
  --sun-d: none; --moon-d: block;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--sky-0); }
html, body { overflow-x: clip; max-width: 100%; }
/* an iPhone lays a page out to its widest piece before the clip above applies: the door and the clouds are cut by their own column too */
.front, .reader { overflow-x: clip; }
body { margin: 0; min-height: var(--vh); font: 400 19px/1.5 var(--serif); color: var(--ink); background: var(--sky-0); -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased; font-kerning: normal; text-rendering: optimizeLegibility; }
/* no cursive anywhere (the owner, 12-01) */
body, body * { font-style: normal !important; font-synthesis: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; border-radius: 6px; }
::selection { background: rgba(226, 170, 104, .38); }
.star8 { width: 20px; height: 20px; display: block; overflow: visible; }

/* the ornament: his door's star between two gold hairlines */
.orn { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; color: var(--gold-hi); }
.orn::before, .orn::after { content: ""; width: min(84px, 20vw); height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.orn::after { transform: scaleX(-1); }

/* ---------- the sky (fixed, behind everything) ---------- */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; transform-origin: 50% 30%; }
.sky-layer { position: absolute; left: 0; right: 0; top: 0; height: 300%; transition: opacity .8s ease; will-change: transform; }
.sky-day { background: linear-gradient(180deg, #3a7592 0%, #5c96af 22%, #9cc6d0 50%, #dde3d5 78%, #f2e7cd 100%); }
.sky-night { background: linear-gradient(180deg, #070b16 0%, #0c1424 24%, #14203a 50%, #232842 76%, #3a2c3c 100%); opacity: var(--night-op); }
.sky-stars { position: absolute; inset: 0; opacity: var(--star-op); transition: opacity .8s ease; }
.star { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--star); }
.star.big { width: 3px; height: 3px; box-shadow: 0 0 6px var(--star); }
.spark { position: absolute; color: var(--star); filter: var(--spark-glow); }
.spark svg { width: 100%; height: 100%; display: block; }
.tw { animation: var(--twinkle); }
@keyframes twinkle { 50% { opacity: .25; } }
/* two veils of mist, far and near: dezgah.js draws their texture once (--mist) and slides them as the page descends */
.sky-mist { position: absolute; left: -6%; right: -6%; background-repeat: repeat; opacity: var(--mist-op); transition: opacity .8s ease; will-change: transform;
  background-image: radial-gradient(50% 50% at 50% 50%, var(--mist-c), transparent 100%), radial-gradient(50% 50% at 50% 50%, var(--mist-c), transparent 100%), radial-gradient(50% 50% at 50% 50%, var(--mist-c), transparent 100%); }
.sky-mist.far { top: 18%; height: 150%; background-size: 1500px 300px, 1100px 220px, 1900px 260px; background-position: 0 0, 420px 330px, 900px 640px; animation: mist 90s ease-in-out infinite alternate;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 70%, transparent); }
.sky-mist.near { top: 46%; height: 190%; background-size: 2300px 420px, 1700px 360px, 2900px 520px; background-position: 700px 120px, 0 560px, 1300px 980px; animation: mist 140s ease-in-out infinite alternate-reverse;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 72%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, #000 72%, transparent); }
@keyframes mist { to { translate: -5% 0; } }
.sky-dim { position: absolute; inset: 0; background: var(--sky-0); opacity: 0; }
/* a post: the sky seen close, and still */
.dz-post .sky { transform: scale(1.3); }
.dz-post .sky-dim { opacity: .3; }
.dz-post .sky-mist.near { display: none; }

/* his clouds: the bank from under the door's sky, drifting behind the sheets */
.cloud { position: absolute; width: var(--w, 380px); aspect-ratio: 412 / 192; pointer-events: none; z-index: 0;
  background: url(dezgah/cloud.webp) 50% 50% / 100% 100% no-repeat; opacity: calc(var(--o, 1) * var(--cloud-op) * .62); transition: opacity .8s ease;
  /* his painted cloud is strong, inked and flat-footed: it is shown thinner than painted and melts away toward its foot and ends, so it sits back in the sky */
  -webkit-mask-image: linear-gradient(#000 42%, transparent 92%), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(#000 42%, transparent 92%), linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-composite: intersect; }
.cloud.flip { scale: -1 1; }
.drifty { animation: drift var(--dur, 40s) ease-in-out infinite alternate; }
@keyframes drift { to { translate: var(--dx, 40px) 0; } }

/* ---------- the floating controls ---------- */
.ctl { position: fixed; z-index: 30; top: max(12px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 16px 0 10px; border: 0; border-radius: 20px; background: var(--pill); color: var(--pill-ink);
  font: 500 17px/1 var(--serif); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--pill-rim), 0 8px 20px -10px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), box-shadow .3s; }
.ctl[hidden] { display: none; }
.ctl:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--gold), 0 10px 22px -10px rgba(0, 0, 0, .5); }
.ctl:active { transform: scale(.96); }
.ctl svg { width: 18px; height: 18px; flex: none; }
/* day and night as two halves of one pill, and the way home at the left, as the release notes have them (notes.css) */
.theme { right: max(12px, env(safe-area-inset-right)); gap: 2px; padding: 3px; }
.theme:hover, .theme:active { transform: none; box-shadow: inset 0 0 0 1px var(--pill-rim), 0 8px 20px -10px rgba(0, 0, 0, .45); }
.theme .theme-l { min-width: 34px; height: 34px; padding: 0 9px; border: 0; border-radius: 17px; background: none; color: var(--pill-ink); cursor: pointer; font: 500 17px/1 var(--serif); }
.theme .theme-l[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--pill-on); }   /* no gold on the pills' rims (the owner, 12-04) */
.home { left: max(12px, env(safe-area-inset-left)); padding: 0 18px; font: 600 19px/1 var(--display); }
/* the speaker, a post's with sound, beside the switch; the language's pill moves along for it */
.sound { right: calc(max(12px, env(safe-area-inset-right)) + 84px); width: 40px; padding: 0; justify-content: center; }
.sound[aria-pressed="false"] .snd-on, .sound[aria-pressed="true"] .snd-off { display: none; }
.sound[aria-pressed="true"] { color: var(--gold); }
.dz-sounding .lang { right: calc(max(12px, env(safe-area-inset-right)) + 132px); }
.shot .sound { display: none; }
.back { left: max(12px, env(safe-area-inset-left)); }
/* the other languages (lang.js): the English a line replaces is not shown while its words are put in place; the switch is a
   pill beside the day-and-night one, the languages under it by their own names */
html.t-wait [data-t], html.t-wait time { visibility: hidden; }
/* an island's name in another language may be a longer word: set a little smaller and closer, so no two names meet */
html:not([lang="en"]) .isle-name, html[lang="en"] .isle.long .isle-name { font-size: .8em; letter-spacing: .03em; }
@media (max-width: 400px) { html[lang="en"] .isle.long .isle-name { font-size: .7em; letter-spacing: .02em; } }
.lang { right: calc(max(12px, env(safe-area-inset-right)) + 84px); padding: 0 13px; font-size: 14px; letter-spacing: .12em; }
.dz-langs { position: fixed; z-index: 31; top: calc(max(12px, env(safe-area-inset-top)) + 48px); right: max(12px, env(safe-area-inset-right)); margin: 0; padding: 6px; list-style: none; min-width: 10.5em;
  border-radius: 16px; background: var(--pill); box-shadow: inset 0 0 0 1px var(--pill-rim), 0 14px 30px -12px rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dz-langs[hidden] { display: none; }
.dz-langs a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--pill-ink); text-decoration: none; font: 500 17px/1.2 var(--serif); }
.dz-langs a:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.dz-langs a[aria-current] { box-shadow: inset 2px 0 0 var(--gold); }

/* ---------- the list: the threshold, his room and its open door ---------- */
.front { position: relative; z-index: 1; }
.threshold { position: relative; padding-top: calc(var(--room-h) * .87); }
.room { position: absolute; left: 0; top: 0; z-index: 0; width: var(--room-w); height: var(--room-h); pointer-events: none; isolation: isolate; }
.room img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
/* by day his own sky lies beyond the door; by night the room alone, and the page's night beyond it */
.room-day { opacity: var(--day-op); transition: opacity .8s ease; }
/* the room at night: a shade over it, shaped by the room's own cut, and the lamp's light by the door */
.room::after { content: ""; position: absolute; inset: 0; opacity: var(--night-op); transition: opacity .8s ease; mix-blend-mode: multiply;
  background: radial-gradient(60% 46% at 40% 86%, #f1d9b4 0%, #a99aa6 46%, #6f7191 100%);
  -webkit-mask: url(dezgah/door-night.webp) 0 0 / 100% 100% no-repeat; mask: url(dezgah/door-night.webp) 0 0 / 100% 100% no-repeat; }
.room-glow { position: absolute; left: 30%; top: 58%; width: 62%; height: 42%; z-index: 1; border-radius: 50%; mix-blend-mode: screen; opacity: calc(.25 + var(--night-op) * .45); transition: opacity .8s ease;
  background: radial-gradient(closest-side, rgba(255, 222, 170, .5), rgba(255, 196, 120, .16) 55%, transparent); animation: breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(.94); } to { transform: scale(1.06); } }
/* the cloud bank the floor ends in */
.bank { position: absolute; left: 0; right: 0; top: calc(var(--room-h) * .74); height: calc(var(--room-h) * .4); z-index: 1; pointer-events: none; }
.bank::before { content: ""; position: absolute; inset: -10% -25% -70%; background: radial-gradient(70% 50% at 50% 50%, var(--fog) 42%, transparent 78%); transition: opacity .8s; }

/* a label's page: a lower doorway, so its island shows at once */
.threshold.compact { --room-h: min(46vh, 108vw); --room-w: calc(var(--room-h) * 900 / 875); }

/* the name, set as the landing's is; on the cloud bank under the door (on a wide window, in the sky beside it) */
.mark-wrap { position: relative; z-index: 2; padding: 0 20px; text-align: center; color: var(--on-cloud); }
.mark { margin: 0; font: 600 clamp(64px, 20vw, 108px)/.92 var(--display); letter-spacing: -.012em; text-shadow: var(--on-cloud-shadow); white-space: nowrap; }
.mark-wrap .orn { margin-top: 10px; color: var(--gold); }
.tag { margin: 12px auto 0; max-width: 23em; font: 400 clamp(18px, 4.9vw, 22px)/1.42 var(--serif); color: var(--on-cloud-soft); text-shadow: var(--on-cloud-shadow); text-wrap: balance; }
/* his moon; a tap on it turns the day to night (dezgah.js) */
.moon { position: absolute; z-index: 3; right: max(18px, 9%); top: -34px; width: 40px; cursor: pointer; rotate: -8deg; transition: scale .4s var(--ease), rotate .6s var(--ease); }
.moon .cut { width: 100%; height: auto; filter: drop-shadow(0 0 calc(6px + 16px * var(--night-op)) rgba(255, 236, 190, calc(.5 + .4 * var(--night-op)))); }
.moon:hover { scale: 1.1; rotate: 4deg; }

/* the islands: Whole sky and the five labels, each its own page */
.isles { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 116px)); justify-content: center; gap: 18px 6px; margin: 44px 0 0; padding: 8px 12px 12px; }
.isle { min-width: 0; display: grid; justify-items: center; align-content: start; gap: 9px; padding: 4px 0 6px; text-decoration: none; color: var(--on-sky); border-radius: 12px; }
.isle-img { position: relative; width: 92px; height: 88px; display: grid; place-items: end center; animation: bob 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.isle-img .cut { display: block; width: 100%; height: 100%; min-height: 0; opacity: var(--art-op); filter: var(--deco-sh); transition: scale .45s var(--ease), opacity .8s; transform-origin: 50% 100%; }

.isle:hover .isle-img .cut, .isle:focus-visible .isle-img .cut { scale: 1.12; }
.isle-word { display: grid; justify-items: center; gap: 6px; text-shadow: var(--on-sky-shadow); }
.isle-name { font: 500 16px/1.05 var(--sc); font-variant-caps: all-small-caps; letter-spacing: .07em; white-space: nowrap; }
.isle-n { min-width: 26px; padding: 4px 8px 3px; border-radius: 12px; font: 600 14px/1 var(--serif); font-variant-numeric: lining-nums; text-align: center; text-shadow: none; color: var(--pill-ink); background: var(--pill); box-shadow: inset 0 0 0 1px var(--pill-rim); }
.isle.empty .isle-n { opacity: .55; }
.isle[aria-current="page"] .isle-name { box-shadow: 0 2px 0 -1px var(--gold), 0 5px 0 -4px var(--gold); padding-bottom: 3px; }
.isle[aria-current="page"] .isle-img::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 34px; height: 8px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, var(--gold-hi), transparent); opacity: .9; }
.isle.empty .isle-img .cut { opacity: calc(var(--art-op) * .6); }
@keyframes bob { 50% { translate: 0 -4px; } }

/* ---------- the descent: the posts as drifting sheets, newest nearest ---------- */
.descent { position: relative; padding: 26px 16px 30px; max-width: 1080px; margin: 0 auto; }
.row { position: relative; margin: 0 0 26px; }
/* the newest on a phone: as much sky under it as a computer gives (the owner, 12-04: "almost no space between the newest
   post and then the one after it"); from 700 the wide row's own rule below */
.row.wide { margin-bottom: 64px; }
.sheet { position: relative; z-index: 1; display: block; text-decoration: none; color: var(--ink); margin-top: 34px; }
.sheet-bob { animation: bob 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
.lean { position: relative; rotate: var(--tilt, 0deg); transition: rotate .45s var(--ease), translate .45s var(--ease); }
.lean::before { content: ""; position: absolute; inset: 3px 3px 0; border-radius: 6px; box-shadow: var(--sheet-shadow); transition: box-shadow .8s; }
/* the paper: hand-cut, never quite square, one corner folded */
.face { --dog: 26px; position: relative; padding: 24px 20px 22px;
  background: var(--grain, none), linear-gradient(172deg, var(--sheet) 46%, var(--sheet-2)); box-shadow: inset 0 0 0 1px var(--sheet-rim), inset 0 -26px 30px -30px var(--fold-sh);
  clip-path: polygon(.3% .5%, 50% 0, 99.7% .2%, 100% 50%, 100% calc(100% - var(--dog)), calc(100% - var(--dog)) 100%, 40% 99.6%, .2% 100%, 0 50%); }
.face::after { content: ""; position: absolute; right: 0; bottom: 0; width: var(--dog); height: var(--dog);
  background: linear-gradient(135deg, var(--fold-sh) 0, transparent 26%), linear-gradient(315deg, transparent 50%, var(--fold) 50%, var(--sheet) 96%);
  clip-path: polygon(0 0, 100% 0, 0 100%); }
.sheet:hover .lean, .sheet:focus-visible .lean { rotate: 0deg; translate: 0 -4px; }
.sheet:active .lean { rotate: 0deg; translate: 0 0; scale: .992; }
.sheet:focus-visible { outline: none; }
.sheet:focus-visible .lean::before { box-shadow: 0 0 0 3px var(--gold-hi), var(--sheet-shadow); }
/* its label's island, the thread it hangs by */
.tie { position: absolute; left: 20px; top: -34px; width: 50px; height: 44px; z-index: 2; display: grid; place-items: end center; pointer-events: none; }
.tie .cut { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; opacity: var(--art-op); filter: var(--deco-sh); }
.tie::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 16px; background: linear-gradient(var(--thread), transparent); }
.meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 9px; padding-left: 58px; min-height: 20px;
  font: 500 16.5px/1.2 var(--sc); font-variant: all-small-caps oldstyle-nums; letter-spacing: .07em; color: var(--ink-soft); }
.meta .lab { color: var(--lab); }
.meta .lab a { text-decoration: none; }
.meta .lab a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.draft { padding: 0 8px 1px; border-radius: 9px; box-shadow: inset 0 0 0 1px currentColor; font-size: 14.5px; color: var(--ink-faint); }
.sheet h2 { margin: 0; font: 600 clamp(27px, 7.4vw, 33px)/1.05 var(--display); color: var(--title); letter-spacing: -.005em; text-wrap: balance; }
.sheet .sum { margin: 9px 0 0; font: 400 19px/1.4 var(--serif); color: var(--ink-soft); text-wrap: pretty; }
.go { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font: 500 16.5px/1 var(--sc); font-variant: all-small-caps lining-nums; letter-spacing: .09em; color: var(--lab); }
.go svg { width: 17px; height: 17px; transition: translate .35s var(--ease); }
.sheet:hover .go svg { translate: 4px 0; }
/* its cover: a print laid on the paper */
.snap { margin: 0 0 16px; padding: 5px; background: var(--snap-edge); box-shadow: var(--snap-sh); rotate: .7deg; }
.snap img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pictured .meta { padding-left: 0; }

/* the newest: the first sheet, the one to read; its Read is the landing's red plaque */
.newest .face { --dog: 32px; padding: 26px 22px 26px; }
.newest .meta::before { content: var(--dz-newest, "Newest"); order: -1; padding: 1px 9px 2px; border-radius: 10px; background: var(--plaque); color: var(--on-plaque); font-size: 15px; letter-spacing: .1em; }
.newest h2 { font-size: clamp(36px, 10vw, 52px); line-height: .98; }
.newest .sum { font-size: 20.5px; margin-top: 12px; }
.newest .go { --c: 13px; position: relative; isolation: isolate; margin-top: 20px; min-height: 46px; padding: 0 30px 1px; color: var(--on-plaque); font-size: 17.5px; letter-spacing: .13em; filter: drop-shadow(0 8px 10px rgba(40, 14, 6, .35)); }
.newest .go::before, .newest .go::after { content: ""; position: absolute; z-index: -1; inset: 0; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% 50%, calc(100% - var(--c)) 100%, var(--c) 100%, 0 50%); }
.newest .go::before { background: linear-gradient(#f6e2b4, #c39d5c 42%, #7d6135); }
.newest .go::after { inset: 1.5px; background: linear-gradient(rgba(255, 226, 190, .18), transparent 45%), radial-gradient(120% 150% at 50% 0%, var(--plaque-hi), var(--plaque) 58%, var(--plaque-lo)); box-shadow: inset 0 0 0 2px rgba(34, 10, 4, .3); }

/* one of his sketches, adrift between the sheets */
.deco { position: relative; z-index: 1; width: 104px; margin: 4px 6% -12px auto; rotate: var(--r, 6deg); pointer-events: none; animation: float 11s ease-in-out infinite; animation-delay: var(--d, 0s); }
.deco.left { margin-left: 5%; margin-right: auto; }
.deco .cut { display: block; width: 100%; height: auto; filter: var(--deco-sh); }
@keyframes float { 30% { translate: 5px -7px; rotate: calc(var(--r, 6deg) + 2.5deg); } 70% { translate: -4px 3px; rotate: calc(var(--r, 6deg) - 2deg); } }

/* a label's page: its island large, its sheets hanging round it */
.isle-head { display: grid; justify-items: center; text-align: center; padding: 0 0 6px; color: var(--on-sky); }
.isle-head .big { width: min(250px, 64vw); height: min(176px, 44vw); display: grid; place-items: end center; animation: bob 8s ease-in-out infinite; }
.isle-head .big .cut { display: block; max-width: 100%; max-height: 100%; width: auto; height: 100%; opacity: var(--art-op); filter: var(--deco-sh); }
.isle-words { display: grid; justify-items: center; }
.isle-head h2 { margin: 6px 0 8px; font: 600 clamp(44px, 12vw, 64px)/1 var(--display); text-shadow: var(--on-sky-shadow); }
.isle-head .orn { color: var(--gold-hi); }
.isle-head p:not(.orn) { margin: 10px 0 0; font: 400 19px/1.4 var(--serif); color: var(--on-sky-soft); text-shadow: var(--on-sky-shadow); }
.isle-head .whole-link { display: inline-block; margin-top: 16px; padding: 11px 20px 12px; border-radius: 22px; background: var(--pill); color: var(--pill-ink); box-shadow: inset 0 0 0 1px var(--pill-rim); text-decoration: none; font: 500 17px/1 var(--serif); }

/* ---------- the landing: the bench at the bottom of the sky, the author on it ---------- */
.landing { position: relative; padding: 46px 16px calc(40px + env(safe-area-inset-bottom)); text-align: center; overflow: clip; }
.bench img { width: 100%; height: auto; max-width: none; }
/* a phone: the whole bench, centred, a little wider than the screen so only its cloud runs off the sides, and up under
   the last sheet (the owner, 12-03: "This doesn't sit nice in the center … It looks bad") */
.bench-home { position: relative; width: 128%; margin: 0 0 0 -14%; }
.landing.lifted { margin-top: -64px; }
.bench { position: relative; z-index: 1; isolation: isolate;
  -webkit-mask-image: linear-gradient(#000 80%, transparent 99%); mask-image: linear-gradient(#000 80%, transparent 99%); }   /* his bench is cut clean: only its own cloud's foot melts away */
/* the bench at night: a shade over it by its own shape, and its lamp lit; a tap on the lamp turns the night on and off */
.bench::after { content: ""; position: absolute; inset: 0; opacity: var(--night-op); transition: opacity .8s ease; mix-blend-mode: multiply; pointer-events: none;
  background: radial-gradient(40% 56% at 56% 62%, #f0d9b2 0%, #8f8aa8 44%, #56608a 100%);
  -webkit-mask: url(dezgah/bench.webp) 0 0 / 100% 100% no-repeat; mask: url(dezgah/bench.webp) 0 0 / 100% 100% no-repeat; }
.lamp { position: absolute; z-index: 1; left: 31.5%; top: 32%; width: 26%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; cursor: pointer; mix-blend-mode: screen; opacity: calc(.18 + var(--night-op) * .82); transition: opacity .8s ease;
  background: radial-gradient(closest-side, rgba(255, 226, 170, .95), rgba(255, 190, 110, .42) 34%, rgba(255, 170, 90, .12) 62%, transparent); animation: breathe 6s ease-in-out infinite alternate; }
.landing > .cloud { z-index: 2; bottom: 9%; }
/* the pixel runner out of his sky: he waits by the bench, and now and then runs across the page (dezgah.js) */
.runner { position: absolute; z-index: 0; left: 7%; top: 44%; width: 40px; pointer-events: none; animation: run 46s linear infinite; }
.runner .cut { display: block; width: 100%; height: auto; filter: var(--deco-sh); animation: hop .44s steps(2, jump-none) infinite; }
@keyframes run { from { translate: -60vw 0; } to { translate: 110vw 0; } }
@keyframes hop { to { translate: 0 -4px; } }
.byline { position: relative; z-index: 3; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; max-width: 440px; margin: 0 auto; padding: 16px 20px 17px; text-align: left; color: var(--ink);
  background: var(--grain, none), linear-gradient(172deg, var(--sheet) 46%, var(--sheet-2)); box-shadow: inset 0 0 0 1px var(--sheet-rim), var(--sheet-shadow); border-radius: 3px; }
.landing .byline { margin-top: -30px; rotate: -.8deg; }
.byline img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--sheet), 0 0 0 5px var(--paper-rule); }
.byline p { margin: 0; font: 400 18px/1.35 var(--serif); color: var(--ink-soft); }
.byline .who { font: 600 25px/1.05 var(--display); color: var(--title); margin-bottom: 1px; }
.byline .links { display: flex; gap: 18px; margin-top: 6px; font: 500 16.5px/1 var(--sc); font-variant-caps: all-small-caps; letter-spacing: .08em; }
.byline .links a { color: var(--lab); text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--paper-rule); }
.byline .links a:hover { text-decoration-color: currentColor; }
.foot { position: relative; z-index: 3; margin: 30px auto 0; font: 400 17px/1.5 var(--serif); color: var(--on-low); }
.foot b { font: 600 24px/1 var(--display); letter-spacing: .01em; }
.foot br { display: block; content: ""; margin-top: 10px; }
.foot a { margin: 0 9px; font-family: var(--sc); font-variant-caps: all-small-caps; font-weight: 500; letter-spacing: .1em; text-decoration: none; box-shadow: 0 1px 0 var(--paper-rule); transition: box-shadow .3s, color .3s; }
.foot a:hover { box-shadow: 0 1px 0 currentColor; }
.foot .legal { font-size: 13px; letter-spacing: .02em; opacity: .8; }   /* who stands behind the site */

/* ---------- a post: one calm sheet, hung in the sky by its label's island ---------- */
.reader { position: relative; z-index: 2; padding-top: var(--paper-top); }
.paper { position: relative; z-index: 1; padding: 46px 22px 34px; border-radius: var(--paper-r) var(--paper-r) 3px 3px; color: var(--paper-ink);
  background: var(--grain, none), linear-gradient(180deg, var(--paper) 0, var(--paper) 70%, var(--paper-2)); box-shadow: inset 0 0 0 1px var(--sheet-rim), var(--paper-shadow); }
.paper { width: var(--paper-w); margin: 0 auto; }
.paper > .tie { left: 50%; margin-left: -29px; top: -34px; width: 58px; height: 50px; z-index: 3; } /* above a torn paper's segments (z 2) */
.paper > .tie::after { height: 20px; }
.p-head .meta { padding: 0; margin-bottom: 20px; color: var(--paper-soft); }
.p-head h1 { margin: 0; font: 600 clamp(40px, 11vw, 62px)/.98 var(--display); letter-spacing: -.012em; text-wrap: balance; color: var(--title); }
.p-head .lede { margin: 16px 0 0; font: 400 clamp(21px, 5.4vw, 25px)/1.36 var(--serif); color: var(--paper-soft); text-wrap: pretty; }
.p-head::after { content: ""; display: block; height: 1px; margin: 28px 0 26px; background: linear-gradient(90deg, var(--gold), transparent 78%); opacity: .8; }
.prose { font: 400 20.5px/1.6 var(--serif); font-variant-numeric: oldstyle-nums; overflow-wrap: break-word; hanging-punctuation: first; }
.prose p { margin: 0 0 1.02em; text-wrap: pretty; }
.prose h2 { margin: 1.75em 0 .5em; font: 600 31px/1.08 var(--display); letter-spacing: -.004em; color: var(--prose-h); text-wrap: balance; }
.prose h3 { margin: 1.5em 0 .4em; font: 600 25px/1.15 var(--display); color: var(--prose-h); }
.prose a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
/* stress stays upright (no cursive): it takes the accent's ink instead */
.prose em { color: var(--lab); }
.prose strong { font-weight: 650; }
.prose ul, .prose ol { margin: 0 0 1.02em; padding-left: 1.25em; }
.prose li { margin: 0 0 .32em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin: 1.3em 0; padding: 2px 0 2px 20px; border-left: 1px solid var(--gold); color: var(--paper-soft); font-size: 1.04em; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font: .8em/1 var(--mono); padding: .14em .34em; border-radius: 4px; background: var(--code-bg); font-variant-numeric: normal; }
.prose pre { margin: 1.3em 0; padding: 14px 16px; border-radius: 6px; background: var(--code-bg); overflow-x: auto; font-size: 17px; line-height: 1.5; }
.prose pre code { padding: 0; background: none; font-size: .86em; line-height: inherit; }
.prose figure { margin: 1.5em -8px 1.7em; }
.prose figure img, .prose figure video { width: 100%; height: auto; border-radius: 3px; box-shadow: 0 0 0 1px var(--paper-rule), 0 14px 30px -18px rgba(0, 0, 0, .55); }
.prose figcaption { margin: 11px 8px 0; font: 400 17px/1.35 var(--serif); color: var(--paper-soft); text-align: center; text-wrap: balance; font-variant-numeric: oldstyle-nums; }
.prose .dz-cover { margin-top: 0; }

/* a spread of cards (pictures one a line): a swipeable strip on a phone, a fan of sheets on the iPad */
.prose figure.dz-cards { margin: 1.7em -22px 1.9em; }
.dz-cards ul { display: flex; gap: 14px; margin: 0; padding: 10px 22px 20px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dz-cards ul::-webkit-scrollbar { display: none; }
.dz-cards li { --i: 0; flex: 0 0 78%; margin: 0; scroll-snap-align: center; }
.dz-n2 { --n: 2; } .dz-n3 { --n: 3; } .dz-n4 { --n: 4; } .dz-n5 { --n: 5; }
.dz-cards li:nth-child(2) { --i: 1; } .dz-cards li:nth-child(3) { --i: 2; } .dz-cards li:nth-child(4) { --i: 3; } .dz-cards li:nth-child(5) { --i: 4; }
.dz-card { --o: calc(var(--i) - (var(--n) - 1) / 2); display: block; padding: 7px 7px 14px; border-radius: 2px; text-align: left; text-decoration: none; color: var(--ink);
  background: var(--grain, none), linear-gradient(172deg, var(--sheet) 46%, var(--sheet-2)); box-shadow: inset 0 0 0 1px var(--sheet-rim), var(--sheet-shadow);
  transform: rotate(calc(var(--o) * 2.4deg)); transition: transform .4s var(--ease); cursor: zoom-in; }
.prose .dz-card img { width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 0; border-radius: 1px; box-shadow: 0 0 0 1px var(--paper-rule); }
.dz-card-t { display: block; margin: 11px 5px 0; font: 600 22px/1.08 var(--display); color: var(--title); }
.dz-card-s { display: block; margin: 4px 5px 0; font: 400 16.5px/1.3 var(--serif); color: var(--ink-soft); }

.p-end { margin-top: 44px; }
.p-end .orn { color: var(--gold); margin-bottom: 30px; }
.p-end .byline { margin: 0; max-width: none; padding: 0; background: none; box-shadow: none; }
.p-end .byline img { box-shadow: 0 0 0 1px var(--gold), 0 0 0 4px var(--paper), 0 0 0 5px var(--paper-rule); }
/* under the sheet, in the sky again: the posts either side of it, the way back, the foot */
.after { position: relative; width: var(--paper-w); margin: 0 auto; padding: 40px 16px calc(40px + env(safe-area-inset-bottom)); text-align: center; }
.after > :not(.cloud) { position: relative; z-index: 1; }
.near { display: grid; gap: 22px; text-align: left; }
.near a { position: relative; display: block; padding: 18px 20px 20px; text-decoration: none; color: var(--ink); rotate: -.9deg; transition: rotate .45s var(--ease), translate .45s var(--ease);
  background: var(--grain, none), linear-gradient(172deg, var(--sheet) 46%, var(--sheet-2)); box-shadow: inset 0 0 0 1px var(--sheet-rim), var(--sheet-shadow); border-radius: 3px; }
.near .older { rotate: 1deg; }
.near a:hover, .near a:focus-visible { rotate: 0deg; translate: 0 -3px; }
.near small { display: block; font: 500 16px/1.2 var(--sc); font-variant-caps: all-small-caps; letter-spacing: .08em; color: var(--lab); }
.near strong { display: block; margin-top: 6px; font: 600 28px/1.05 var(--display); color: var(--title); text-wrap: balance; }
.near a > span { display: block; margin-top: 7px; font: 500 16px/1.2 var(--sc); font-variant: all-small-caps oldstyle-nums; letter-spacing: .07em; color: var(--ink-soft); }
.home-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 34px; padding: 12px 22px 13px 18px; border-radius: 24px; background: var(--pill); color: var(--pill-ink); box-shadow: inset 0 0 0 1px var(--pill-rim), 0 10px 22px -12px rgba(0, 0, 0, .5);
  font: 500 18px/1 var(--serif); text-decoration: none; transition: translate .3s var(--ease); }
.home-link:hover { translate: 0 -2px; }
.home-link .star8 { width: 18px; height: 18px; color: var(--gold); }
.after .foot { color: var(--on-sky-soft); text-shadow: var(--on-sky-shadow); }
.after .foot a { box-shadow: 0 1px 0 rgba(255, 248, 234, .35); }
/* how far down the sheet: a gold thread along the top (dezgah.js) */
.thread { position: fixed; z-index: 29; left: 0; top: 0; width: 100%; height: 2px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold), var(--gold-hi)); pointer-events: none; }

/* ---------- a scene: the paper is torn, a painting fills the window's width and becomes the sky, one of the post's paragraphs goes
   over it, the paper starts again. The sheet is segments of one paper; .paper stays whole round them for the moments (the reading
   thread, the turn), with no background of its own. See README.md § "Dəzgah" (A scene). ---------- */
.paper.has-scene { padding: 0; background: none; box-shadow: none; }
.paper-seg { position: relative; z-index: 2; background: var(--grain, none), var(--paper); }
/* the rim runs round the sheet but not along a cut */
.seg-first { padding: 46px 22px 30px; border-radius: var(--paper-r) var(--paper-r) 0 0; box-shadow: inset 1px 1px 0 var(--sheet-rim), inset -1px 0 0 var(--sheet-rim), var(--paper-shadow); }
.seg-mid { padding: 40px 22px 30px; box-shadow: inset 1px 0 0 var(--sheet-rim), inset -1px 0 0 var(--sheet-rim), var(--paper-shadow); }
.seg-rest { padding: 40px 22px 34px; border-radius: 0 0 3px 3px; box-shadow: inset 1px -1px 0 var(--sheet-rim), inset -1px 0 0 var(--sheet-rim), var(--paper-shadow); background: var(--grain, none), linear-gradient(180deg, var(--paper) 0, var(--paper) 70%, var(--paper-2)); }
.seg-first > .prose > :last-child, .seg-mid > .prose > :last-child { margin-bottom: 0; }
/* a piece of the torn paper that opens on a heading: no heading's gap above it as well, so its words sit evenly between the tears (the owner, 12-03) */
.seg-mid > .prose > :first-child, .seg-rest > .prose > :first-child { margin-top: 0; }
/* the cut: the same paper, torn, with its shadow on what is under it */
.dz-tear, .dz-tear-shade { position: absolute; left: 0; right: 0; height: 26px; pointer-events: none; }
.dz-tear { z-index: 1; background: var(--grain, none), var(--paper); }
.dz-tear-shade { z-index: 0; background: rgba(10, 6, 2, .26); filter: blur(4px); }
.dz-tear-down { top: calc(100% - 1px); clip-path: var(--tear-down); }
.dz-tear-shade.dz-tear-down { top: calc(100% + 5px); }
.dz-tear-up { bottom: calc(100% - 1px); clip-path: var(--tear-up); }
.dz-tear-shade.dz-tear-up { bottom: calc(100% + 1px); opacity: .5; }
:root {
  --tear-down: polygon(0 0, 100% 0, 100.00% 50.9%, 99.73% 50.9%, 98.24% 46.1%, 96.63% 54.3%, 94.92% 64.0%, 93.77% 59.2%, 92.42% 51.5%, 90.97% 51.7%, 90.16% 46.4%, 89.07% 41.7%, 87.57% 31.7%, 86.00% 38.9%, 84.78% 36.4%, 83.56% 29.7%, 82.85% 39.4%, 81.12% 42.1%, 79.65% 45.9%, 78.35% 39.1%, 77.29% 52.5%, 76.28% 53.3%, 74.90% 57.6%, 73.60% 68.8%, 72.18% 63.2%, 70.96% 63.0%, 69.46% 57.9%, 67.73% 64.6%, 65.97% 58.1%, 64.95% 57.8%, 64.34% 61.7%, 63.13% 56.4%, 62.04% 64.8%, 61.13% 74.9%, 59.33% 68.4%, 57.70% 81.1%, 56.66% 83.1%, 55.50% 80.1%, 54.01% 76.5%, 52.59% 82.6%, 50.83% 75.4%, 49.59% 79.0%, 47.95% 72.6%, 47.33% 66.2%, 46.11% 55.8%, 44.55% 54.6%, 42.82% 61.4%, 42.10% 47.9%, 40.36% 59.7%, 38.67% 60.3%, 37.70% 59.2%, 36.31% 50.4%, 34.78% 57.5%, 34.18% 59.3%, 32.74% 50.3%, 31.39% 41.7%, 29.65% 45.0%, 27.94% 29.0%, 27.18% 37.4%, 25.73% 27.0%, 24.46% 31.6%, 22.73% 30.4%, 21.70% 35.5%, 20.33% 36.1%, 19.56% 52.9%, 18.61% 54.1%, 17.56% 62.5%, 16.00% 52.3%, 15.01% 54.3%, 13.93% 67.7%, 12.29% 60.5%, 11.59% 62.7%, 10.75% 66.3%, 9.32% 52.3%, 8.63% 54.4%, 7.86% 63.4%, 6.64% 62.2%, 5.51% 52.0%, 4.07% 58.2%, 2.31% 62.6%, 1.64% 75.9%, 0.00% 81.2%);
  --tear-up: polygon(0 100%, 100% 100%, 100.00% 32.2%, 98.63% 32.2%, 97.81% 29.5%, 96.26% 22.2%, 95.24% 38.2%, 94.34% 35.5%, 93.30% 47.9%, 92.55% 42.3%, 91.45% 50.8%, 90.14% 56.3%, 88.90% 63.9%, 87.58% 63.7%, 86.26% 62.3%, 84.84% 56.6%, 83.70% 60.8%, 82.59% 52.4%, 80.82% 46.2%, 79.30% 43.1%, 77.70% 54.8%, 75.92% 54.1%, 74.71% 58.2%, 73.07% 62.8%, 71.73% 66.1%, 70.57% 57.4%, 69.63% 51.0%, 68.41% 61.4%, 66.63% 60.0%, 65.07% 51.8%, 64.33% 46.3%, 63.09% 34.7%, 61.73% 30.3%, 61.10% 30.1%, 59.75% 18.6%, 58.16% 17.5%, 57.05% 26.9%, 55.92% 17.4%, 54.22% 28.9%, 52.82% 22.1%, 51.32% 41.6%, 50.40% 42.2%, 48.74% 37.6%, 47.45% 27.3%, 45.84% 36.6%, 45.19% 26.1%, 44.37% 33.4%, 42.72% 31.4%, 42.04% 29.5%, 41.27% 19.3%, 40.10% 26.9%, 38.51% 23.3%, 37.59% 26.4%, 36.81% 38.5%, 36.06% 25.6%, 34.40% 45.5%, 32.63% 56.0%, 31.84% 54.5%, 30.40% 58.9%, 28.96% 61.2%, 27.88% 56.5%, 26.11% 56.9%, 24.47% 55.9%, 23.05% 56.9%, 21.89% 55.5%, 20.50% 43.6%, 19.54% 52.6%, 18.15% 54.1%, 16.52% 44.2%, 14.98% 54.4%, 14.13% 55.5%, 12.70% 54.3%, 11.51% 62.1%, 10.01% 60.9%, 8.85% 63.2%, 7.72% 59.1%, 5.97% 41.6%, 5.02% 45.6%, 4.35% 34.8%, 3.22% 28.3%, 2.44% 35.5%, 1.66% 34.1%, 1.05% 33.0%, 0.00% 31.5%);
}
/* the art: wider than the paper, behind it. The paper overlaps its top and foot with a torn edge, so the depth reads: the sky
   at the back, the painting in the middle, the paper in front. Its sides go into the sky under a plain gradient (no blur). */
.dz-scene { position: relative; z-index: 1; width: min(100vw, 1800px); left: 50%; translate: -50% 0;
  --over-top: 24px; --over-bot: 40px; --sharp: 100%; --edge-in: 8%;
  --scene-edge: #5c90a8; margin: calc(-1 * var(--over-top)) 0 calc(-1 * var(--over-bot)); }
:root[data-theme="dark"] .dz-scene { --scene-edge: #0c1322; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dz-scene { --scene-edge: #0c1322; } }
.dz-scene-art { position: relative; }
.dz-scene-frame { position: relative; z-index: 1; width: var(--sharp); margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-composite: intersect; }
.dz-scene-frame img { display: block; width: 100%; height: auto; }
/* the gradient: no blur, only the sky's colour laid over the painting's edges, solid where it meets the sky */
.dz-scene-frame::after { content: ""; position: absolute; z-index: 2; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--scene-edge) 0, var(--scene-edge) 1.5%, transparent var(--edge-in)),
    linear-gradient(270deg, var(--scene-edge) 0, var(--scene-edge) 1.5%, transparent var(--edge-in)),
    linear-gradient(180deg, var(--scene-edge) 0, var(--scene-edge) 4%, transparent 16%),
    linear-gradient(0deg, var(--scene-edge) 0, var(--scene-edge) 4%, transparent 16%); }
/* a phone: the painting runs edge to edge, no fade into the sky at its sides (the owner, 12-03: "let the background art
   stretch fully and cover from left to right"); only its top and foot still go soft under the paper's tears */
@media (max-width: 699px) {
  .dz-scene-frame { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
  .dz-scene-frame::after { background: linear-gradient(180deg, var(--scene-edge) 0, var(--scene-edge) 4%, transparent 16%), linear-gradient(0deg, var(--scene-edge) 0, var(--scene-edge) 4%, transparent 16%); }
}
/* the torn edges: deeper, and the paper's shadow falls on the art */
.paper.has-scene .dz-tear, .paper.has-scene .dz-tear-shade { height: 30px; }
.paper.has-scene .dz-tear-shade { background: rgba(6, 3, 1, .55); filter: blur(5px); }
.paper.has-scene .dz-tear-shade.dz-tear-down { top: calc(100% + 4px); }
.paper.has-scene .dz-tear-shade.dz-tear-up { bottom: calc(100% + 3px); opacity: .7; }
/* a scene of one picture alone (a screenshot): whole, unfaded, in the sky between the tears, its caption under it */
.dz-scene.dz-plate-only { margin: 0; padding: calc(var(--over-top) + 26px) 0 calc(var(--over-bot) + 22px); }
.dz-plate-only .dz-scene-frame { width: min(calc(100% - 32px), 1180px); -webkit-mask-image: none; mask-image: none; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 46px -26px rgba(6, 14, 24, .75), 0 0 0 1px rgba(255, 255, 255, .08); }
.dz-plate-only .dz-scene-frame::after { display: none; }
@media (min-width: 700px) { .dz-plate-only .dz-scene-frame { width: min(calc(100% - 96px), 980px, calc((100vh - 220px) * 1.6)); } }
.dz-plate-caption { margin: 14px auto 0; width: min(calc(100% - 40px), 40em); text-align: center; font: 400 18px/1.45 var(--serif); color: var(--on-sky-soft); text-shadow: var(--on-sky-shadow); }
/* the post's paragraph under the bench's top, readable in both skies */
.dz-scene-words { position: absolute; z-index: 3; left: 50%; top: 71%; translate: -50% 0; width: min(31em, calc(100% - 40px)); pointer-events: none; }
.dz-scene-words::before { content: ""; position: absolute; z-index: -1; inset: -42% -14% -36%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(22, 12, 6, .62), rgba(22, 12, 6, .34) 58%, transparent); }
.dz-scene-words p { margin: 0; font: 400 20.5px/1.5 var(--serif); color: #fff3dc; text-wrap: pretty; font-variant-numeric: oldstyle-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 22px rgba(20, 10, 4, .7); }
@media (min-width: 700px) {
  .seg-first { padding: 62px 70px 38px; }
  .seg-mid { padding: 54px 70px 38px; }
  .seg-rest { padding: 54px 70px 50px; }
  .dz-scene { --over-top: 44px; --over-bot: 92px; --sharp: min(84%, 1500px); --edge-in: 5.5%; }
  .paper.has-scene .dz-tear, .paper.has-scene .dz-tear-shade { height: 40px; }
  /* the words keep a set distance above the lower tear (the paper's overlap plus its 40px torn edge), not a share of the painting:
     a short room (an upright or 1024px iPad) would otherwise put them under the tear (Warden, 12-03) */
  .dz-scene-words { top: auto; bottom: calc(var(--over-bot) + 56px); }
  .dz-scene-words p { font-size: 23px; }
}


/* a sketch thrown out of the door (a tap on the door), and a falling star */
.fling { position: fixed; z-index: 4; left: 0; top: 0; width: 84px; height: auto; pointer-events: none; filter: var(--deco-sh); will-change: transform, opacity; }
.shooting { position: fixed; z-index: 0; width: 120px; height: 1.5px; border-radius: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--star)); filter: drop-shadow(0 0 4px var(--star)); }
.room-door { position: absolute; left: 24%; top: 5%; width: 20%; height: 87%; z-index: 2; cursor: pointer; pointer-events: auto; border-radius: 40% 40% 4px 4px / 12% 12% 4px 4px; }
/* day into night: the new sky opens from the moon that was tapped */
.dz-turning::view-transition-old(root), .dz-turning::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.dz-turning::view-transition-new(root) { z-index: 2; }
.dz-turning *, .dz-turning *::before, .dz-turning *::after { transition: none !important; }

/* ---------- the pictures, large (style/viewer.js) ---------- */
.dz-zoomable { cursor: zoom-in; }
.dz-viewing, .dz-viewing body { overflow: hidden; }
.dz-view { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 60px 12px 64px; background: rgba(8, 11, 20, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #f0e7d3; touch-action: pan-y pinch-zoom; animation: view-in .28s ease both; }
.dz-view[hidden] { display: none; }
@keyframes view-in { from { opacity: 0; } }
.dz-view figure { margin: 0; display: grid; gap: 14px; justify-items: center; max-width: 100%; max-height: 100%; }
.dz-view img { max-width: min(100%, 1400px); max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); object-fit: contain; border-radius: 2px; box-shadow: 0 0 0 1px rgba(201, 166, 107, .35), 0 30px 80px -30px #000; user-select: none; -webkit-user-drag: none; }
.dz-view figcaption { max-width: 40em; text-align: center; font: 400 18px/1.4 var(--serif); color: #e6dbc3; text-wrap: balance; }
.dz-view button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; padding: 0 0 3px; border: 0; border-radius: 50%; background: rgba(240, 231, 211, .06); box-shadow: inset 0 0 0 1px rgba(201, 166, 107, .55); color: #f0e7d3; font: 400 28px/1 var(--serif); cursor: pointer; transition: background-color .25s; }
.dz-view button:hover, .dz-view button:focus-visible { background: rgba(201, 166, 107, .22); outline: none; box-shadow: inset 0 0 0 1px #e4c78f; }
.dz-view-x { top: max(10px, env(safe-area-inset-top)); right: 12px; }
.dz-view-p { left: 12px; top: 50%; translate: 0 -50%; }
.dz-view-n { right: 12px; top: 50%; translate: 0 -50%; }
.dz-view-p[hidden], .dz-view-n[hidden] { display: none; }
.dz-view-c { position: absolute; top: max(24px, calc(env(safe-area-inset-top) + 14px)); left: 20px; margin: 0; font: 500 17px/1 var(--serif); font-variant-numeric: lining-nums; letter-spacing: .08em; color: #c9a66b; pointer-events: none; }
@media (max-width: 600px) { .dz-view-p, .dz-view-n { top: auto; bottom: 10px; translate: none; } }

/* ---------- a wider page: an upright iPad ---------- */
@media (min-width: 700px) {
  :root { --paper-w: min(748px, 100vw - 72px); --paper-top: 78px; --paper-r: 5px; }
  .mark { font-size: clamp(96px, 15vw, 136px); }
  .tag { font-size: 23px; max-width: 26em; }
  .moon { width: 52px; right: 19%; top: -22px; }
  .isles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 104px); gap: 0 4px; margin-top: 56px; }
  .isle-img { width: 104px; height: 100px; }
  .isle-name { font-size: 18px; }
  .isle-n { font-size: 14px; }
  .descent { padding: 34px 34px 44px; }
  .row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0 5%; margin-bottom: 16px; }
  .row .sheet { grid-column: 1; grid-row: 1; }
  .row.alt .sheet { grid-column: 2; }
  .row .deco { grid-column: 2; grid-row: 1; margin: 0 auto; width: 168px; }
  .row.alt .deco { grid-column: 1; }
  .row.wide { display: block; max-width: 920px; margin: 0 auto 34px; }
  .face { padding: 30px 28px 26px; }
  .tie { left: 26px; top: -40px; width: 60px; height: 52px; }
  .meta { padding-left: 70px; }
  .sheet h2 { font-size: 34px; }
  .newest .face { display: grid; grid-template-columns: 1.02fr 1fr; gap: 0 34px; align-items: center; padding: 36px 36px 36px 38px; }
  .newest .snap { grid-column: 2; grid-row: 1; margin: 0; }
  .newest .words { grid-column: 1; grid-row: 1; }
  .newest .meta { padding-left: 70px; }
  .newest h2 { font-size: 56px; }
  .newest .sum { font-size: 22px; }
  .bench-home { width: min(1060px, 112%); margin: 0 0 0 calc((100% - min(1060px, 112%)) / 2); }
  /* the last sheet sits on the left, and the bench rises into the sky beside it (the owner, 12-03:
     "so much open space till you get to … my card and footer") */
  .landing.lifted { margin-top: var(--lift, -260px); }
  .mars-home { left: 51%; bottom: 12%; width: 21%; }
  .landing { padding-top: 60px; }
  .landing .byline { margin-top: -44px; }
  .runner { width: 52px; top: 30%; }
  .paper { padding: 62px 70px 50px; }
  .paper > .tie { left: 62px; margin-left: 0; top: -42px; width: 78px; height: 66px; }
  .paper > .tie::after { height: 26px; }
  .p-head .meta { padding-left: 92px; }
  .prose { font-size: 22px; line-height: 1.58; }
  .prose h2 { font-size: 35px; }
  .prose h3 { font-size: 27px; }
  .prose figure { margin-left: -30px; margin-right: -30px; }
  .prose figure.dz-cards { margin: 2em -70px 2.2em; }
  .dz-cards ul { justify-content: center; overflow: visible; padding: 16px 26px 22px; gap: 0; }
  .dz-cards li { flex: 0 0 33%; margin: 0 -.6%; }
  .dz-cards li:nth-child(2) { z-index: 1; }
  .dz-card { transform: rotate(calc(var(--o) * 3deg)) translateY(calc((1 - var(--o) * var(--o)) * -10px)); }
  .dz-card:hover, .dz-card:focus-visible { position: relative; z-index: 2; transform: rotate(0deg) translateY(-8px) scale(1.03); }
  .after { padding-left: 0; padding-right: 0; }
  .near { grid-template-columns: 1fr 1fr; gap: 30px; }
  .near .older { grid-column: 2; }
}

/* ---------- a wide window (an iPad on its side, a desk): the room at the left, the name in the sky beside it ---------- */
@media (min-width: 900px) and (min-aspect-ratio: 11/10) {
  :root { --room-h: clamp(520px, 88vh, 900px); }
  .threshold { padding-top: 0; min-height: calc(var(--room-h) * .9); }
  .mark-wrap, .isles { margin-left: calc(var(--room-w) * .76); }
  .room { -webkit-mask-image: linear-gradient(90deg, #000 58%, transparent 90%); mask-image: linear-gradient(90deg, #000 58%, transparent 90%); }
  /* the page's own sky gathers behind the words, so they read over his painted one */
  .mark-wrap::before, .isles::before { content: ""; position: absolute; z-index: -1; inset: -6% -4% -10% -12%; opacity: var(--day-op); transition: opacity .8s; pointer-events: none;
    background: radial-gradient(50% 50% at 50% 50%, rgba(52, 110, 140, .62) 30%, transparent 100%); }
  .isles::before { inset: -14% 0 -4% -6%; background: radial-gradient(50% 50% at 50% 50%, rgba(60, 118, 146, .55) 30%, transparent 100%); }
  .mark-wrap { padding-top: clamp(70px, 12vh, 140px); color: var(--on-sky); }
  .mark { font-size: clamp(100px, 10.4vw, 176px); text-shadow: var(--on-sky-shadow); }
  .mark-wrap .orn { margin-top: 16px; color: var(--gold-hi); }
  .tag { margin-top: 16px; font-size: clamp(21px, 1.9vw, 26px); color: var(--on-sky-soft); text-shadow: var(--on-sky-shadow); }
  .moon { width: clamp(50px, 5vw, 76px); right: 7%; top: clamp(40px, 8vh, 96px); }
  .isles { margin-top: clamp(26px, 5vh, 56px); padding-bottom: 20px; grid-template-columns: repeat(6, minmax(0, 118px)); gap: 0 2px; }
  .bank::before { inset: 12% -10% -34%; background: radial-gradient(62% 58% at 50% 52%, var(--fog) 34%, transparent 74%); }
  .isle-img { width: clamp(64px, 6.4vw, 100px); height: clamp(56px, 5.6vw, 84px); }
  .isle-name { font-size: clamp(15px, 1.45vw, 19px); }
  .bank { top: calc(var(--room-h) * .72); }
  .bank::before { opacity: .55; }
  .threshold.compact { --room-h: clamp(440px, 64vh, 660px); min-height: calc(var(--room-h) * 1.02); }
  .threshold.compact .bank { top: calc(var(--room-h) * .8); }
  .threshold.compact .mark { font-size: clamp(80px, 8vw, 132px); }
  .threshold.compact .mark-wrap { padding-top: clamp(50px, 8vh, 90px); }
}
@supports (height: 100svh) { @media (min-width: 900px) and (min-aspect-ratio: 11/10) { :root { --room-h: clamp(520px, 88svh, 900px); } .threshold.compact { --room-h: clamp(440px, 64svh, 660px); } } }

/* ---------- Mars, who lives here (tools/dezgah/mars.ts, mars.js): his picture cut from the site's sheet, moved, never repainted ---------- */
.mars { display: block; position: relative; margin: 0; -webkit-tap-highlight-color: transparent; }
.mars-body { position: absolute; inset: 0; transform-origin: 50% 100%; }
/* each pose stands on the box's foot at its own size beside the curled one, so he never changes size */
.mars-pose { position: absolute; bottom: 0; left: 50%; translate: -50% 0; display: block; width: calc(100% * var(--w) / var(--unit)); transform-origin: 50% 100%; isolation: isolate; filter: var(--deco-sh); }
.mars-art, .mars-shade { position: absolute; inset: 0; display: block; background-repeat: no-repeat; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.mars-art { filter: brightness(calc(1 - .2 * var(--night-op))) saturate(calc(1 - .1 * var(--night-op))); transition: filter .8s ease; }
/* night is the page's shade over him, by his own shape, warm where the lamp's light falls on him */
.mars-shade { opacity: var(--night-op); transition: opacity .8s ease; mix-blend-mode: multiply; pointer-events: none; background: radial-gradient(86% 124% at 30% -8%, #ffe9c4 0%, #d9b598 38%, #7d729a 74%, #5d6592 100%); }
.mars-day { opacity: var(--day-op); transition: opacity .8s ease; }
.mars-night { opacity: var(--night-op); transition: opacity .8s ease; }
.mars-home { position: absolute; z-index: 3; left: 52%; bottom: 11%; width: 25%; }
.mars-live { cursor: pointer; outline: none; }
.mars-live:focus-visible { outline: 2px dashed var(--gold-hi); outline-offset: 6px; border-radius: 40%; }
.mars-live .mars-pose { animation: mars-breathe 4.2s ease-in-out infinite alternate; }
.mars-live .mars-pose[data-pose="sleep"] { animation-duration: 4.8s; }
@keyframes mars-breathe { to { scale: 1.012 1.028; } }
/* his brass tag, over his head when he is tapped */
.mars-tag { position: absolute; z-index: 2; translate: -50% 0; padding: 4px 17px 7px; border-radius: 7px; white-space: nowrap; pointer-events: none; font: 600 20px/1 var(--display); font-variant-caps: all-small-caps; letter-spacing: .09em; color: #35200c;
  background: radial-gradient(circle at 7px 50%, #6f4a17 1.6px, transparent 2.2px), radial-gradient(circle at calc(100% - 7px) 50%, #6f4a17 1.6px, transparent 2.2px), linear-gradient(168deg, #f6dc94, #dcae55 46%, #bd8c39);
  box-shadow: inset 0 0 0 1px #6f4a17, inset 0 0 0 3px rgba(248, 227, 168, .72), 0 8px 14px -7px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(-10px) rotate(-7deg) scale(.9); transform-origin: 50% 100%; transition: opacity .35s ease, transform .55s cubic-bezier(.3, 1.6, .4, 1); }
.mars-tag.on { opacity: 1; transform: rotate(-2deg); }
/* where a post asks for him: room above for the taller poses, room beside for the long one */
.mars-spot { display: flex; justify-content: flex-end; margin: .4em 0 1.5em; padding-top: min(108px, 27vw); }
.mars-spot.mars-left { justify-content: flex-start; }
.mars-visit { width: min(230px, 56%); margin: 0 13%; }
/* on a window sill in a piece's painting (mars.js perch): the painting's own pixels */
.ws-mars .mars-breath { animation: mars-breathe 4.6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.ws-marstag { opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.ws-marstag.on { opacity: 1; }

/* ---------- for a still shot (?shot): the sky laid over the whole page, nothing moving ---------- */
.shot.dz-list .sky { position: absolute; bottom: auto; }
.shot.dz-list .sky-layer { height: 100%; }
.shot *, .shot *::before, .shot *::after { animation: none !important; transition: none !important; }

/* ---------- motion, gently ---------- */
.arrive { animation: arrive 1s var(--ease) both; animation-delay: var(--ad, 0s); }
@keyframes arrive { from { opacity: 0; transform: translate(var(--ax, -38vw), var(--ay, -60px)) rotate(-16deg) scale(.5); } }
/* ---------- the turn (style/dezgah.js): one page turns into the next, drawn by the browser (a cross-document view
   transition). The sheet that was tapped and its post's head piece carry one name, so the one moves and grows into the
   other; what is on them leaves before what comes is seen (the sheet's words and print first, the post's head after), so no
   two lines are ever read through each other; the island rides along. Everything else simply fades, and so does a page
   change where nothing turns, sooner. ---------- */
@view-transition { navigation: auto; }
.sheet.dz-turns .lean, .paper.dz-turns > .seg-first { view-transition-name: dz-paper; }
.sheet.dz-turns .words, .paper.dz-turns .p-head { view-transition-name: dz-words; }
.sheet.dz-turns .tie, .paper.dz-turns > .tie { view-transition-name: dz-tie; }
.sheet.dz-turns .snap { view-transition-name: dz-print; }
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: .26s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
:root:has(.dz-turns)::view-transition-group(*), :root:has(.dz-turns)::view-transition-old(*), :root:has(.dz-turns)::view-transition-new(*) { animation-duration: .48s; }
/* the paper: both fill the one moving piece, so it has one edge all the way; the new one comes over the old, which stays whole
   under it until it is covered, so the sky is never seen through it */
::view-transition-old(dz-paper), ::view-transition-new(dz-paper) { height: 100%; object-fit: fill; mix-blend-mode: normal; animation-timing-function: linear; }
::view-transition-old(dz-paper) { animation-name: dz-under; }
::view-transition-new(dz-paper) { animation-name: dz-over; }
::view-transition-old(dz-words), ::view-transition-new(dz-words), ::view-transition-old(dz-print), ::view-transition-new(dz-print) { animation-timing-function: linear; }
::view-transition-old(dz-words), ::view-transition-old(dz-print):only-child { animation-name: dz-leave; }
::view-transition-new(dz-words) { animation-name: dz-come; }
::view-transition-new(dz-print):only-child { animation-name: dz-come-late; }
/* a piece with no other to turn into (its sheet out of sight) fades with the page */
::view-transition-old(dz-paper):only-child, ::view-transition-old(dz-words):only-child { animation-name: dz-fade-out; }
::view-transition-new(dz-paper):only-child, ::view-transition-new(dz-words):only-child { animation-name: dz-fade-in; }
@keyframes dz-under { 0%, 50% { opacity: 1; } 85%, 100% { opacity: 0; } }
@keyframes dz-over { 0%, 15% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes dz-leave { 0% { opacity: 1; } 25%, 100% { opacity: 0; } }
@keyframes dz-come { 0%, 45% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dz-come-late { 0%, 60% { opacity: 0; } 100% { opacity: 1; } }
@keyframes dz-fade-out { to { opacity: 0; } }
@keyframes dz-fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* every post's paper ends torn, as its scenes tear it (the owner, 12-04: "all the posts in Dəzgah end with this ripped paper
   style, not this straight card"): a plain paper's foot in its own lower colour, square where the tear hangs */
.paper:not(.has-scene), .seg-first { border-radius: 0; }   /* torn at its top too (the owner, 12-04: "rip the top part of the post detail as well") */
.paper:not(.has-scene) > .dz-tear-down, .seg-rest > .dz-tear-down { background: var(--grain, none), var(--paper-2); }   /* the foot only: a top tear is in the paper's upper colour */
.seg-rest { border-radius: 0; }
.after { padding-top: 76px; }   /* the sky under the torn foot: the tear hangs into it, so the next posts keep their room */
/* on a phone the words fill their lines as written (the owner, 12-04, as on Supporting: Safari's "pretty" evens a whole
   paragraph's rag and leaves the right side empty); titles stay balanced */
@media (max-width: 899px) { .sheet .sum, .p-head .lede, .prose p, .dz-scene-words p { text-wrap: wrap; } }

/* the posts either side: each with its painting at its left (the owner, 12-04: "display on the left side ... the artwork of the post") */
.near a:has(.near-art) { display: grid; grid-template-columns: 92px 1fr; column-gap: 16px; align-items: start; padding: 18px 20px 20px 18px; }
.near a:has(.near-art) > :not(.near-art, .dz-tear, .dz-tear-shade) { grid-column: 2; }
.near-art { grid-column: 1; grid-row: 1 / span 3; align-self: start;   /* at the top left, its gaps the words' own; the card grows under it, it does not */
  width: 92px; height: 92px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px var(--sheet-rim), 0 1px 2px rgb(40 25 10 / .25); }

/* the painting a post opens in: on a phone, a tall window of it rather than a thin strip */
@media (max-width: 559.98px) { .dz-opening .dz-scene-frame img { display: block; width: 100%; height: 84vw; object-fit: cover; } }

/* the posts on the bench page: torn at their top and foot, in a post's own paper (the owner, 12-04: "All the stickers we
   have, the top and bottom side should be ripped ... the color of the paper on this page when we open the post") */
.sheet .face { background: var(--grain, none), var(--paper); clip-path: none; box-shadow: inset 1px 0 0 var(--sheet-rim), inset -1px 0 0 var(--sheet-rim); }
.sheet .face::after { display: none; }
.sheet .lean::before { inset: 6px 3px 6px; border-radius: 0; }
.sheet .lean > .dz-tear-shade.dz-tear-down { top: calc(100% + 4px); }

/* the posts either side, torn as the bench page's are, in a post's paper (the owner, 12-04: "Can we see how that would look like?") */
.near { gap: 58px; }
.near a { background: var(--grain, none), var(--paper); border-radius: 0; box-shadow: inset 1px 0 0 var(--sheet-rim), inset -1px 0 0 var(--sheet-rim); }
.near a > .dz-tear-shade.dz-tear-down { top: calc(100% + 4px); }
.near a > .dz-tear, .near a > .dz-tear-shade { grid-column: auto; grid-row: auto; }
.near strong { text-wrap: wrap; }   /* a title fills its line before it breaks (the owner, 12-04: "why does oynamaq doesnt fit here?") */
.near-art.near-art { width: 96px; height: 96px; max-width: none; margin: -4px 0 0 -4px; }   /* 4px out to its top and left, 14px from the edges (the owner, 12-04) */   /* across the whole card, not its words' column */
/* a post's label island sits on its paper, beside the line of labels and date, not above the tear (the owner, 12-04: "put
   these things here, actually. They look kind of weird at the top, and we have weird space there"; supersedes its floating) */
.paper > .tie { left: 22px; margin-left: 0; top: 18px; width: 58px; height: 50px; }
.paper > .tie::after { content: none; }
.p-head .meta { padding-left: 72px; min-height: 50px; align-content: end; }
@media (min-width: 700px) {
  .paper > .tie { left: 70px; top: 20px; width: 78px; height: 66px; }
  .p-head .meta { padding-left: 94px; min-height: 66px; }
}
article.paper { margin-top: 30px; }   /* a breath of sky between the buttons and the paper (the owner, 12-04: "give a bit space at the top") */
.seg-first, .paper:not(.has-scene) { padding-top: 40px; }
.paper > .tie { top: 36px; }
@media (min-width: 700px) { .paper > .tie { top: 38px; } }
/* the paper's rim runs on through its torn edges, top to foot (the owner, 12-04: "stretch it so it's visible on the top and
   bottom side too"): each tear carries the rim down its sides; the night's outer hairline, which a tear cannot carry, is dropped */
.dz-tear { box-shadow: inset 1px 0 0 var(--sheet-rim), inset -1px 0 0 var(--sheet-rim); }

/* the iPad's breath (the owner, 12-04: "my whole iPad is freezing" with Dəzgah open): decoration rests out of sight
   (dezgah.js marks it .dz-off), the two screen-tall mists stand still, and the pills no longer blur the moving sky
   behind them every frame: a little more opaque instead */
.dz-off, .dz-off::before, .dz-off::after { animation-play-state: paused !important; }
.sky-mist { animation: none !important; will-change: auto; }
.ctl, .dz-langs, .nt-switches .lang { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* a head on its own torn piece needs no rule under it: the tear ends it (the owner, 12-04: "remove this line here") */
.seg-first:has(+ .dz-opening) .p-head::after { content: none; }
.seg-first:has(+ .dz-opening) .p-head { padding-bottom: 8px; }

/* the door painting melts into the sky at its right wherever it is narrower than the window (an upright iPad, a window in
   between): it ended in a hard edge (the owner, 12-04: "The art is broken in middle screen"). On a phone it is wider than
   the window and the melt falls off the screen; the wide layout keeps its own, deeper one */
@media not ((min-width: 900px) and (min-aspect-ratio: 11/10)) {
  .room { -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 99%); mask-image: linear-gradient(90deg, #000 70%, transparent 99%); }
}

/* ═════ the author's card: the Supporting page's card, the same (a take, 12-04: the owner, "why not just put the exact same card
   to the [Dəzgah]? I would like to see after we have this"). Its rules are supporting/page.css's, .hc-author named .dz-author.byline ═════ */
.dz-author.byline { display: block; max-width: 440px; margin: 0 auto; padding: 0; background: none; box-shadow: none; rotate: none; text-align: left; }
.p-end .dz-author.byline { margin: 0; }
.dz-author .btn { position: relative; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.dz-author img { display: block; }
.dz-author svg { fill: none; stroke: currentColor; stroke-linejoin: round; flex: none; }
/* his card, as he drew it (the owner, 12-04, a picture of it: "Can we actually try to do it this way? You see how nice it looks?
   ... Let's just make this"): an ivory card, its corners cut round inward, a thin gold line inside following them; his address
   at its top left and linkedin, underlined, at its top right, a gold rule with its diamond under them; his round picture in a
   gold ring at the left, a gold line, his name and his line; his button hanging from its foot, its middle on the card's edge, its
   top just under his picture (the owner, 12-04: "make my card smaller ... so that its center sits right at the bottom of my card
   ... and we have this cool hanging button there"). His sprigs in its lower corners are his to paint (art-wishes § 8). Its
   colours are the variables below; its measures follow its own width (cqw), as a printed card's do. Its paper is a layer of its
   own (.hc-paper) cut at the corners, so the button can hang past its edge uncut; its gold lines are another (::after). */
/* ivory, ink near black (the owner, 12-04: "Can we have just simple white card? ... the text should be probably closer to black";
   of six light shades, "Let's skip 6": ivory) */
.dz-author.byline { --card: #fcf9f2; --card-2: #eee7d8; --card-ink: #1b1b1a; --card-soft: #4b4a47; --card-link: #1b1b1a; --card-gold: #b8914c;
  --card-rule: rgb(184 145 76 / .85); --card-cut: 3.2cqw; --sp-w: 8cqw; --sp-cx: 9.6cqw; --sp-cy: 7.6cqw; --card-sep: 8cqw; --tk-h: 54px;
  container-type: inline-size; max-width: 440px; margin: 2.8em 0 0; }
.dz-author.byline:has(.hc-pay:not([hidden])) { margin-bottom: calc(var(--tk-h) / 2 + 8px); }   /* room for the button's hanging half */
.hc-face { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 0; align-items: center; justify-items: start;
  padding: 4.6cqw 5.4cqw 5cqw; text-align: left; color: var(--card-soft); }
/* the paper (.hc-paper b): its grain, the light across it, its corners cut round inward (a circle of --card-cut at each); its
   shadow is its holder's (.hc-paper), so it follows the cut corners and the button hangs past the edge uncut */
.hc-paper { position: absolute; z-index: -1; inset: 0; pointer-events: none; filter: drop-shadow(0 16px 16px rgb(0 0 0 / .5)) drop-shadow(0 2px 3px rgb(0 0 0 / .3)); }
/* his gold sprigs (12-04, his own painting, cut off its blue and scaled; the owner: "Gold laurel sprigs in the lower corners")
   in the card's two lower corners, inside its gold line, beside the hanging button, each curling up toward its corner: the
   right one as he painted it, the left one flipped (the owner, 12-04, after turning them: "The left should be on the right. The
   right should be on the left. Yeah, that's the way the curve is going ... rotate it anti-clockwise about 120-130 degrees.
   Probably they do the opposite to the other side"), each tipped 17 degrees toward the card's foot. --sp-cx and --sp-cy place
   each sprig's middle, from its side and the card's foot (its box is 200 by 184, the picture's own shape) */
.hc-paper::before, .hc-paper::after { content: ""; position: absolute; z-index: 1; width: var(--sp-w); aspect-ratio: 200 / 184;
  left: calc(var(--sp-cx) - var(--sp-w) / 2); bottom: calc(var(--sp-cy) - var(--sp-w) * .46); scale: -1 1; rotate: -17deg;
  background: url("dezgah/sprig.webp") 0 0 / 100% 100% no-repeat; opacity: .85; }   /* at 85% (the owner, 12-04: "make it 70% opacity", then "No, this is not good. Make it 85") */
.hc-paper::after { left: auto; right: calc(var(--sp-cx) - var(--sp-w) / 2); scale: none; rotate: 17deg; }
/* on a narrow card the button reaches nearer its corners: the sprigs smaller and further out, and on the narrowest none,
   rather than under the button */
@container (max-width: 330px) { .hc-paper { --sp-w: 7.9cqw; --sp-cx: 8.6cqw; --sp-cy: 9cqw; } }
@container (max-width: 300px) { .hc-paper::before, .hc-paper::after { display: none; } }
.hc-paper b { position: absolute; inset: 0;
  background: linear-gradient(118deg, rgb(255 250 235 / .14), transparent 38%, transparent 62%, rgb(30 15 5 / .1)),
    url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27180%27 height=%27180%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.85%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3CfeColorMatrix values=%270 0 0 0 .4 0 0 0 0 .28 0 0 0 0 .14 0 0 0 .1 0%27/%3E%3C/filter%3E%3Crect width=%27180%27 height=%27180%27 filter=%27url%28%23n%29%27/%3E%3C/svg%3E"), radial-gradient(130% 100% at 28% 18%, var(--card), var(--card-2));
  -webkit-mask: radial-gradient(circle var(--card-cut) at calc(0% - 0px) calc(0% - 0px), #0000 calc(100% - .6px), #000 100%) 0 0 / 51% 51% no-repeat, radial-gradient(circle var(--card-cut) at calc(100% + 0px) calc(0% - 0px), #0000 calc(100% - .6px), #000 100%) 100% 0 / 51% 51% no-repeat, radial-gradient(circle var(--card-cut) at calc(0% - 0px) calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 0 100% / 51% 51% no-repeat, radial-gradient(circle var(--card-cut) at calc(100% + 0px) calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 100% 100% / 51% 51% no-repeat;
          mask: radial-gradient(circle var(--card-cut) at calc(0% - 0px) calc(0% - 0px), #0000 calc(100% - .6px), #000 100%) 0 0 / 51% 51% no-repeat, radial-gradient(circle var(--card-cut) at calc(100% + 0px) calc(0% - 0px), #0000 calc(100% - .6px), #000 100%) 100% 0 / 51% 51% no-repeat, radial-gradient(circle var(--card-cut) at calc(0% - 0px) calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 0 100% / 51% 51% no-repeat, radial-gradient(circle var(--card-cut) at calc(100% + 0px) calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 100% 100% / 51% 51% no-repeat; }
/* its gold: the card's own edge, and a line 2.2cqw inside it whose corners keep the cut's centre (radius 3.2 + 2.2 = 5.4cqw; it
   meets the straight lines 4.93cqw from the corner, the square root of 3.2² + 2 × 3.2 × 2.2) */
.hc-face::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: linear-gradient(var(--card-gold), var(--card-gold)) 4.93cqw 2.2cqw / calc(100% - 2 * 4.93cqw) 1px no-repeat, linear-gradient(var(--card-gold), var(--card-gold)) 4.93cqw calc(100% - 2.2cqw) / calc(100% - 2 * 4.93cqw) 1px no-repeat, linear-gradient(var(--card-gold), var(--card-gold)) 2.2cqw 4.93cqw / 1px calc(100% - 2 * 4.93cqw) no-repeat, linear-gradient(var(--card-gold), var(--card-gold)) calc(100% - 2.2cqw) 4.93cqw / 1px calc(100% - 2 * 4.93cqw) no-repeat,
    radial-gradient(circle at 0 0, #0000 calc(5.4cqw - .7px), var(--card-gold) calc(5.4cqw - .2px), var(--card-gold) calc(5.4cqw + .3px), #0000 calc(5.4cqw + .8px)) 0 0 / 4.93cqw 4.93cqw no-repeat, radial-gradient(circle at 100% 0, #0000 calc(5.4cqw - .7px), var(--card-gold) calc(5.4cqw - .2px), var(--card-gold) calc(5.4cqw + .3px), #0000 calc(5.4cqw + .8px)) 100% 0 / 4.93cqw 4.93cqw no-repeat, radial-gradient(circle at 0 100%, #0000 calc(5.4cqw - .7px), var(--card-gold) calc(5.4cqw - .2px), var(--card-gold) calc(5.4cqw + .3px), #0000 calc(5.4cqw + .8px)) 0 100% / 4.93cqw 4.93cqw no-repeat, radial-gradient(circle at 100% 100%, #0000 calc(5.4cqw - .7px), var(--card-gold) calc(5.4cqw - .2px), var(--card-gold) calc(5.4cqw + .3px), #0000 calc(5.4cqw + .8px)) 100% 100% / 4.93cqw 4.93cqw no-repeat; }
.dz-author.byline p { margin: 0; }
.dz-author.byline .hc-reach { position: relative; grid-column: 1 / -1; justify-self: stretch; display: flex; justify-content: space-between; gap: 12px; margin-bottom: var(--card-sep);
  font: 500 clamp(14.5px, 4cqw, 17.5px)/1 var(--serif); letter-spacing: .02em; }
/* between his ways to reach him and him: a short rule in the middle, gone softly at both ends, a small diamond at its heart
   (the owner, 12-04: "I don't want full width line ... some nice thing in the middle that disappears gently") */
.hc-reach::before, .hc-reach::after { content: ""; position: absolute; left: 50%; pointer-events: none; }
.hc-reach::before { top: calc(100% + var(--card-sep) / 2); width: 52%; height: 1px; translate: -50% 0;
  background: linear-gradient(90deg, transparent, var(--card-rule) 38%, transparent 47%, transparent 53%, var(--card-rule) 62%, transparent); }
.hc-reach::after { top: calc(100% + var(--card-sep) / 2 - 3.5px); width: 6px; height: 6px; translate: -50% 0; rotate: 45deg; box-shadow: inset 0 0 0 1px var(--card-rule); }
.hc-reach a { color: var(--card-link); text-decoration: none; }
.hc-reach a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hc-reach a + a, .hc-reach a + a:hover { text-decoration: underline; text-decoration-color: #b8502f; text-decoration-thickness: 1.2px; text-underline-offset: 5px; }   /* linkedin, underlined in the button's red, as he drew it */
.dz-author.byline img { grid-column: 1; grid-row: 2 / 4; justify-self: end; width: 19cqw; height: 19cqw; margin-right: 9cqw; border-radius: 50%; object-fit: cover; object-position: 56% 30%;
  box-shadow: 0 0 0 1px rgb(255 248 230 / .7), 0 0 0 3px var(--card-gold), 0 0 0 3.5px rgb(110 80 35 / .4), 0 8px 14px -8px rgb(0 0 0 / .45); }   /* round (the owner, 12-04: "Let's go back to the circular profile picture"), in a gold ring */
/* as he drew it, his name stands in the card's middle, under the rule's diamond and over the button; his picture and a gold line
   at its left, his line under it from its left edge (the owner, 12-04: "match the alignment of the reference ... my name sits in
   the middle, and then the rest of the things is aligned around the name"): three columns, the outer two equal, his name the middle
   one, his line reaching into the right one. His line in EB Garamond's own italic, as he drew it (the owner, 12-04: "free to change
   the [Making Çənlibel in Prague] font family too, to make it look nice"; "We shouldn't ban cursive ... very intentional use") */
.hc-face::before { content: ""; grid-column: 1; grid-row: 2 / 4; justify-self: end; align-self: center; width: 1px; height: 14cqw; margin-right: 5cqw; background: var(--card-rule); }
.dz-author.byline .who { grid-column: 2; grid-row: 2; align-self: end; font: 600 clamp(28px, 8.6cqw, 38px)/1 var(--display); color: var(--card-ink); }
.dz-author.byline .role { grid-column: 2 / 4; grid-row: 3; align-self: start; padding-top: 1cqw; font: italic 400 clamp(15.5px, 4.4cqw, 19.5px)/1.3 var(--serif); text-wrap: balance; }
/* the support button, as he drew it (the owner, 12-04): a plaque in the café's red, its corners cut round inward as the card's are,
   a gold rim round it, its words, a gold line, the cup after them (the owner, 12-04: "put the coffee on the right side so it comes
   like after the word coffee"). It hangs from the card's foot, its middle on the card's edge. Only it answers the finger, a little
   brighter, and nothing moves (the owner, 12-04: "My card should not move anywhere ... only like this button should get hover
   effect"); the landing's plaque is dropped here */
/* the button's top just under his picture (the owner, 12-04, a line drawn: "My card is still too thick"), 10 px from it (the owner,
   12-04: "on the smaller screen the button is kind of touching my circle ... at least like 10 pixel gap between the button and
   the profile picture"; now his picture stands nearer the middle, at every width: 14 px from his picture's edge is 10.5 from its
   gold ring) */
.hc-face:has(.hc-pay:not([hidden])) { padding-bottom: calc(var(--tk-h) / 2 + 14px); }
.dz-author.byline .hc-pay { position: absolute; z-index: 1; left: 50%; top: 100%; translate: -50% -50%; margin: 0; }   /* over the card's gold, its middle on the card's edge (the owner, 12-04: "align the center of the button to the bottom of the card") */
/* its colours by what it buys: a coffee's red with cream words; a beer's amber with a line of foam and black words, its rim
   bronze; a joint's grass green with black words (the owner, 12-04: "buy me a beer and joint button ... different colored ...
   nice beer color, and the text would be probably black, and also a nice grass green color") */
.hc-pay { --tk: #b8502f; --tk-2: #8f3520; --tk-hi: #c65b37; --tk-hi-2: #9d3c24; --tk-lo: #a6462a; --tk-lo-2: #82301d; --tk-ink: #fbecd6; --tk-top: rgb(255 255 255 / .16);
  --tk-rim: #f1d595; --tk-rim-2: #b6873f; --tk-line: rgb(232 196 120 / .85); --tk-cut: 9px; }
.hc-pay[data-kind="beer"] { --tk: #f2b640; --tk-2: #d38f1f; --tk-hi: #f7c352; --tk-hi-2: #dc9a28; --tk-lo: #e3a634; --tk-lo-2: #c18118; --tk-ink: #1d1408; --tk-top: rgb(255 249 232 / .7);
  --tk-rim: #b98434; --tk-rim-2: #74491a; --tk-line: rgb(80 50 14 / .55); }
/* olive, to sit with the card's paper and gold (the owner, 12-04: "I think D matches the card better"); its rim olive too */
.hc-pay[data-kind="joint"] { --tk: #8f9c40; --tk-2: #6b772a; --tk-hi: #9aa84a; --tk-hi-2: #76832f; --tk-lo: #84903a; --tk-lo-2: #606b24; --tk-ink: #191c05; --tk-top: rgb(255 255 255 / .2);
  --tk-line: rgb(40 45 10 / .45); --tk-rim: #c9d27e; --tk-rim-2: #6f7b2c; }
/* the rim is the button's own ground, cut at its corners; the plaque inside it (::before) 2 px in, its cuts round the same centres */
.hc-pay .btn { --c: 0; isolation: isolate; gap: 0; height: var(--tk-h); min-height: 0; padding: 0; border-radius: 0; white-space: nowrap;
  color: var(--tk-ink); font: 500 20px/1 var(--serif); letter-spacing: .01em; text-transform: none; filter: none;
  background: linear-gradient(var(--tk-rim), var(--tk-rim-2)); box-shadow: none;
  -webkit-mask: radial-gradient(circle var(--tk-cut) at -0px -0px, #0000 calc(100% - .6px), #000 100%) 0 0 / 51% 51% no-repeat, radial-gradient(circle var(--tk-cut) at calc(100% + 0px) -0px, #0000 calc(100% - .6px), #000 100%) 100% 0 / 51% 51% no-repeat, radial-gradient(circle var(--tk-cut) at -0px calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 0 100% / 51% 51% no-repeat, radial-gradient(circle var(--tk-cut) at calc(100% + 0px) calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 100% 100% / 51% 51% no-repeat;
          mask: radial-gradient(circle var(--tk-cut) at -0px -0px, #0000 calc(100% - .6px), #000 100%) 0 0 / 51% 51% no-repeat, radial-gradient(circle var(--tk-cut) at calc(100% + 0px) -0px, #0000 calc(100% - .6px), #000 100%) 100% 0 / 51% 51% no-repeat, radial-gradient(circle var(--tk-cut) at -0px calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 0 100% / 51% 51% no-repeat, radial-gradient(circle var(--tk-cut) at calc(100% + 0px) calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 100% 100% / 51% 51% no-repeat; }
.hc-pay .btn::before { content: ""; display: block; position: absolute; z-index: -1; inset: 2px; clip-path: none; filter: none; transition: background .25s;
  background: linear-gradient(var(--tk), var(--tk-2)); box-shadow: inset 0 1px 0 var(--tk-top);
  -webkit-mask: radial-gradient(circle calc(var(--tk-cut) + 2px) at -2px -2px, #0000 calc(100% - .6px), #000 100%) 0 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 2px) at calc(100% + 2px) -2px, #0000 calc(100% - .6px), #000 100%) 100% 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 2px) at -2px calc(100% + 2px), #0000 calc(100% - .6px), #000 100%) 0 100% / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 2px) at calc(100% + 2px) calc(100% + 2px), #0000 calc(100% - .6px), #000 100%) 100% 100% / 51% 51% no-repeat;
          mask: radial-gradient(circle calc(var(--tk-cut) + 2px) at -2px -2px, #0000 calc(100% - .6px), #000 100%) 0 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 2px) at calc(100% + 2px) -2px, #0000 calc(100% - .6px), #000 100%) 100% 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 2px) at -2px calc(100% + 2px), #0000 calc(100% - .6px), #000 100%) 0 100% / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 2px) at calc(100% + 2px) calc(100% + 2px), #0000 calc(100% - .6px), #000 100%) 100% 100% / 51% 51% no-repeat; }
.hc-pay[data-kind="beer"] .btn::before { box-shadow: inset 0 3px 0 var(--tk-top); }   /* its foam */
.hc-pay .btn::after { display: none; }
.hc-pay .btn:hover, .hc-pay .btn:active { transform: none; filter: none; }
.hc-pay .btn:hover::before { background: linear-gradient(var(--tk-hi), var(--tk-hi-2)); }
.hc-pay .btn:active::before { background: linear-gradient(var(--tk-lo), var(--tk-lo-2)); }
.hc-pay .btn:focus-visible { outline: none; }
.hc-pay:has(.btn:focus-visible) { outline: 2px solid var(--card-ink); outline-offset: 4px; }   /* the cut corners would cut its own ring */
.hc-pay .btn span { padding: 0 20px 0 30px; }
/* his icons (12-04, his own: black shapes, "Black shapes: ink them" on his errand), each filled with its button's ink, so it
   matches the words and follows the button's colour; the gold line before it */
.hc-pay .icon-pay { order: 1; align-self: stretch; display: grid; place-items: center; box-sizing: content-box; width: var(--ic, 25px); padding: 0 26px 0 20px;
  background: linear-gradient(var(--tk-line), var(--tk-line)) 0 50% / 1px 56% no-repeat; }
.hc-pay .icon-pay::before { content: ""; width: 100%; height: var(--ic, 25px); background: currentColor;
  -webkit-mask: url("dezgah/icon-coffee.webp") center / contain no-repeat; mask: url("dezgah/icon-coffee.webp") center / contain no-repeat; }
.hc-pay[data-kind="beer"] .icon-pay::before { -webkit-mask-image: url("dezgah/icon-beer.webp"); mask-image: url("dezgah/icon-beer.webp"); }
.hc-pay[data-kind="joint"] .icon-pay::before { -webkit-mask-image: url("dezgah/icon-joint.webp"); mask-image: url("dezgah/icon-joint.webp"); }
/* the joint's own card (the owner, 12-04: "can it have its own nice card? ... grade my artwork green, and also the border of the
   card make it like green"): its paper a breath of green, its gold lines olive, his sprigs graded green at sight (the file
   itself untouched; his word), linkedin's line in the joint's olive */
.dz-author.byline:has(.hc-pay[data-kind="joint"]) { --card: #f8f9ee; --card-2: #e7ead4; --card-gold: #8a963f; --card-rule: rgb(138 150 63 / .85); }
.dz-author.byline:has(.hc-pay[data-kind="joint"]) .hc-paper::before, .dz-author.byline:has(.hc-pay[data-kind="joint"]) .hc-paper::after { filter: hue-rotate(38deg) saturate(.85) brightness(.92); }
.dz-author.byline:has(.hc-pay[data-kind="joint"]) .hc-reach a + a { text-decoration-color: #6b772a; }
/* its shadow on the card is a soft ellipse of its own, not a drop-shadow filter: Safari cut that filter off flat under the
   button, now and then, after a hover (the owner, 12-04: "The bottom shadow of this button cuts very abruptly") */
.hc-pay::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 30%; bottom: -22px; pointer-events: none;
  background: radial-gradient(closest-side, rgb(40 25 15 / .26) 45%, rgb(40 25 15 / .1) 72%, transparent); }   /* soft, not black (the owner, 12-04) */
@media (max-width: 699px) {
  .dz-author.byline { --tk-h: 50px; }
  .hc-pay .btn { font-size: 18px; }
  .hc-pay .btn span { padding: 0 16px 0 25px; }
  .hc-pay .icon-pay { --ic: 22px; padding: 0 21px 0 16px; }
}
/* his line in the italic he chose for it, the one italic on Dəzgah (the rule above keeps every other word upright) */
.dz-author.byline .role { font-style: italic !important; color: var(--card-soft); }   /* the card is paper by night too: its own ink, not the night's */
/* on the bench page, in the middle under the bench, as the old card stood */
.landing .dz-author.byline { margin-left: auto; margin-right: auto; }
/* the button hangs half under the card: room for it before what follows */
.p-end .dz-author.byline:has(.hc-pay:not([hidden])) { margin-bottom: calc(var(--tk-h) / 2 + 24px); }
/* under the bench, in the middle between the bench and the foot's words (the owner, 12-04: "add some spacing so it looks like
   it's centered in between the workbench artwork and the footer texts"): as much room under its button as above the card */
.landing .dz-author.byline:has(.hc-pay:not([hidden])) { margin-bottom: calc(var(--tk-h) / 2 + 53px); }
/* on Dəzgah's light paper its shadow is a softer brown */
.dz-author .hc-paper { filter: drop-shadow(0 12px 14px rgb(70 45 20 / .3)) drop-shadow(0 1px 2px rgb(70 45 20 / .3)); }   /* flying over the sky, under the bench */
.p-end .dz-author .hc-paper { filter: drop-shadow(0 1px 0 rgb(70 45 20 / .28)) drop-shadow(0 2px 3px rgb(70 45 20 / .14)); }   /* paper on paper, on a post only: a close, crisp shadow (the owner, 12-04) */
.p-end .dz-author .hc-pay::after { left: 2%; right: 2%; top: 60%; bottom: -5px; background: radial-gradient(closest-side, rgb(60 35 15 / .3) 60%, transparent); }   /* the button's, as close (no filter: Safari cuts it flat) */
.p-end .dz-author.byline { margin-left: auto; margin-right: auto; }   /* at a post's end, in the middle (the owner, 12-04) */

/* a quick second tap is a second tap, never a zoom (the owner, 12-04: "I just keep accidentally zooming in when I just fast
   double click on the language selector"); two fingers still zoom */
html, a, button, [role="button"], label, summary { touch-action: manipulation; }
