/* Kronik: a film played by scrolling, drawn like a comic.

   Without script, without WebGL or under reduced motion this file lays the same words out as a plain
   article. With `html.film` (set by js/film.js) the canvas takes the screen, every beat becomes a
   stretch of scroll, and its caption stands in a narration box while that stretch passes the middle
   of the screen. Everything laid over the picture is a paper sticker with an ink line and a hard shadow.
   A reader whose film is still on its way is shown neither yet: `html.wait` (set by js/boot.js). */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/geist-latin-wght.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/geist-mono-latin-wght.woff2") format("woff2"); }
@font-face { font-family: "Shantell Sans"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/shantell-sans-latin-full.woff2") format("woff2"); }

:root {
  --ink: #070b1d; --paper: #f5f7ff; --cream: #fff1d6; --night: #0a0e30; --indigo: #1d2a73;
  --peach: #ffd29a; --coral: #ff8a5b; --pink: #ff5c8a; --mint: #62e0a8; --violet: #6b4fd8;
  --soft: #c9cef0; --grey: #4b5275;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --hand: "Shantell Sans", "Comic Sans MS", "Chalkboard SE", cursive;
  --pad: clamp(16px, 5vw, 80px);
  /* the page is drawn edge to edge (viewport-fit=cover): lettering keeps clear of notches and the home bar */
  --left: max(var(--pad), env(safe-area-inset-left, 0px));
  --right: max(var(--pad), env(safe-area-inset-right, 0px));
  --below: env(safe-area-inset-bottom, 0px);
  --line: 3px;                              /* the ink line round every sticker */
  --drop: 6px 6px 0 var(--ink);             /* and its hard shadow */
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--paper); font: 400 1rem/1.5 var(--sans); overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, p, dl, dd, figure, table { margin: 0; }
a { color: inherit; text-decoration-color: var(--coral); text-underline-offset: .18em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
code { font-family: var(--mono); font-size: .92em; }
.hand, .cap__tag, .lbl, .hud__act, .hud__hint { font-family: var(--hand); font-variation-settings: "BNCE" 18, "INFM" 45, "SPAC" 0; }

/* ---------------------------------------------------------------- the words */
.wordmark { display: block; font-weight: 600; font-size: clamp(4rem, 1rem + 12vw, 10rem); line-height: .92; letter-spacing: -.045em; }
.cap__pitch { margin-top: .5em; font-size: clamp(1.25rem, .9rem + 1.5vw, 2rem); line-height: 1.2; letter-spacing: -.02em; }
.cap__tag { display: inline-block; margin-bottom: .5rem; font-weight: 700; font-size: .95rem; color: var(--coral); }
.cap__big { font-weight: 600; font-size: clamp(1.3rem, .98rem + 1.2vw, 1.95rem); line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
.cap__big mark { color: inherit; background: linear-gradient(transparent 58%, var(--peach) 58%, var(--peach) 94%, transparent 94%); padding-inline: .08em; }
.cap__small { margin-top: .65rem; font-size: clamp(.95rem, .9rem + .22vw, 1.08rem); line-height: 1.45; color: var(--fg2, var(--soft)); text-wrap: pretty; }
.cap__code { margin-top: .5rem; font-size: .9rem; color: var(--fg2, var(--soft)); }
.cap__lead { margin-top: .6em; font-size: clamp(1.1rem, .95rem + .9vw, 1.6rem); line-height: 1.3; letter-spacing: -.015em; }
.cap__huge { font-weight: 800; font-size: clamp(3.2rem, 1.9rem + 6vw, 6.4rem); line-height: .92; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.cap__huge + .cap__big { margin-top: .15em; }

.tally { display: grid; gap: .2rem; }
.tally > div { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.tally dd { font-weight: 700; font-size: clamp(2rem, 1.2rem + 3.1vw, 3.5rem); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; min-width: 4.2ch; }
.tally dt { font-size: clamp(.95rem, .9rem + .3vw, 1.15rem); color: var(--fg2, var(--soft)); }
.tally .is-warm dd { color: var(--pink); }
.tally .is-warm dt { color: inherit; font-weight: 600; }

/* paper cards: the behavior diff and the comparison */
.panel, .sheet { background: #fff; color: var(--ink); border: var(--line) solid var(--ink); border-radius: 16px; box-shadow: var(--drop); }
.panel { width: min(100%, 580px); overflow: hidden; font-size: .875rem; line-height: 1.35rem; }
.panel__bar { display: flex; align-items: center; gap: .65rem; min-height: 42px; padding: 4px 14px; border-bottom: var(--line) solid var(--ink); background: var(--cream); }
.panel__bar b { font-weight: 600; line-height: 1.2; }
.panel__bar code { margin-left: auto; color: var(--grey); font-size: .75rem; white-space: nowrap; }
.panel__dots { display: flex; gap: 5px; } .panel__dots i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); background: var(--coral); }
.panel__dots i:nth-child(2) { background: var(--peach); } .panel__dots i:nth-child(3) { background: var(--mint); }
.panel__body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.panel__h { font-weight: 600; } .panel__h span { margin-left: .5rem; font-weight: 400; color: var(--grey); }
.hunk { display: grid; border: 2px solid var(--ink); border-radius: 9px; overflow: hidden; font: .8125rem/1.4rem var(--mono); margin-bottom: 4px; }
/* nothing in the diff is cut short: a long line wraps */
.hunk__head { padding: 3px 11px; background: var(--paper); border-bottom: 2px solid var(--ink); overflow-wrap: anywhere; }
.hunk__ln { position: relative; padding: 1px 11px 1px 30px; overflow-wrap: anywhere; }
.hunk__ln::before { position: absolute; left: 12px; font-weight: 700; }
.hunk__ln.is-del { background: #ffd6dc; } .hunk__ln.is-del::before { content: "-"; }
.hunk__ln.is-add { background: #c9f4de; } .hunk__ln.is-add::before { content: "+"; }
.hunk__ln.is-note { background: var(--cream); padding-left: 11px; }
.verdict { display: flex; align-items: center; gap: .7rem; margin-top: 2px; padding: 9px 12px; border-radius: 9px; background: var(--peach); border: 2px solid var(--ink); }
.verdict i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); border: 2px solid var(--ink); flex: none; }
.verdict code { overflow-wrap: anywhere; }
.verdict b { margin-left: auto; font-weight: 700; white-space: nowrap; }

.sheet { padding: clamp(12px, 1.5vw, 20px) clamp(14px, 2.2vw, 30px); }
.compare { width: 100%; border-collapse: collapse; font-size: clamp(.8rem, .74rem + .28vw, .97rem); line-height: 1.32; text-align: left; }
.compare caption { caption-side: top; text-align: left; padding-bottom: .45rem; font-weight: 600; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem); letter-spacing: -.03em; line-height: 1.1; }
.compare caption small { display: block; margin-top: .3rem; font-weight: 400; font-size: clamp(.82rem, .78rem + .2vw, .95rem); letter-spacing: 0; line-height: 1.35; color: var(--grey); }
.compare th, .compare td { padding: .38em .8em; vertical-align: top; border-bottom: 2px solid #dfe3f5; }
.compare thead th { font-weight: 700; font-size: 1.05em; border-bottom: var(--line) solid var(--ink); }
.compare tbody th { font-weight: 500; color: var(--grey); width: 17%; padding-left: 0; }
.compare td { width: 26%; }
.compare td.is-us { width: 31%; }
.compare .is-us { background: #ffe9cf; font-weight: 600; }
.compare thead .is-us { border-radius: 10px 10px 0 0; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare__src { margin-top: .5rem; font-size: .8125rem; color: var(--grey); }

.links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: .4rem 1.35rem; border-radius: 99px; border: var(--line) solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 600; text-decoration: none; box-shadow: 5px 5px 0 var(--ink); transition: translate .12s, box-shadow .12s; }
.btn:hover { translate: -2px -2px; box-shadow: 7px 7px 0 var(--ink); }
.btn:active { translate: 3px 3px; box-shadow: 2px 2px 0 var(--ink); }
.btn--main { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--pink); }
.btn--main:hover { box-shadow: 7px 7px 0 var(--pink); } .btn--main:active { box-shadow: 2px 2px 0 var(--pink); }
.fine { margin-top: 1.6rem; font-size: .8125rem; opacity: .78; max-width: 62ch; }

/* ---------------------------------------------------------------- article mode (the default) */
#stage, #labels, .hud { display: none; }
#film { width: min(100% - 2 * var(--pad), 64rem); margin-inline: auto; padding-block: clamp(3rem, 10vh, 7rem); }
.beat { padding-block: clamp(1.3rem, 3.6vh, 2.6rem); }
.beat--title { padding-bottom: clamp(3rem, 10vh, 6rem); }
.cap--split { display: grid; gap: 1.6rem; }
.beat--end { padding-top: clamp(4rem, 12vh, 8rem); }
.cap__big { max-width: 30ch; } .cap__small { max-width: 56ch; }

/* ---------------------------------------------------------------- before the film
   js/boot.js marks the reader who is about to get the film (html.wait) before anything is painted. That
   reader is not shown the article while the film is on its way, to have it taken away a moment later:
   the screen stays the night sky. film.js builds the film behind the same mark, and then takes it off.
   While the mark is on nothing makes a transition, so nothing is caught leaving for its place in the film. */
html.wait body { opacity: 0; }
html.wait:not(.film) #film { visibility: hidden; }      /* nor is the article there to be clicked on or tabbed into */
html.wait * { transition: none !important; }
html.wait { scrollbar-width: none; }                    /* the film has no scrollbar: the article's does not show ahead of it */
html.wait::-webkit-scrollbar { display: none; }

/* ---------------------------------------------------------------- film mode */
@media (prefers-reduced-motion: no-preference) {
  html.film:not(.wait) body { animation: film-in .4s ease-out; }      /* the film comes up out of the night */
  @keyframes film-in { from { opacity: 0; } }
  html.film { scrollbar-width: none; }
  html.film::-webkit-scrollbar { display: none; }
  html.film #stage { display: block; position: fixed; inset: 0; width: 100%; height: 100lvh; touch-action: pan-y; }
  html.film #labels { display: block; position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; contain: strict; font-size: clamp(.75rem, .28rem + .42vw + .62vh, 1.3rem); }      /* the lettering grows with the picture */
  html.film .hud { display: block; }
  html.film #film { width: auto; margin: 0; padding: 0; position: relative; z-index: 2; pointer-events: none; }

  /* A beat is a stretch of scroll; its timeline runs while the beat crosses the middle of the screen.
     Its length is in vh on purpose: on a phone that unit stays put when the browser's bars hide, so the
     film does not change length under the reader's thumb. What must fit the screen uses svh instead. */
  html.film .beat { height: var(--h, 56vh); padding: 0; view-timeline: --beat block; view-timeline-inset: 50%; }
  html.film .beat--title { height: 100svh; }
  html.film .beat--long { --h: 72vh; }
  html.film .beat--table { --h: 130vh; }
  html.film .beat--end { height: 100svh; }

  /* A caption stands at the foot of the screen; a narrower layout changes --foot and --wide, and nothing else.
     One that is not up is at opacity 0 and nothing more, so all of them stay in the page, in order, for a
     screen reader. film.js marks the beat whose caption is up (.now) and the beats on either side of it
     (.near): only those are animated, and only the one that is up takes clicks. */
  html.film .cap { --foot: calc(clamp(44px, 9.5vh, 100px) + var(--below)); --wide: min(31rem, 100vw - var(--left) - var(--right));
    position: fixed; left: var(--left); bottom: var(--foot); width: var(--wide); opacity: 0; }
  html.film .beat.near .cap { will-change: opacity, translate; }
  html.film :is(.beat.now, .beat.flows) .cap :is(a, .panel, .sheet) { pointer-events: auto; }
  html.film .box { position: relative; --fg2: var(--grey); background: var(--paper); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 16px; box-shadow: 7px 7px 0 var(--ink);
    padding: clamp(.95rem, .7rem + .8vw, 1.35rem) clamp(1.05rem, .8rem + 1vw, 1.6rem) clamp(1.05rem, .8rem + .9vw, 1.45rem); rotate: -1.1deg; }
  html.film .beat:nth-of-type(even) .box { rotate: .8deg; }
  html.film .cap__big, html.film .cap__small { max-width: none; }
  html.film .cap__tag { position: absolute; top: -1.05rem; left: 1rem; margin: 0; padding: .02rem .75rem .1rem; background: var(--coral); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 99px; box-shadow: 3px 3px 0 var(--ink); rotate: -3deg; }
  html.film .cap__code { display: none; }

  html.film .cap--title { left: 0; right: 0; width: auto; bottom: auto; top: 43%; text-align: center; padding-inline: var(--pad); }
  html.film .cap--title .links { justify-content: center; margin-top: 1.05rem; }
  html.film .cap--end { left: 0; right: 0; width: auto; bottom: auto; top: 43%; display: grid; justify-items: center; text-align: center; padding-inline: var(--pad); color: var(--ink); }
  html.film .cap--end .cap__big { max-width: 17ch; font-size: clamp(1.9rem, 1.1rem + 3.2vw, 4rem); line-height: 1.02; letter-spacing: -.04em; }
  html.film .cap--end .links { justify-content: center; }
  html.film .cap--split { right: var(--right); width: auto; display: grid; grid-template-columns: minmax(0, 31rem) minmax(0, 580px); justify-content: space-between; align-items: end; gap: clamp(1.2rem, 3vw, 3rem); }
  html.film .cap--split .panel { justify-self: end; rotate: 1.1deg; }
  html.film .cap--wide { right: var(--right); width: auto; bottom: auto; top: 50%; translate: 0 -50%; max-width: 1160px; margin-inline: auto; }
  /* A caption that cannot be held on this screen (film.js marks its beat) is not held: it scrolls through like a page. */
  html.film .beat.flows { height: auto; padding-block: 56vh; }
  html.film .beat--end.flows { padding-bottom: calc(24px + var(--below)); }
  html.film .beat.flows .cap { position: static; margin-inline: var(--left) var(--right); translate: none; opacity: 1; animation: none; transition: none; }
  html.film .beat.flows .cap--wide { margin-inline: auto; width: min(1160px, 100% - var(--left) - var(--right)); }
  html.film .beat.flows :is(.cap--title, .cap--end) { margin-inline: 0; }

  /* native scroll-driven captions: in as the beat reaches the middle, out as it leaves */
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    html.film:not(.no-sda) .beat.near:not(.flows) .cap {
      animation: cap-in linear both, cap-out linear forwards;
      animation-timeline: --beat, --beat;
      animation-range: cover 4% cover 18%, cover 82% cover 96%;
    }
    html.film:not(.no-sda) .beat.near:not(.flows) .cap--wide { animation-name: sheet-in, sheet-out; animation-range: cover 3% cover 11%, cover 89% cover 97%; }
    html.film:not(.no-sda) .beat.near:not(.flows) .cap--title { animation-range: cover 4% cover 18%, cover 64% cover 76%; }       /* gone before the mark comes forward */
    html.film:not(.no-sda) .beat.near:not(.flows) .cap--end { animation-range: cover 20% cover 34%, cover 96% cover 100%; }       /* after the mark has assembled */
    html.film:not(.no-sda) .hud__bar > i { animation: bar linear both; animation-timeline: scroll(root block); }
  }
  /* without them, the script marks the beat in hand and the caption comes and goes in time */
  html.film.no-sda .cap { translate: 0 30px; transition: opacity .3s ease, translate .45s cubic-bezier(.2, .9, .3, 1.2); }
  html.film.no-sda .beat.now .cap { opacity: 1; translate: 0 0; transition-delay: .1s; }
  html.film.no-sda .beat:not(.flows) .cap--wide { translate: 0 -50%; }

  @keyframes cap-in { from { opacity: 0; translate: 0 38px; rotate: -3deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
  @keyframes cap-out { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 -24px; } }
  @keyframes sheet-in { from { opacity: 0; translate: 0 calc(-50% + 40px); rotate: -1.5deg; } to { opacity: 1; translate: 0 -50%; rotate: 0deg; } }
  @keyframes sheet-out { from { opacity: 1; translate: 0 -50%; } to { opacity: 0; translate: 0 calc(-50% - 26px); } }
  @keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------------------------------------------------------------- the frame round the film: a timeline, and the chapter in hand */
.hud { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.hud__act { position: absolute; right: var(--right); bottom: calc(24px + var(--below)); display: flex; gap: .55rem; padding: .08rem .8rem .16rem; background: var(--paper); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 99px; box-shadow: 3px 3px 0 var(--ink); font-weight: 700; font-size: .9rem; rotate: 2deg; transition: opacity .3s, translate .3s; }
.hud__num { color: var(--violet); }
.hud__hint { position: absolute; left: 0; right: 0; bottom: calc(clamp(26px, 5.5vh, 54px) + var(--below)); display: flex; flex-direction: column; align-items: center; gap: .2rem; font-weight: 700; font-size: 1.25rem; transition: opacity .3s; }
.hud__hint svg { width: 28px; height: 28px; }
.hud__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--ink); }
.hud__bar > i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--peach), var(--coral) 55%, var(--pink)); }
html[data-at="title"] .hud__act, html[data-at="end"] .hud__act, html.flowing .hud__act { opacity: 0; translate: 0 20px; }
html:not([data-at="title"]) .hud__hint { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hud__hint svg { animation: nudge 1.4s cubic-bezier(.3, 0, .3, 1) infinite; }
  html:not([data-at="title"]) .hud__hint svg { animation-play-state: paused; }      /* it only runs while it can be seen */
  @keyframes nudge { 50% { transform: translateY(7px); } }
}

/* ---------------------------------------------------------------- lettering pinned to the picture (js/film.js places it) */
.lbl { position: absolute; left: 0; top: 0; visibility: hidden; will-change: transform; color: var(--ink); font-weight: 700; white-space: nowrap; }
.lbl--tag { padding: .12em .7em .2em; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 99px; box-shadow: 3px 3px 0 var(--ink); font-size: 1em; }
.lbl--tag svg { display: none; width: 1em; height: 1em; margin-left: .3em; vertical-align: -.14em; }      /* a tick, shown when the thing named has passed */
.lbl--tag.is-ok { background: var(--mint); } .lbl--tag.is-ok svg { display: inline-block; }
.lbl--tag.is-bad { background: var(--pink); }
.lbl--tag.is-hot { background: var(--coral); }
.lbl--tag.is-peach { background: var(--peach); }
.lbl--tag.is-sky { background: #9cc0ff; }
.lbl--tag.is-mint { background: var(--mint); }
.lbl--tag.is-lilac { background: #cbbcff; }
.lbl--tag.is-pink { background: var(--pink); }
.lbl--tag.is-sun { background: #ffe08a; }
.lbl--tag.is-dim { background: #d9ddf2; color: var(--grey); }
.lbl--tag.is-ghost { background: transparent; border-style: dashed; border-color: var(--paper); color: var(--paper); box-shadow: none; }
.lbl--bubble, .lbl--yes { padding: .4em .85em .5em; background: #fff; border: 3px solid var(--ink); border-radius: 1.3em; box-shadow: 4px 4px 0 var(--ink); font-size: 1.4em; font-weight: 800; }
.lbl--bubble::after, .lbl--yes::after { content: ""; position: absolute; left: 1.1em; bottom: -.52em; width: .9em; height: .9em; background: #fff; border: solid var(--ink); border-width: 0 3px 3px 0; transform: skewX(18deg) rotate(45deg); }
.lbl--yes { font-size: 1em; padding: .15em .6em .25em; background: var(--mint); }
.lbl--yes::after { left: calc(50% - .4em); bottom: -.42em; width: .7em; height: .7em; background: var(--mint); }
.lbl--card { display: grid; gap: .05em; padding: .32em .75em .42em; background: var(--cream); border: 2.5px solid var(--ink); border-radius: 9px; box-shadow: 4px 4px 0 var(--ink); }
.lbl--card i { font-style: normal; font-size: .82em; color: var(--violet); }
.lbl--card code { font: 600 .9em/1.3 var(--mono); }
.lbl--card.is-alt i { color: #c8285f; }
.lbl--card.is-big { font-size: 1.2em; }
.lbl--card small { font-size: .8em; color: var(--grey); }
.lbl--card s { font: 600 .84em/1.3 var(--mono); color: var(--grey); text-decoration-color: var(--pink); text-decoration-thickness: 2px; }      /* what a thing may not do */
/* a pile hanging under a card: more cards of the same kind, shown one by one (js sets data-n) */
.lbl--card .more { position: absolute; right: -2.5px; top: 100%; display: grid; justify-items: end; gap: .4em; padding-top: .45em; }
.lbl--card .more > :nth-child(1) { rotate: -2deg; translate: -.9em 0; }
.lbl--card .more > :nth-child(2) { rotate: 1.5deg; translate: -1.6em 0; }
.lbl--card:not([data-n="1"], [data-n="2"]) .more > *, .lbl--card[data-n="1"] .more > :nth-child(n + 2) { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .lbl--card .more > * { animation: card-pop .2s cubic-bezier(.2, .9, .3, 1.3) backwards; }
  @keyframes card-pop { from { scale: .6; opacity: 0; } }
}
.lbl--ok, .lbl--bang { display: grid; place-items: center; width: 1.9em; height: 1.9em; border: 2.5px solid var(--ink); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink); }
.lbl--ok { background: var(--mint); } .lbl--ok svg { width: 1.1em; height: 1.1em; }
.lbl--bang { background: var(--pink); font-size: 1.15em; font-weight: 800; }
.lbl--bang.is-big { font-size: 2.3em; background: transparent; border: 0; box-shadow: none; }
.lbl--stamped { padding: .02em .5em .1em; border: 5px solid var(--pink); border-radius: 12px; background: rgb(255 255 255 / .86); color: #e0336b; font-size: 2em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }      /* the mark a stamp leaves */
html.day .lbl--tag.is-ghost { border-color: var(--ink); color: var(--ink); }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare tr { display: grid; padding: .5rem 0; border-bottom: 2px solid #dfe3f5; }
  .compare th, .compare td { display: block; width: auto; border: 0; padding: .08rem 0; }
  .compare tbody th { width: auto; color: var(--ink); font-weight: 700; }      /* a row's name takes the whole line */
  .compare td { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: .5rem; }
  .compare td::before { content: attr(data-col); color: var(--grey); font-weight: 500; }
  .compare .is-us, .compare td.is-us { background: none; width: auto; }
  .compare .is-us::before { color: var(--ink); font-weight: 700; }
  @media (prefers-reduced-motion: no-preference) {
    html.film .lbl--card code { font-size: .8em; }
    html.film .lbl--stamped { font-size: 1.7em; border-width: 4px; }
    html.film .cap { --left: max(14px, env(safe-area-inset-left, 0px)); --right: max(14px, env(safe-area-inset-right, 0px)); --foot: calc(clamp(34px, 6.5svh, 64px) + var(--below)); }
    html.film .box { box-shadow: 5px 5px 0 var(--ink); }
    html.film .cap--split { grid-template-columns: minmax(0, 1fr); gap: .9rem; }
    html.film .cap--split .panel { justify-self: stretch; width: auto; rotate: .6deg; }
    html.film .sheet { padding: 12px 14px; }
    html.film .compare { font-size: .74rem; line-height: 1.25; }
    html.film .compare caption { font-size: 1.05rem; padding-bottom: .3rem; }
    html.film .compare tr { padding: .3rem 0; }
    html.film .compare__src { display: none; }
    html.film .hud__act { right: max(14px, env(safe-area-inset-right, 0px)); bottom: calc(14px + var(--below)); font-size: .78rem; }
    html.film .cap--end { top: 40%; }
    html.film .cap--end .cap__lead { margin-top: .5em; }
    html.film .links { margin-top: 1.2rem; gap: .6rem; }
    html.film .fine { font-size: .72rem; margin-top: 1rem; }
    html.film .btn { min-height: 44px; padding: .3rem 1.05rem; font-size: .95rem; }
    .panel__bar code, .panel__dots { display: none; }
  }
}
/* phones: the diff card is set tighter, so that the picture above it keeps its share of the screen */
@media (max-width: 480px) and (prefers-reduced-motion: no-preference) {
  html.film .panel { font-size: .78rem; line-height: 1.15rem; }
  html.film .hunk { font-size: .72rem; line-height: 1.2rem; margin-bottom: 2px; }
  html.film .panel__bar { min-height: 34px; }
  html.film .panel__body { padding: 9px 12px 11px; gap: 5px; }
  html.film .verdict { padding: 6px 10px; }
}

/* ---------------------------------------------------------------- short screens: a phone on its side, a small window */
@media (max-height: 560px) and (min-width: 600px) and (prefers-reduced-motion: no-preference) {
  html.film .cap { --foot: calc(26px + var(--below)); --wide: min(21rem, 44vw); }
  html.film .box { padding: .65rem .85rem .75rem; border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
  html.film .cap__big { font-size: 1.08rem; }
  html.film .cap__small { margin-top: .35rem; font-size: .82rem; line-height: 1.35; }
  html.film .cap__tag { top: -.9rem; font-size: .8rem; }
  html.film .cap__huge { font-size: 2.5rem; }
  html.film .tally dd { font-size: 1.5rem; } html.film .tally dt { font-size: .85rem; }
  html.film .cap--split { grid-template-columns: minmax(0, 21rem) minmax(0, 23rem); }
  html.film .panel { font-size: .7rem; line-height: 1.05rem; }
  html.film .panel__bar { min-height: 30px; padding-block: 2px; } html.film .panel__body { padding: 8px 10px 10px; gap: 4px; }
  html.film .hunk { font-size: .66rem; line-height: 1.05rem; margin-bottom: 2px; }
  html.film .verdict { padding: 4px 9px; }
  html.film .cap--title, html.film .cap--end { top: 40%; }
  html.film .cap--end .cap__big { font-size: 1.6rem; } html.film .cap--end .cap__lead { font-size: 1rem; }
  html.film .links { margin-top: .8rem; } html.film .btn { min-height: 44px; padding-block: .2rem; } html.film .fine { margin-top: .7rem; font-size: .72rem; }
  html.film .wordmark { font-size: clamp(3rem, 1rem + 16vh, 5rem); }
  html.film .hud__act { bottom: calc(10px + var(--below)); font-size: .75rem; }
}

/* a short first screen: the source link stays above the scroll hint, and the hint sits lower so the two do not meet */
@media (max-height: 660px) and (prefers-reduced-motion: no-preference) {
  html.film .cap--title .cap__pitch { margin-top: .15em; }
  html.film .cap--title .links { margin-top: .25rem; }
  html.film .hud__hint { bottom: calc(6px + var(--below)); font-size: .95rem; gap: 0; }
  html.film .hud__hint svg { width: 20px; height: 20px; }
}
