/* Stanchio's landing page (stanchio.com). Plain CSS, no build step, nothing fetched from another site.
   The ground is the product's own black linen; the one colour that is Stanchio's, brand teal, is the
   logo's belt and the queue belt that runs down the page. Every other colour is inside a picture. */

@font-face {
  font-family: 'Metropolis';
  src: url('fonts/Metropolis-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('fonts/Metropolis-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Metropolis';
  src: url('fonts/Metropolis-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --linen: #0f1113;
  --divider: #1e2125;
  --line: #363b41;
  --on: #ffffff;
  --quiet: #b9bfc7;
  --stock: #ffffff;
  --ink: #0f1113;
  --muted: #555b64;
  --strong-rule: #878d96;
  --teal: #00cdb3;
  --focus: #2185c7;
  --belt: 3px;
  --post: 13px;
  --side: clamp(20px, 4vw, 48px);
  --in: clamp(40px, 5vw, 72px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--linen);
  scroll-padding-top: 88px;
  scrollbar-color: var(--line) var(--linen);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--linen);
  color: var(--quiet);
  font: 400 17px/1.55 Metropolis, 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection {
  background: var(--teal);
  color: #101820;
}
img {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2 {
  margin: 0;
  color: var(--on);
  font-weight: 700;
  text-wrap: balance;
}
p {
  margin: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 40;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--stock);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* ---- Buttons: the product's own pills ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.btn.plate {
  background: var(--stock);
  color: var(--ink);
}
.btn.plate:hover {
  background: #d3d7dd;
}
.btn.big {
  height: 50px;
  padding: 0 26px;
  font-size: 17px;
}
.btn.ink {
  width: 100%;
  height: 48px;
  background: var(--ink);
  color: var(--on);
  font-size: 16px;
}
.btn.ink:hover {
  background: #2b2f34;
}
.btn:focus-visible {
  border-radius: 999px;
}

/* ---- The bar ------------------------------------------------------------------------------------ */
.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  padding: 0 var(--side);
  background: var(--linen);
  box-shadow: 0 1px 0 var(--divider);
}
.logo {
  display: block;
  margin-left: -5px; /* the picture's own empty margin: the artwork, not its box, starts on the edge */
  line-height: 0;
}
.logo img {
  width: 150px;
  height: auto;
}
.bar nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.plain {
  color: var(--quiet);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
}
.plain:hover {
  color: var(--on);
  text-decoration: underline;
}

/* ---- Doors open: the desk at 8:02 ---------------------------------------------------------------- */
.doors {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4.4vw, 72px);
  align-items: center;
  /* The words start where the parts below start; the desk runs to the right edge of the screen. */
  padding: clamp(36px, 6.5vh, 76px) 0 clamp(72px, 9vw, 128px) max(var(--side), calc((100% - 1408px) / 2 + var(--side)));
}
.doors h1 {
  font-size: clamp(2.75rem, 4.5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.doors h1 span {
  display: block;
}
.lede {
  max-width: 31em;
  margin-top: 28px;
  font-size: clamp(1.06rem, 0.5vw + 0.95rem, 1.28rem);
  line-height: 1.5;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: 34px;
}
.down {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--on);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--strong-rule);
}
.down:hover {
  text-decoration-color: var(--on);
}
.down svg {
  flex: none;
  transition: transform 300ms var(--ease);
}
.down:hover svg {
  transform: translateY(3px);
}
.proof {
  max-width: 30em;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.desk {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  column-gap: clamp(18px, 2.4vw, 32px);
  margin: 0;
}
.screen {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  aspect-ratio: 864 / 605;
  overflow: hidden;
  border-radius: 6px 0 0 6px;
  background: #ebebeb;
  box-shadow: 0 0 0 1px var(--line);
}
.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 240ms ease-out;
}
.desk[data-step='0'] .s0,
.desk[data-step='1'] .s1,
.desk[data-step='2'] .s2,
.desk[data-step='3'] .s3 {
  opacity: 1;
}
/* The badge feeds out from under the screen, as a label leaves a printer. */
.label {
  position: relative;
  z-index: 0;
  grid-column: 1;
  margin: -10px 0 0 clamp(14px, 2vw, 28px);
}
.badge {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 0 4px 4px;
  background: #fff;
  transition: transform 1200ms var(--ease) 220ms;
}
.desk:not([data-step='3']) .badge {
  transform: translateY(-101%);
  transition: none;
}
.desk figcaption {
  grid-column: 2;
  padding: 20px var(--side) 0 0;
}
.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.keys button {
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--strong-rule);
  border-radius: 6px;
  color: var(--on);
  font: 500 15px/1 Metropolis, 'Segoe UI', system-ui, sans-serif;
  white-space: nowrap;
  transition: background-color 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}
.keys button:hover kbd {
  border-color: var(--on);
}
.keys button[aria-current='step'] kbd {
  border-color: var(--on);
  background: var(--stock);
  color: var(--ink);
}
.says {
  min-height: 3.1em;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.45;
}
.on-phone {
  display: none;
}

/* ---- The line, walked backwards ------------------------------------------------------------------ */
.queue {
  position: relative;
  max-width: 1408px;
  margin: 0 auto;
  padding: 0 var(--side);
}
.queue-lead {
  max-width: 24em;
  margin: 0 auto;
  padding-bottom: 40px;
  color: var(--on);
  font-size: clamp(1.15rem, 0.7vw + 1rem, 1.45rem);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}
.stop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 32px);
  align-items: center;
  margin-top: calc(var(--belt) * -1);
  padding: clamp(80px, 9vw, 136px) var(--in);
}
/* The belt. Each stop draws half a loop: along the top to one side, down it, and back along the
   bottom to the middle, where the next stop's half takes over on the other side. */
.stop::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  border: var(--belt) solid var(--teal);
  pointer-events: none;
}
.stop:nth-of-type(odd)::before {
  right: 0;
  border-left: 0;
}
.stop:nth-of-type(even)::before {
  left: 0;
  border-right: 0;
}
.post {
  position: absolute;
  z-index: 1;
  width: var(--post);
  height: var(--post);
  border-radius: 50%;
  background: var(--on);
  box-shadow: 0 0 0 5px var(--linen);
  --off: calc((var(--post) - var(--belt)) / -2);
}
.post.a {
  top: var(--off);
}
.post.b {
  bottom: var(--off);
}
.stop:nth-of-type(odd) .post.a,
.stop:nth-of-type(odd) .post.b {
  right: var(--off);
}
.stop:nth-of-type(even) .post.a,
.stop:nth-of-type(even) .post.b {
  left: var(--off);
}
.post.start {
  top: var(--off);
  left: calc(50% - var(--post) / 2);
}
.post.end {
  bottom: var(--off);
  left: calc(50% - var(--post) / 2);
}

.stop h2 {
  font-size: clamp(1.9rem, 2.3vw + 0.75rem, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.when {
  display: block;
  color: var(--quiet);
}
.words p {
  max-width: 33em;
  margin-top: 18px;
}
.words h2 + p,
.words h2 + .cols {
  margin-top: 28px;
}
.words .aside {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.stop > .words {
  grid-column: 1 / span 5;
  grid-row: 1;
}
.stop > .picture {
  grid-column: 7 / -1;
  grid-row: 1;
}
.stop:nth-of-type(even) > .words {
  grid-column: 8 / -1;
}
.stop:nth-of-type(even) > .picture {
  grid-column: 1 / span 6;
}
.picture {
  position: relative;
  margin: 0;
}
.picture figcaption {
  max-width: 26em;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.crop {
  position: relative;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  border-radius: 6px;
  background: #e9ebee;
  box-shadow: 0 0 0 1px var(--line);
}
.crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--at, 0%);
}
.crop picture {
  display: block;
  height: 100%;
}
/* A wide screen shown in a narrow place: part of it, at a size its words can be read at. */
.crop.zoom img {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--zoom, 1) * 100%);
  max-width: none;
  height: auto;
  object-fit: fill;
  transform: translate(var(--x, 0%), var(--y, 0%));
}
.shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--line);
}

/* A picture laid over another is parted from it by a band of linen, not lifted by a shadow. */

/* An hour before doors */
.kit .main {
  --ratio: 53 / 47;
  --zoom: 1.55;
}
.kit .phone {
  --ratio: 390 / 700;
  position: absolute;
  right: -5%;
  bottom: -4%;
  width: 27%;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 7px var(--linen);
}
.kit figcaption {
  max-width: 64%;
}

/* The day before */
.mail .top {
  --ratio: 390 / 468;
}
.stop > .picture.mail {
  width: min(100%, 318px);
  justify-self: center;
  transform: translateX(-14%);
}
.mail .pass {
  --ratio: 390 / 198;
  --at: 65.1%;
  z-index: 1;
  width: 104%;
  margin: 16px 0 0 32%;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 7px var(--linen);
}

/* Four stops are wide: the words stand over a picture as wide as the stop. */
.stop.wide > .words {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 32px);
  align-items: end;
}
.stop.wide > .words h2 {
  grid-column: 1 / span 6;
}
.stop.wide > .words .cols {
  grid-column: 8 / -1;
  margin-top: 0;
}
.cols p:first-child {
  margin-top: 0;
}
.stop.wide > .picture,
.stop.wide > .three,
.stop.wide > .second {
  grid-column: 1 / -1;
  grid-row: auto;
  margin-top: clamp(40px, 4.5vw, 64px);
}

.dash {
  --ratio: 1366 / 874;
  --zoom: 1;
}

/* Five weeks before */
.stop > .picture.phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.8vw, 24px);
  align-items: start;
  width: min(100%, 540px);
  justify-self: center;
}
.phones .form {
  --ratio: 390 / 724;
  --at: 59.4%;
}
.phones .mine {
  --ratio: 390 / 704;
}
.phones .crop + .crop {
  margin-top: 64px;
}

/* Six weeks before */
.editor .main {
  --ratio: 1366 / 880;
}
.stop.wide > .picture.editor {
  margin-bottom: 7%;
}
.editor .phone {
  --ratio: 390 / 640;
  position: absolute;
  right: -2.5%;
  bottom: -13%;
  width: 17%;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 7px var(--linen);
}

/* Seven weeks before */
.poster .phone {
  position: absolute;
  right: 5%;
  bottom: -11%;
  width: 17%;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 7px var(--linen);
}
.stop.wide > .second {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(20px, 2.4vw, 32px);
  align-items: center;
  margin-top: clamp(96px, 11vw, 150px);
}
.second .picture {
  grid-column: 1 / span 7;
}
.second .main {
  --ratio: 1093 / 752;
  --zoom: 1.25;
}
.second .words {
  grid-column: 9 / -1;
}
.second .words p:first-child {
  margin-top: 0;
}

/* Eight weeks before */
.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
  padding: 0;
  list-style: none;
}
.three span {
  display: block;
  margin-top: 12px;
  font-size: 15px;
}

/* ---- Before you trust it with a guest list -------------------------------------------------------- */
.ledger {
  max-width: 1408px;
  margin: 0 auto;
  padding: clamp(96px, 11vw, 168px) calc(var(--side) + var(--in)) 0;
}
.ledger h2 {
  max-width: 14em;
  font-size: clamp(1.9rem, 2.3vw + 0.75rem, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.ledger dl {
  margin: clamp(36px, 4vw, 56px) 0 0;
  border-bottom: 1px solid var(--line);
}
.ledger dl div {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(20px, 2.4vw, 32px);
  padding: 22px 0 24px;
  border-top: 1px solid var(--line);
}
.ledger dt {
  text-wrap: balance;
  color: var(--on);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.ledger dd {
  max-width: 36em;
  margin: 0;
}

/* ---- The door card: the product's own sign-in card, asking the other question --------------------- */
.door {
  display: grid;
  place-items: center;
  padding: clamp(96px, 11vw, 168px) var(--side) clamp(80px, 9vw, 128px);
}
.door-in {
  width: min(100%, 468px);
}
.door-logo {
  display: block;
  width: 176px;
  height: auto;
  margin: 0 0 28px -5px;
}
.card {
  padding: 36px;
  border-radius: 6px;
  background: var(--stock);
  color: var(--ink);
}
.card h1,
.card h2 {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.card p {
  margin: 12px 0 26px;
  color: var(--muted);
  font-size: 16px;
}
.card ::selection {
  background: var(--ink);
  color: var(--on);
}
.under {
  margin: 16px 2px 0;
  font-size: 14px;
}
/* The page for an address that holds nothing (404.html): the same card, alone on the linen, at
   the height the app's own door screens start their card. */
.lost {
  min-height: 100svh;
  place-items: start center;
  padding-top: min(16svh, 168px);
}
.door-home {
  display: inline-block;
  line-height: 0;
}
.under a {
  color: var(--on);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  padding: 24px var(--side) 40px;
  border-top: 1px solid var(--divider);
  font-size: 14px;
}
.foot a {
  margin-left: 24px;
}
.foot a:first-child {
  margin-left: 0;
}
.foot a:hover {
  color: var(--on);
}

/* A short laptop window: less air over the desk, and the desk no taller than leaves its keys and
   the sentence under them in sight. */
@media (min-width: 1081px) and (max-height: 760px) {
  .doors {
    padding-top: 20px;
    align-items: start;
  }
  .doors-words {
    padding-top: clamp(12px, 5vh, 40px);
  }
  .desk {
    width: min(100%, calc((100svh - 232px) * 864 / 605));
    margin-left: auto;
  }
}

/* ---- A tablet, or a narrow window ---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .doors {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-inline: var(--side);
  }
  .screen {
    border-radius: 6px;
  }
  .desk figcaption {
    padding-right: 0;
  }
  .dash {
    --ratio: 1085 / 600;
    --zoom: 1.26;
    --x: -10.25%;
    --y: -8.8%;
  }
  .editor .main {
    --ratio: 16 / 11;
    --zoom: 1.6;
    --x: -37.5%;
    --y: -29.6%;
  }
  .lede {
    max-width: 36em;
  }
  .stop {
    --in: clamp(32px, 6vw, 64px);
    row-gap: 44px;
  }
  .stop > .words,
  .stop:nth-of-type(even) > .words,
  .stop.wide > .words {
    display: block;
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .stop > .picture,
  .stop:nth-of-type(even) > .picture {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .stop.wide > .words .cols {
    margin-top: 28px;
  }
  .stop.wide > .picture,
  .stop.wide > .three {
    margin-top: 0;
  }
  .stop > .picture.mail {
    justify-self: start;
    margin-left: 4%;
    transform: none;
  }
  .stop > .picture.phones {
    justify-self: start;
  }
  .doors h1 {
    font-size: clamp(2.9rem, 9vw, 4.6rem);
  }
  .kit .main {
    --ratio: 16 / 10;
    --zoom: 1.5;
  }
  .kit .phone {
    right: -3%;
  }
  .second .main {
    --ratio: 1093 / 752;
    --zoom: 1.25;
  }
  .stop.wide > .second {
    display: block;
    margin-top: clamp(72px, 12vw, 110px);
  }
  .second .words {
    margin-top: 32px;
  }
  .ledger {
    padding-inline: calc(var(--side) + clamp(32px, 6vw, 64px));
  }
}

/* ---- A phone: the line runs straight down the left ------------------------------------------------ */
@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .bar {
    height: 56px;
  }
  .bar nav {
    gap: 14px;
  }
  .doors {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 28px;
  }
  /* On a phone the desk comes straight after the button, before the line about where it came from. */
  .doors-words {
    display: contents;
  }
  .doors h1 {
    order: 1;
  }
  .lede {
    order: 2;
  }
  .actions {
    order: 3;
  }
  .desk {
    order: 4;
    margin-top: 44px;
  }
  .proof {
    order: 5;
    margin-top: 40px;
  }
  .btn.big {
    height: 52px;
  }
  .desk {
    display: block;
  }
  .kit .main {
    --ratio: 1 / 1;
    --zoom: 2.25;
  }
  .dash {
    --ratio: 390 / 600;
    --zoom: 1;
    --x: 0%;
    --y: 0%;
  }
  .editor .main {
    --ratio: 1 / 1;
    --zoom: 2.1;
    --x: -38.4%;
    --y: -30.4%;
  }
  .second .main {
    --ratio: 1 / 1;
    --zoom: 2.75;
    --x: -1.2%;
    --y: -31.6%;
  }
  .kit .phone {
    right: -2%;
    bottom: -7%;
    width: 40%;
  }
  .screen,
  .keys {
    display: none;
  }
  .on-phone {
    display: block;
    width: 74%;
    height: auto;
    aspect-ratio: 390 / 784;
    object-fit: cover;
    object-position: 50% 0;
    border-radius: 6px;
    box-shadow: 0 0 0 1px var(--line);
  }
  .label {
    z-index: 2;
    width: 56%;
    margin: -30% 0 0 auto;
  }
  .badge,
  .desk:not([data-step='3']) .badge {
    border-radius: 4px;
    box-shadow: 0 0 0 7px var(--linen);
    transform: none;
  }
  .desk figcaption {
    padding-top: 18px;
  }
  .says {
    min-height: 0;
    margin-top: 0;
  }
  .queue-lead {
    max-width: none;
    padding: 0 0 36px 28px;
    text-align: left;
  }
  .stop {
    margin-top: 0;
    padding: 56px 0 72px 28px;
    row-gap: 36px;
  }
  .stop::before,
  .stop:nth-of-type(odd)::before,
  .stop:nth-of-type(even)::before {
    left: 0;
    right: auto;
    width: 0;
    border: 0;
    border-left: var(--belt) solid var(--teal);
  }
  .stop:nth-of-type(odd) .post.a,
  .stop:nth-of-type(even) .post.a {
    top: var(--off);
    left: var(--off);
    right: auto;
  }
  .post.b,
  .post.start {
    display: none;
  }
  .post.end {
    left: var(--off);
  }
  .picture figcaption,
  .kit figcaption {
    max-width: 54%;
  }
  .stop > .picture.mail {
    width: 62%;
    margin: 0;
  }
  .mail .pass {
    width: 128%;
    margin-left: 28%;
  }
  /* Two phone screens side by side would be too small to read here: one under the other. */
  .stop > .picture.phones {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
  }
  .phones .crop {
    width: 80%;
  }
  .phones .form {
    --ratio: 390 / 500;
    --at: 51.5%;
  }
  .phones .mine {
    --ratio: 390 / 598;
  }
  .phones .crop + .crop {
    margin: 22px 0 0 auto;
  }
  .stop.wide > .picture.editor {
    margin-bottom: 26%;
  }
  .editor .phone {
    right: -2%;
    width: 40%;
    bottom: -34%;
  }
  .poster {
    margin-bottom: 14%;
  }
  .poster .phone {
    right: -3%;
    width: 26%;
    bottom: -26%;
  }
  .three {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .ledger {
    padding-inline: var(--side);
  }
  .ledger dl div {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }
  .card {
    padding: 26px 22px;
  }
  .foot a {
    margin: 0 24px 0 0;
  }
}

@media (pointer: coarse) {
  .btn,
  .keys kbd {
    min-height: 44px;
  }
  .plain {
    padding: 12px 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* A Windows contrast theme: the belt and its posts take the theme's own text colour. */
@media (forced-colors: active) {
  .stop::before {
    border-color: CanvasText;
  }
  .post {
    background: CanvasText;
    box-shadow: 0 0 0 5px Canvas;
  }
  .btn,
  .keys kbd,
  .card {
    border: 1px solid CanvasText;
  }
}

@media print {
  .bar {
    position: static;
  }
}
