/* The release notes (cenlibel.com/notes) over Dəzgah's sky and paper (dezgah.css): its release island over the title, the
   sheets, the whole release opened over the sky, and the switches. See README.md § "The look". */

/* the language and day-and-night switches, as Dəzgah's pills at the top right; the way home, a pill at the left */
.nt-switches { position: fixed; z-index: 30; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: flex; gap: 8px; }
.nt-switches .lang { position: static; display: flex; gap: 2px; padding: 3px; height: 40px; border-radius: 20px; background: var(--pill);
  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); }
.nt-switches button { min-width: 34px; height: 34px; padding: 0 9px; border: 0; border-radius: 17px; background: none; color: var(--pill-ink); cursor: pointer;
  font: 500 14px/1 var(--serif); letter-spacing: .12em; }
.nt-switches button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--pill-on); }
.nt-switches .theme-l { letter-spacing: 0; font-size: 17px; }
.back { font-size: 19px; font-family: var(--display); font-weight: 600; padding: 0 18px; }

/* the head: his release island large, bobbing, the title under it on the sky */
.nt-head { padding: calc(max(12px, env(safe-area-inset-top)) + 64px) 20px 10px; }
.nt-head .big { width: min(300px, 70vw); height: min(318px, 74vw); }
.nt-head h1 { margin: 8px 0 8px; font: 600 clamp(52px, 14vw, 96px)/.95 var(--display); letter-spacing: -.01em; text-shadow: var(--on-sky-shadow); }
.nt-head .isle-words > p:not(.orn) { max-width: 26em; text-wrap: balance; }
.nt-note { font-size: 16px !important; color: var(--gold-hi) !important; }

/* a sheet: a link, so it reads as one; the hero of the release as a round seal on its corner */
.nt .sheet { cursor: pointer; }
.nt .face { padding-right: 24px; }
.seal { position: relative; z-index: 2; float: right; margin: -6px -6px 10px 14px; width: 74px; height: 74px; border-radius: 50%; overflow: hidden; shape-outside: circle(50%);
  box-shadow: 0 0 0 3px var(--snap-edge), 0 0 0 4px var(--gold), var(--snap-sh); background: var(--sheet-2); }
.seal img { width: 100%; height: 100%; object-fit: cover; }
.nt .face h2 { font-variant-numeric: lining-nums; }
.first { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font: 400 18px/1.42 var(--serif); color: var(--ink-soft); text-wrap: pretty; }
.first li { padding-left: 0; }
/* each line's list, small, in the label's red: New, Changed, Fixed */
.grp-w { font: 500 15.5px/1 var(--serif); font-variant: all-small-caps; letter-spacing: .08em; color: var(--lab); }
.grp-w.changed { color: var(--gold); }
.grp-w.fixed { color: var(--ink-faint); }
.nt .go { margin-top: 16px; }
/* what is coming: the first, wide sheet, its chip the landing's red */
.nt .newest h2 { font-size: clamp(34px, 9vw, 48px); }
.nt .newest .first { font-size: 19px; }

/* the whole release: one calm sheet over the sky, the page held still under it */
html.nt-held { overflow: hidden; }
.nt-open { position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain; padding: 74px 12px 40px;
  background: rgba(12, 30, 44, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: nt-in .35s var(--ease) both; }
:root[data-theme="dark"] .nt-open { background: rgba(2, 4, 10, .6); }
@keyframes nt-in { from { opacity: 0; } }
.nt-paper { position: relative; max-width: 720px; margin: 0 auto; padding: 44px 24px 36px; border-radius: 6px; color: var(--paper-ink);
  background: var(--grain, none), linear-gradient(172deg, var(--paper) 46%, var(--paper-2)); box-shadow: var(--paper-shadow); animation: nt-up .45s var(--ease) both; }
@keyframes nt-up { from { transform: translateY(24px) rotate(.6deg); opacity: .4; } }
.nt-paper > .tie { left: 24px; top: -40px; width: 64px; height: 56px; }
.nt-close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 20px; background: none; color: var(--paper-soft); cursor: pointer; }
.nt-close:hover { color: var(--paper-ink); box-shadow: inset 0 0 0 1px var(--gold); }
.nt-close svg { width: 18px; height: 18px; }
.nt-paper .meta { padding: 0 48px 0 0; margin-top: 6px; }
.nt-paper h2 { margin: 0; font: 600 clamp(44px, 12vw, 64px)/1 var(--display); color: var(--prose-h); font-variant-numeric: lining-nums; }
.nt-paper .orn { justify-content: flex-start; margin: 14px 0 6px; color: var(--gold); }
.nt-paper .orn::before { display: none; }
.nt-paper .orn::after { order: -1; transform: none; width: 64px; background: linear-gradient(90deg, currentColor, transparent); }
.nt-paper h3 { margin: 26px 0 8px; font-size: 21px; }
.nt-paper ul { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 10px; font: 400 20px/1.5 var(--serif); }
.nt-paper li::marker { color: var(--gold); }
.seal.big { position: relative; float: right; shape-outside: none; width: 108px; height: auto; margin: 0 0 12px 18px; overflow: visible; border-radius: 0; box-shadow: none; background: none; text-align: center; }
.seal.big img { width: 108px; height: 108px; border-radius: 50%; box-shadow: 0 0 0 3px var(--snap-edge), 0 0 0 4px var(--gold), var(--snap-sh); }
.seal.big figcaption { margin-top: 10px; font: 500 16px/1.2 var(--serif); font-variant: all-small-caps; letter-spacing: .08em; color: var(--paper-soft); }

/* ═════ the foot: the landing's own, the same on every page (the owner, 12-04: "Can we have our own footer in the release notes
   too? Let's try to keep our footer same everywhere ... It just has gradient background and then dark overlay"): the star,
   the name between gold rules, the links in a row, Privacy and Help, his company line, over the landing's frosted veil
   (godot-cigir/site/style.css § the foot), which begins at the foot's top so it never blurs the last sheet. By night it is
   the landing's dark; by day a white cloud the words sit on in brown ink (the owner, 12-04: "in the light version it looks
   like shit. I guess it can be like light cloud ... it could be white in the lighter version, almost like cloud") ═════ */
.nt-foot { --f-ink: #2f2419; --f-ink-2: #3b2c1f; --f-ink-3: rgb(59 44 31 / .74); --f-gold: #a87b2f; --f-gold-hi: #98331f;
  --f-bk: 255 251 240; --v1: .06; --v2: .2; --v3: .36; --f-pa: 1.1; --f-gw: 26rem; --f-sh: 0 1px 0 rgb(255 255 255 / .6);
  position: relative; z-index: 2; isolation: isolate; margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(34px, 4vw, 56px) clamp(16px, 5vw, 72px) calc(44px + env(safe-area-inset-bottom)); text-align: center; color: var(--f-ink-3); text-shadow: var(--f-sh); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nt-foot {
  --f-ink: #f0e7d3; --f-ink-2: rgb(240 231 211 / .8); --f-ink-3: rgb(240 231 211 / .58); --f-gold: #c9a66b; --f-gold-hi: #e4c78f;
  --f-bk: 12 13 16; --v1: .1; --v2: .4; --v3: .65; --f-pa: 1; --f-gw: 40rem; --f-sh: none; } }
:root[data-theme="dark"] .nt-foot {
  --f-ink: #f0e7d3; --f-ink-2: rgb(240 231 211 / .8); --f-ink-3: rgb(240 231 211 / .58); --f-gold: #c9a66b; --f-gold-hi: #e4c78f;
  --f-bk: 12 13 16; --v1: .1; --v2: .4; --v3: .65; --f-pa: 1; --f-gw: 40rem; --f-sh: none; }
.nt-foot::after { content: ""; position: absolute; z-index: -3; inset: 0; pointer-events: none;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(transparent, #000 10vw); mask-image: linear-gradient(transparent, #000 10vw);
  background: linear-gradient(rgb(var(--f-bk) / var(--v1)), rgb(var(--f-bk) / var(--v2)) 12vw, rgb(var(--f-bk) / var(--v3)) calc(100% - 40px)); }
/* his clouds between the veil and the glow: the page's own cloud (dezgah.css .cloud), full by day, faint by night as the
   sky's are; they rise a little above the foot and never widen the page */
.nt-clouds { position: absolute; z-index: -2; left: 0; right: 0; top: -30%; bottom: 0; overflow: clip; pointer-events: none; }
/* the landing's pools under the foot's words: its dark by night, a cloud's white glow by day */
.nt-foot::before { content: ""; position: absolute; z-index: -1; pointer-events: none; top: -22%; bottom: 0; left: max(0%, calc(50% - var(--f-gw, 40rem))); right: max(0%, calc(50% - var(--f-gw, 40rem)));
  background:
    radial-gradient(31% 45% at 32% 46%, rgb(var(--f-bk) / calc(.49 * var(--f-pa))) 0 26%, rgb(var(--f-bk) / calc(.21 * var(--f-pa))) 64%, transparent 100%),
    radial-gradient(32% 43% at 67% 56%, rgb(var(--f-bk) / calc(.46 * var(--f-pa))) 0 24%, rgb(var(--f-bk) / calc(.2 * var(--f-pa))) 62%, transparent 100%),
    radial-gradient(27% 49% at 50% 50%, rgb(var(--f-bk) / calc(.43 * var(--f-pa))) 0 30%, rgb(var(--f-bk) / calc(.18 * var(--f-pa))) 66%, transparent 100%),
    radial-gradient(41% 39% at 42% 60%, rgb(var(--f-bk) / calc(.31 * var(--f-pa))) 0 10%, transparent 100%),
    radial-gradient(39% 38% at 60% 39%, rgb(var(--f-bk) / calc(.28 * var(--f-pa))) 0 10%, transparent 100%),
    radial-gradient(40% 24% at 44% 25%, rgb(var(--f-bk) / calc(.35 * var(--f-pa))) 0 30%, transparent 100%),
    radial-gradient(40% 24% at 57% 76%, rgb(var(--f-bk) / calc(.35 * var(--f-pa))) 0 30%, transparent 100%); }
.nt-foot .star8 { width: 16px; height: 16px; margin: 0 auto 10px; color: var(--f-gold); opacity: .9; }
.nt-mark { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 26px); margin: 0 0 22px;
  font: 500 36px/.95 "Cormorant Garamond", "EB Garamond", Georgia, serif; letter-spacing: .005em; color: var(--f-ink-2); }
.nt-mark::before, .nt-mark::after { content: ""; flex: 1 1 0; max-width: 220px; height: 1px; background: linear-gradient(90deg, transparent, var(--f-gold)); }
.nt-mark::after { transform: scaleX(-1); }
.nt-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px;
  font: 500 14px/1.6 "EB Garamond", "Cormorant Garamond", Georgia, serif; text-transform: uppercase; letter-spacing: .14em; }
.nt-foot nav a { color: var(--f-ink-2); text-decoration: none; padding: 4px 0; }
.nt-foot nav a:hover { color: var(--f-gold-hi); }
.nt-foot .small { margin: 22px 0 0; display: flex; justify-content: center; gap: 24px; font-size: 14px; }
.nt-foot .small a { color: var(--f-ink-3); text-decoration: none; }
.nt-foot .small a:hover { color: var(--f-ink); }
.nt-foot .legal { margin: 14px 0 0; font-size: 12.5px; letter-spacing: .03em; color: var(--f-ink-3); text-wrap: balance; }   /* who stands behind the site (the owner, 12-03) */
@media (max-width: 699px) {
  .nt-foot::after { -webkit-mask-image: linear-gradient(transparent, #000 22vw); mask-image: linear-gradient(transparent, #000 22vw);
    background: linear-gradient(rgb(var(--f-bk) / var(--v1)), rgb(var(--f-bk) / var(--v2)) 30vw, rgb(var(--f-bk) / var(--v3))); }
  .nt-foot nav { gap: 8px 22px; }
  .nt-mark::before, .nt-mark::after { max-width: 70px; }
  /* a phone's foot is tall and narrow: the two inner clouds climb it (above their places in the markup), the glow keeps to the words */
  .nt-foot { --f-gw: 10rem; }
  .nt-clouds .cloud:nth-child(n+3) { bottom: 46% !important; }
}


@media (min-width: 700px) {
  .nt-head .big { width: 340px; height: 360px; }
  .seal { width: 88px; height: 88px; margin: -10px -8px 12px 18px; }
  .nt .row.wide { max-width: 860px; }
  /* the sheets either side interleave, each a little under the one before, so the sky between them is not a stair of gaps */
  .nt .row + .row:not(.wide) { margin-top: -110px; }
  .nt .row.wide + .row { margin-top: 10px; }
  .nt .newest .face { display: block; }
  .nt-paper { padding: 60px 64px 50px; }
  .nt-paper > .tie { left: 58px; top: -44px; width: 78px; height: 66px; }
  .seal.big { width: 132px; } .seal.big img { width: 132px; height: 132px; }
}

/* ═════ the page as written, for a reader with no script (card 1362: its words are in the HTML, hidden where scripts run):
   one paper over the sky, as a release's sheet is, above the fixed sky that would paint over it ═════ */
main.pre[data-pre] { position: relative; z-index: 1; box-sizing: border-box; max-width: 720px; margin: 74px auto 48px; padding: 44px 24px 36px;
  border-radius: 6px; background: var(--paper); color: var(--paper-ink); box-shadow: var(--paper-shadow); font: 400 19px/1.55 var(--serif); }
main.pre[data-pre] h1 { margin: 0 0 8px; font: 600 clamp(44px, 12vw, 64px)/1 var(--display); color: var(--prose-h); }
main.pre[data-pre] h2 { margin: 36px 0 2px; font: 600 clamp(30px, 8vw, 40px)/1.1 var(--display); color: var(--prose-h); font-variant-numeric: lining-nums; }
main.pre[data-pre] h3 { margin: 18px 0 6px; font-size: 20px; color: var(--prose-h); }
main.pre[data-pre] .cap { margin: 0 0 6px; font-size: 15px; letter-spacing: .06em; color: var(--paper-soft); }
main.pre[data-pre] ul { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 8px; }
main.pre[data-pre] li::marker { color: var(--gold); }
main.pre[data-pre] a { color: var(--link); }
@media (max-width: 760px) { main.pre[data-pre] { margin: 64px 12px 40px; } }
/* on a phone the words fill their lines as written, as on Dəzgah (the owner, 12-04) */
@media (max-width: 899px) { .first { text-wrap: wrap; } }

/* Supporting in the foot is his café ticket, the coffee's red, his campfire after a gold line: the one mark of supporting, wherever
   it stands (the owner, 12-04: "like we have buy me a coffee button ... the identifier of the donation ... put to the footer") */
.nt-foot .foot-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: 8px; --tk-h: 46px;
  margin: 24px 0 4px; }
.nt-foot .foot-pay a { position: relative; isolation: isolate; display: inline-flex; align-items: center; height: var(--tk-h); padding: 0; color: var(--tk-ink); text-decoration: none;
  font: 500 18px/1 var(--serif, inherit); letter-spacing: .01em; text-transform: none; white-space: nowrap; background: linear-gradient(var(--tk-rim), var(--tk-rim-2));
  filter: drop-shadow(0 10px 12px rgb(0 0 0 / .35)); -webkit-tap-highlight-color: transparent;
  -webkit-mask: radial-gradient(circle calc(var(--tk-cut) + 0px) at -0px -0px, #0000 calc(100% - .6px), #000 100%) 0 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 0px) at calc(100% + 0px) -0px, #0000 calc(100% - .6px), #000 100%) 100% 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 0px) at -0px calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 0 100% / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 0px) at calc(100% + 0px) calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 100% 100% / 51% 51% no-repeat;
          mask: radial-gradient(circle calc(var(--tk-cut) + 0px) at -0px -0px, #0000 calc(100% - .6px), #000 100%) 0 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 0px) at calc(100% + 0px) -0px, #0000 calc(100% - .6px), #000 100%) 100% 0 / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 0px) at -0px calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 0 100% / 51% 51% no-repeat, radial-gradient(circle calc(var(--tk-cut) + 0px) at calc(100% + 0px) calc(100% + 0px), #0000 calc(100% - .6px), #000 100%) 100% 100% / 51% 51% no-repeat; }
.nt-foot .foot-pay a::before { content: ""; position: absolute; z-index: -1; inset: 2px; background: linear-gradient(var(--tk), var(--tk-2)); box-shadow: inset 0 1px 0 var(--tk-top); transition: background .25s;
  -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; }
.nt-foot .foot-pay a:hover::before { background: linear-gradient(var(--tk-hi), var(--tk-hi-2)); }
.nt-foot .foot-pay a:active::before { background: linear-gradient(var(--tk-lo), var(--tk-lo-2)); }
.nt-foot .foot-pay a:focus-visible { outline: none; }
.nt-foot .foot-pay:has(a:focus-visible) { outline: 2px solid var(--tk-rim); outline-offset: 4px; width: fit-content; margin-inline: auto; }
.nt-foot .foot-pay span { padding: 0 16px 0 24px; }
.nt-foot .foot-pay i { align-self: stretch; display: grid; place-items: center; box-sizing: content-box; width: 26px; padding: 0 18px 0 15px; background: linear-gradient(var(--tk-line), var(--tk-line)) 0 50% / 1px 56% no-repeat; }
.nt-foot .foot-pay i::before { content: ""; width: 100%; height: 26px; background: currentColor;
  -webkit-mask: url("dezgah/icon-fire.webp") center / contain no-repeat; mask: url("dezgah/icon-fire.webp") center / contain no-repeat; }

/* 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; }
