/* ==========================================================================
   The calm layer: every page that isn't the homepage, in one quiet language.

   The homepage has the pictures (the desk, the street, the folders with a page of the night in
   them). The pages you come to for something (to read a note, to pick a plan, to get help, to
   sign in, to pay) don't: they are paper, ink and one marker. Loaded last, on <html class="calm">.

     1  tokens       the craft layer's warm paper; one hairline, one corner, no hard shadows
     2  the head     every page opens the same way: a small label, the page's name, a line
     3  sheets       one flat sheet for anything held: a hairline, a soft corner, no glass, no rim
     4  keys         ink does the work, paper is the quiet one, yellow is the one action that matters
     5  the marker   what stays of the investigator: a stroke under what you point at, a file's
                     tab. No pictures
     6  the footer   a rule and the links; the torn ink edge is the homepage's
     7  Blog         8  Support        9  Pricing        10  the smaller pages

   Nothing here changes what a page does. docs/brand.md, "The calm pages", has the reasoning.
   ========================================================================== */

/* ------------------------------------------------------------------ 1 tokens */
/* the pages that don't load the craft layer (signing in, paying, the legal pages) get its paper and ink here,
   and its small labels: the sans in tracked capitals, not the typewriter */
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }
html.calm {
  --paper: #F3EFE4; --paper-2: #E9E3D3; --card: #FBF8F0; --white: #FFFDF8;
  --ink: #17130F; --ink-2: #3F3A33; --graphite: #6A645A;
  --rule: rgba(23, 19, 15, .14); --rule-2: rgba(23, 19, 15, .075);
  --f-tag: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hair: rgba(23, 19, 15, .1); --hair-2: rgba(23, 19, 15, .16);
  --sheet: #FFFDF8; --r-sheet: 18px; --r-key: 11px;
  --out: cubic-bezier(.22, 1, .36, 1);                          /* how things settle: quickly, then gently. 140 to 200ms, never longer */
  --rest: 0 1px 2px rgba(23, 19, 15, .04);                       /* what a sheet casts lying flat */
  --held: 0 1px 2px rgba(23, 19, 15, .05), 0 14px 28px -20px rgba(23, 19, 15, .3);   /* and picked up */
  /* the craft layer's stamped and lifted shadows, taken flat: anything still using them lies on the paper */
  --stamp: 0 0 0 0 transparent; --stamp-up: 0 0 0 0 transparent; --stamp-down: 0 0 0 0 transparent; --lift: var(--rest);   /* (a shadow that draws nothing, not "none": these sit in lists) */
}
html.calm body { background: var(--paper); color: var(--ink); }
html.calm ::selection { background: var(--signal); color: var(--ink); }
html.calm:not(.craft) :is(.label, .mono) { font: 500 11px/1.5 var(--f-tag); letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ 2 the head
   <header class="chead"> a small label (.chead__k), the page's name in the poster face with one
   stroke of the marker, a line under it, and at the far end whatever the page is steered by
   (.chead__side). The same sizes on every page. No ruler after the label: it was asked not to be. */
.chead { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 4vw, 56px); align-items: end; padding-top: clamp(118px, 11vw, 148px); }
.chead__k { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 0 0 clamp(14px, 1.6vw, 18px); color: var(--ink); }
.chead__k em { font-style: normal; color: var(--graphite); }
.chead__k em:empty { display: none; }
.chead__k a { order: 2; color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
html.calm .chead .chead__t { grid-column: 1; margin: 0; max-width: 16ch; font: 800 clamp(40px, 4.5vw, 62px)/.96 var(--f-display); letter-spacing: .002em; word-spacing: .07em; text-transform: uppercase; text-wrap: balance; color: var(--ink); }
html.calm .chead .chead__t mark.hl { --hl-y: 70%; --hl-h: 58%; padding: 0 .06em; color: var(--ink); }
.chead__lede { grid-column: 1; margin: clamp(14px, 1.6vw, 20px) 0 0; max-width: 34em; font-size: clamp(16.5px, 1.25vw, 18px); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.chead__lede b { color: var(--ink); }
.chead__side { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
@media (max-width: 760px) {
  .chead { grid-template-columns: minmax(0, 1fr); padding-top: 104px; }
  .chead__side { grid-column: 1; grid-row: auto; margin-top: 20px; }
  html.calm .chead .chead__t { font-size: clamp(36px, 10.5vw, 48px); }
}

/* ------------------------------------------------------------------ 3 sheets
   The glass panes of the clean pass (clean.css), laid flat: the same list, one sheet. */
html.calm :is(.pane, .csheet,
  .post__cover .cover, .blead__pic .cover, .bcard .cover, .bfig img, .bcallout, .bexhibit, .post__end,
  .hcall, .hpost__facts, .hprose figure img, .fb, .topic, .way, .stuck, .pn a, .brief, .src, .person,
  .ln, .dmode, .sbx__strip, .desk) {
  border: 0; border-radius: var(--r-sheet); background: var(--sheet); box-shadow: 0 0 0 1px var(--hair), var(--rest);
}
html.calm :is(.bcallout, .hcall, .hpost__facts, .fb, .pn a, .src, .bexhibit, .post__end, .ln, .dmode, .sbx__strip) { border-radius: 14px; }
html.calm :is(.hcall--aside, .pull) { border-radius: 0; background: none; box-shadow: none; border-left: 2px solid var(--ink); }
html.calm :is(.bcode, .hprose .hcode) { border-radius: 14px; box-shadow: none; }
/* picked up: a sheet you can open comes off the paper a little, and its hairline darkens. Nothing jumps */
html.calm :is(.blead:hover .blead__pic .cover, .bcard:hover .cover, .topic:hover, .pn a:hover) { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--hair-2), var(--held); }

/* ------------------------------------------------------------------ 4 keys */
/* rank is told by material, not by size: every key on a page is one height (the small one, inside a
   row of tools, is the one exception). Ink is the next step, paper is the other thing you could do,
   and a link with an arrow is everything else */
html.calm .btn:not(.btn--sm) { --h: 44px; height: 44px; padding-inline: 18px; font-size: 15px; }
html.calm :is(.lookup__row, .sfind) .btn:not(.btn--sm) { --h: 40px; height: 40px; }
html.calm .btn { border-radius: var(--r-key); box-shadow: none; transition: background-color .16s var(--out), border-color .16s var(--out), color .16s var(--out), transform .14s var(--out); }
html.calm .btn:hover, html.calm .btn:active { transform: none; box-shadow: none; }
html.calm .btn--sm { border-radius: 9px; }
html.calm .btn--ink, html.calm :is(.post__share .btn, .post__copy, .blead__go, .bhero__write, .hpost__tools a[data-ask-page], .hrail__box .btn) { color: var(--paper); border: 1px solid var(--ink); background: var(--ink); box-shadow: none; }
html.calm .btn--ink:hover, html.calm :is(.post__share .btn, .post__copy, .blead__go, .hrail__box .btn):hover { background: #2C261F; border-color: #2C261F; }
html.calm .btn--line, html.calm :is(.way .btn--line, .stuck .btn--line, .send .btn--line) { color: var(--ink); border: 1px solid var(--hair-2); background: var(--sheet); box-shadow: none; }
html.calm .btn--line:hover, html.calm :is(.way .btn--line, .stuck .btn--line, .send .btn--line):hover { border-color: var(--ink); box-shadow: none; }
html.calm .btn--signal { color: var(--ink); border: 1px solid rgba(23, 19, 15, .82); background: var(--signal); box-shadow: none; }
html.calm .btn--signal:hover { background: var(--signal-hover); }
html.calm .btn:active { transform: translateY(1px); }
/* a field you type in: a sheet with a darker hairline; the marker rings it while you're in it */
html.calm .lookup__row, html.calm .bsub__form .lookup__row { border: 0; border-radius: 14px; background: var(--sheet); box-shadow: 0 0 0 1px var(--hair-2), var(--rest); }
html.calm .lookup__row:focus-within, html.calm .bsub__form .lookup__row:focus-within { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 5px color-mix(in srgb, var(--signal) 55%, transparent); }
/* a switch between two or three things: the one you're on is a paper key, not an ink slab */
html.calm :is(.bchips, .bview, .tog) { padding: 3px; border: 0; border-radius: 12px; background: rgba(23, 19, 15, .055); box-shadow: none; }
html.calm :is(.bchips button, .bview button, .tog button) { border-radius: 9px; }
html.calm :is(.bchips button[aria-selected="true"], .bview button[aria-checked="true"], .tog button[aria-checked="true"]) { color: var(--ink); background: var(--sheet); box-shadow: 0 0 0 1px var(--hair), 0 1px 2px rgba(23, 19, 15, .08); }

/* ------------------------------------------------------------------ 5 the marker
   A title you can open takes a stroke of the marker under it as you point at it: the one thing
   on these pages that moves. (The stroke on a page's name is main.css's mark.hl.) */
html.calm :is(.bcard__t, .brow__t, .topic h3 a, .pn a b) { background: linear-gradient(var(--signal), var(--signal)) left 92% / 0 .34em no-repeat; transition: background-size .28s var(--ease); text-decoration: none; }
html.calm :is(.bcard:hover .bcard__t, .brow:hover .brow__t, .topic:hover h3 a, .pn a:hover b) { background-size: 100% .34em; text-decoration: none; }
@media (prefers-reduced-motion: reduce) { html.calm :is(.bcard__t, .brow__t, .topic h3 a, .pn a b) { transition: none; } }

/* ------------------------------------------------------------------ 6 the footer */
html.calm .foot { padding-top: clamp(56px, 7vw, 96px); }
html.calm .foot__cols { margin-top: 0; }
html.calm .foot__edge { display: none; }
html.calm .foot__base { padding-bottom: 34px; }

/* ------------------------------------------------------------------ 7 Blog */
html.calm .bhero { padding-top: 0; padding-bottom: clamp(28px, 3.4vw, 44px); }
html.calm .bhero .chead { margin-bottom: clamp(36px, 4.4vw, 56px); }
html.calm .bhero__write { display: inline-flex; align-items: center; gap: 6px; height: 28px; margin-left: 12px; padding: 0 10px; border-radius: 8px; vertical-align: 1px; }
html.calm .bhero__write[hidden] { display: none; }
/* the note that leads: its cover in a sheet, and beside it the note's name set quieter than the page's */
html.calm .blead { gap: clamp(28px, 4vw, 56px); }
html.calm .blead__pic .cover, html.calm .post__cover .cover { border-radius: 22px; overflow: hidden; }
html.calm .bcard .cover { border-radius: 16px; overflow: hidden; }
html.calm .blead__t { font-size: clamp(34px, 3.5vw, 50px); line-height: .96; }
html.calm .blead__go { height: 40px; padding: 0 16px; border-radius: var(--r-key); font-size: 14.5px; }
html.calm .bcard__k .is-feat { border: 0; border-radius: 5px; padding: 2px 7px; color: var(--ink); background: var(--signal); box-shadow: none; }
html.calm .bfilters { border-bottom: 1px solid var(--rule); }
html.calm .bsearch { border: 0; border-radius: 12px; background: var(--sheet); box-shadow: 0 0 0 1px var(--hair-2); }
html.calm .bsearch:focus-within { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 5px color-mix(in srgb, var(--signal) 55%, transparent); }
html.calm .brow:hover { background: none; }
/* by email: not a band of its own colour, one sheet on the paper */
html.calm .bsub { padding-block: clamp(28px, 4vw, 56px) 0; background: none; }
html.calm .bsub__inner { width: calc(100% - 2 * var(--gutter)); max-width: var(--wrap); padding: clamp(24px, 3.4vw, 44px); border-radius: 22px; background: var(--sheet); box-shadow: 0 0 0 1px var(--hair), var(--rest); align-items: center; }
html.calm .bsub .hd { gap: 10px; }
html.calm .bsub .hd__k { display: none; }
html.calm .bsub .hd__t { max-width: none; font: 700 clamp(24px, 2.2vw, 30px)/1.18 var(--f-sans); letter-spacing: -.022em; text-transform: none; word-spacing: normal; }
html.calm .bsub .hd__t mark.hl { --hl-y: 78%; --hl-h: 42%; }
html.calm .bsub__lede { margin-top: 0; font-size: 16px; color: var(--ink-2); }
html.calm .bsub__form .lookup__row .btn--signal { color: var(--paper); border-color: var(--ink); background: var(--ink); border-radius: 10px; }
html.calm .bsub__fine { color: var(--graphite); }
/* a note: its name is the page's name, at the head's size */
html.calm .post__title { font-size: clamp(40px, 4.5vw, 62px); line-height: .96; }
/* a section inside a page (keep reading, by email): the sans, not the poster face. One poster title a page */
html.calm main :is(section, div) > .wrap > .hd:not(.chead) .hd__t, html.calm .related .hd__t { max-width: none; font: 700 clamp(24px, 2.2vw, 30px)/1.18 var(--f-sans); letter-spacing: -.022em; text-transform: none; word-spacing: normal; }
html.calm .hd:not(.chead) .hd__t mark.hl { --hl-y: 78%; --hl-h: 42%; }
html.calm .hd__k span { display: none; }
html.calm .btag { border-radius: 8px; background: var(--sheet); box-shadow: 0 0 0 1px var(--hair); }
html.calm .btag:hover { box-shadow: 0 0 0 1px var(--ink); }

/* ------------------------------------------------------------------ 8 Support
   The first page is the head and then the box you ask in: no street, no night. Smudge is still
   at his desk, because he is who answers. */
html.calm .shero { padding: 0; background: none; color: inherit; }
html.calm.help main:has(> .shero) { padding-top: 0; }
html.calm .sdesk { margin-top: clamp(28px, 3.4vw, 40px); }
html.calm .desk { padding: clamp(14px, 2vw, 22px); border-radius: 22px; }
html.calm .sfind { margin-top: 0; border-radius: 14px; background: var(--paper); box-shadow: 0 0 0 1px var(--hair-2); }
html.calm .sfind:focus-within { background: var(--sheet); box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 5px color-mix(in srgb, var(--signal) 55%, transparent); }
html.calm .sfind .btn { border-radius: 10px; }
html.calm .sfind__list { border-radius: 14px; box-shadow: 0 0 0 1px var(--hair-2), var(--held); }
html.calm .sfind__list a { border-radius: 10px; }
html.calm .sbody__cols, html.calm .send__in { border-top: 0; }
html.calm .sbody { padding-top: clamp(18px, 2.4vw, 30px); }
html.calm .alist, html.calm .alist--file, html.calm .tgroup--first .alist { border-top: 1px solid var(--rule); }
html.calm .alist i { border-radius: 8px; border: 0; background: var(--sheet); box-shadow: 0 0 0 1px var(--hair-2); }
html.calm .alist a:hover i { transform: none; background: var(--signal); box-shadow: 0 0 0 1px rgba(23, 19, 15, .82); }
html.calm .send__in { padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: var(--sheet); box-shadow: 0 0 0 1px var(--hair), var(--rest); }
html.calm .send h2 { font-size: 24px; }
html.calm .hside a[aria-current="page"] { border-radius: 9px; background: var(--sheet); box-shadow: 0 0 0 1px var(--hair); }
html.calm .hpost__tools :is(button, a) { border: 1px solid var(--hair-2); border-radius: 9px; background: var(--sheet); box-shadow: none; }
html.calm .hpost__tools :is(button, a):hover { border-color: var(--ink); }
html.calm .fb__opts label { border-radius: 9px; background: var(--sheet); }
html.calm .hfind { border: 0; border-radius: 12px; background: var(--sheet); box-shadow: 0 0 0 1px var(--hair-2); }
html.calm .hpost__title, html.calm .htopic__title { font-size: clamp(40px, 4.5vw, 62px); line-height: .96; }

/* ------------------------------------------------------------------ 9 Pricing
   The homepage's folders (pricing.css) keep their pictures there. Here a plan is a file: a flat
   sheet with its name on a tab. The one we'd pick has the marker on its tab and the yellow key. */
html.calm .pp { min-height: 0; }
html.calm .pp__head { display: grid; padding-top: clamp(118px, 11vw, 148px); }
html.calm .pp__wrap { padding-bottom: clamp(48px, 6vw, 80px); }
html.calm .pp__plans { margin-top: clamp(30px, 3.6vw, 44px); gap: clamp(10px, 1.1vw, 16px); }
html.calm .pc { --tab-h: 38px; --fg: var(--ink); --fg-2: var(--graphite); --well: rgba(23, 19, 15, .035); --hair: rgba(23, 19, 15, .12); padding-top: var(--tab-h); filter: none; animation: none; }
html.calm :is(.pc__back, .pc__sheet, .pc__peek, .pc__hands) { display: none; }
html.calm .pc__tab {
  z-index: 4; height: calc(var(--tab-h) + 1px); padding: 0 16px; gap: 9px; border-radius: 11px 11px 0 0;
  font: 850 21px/1 var(--f-display); letter-spacing: .02em; color: var(--ink);
  background: var(--sheet); box-shadow: inset 0 1px 0 var(--hair-2), inset 1px 0 0 var(--hair-2), inset -1px 0 0 var(--hair-2);
}
html.calm .pc__tab::after { content: none; }
html.calm .pc__tab small { padding: 0; font: 500 10.5px/1 var(--f-tag); letter-spacing: .08em; color: var(--ink); background: none; opacity: .72; }
html.calm .pc__front { gap: 12px; padding: 20px 18px 18px; border-radius: 0 var(--r-sheet) var(--r-sheet) var(--r-sheet); background: var(--sheet); box-shadow: 0 0 0 1px var(--hair-2), var(--rest); }
html.calm .pc--feat .pc__tab { background: var(--signal); box-shadow: inset 0 1px 0 rgba(23, 19, 15, .82), inset 1px 0 0 rgba(23, 19, 15, .82), inset -1px 0 0 rgba(23, 19, 15, .82); }
html.calm .pc--feat .pc__front { box-shadow: 0 0 0 1px rgba(23, 19, 15, .82), var(--rest); }
html.calm .pc__price em, html.calm .pc--feat .pc__price em { border-radius: 5px; color: var(--ink); background: var(--signal); }
html.calm .pc__meter { border: 0; border-radius: 12px; background: var(--well); }
html.calm .pc__buys { border-top: 1px solid var(--hair); }
html.calm .pc__buys div + div { border-left: 1px solid var(--hair); }
html.calm .pc__seats button { border-radius: 7px; background: var(--sheet); }
html.calm .pc__pts { font-size: 14.5px; gap: 7px; }
html.calm .pc__pts .bar { border-radius: 3px; }
html.calm .pc .pc__cta { margin-top: auto; }
html.calm .pc--feat .pc__cta { color: var(--ink); border: 1px solid rgba(23, 19, 15, .82); background: var(--signal); }
html.calm .pc--feat .pc__cta:hover { background: var(--signal-hover); border-color: rgba(23, 19, 15, .82); }
html.calm .curr select { height: 42px; border: 0; border-radius: 12px; background-color: var(--sheet); box-shadow: 0 0 0 1px var(--hair-2); }
html.calm .tog i { border-radius: 4px; }
/* Enterprise: one more file, lying under the four */
html.calm .pp__ent { min-height: 0; margin-top: clamp(10px, 1.1vw, 16px); padding: 18px 20px 18px 24px; border-radius: var(--r-sheet); color: var(--ink); background: var(--sheet); box-shadow: 0 0 0 1px var(--hair-2), var(--rest); }
html.calm .pp__ent:hover { box-shadow: 0 0 0 1px rgba(23, 19, 15, .5), var(--rest); }
html.calm .pp__stars { display: none; }
html.calm .pp__ent-k { font-size: clamp(28px, 2.6vw, 34px); color: var(--ink); text-shadow: none; }
html.calm .pp__ent-t { font-size: 15.5px; color: var(--ink-2); }
html.calm .pp__ent-t b { color: var(--ink); }
html.calm .pp__ent-a { height: 40px; border-radius: var(--r-key); color: var(--paper); background: var(--ink); box-shadow: none; }
html.calm .pp__ent:hover .pp__ent-a { transform: none; box-shadow: none; background: #2C261F; }
html.calm .pp__fine { margin-top: 18px; font-size: 13px; }
@media (min-width: 901px) and (max-height: 820px) { html.calm .pp__lede { display: block; } html.calm .pc__pts li:nth-child(2) { display: grid; } html.calm .pp__fine { display: block; } }
@media (max-width: 900px) {
  html.calm .pp__head { padding-top: 104px; gap: 0; }
  html.calm .pp__title { white-space: normal; }
  html.calm .pp__plans { margin-top: 10px; padding-top: 14px; }
  html.calm .pp__ent { padding: 14px 14px 14px 18px; }
  html.calm .pp__fine { display: block; text-align: left; }
}
@media (max-width: 560px) { html.calm .pp__ent { flex-wrap: wrap; } html.calm .pp__ent-t { display: block; flex-basis: 100%; order: 3; } }

/* ------------------------------------------------------------------ 10 the smaller pages */
/* a head that follows a line of its own (breadcrumbs): it doesn't need the room the nav takes */
.chead--in { padding-top: clamp(20px, 2.4vw, 32px); padding-bottom: clamp(28px, 3.4vw, 44px); }
html.calm .section.page:has(> .chead) { padding-top: 0; }
html.calm .dev-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
@media (max-width: 760px) { html.calm .chead__side.dev-cta { margin-top: 20px; } }

/* the footer, for the pages that don't load the craft layer (it is craft.css's, copied) */
html.calm .foot { position: relative; background: var(--paper); color: var(--ink); }
html.calm .foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; padding-top: 28px; border-top: 1px solid var(--rule); }
html.calm .foot__cols h3 { margin-bottom: 12px; color: var(--graphite); }
html.calm .foot__cols a { display: block; padding: 4px 0; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
html.calm .foot__cols a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal-deep); text-decoration-thickness: 3px; text-underline-offset: 3px; }
html.calm .foot__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: clamp(48px, 6vw, 72px); padding-top: 22px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--graphite); }
html.calm .foot__base .brand { color: var(--ink); }
html.calm .foot__base .brand__mark { width: 49px; height: 30px; }
html.calm .foot__base .brand__word { font-size: 21px; }
html.calm .foot__base p { display: flex; flex-wrap: wrap; gap: 6px 22px; }
html.calm .foot .heart { width: 13px; height: 12px; vertical-align: -1px; margin-inline: 3px; }
html.calm .foot .heart__f { fill: #C8321F; }
@media (max-width: 720px) { html.calm .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* signing in and up: one column in the middle of the paper and nothing else. The mark, what the page
   is, the form, one ink key, and the other way in as a line of text under it. No bar across the top,
   no panel beside it, no card round it. Along the foot, the homepage's torn ink edge: the one drawn
   thing on the page, and ours. */
html.calm body[data-page] > .nav { display: none; }
html.calm .auth, html.calm .auth--solo { position: relative; display: block; min-height: 100vh; min-height: 100svh; background: var(--paper); overflow: hidden; }
html.calm .auth__side { display: none; }
html.calm body[data-page] .auth__main { display: flex; flex-direction: column; align-items: center; min-height: 100vh; min-height: 100svh; padding: clamp(40px, 9vh, 96px) 20px 150px; }
html.calm body[data-page] .auth__top { display: contents; }
html.calm .auth__top .brand { order: 0; flex-direction: column; gap: 10px; }
html.calm .auth__top .brand__mark { width: 84px; height: 52px; -webkit-mask-image: url("../img/mark.png"); mask-image: url("../img/mark.png"); }
html.calm .auth__top .brand__word { font-size: 22px; }
html.calm .auth__box, html.calm .auth--solo .auth__box { order: 1; width: min(372px, 100%); margin: clamp(28px, 5vh, 44px) 0 0; padding: 0; }
html.calm .auth--solo .auth__card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
html.calm .auth__box h1, html.calm .auth--solo .auth__box h1 { font-size: clamp(34px, 5vw, 44px); line-height: .96; text-align: center; text-wrap: balance; }
html.calm .auth__box p.sub, html.calm .auth--solo .auth__box > .auth__card > p.sub { margin: 12px auto 0; max-width: 30em; font-size: 16px; line-height: 1.5; text-align: center; color: var(--ink-2); text-wrap: pretty; }
html.calm .auth .form { margin-top: 26px; }
html.calm .f input, html.calm .auth--solo .f input { border: 0; border-radius: var(--r-key); background: var(--sheet); box-shadow: 0 0 0 1px var(--hair-2); }
html.calm .f input:focus { box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 5px color-mix(in srgb, var(--signal) 55%, transparent); }
html.calm .check input { border: 0; border-radius: 5px; background: var(--sheet); box-shadow: 0 0 0 1px rgba(23, 19, 15, .34); }
html.calm .check input:checked { background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
/* the one key is ink here: the marker is already on the page's name */
html.calm .auth .btn--signal { --h: 48px; height: 48px; color: var(--paper); border-color: var(--ink); background: var(--ink); }
html.calm .auth .btn--signal:hover { background: #2C261F; border-color: #2C261F; }
html.calm .auth .alert { border-radius: var(--r-key); }
/* the other way in, and the small print: lines of text, centred */
html.calm .auth__top p { order: 2; margin-top: 22px; font-size: 15px; text-align: center; color: var(--ink-2); }
html.calm .auth__alt { display: none; }      /* the same line as the one above, said twice on the solo pages */
html.calm .auth__trust { margin-top: 18px; }
html.calm .auth__box .auth__legal { margin-top: 14px; text-align: center; text-wrap: pretty; }
html.calm .auth__main > .auth__legal { order: 3; margin-top: auto; padding-top: 40px; text-align: center; }
/* the ink edge */
html.calm .auth::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: #0D0905; pointer-events: none; }
html.calm .auth::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 7px; height: 78px; background: var(--paper); transform: scaleY(-1); pointer-events: none;
  -webkit-mask: url("../img/ink-edge.png") 0 100% / 960px 78px repeat-x; mask: url("../img/ink-edge.png") 0 100% / 960px 78px repeat-x; }
@media (max-width: 560px) { html.calm body[data-page] .auth__main { padding-top: 36px; padding-bottom: 130px; } }

/* paying: the receipt keeps its torn edge; what you pay with is a sheet */
html.calm .ck-pay { border: 0; border-radius: 22px; background: var(--sheet); box-shadow: 0 0 0 1px var(--hair), var(--rest); }
html.calm .ck-seg, html.calm .ck-step { border: 0; background: rgba(23, 19, 15, .055); box-shadow: none; }
html.calm .ck-seg button { border-radius: 9px; }
html.calm .ck-seg button[aria-checked="true"] { color: var(--ink); background: var(--sheet); box-shadow: 0 0 0 1px var(--hair), 0 1px 2px rgba(23, 19, 15, .08); }
html.calm .ck-cur select { height: 42px; border: 0; border-radius: 12px; background-color: var(--sheet); box-shadow: 0 0 0 1px var(--hair-2); }
html.calm .ck-go { border: 1px solid rgba(23, 19, 15, .82); border-radius: 13px; box-shadow: none; }
html.calm .ck-go:hover, html.calm .ck-go:active { transform: none; box-shadow: none; }
html.calm .ck-m__dot { border-width: 1px; }
html.calm .ck-qr, html.calm .invoice__qr { border: 0; box-shadow: 0 0 0 1px var(--hair-2); }
html.calm .ck-send button { border: 1px solid var(--hair-2); box-shadow: none; }
html.calm .paym[aria-checked="true"] { box-shadow: none; }

/* the legal pages: section heads in the sans, a dot on a list */
html.calm .legal__body h2 { font: 700 clamp(22px, 2vw, 26px)/1.2 var(--f-sans); letter-spacing: -.02em; text-transform: none; word-spacing: normal; }
html.calm .legal__body li::before { left: 4px; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); box-shadow: none; opacity: .7; }
html.calm .legal { margin-top: clamp(30px, 3.6vw, 48px); }

/* nothing here, and not open yet: the same keys and labels */
html.calm .sh__label::after { content: none; }
html.calm .sh__label span, html.calm .soon__stamp { padding: 2px 7px; border: 0; border-radius: 5px; color: var(--ink); background: var(--signal); box-shadow: none; transform: none; font-weight: 600; }
html.calm .soon-ok, html.calm .soon-pop__box { border: 0; border-radius: 18px; box-shadow: 0 0 0 1px var(--hair-2), var(--held); }
html.calm .soon-ok__tick { border: 0; }
html.calm .nf .display { font-size: clamp(48px, 6.4vw, 88px); }

/* ------------------------------------------------------------------ 11 motion
   Brief and physical: a key goes down a pixel when pressed, a sheet you can open comes up two. For
   anyone who has asked for less, nothing moves at all. */
@media (prefers-reduced-motion: reduce) {
  html.calm *, html.calm *::before, html.calm *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
