/*
 * The pages visitors read: the home page, the FAQ, how to verify, what a
 * card proof needs, hanging a proof on a profile, the page of a card, the
 * page of an account, the proof log page and how to check an account's
 * proof (src/pages/). The navigation
 * bar and the foot are as wide as the site (--max-width); the content of
 * each page is still one column, at most 560 wide, until that page is laid
 * out after design/DESIGN.md (so far: the home page, what a card proof
 * needs, the FAQ, how to verify, how to check an account's proof, hanging
 * a proof, the page of a card and the page of an account).
 *
 * The values of :root are design/tokens.json's, each the one of the same
 * name (test/style-sheet.test.ts): what each colour means, and where it is
 * not to be used, is design/DESIGN.md's. Nothing here means a conclusion
 * (docs/design/principles.md, principle 4): no green, no check mark, no
 * lock or shield, nothing that looks like a platform's verified badge. The
 * raspberry red is for links, buttons and "you".
 *
 * Headings are in GenRyuMin2 TW, the subset of design/fonts/, which the
 * site sends itself (/fonts/, a copy: scripts/site-files.ts); the body and
 * the monospace are the system's. The Content-Security-Policy of these
 * pages allows this file, that font and nothing inline (README.md, "頁面送的標頭").
 */
@font-face {
  font-family: "GenRyuMin2 TW";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/GenRyuMin2TW-B.woff2") format("woff2");
}

:root {
  --bg: #FFFFFF;
  --ink: #141414;
  --text: #2E3135;
  --mute: #5A5F64;
  --line: #E3E5E7;
  --soft: #F6F7F7;
  --dot: #CDD2D6;
  --proof: #1D6B78;
  --proof-soft: #EEF5F6;
  --proof-track: #D3E4E7;
  --you: #BF2150;
  --you-hover: #A51A44;
  --font-display: "GenRyuMin2 TW", "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --font-body: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --size-h1: 60px;
  --size-h3: 26px;
  --size-h3-phone: 21px;
  --size-lead: 22px;
  --size-lead-phone: 19px;
  --size-figure: 132px;
  --size-figure-phone: 76px;
  --size-body: 18px;
  --size-body-phone: 16px;
  --size-h2: 40px;
  --size-h2-phone: 28px;
  --size-account: 76px;
  --size-account-phone: 48px;
  --size-kicker: 15px;
  --size-kicker-phone: 14px;
  --size-small: 14px;
  --weight-heading: 700;
  --weight-account: 800;
  --weight-body: 400;
  --leading-h1: 1.24;
  --leading-h2: 1.34;
  --leading-h3: 1.5;
  --leading-figure: 1;
  --leading-body: 1.85;
  --leading-account: 1.1;
  --leading-kicker: 1.6;
  --leading-small: 1.7;
  --gutter: 40px;
  --gutter-phone: 20px;
  --section: 120px;
  --section-phone: 72px;
  --column-gap: 80px;
  --max-width: 1200px;
  --measure: 32em;
  --button-height: 56px;
  --radius: 4px;
  --radius-panel: 12px;
  --min-target: 44px;
  --focus-ring: 3px;
  --dot-pitch: 18px;
  --pulse-duration: 2400ms;
  --pulse-count: 3;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--size-body);
  line-height: var(--leading-body);
}

/* Each page's own content: one column of at most --measure, until the page is laid out after design/DESIGN.md. */
main {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}

a {
  color: var(--you);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--you-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: var(--focus-ring) solid var(--ink);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  color: var(--ink);
}

p {
  margin: 0 0 10px;
}

h1,
h2 {
  margin: 0;
}

.small {
  font-size: var(--size-small);
  color: var(--mute);
}

.id {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* A test log says so above everything else: a band of ink, which means nothing else on the site. */
.test-proof-log {
  margin: 0;
  padding: 8px var(--gutter);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: var(--size-kicker);
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.06em;
}

/* The date beside it stays on one line: on a narrow screen the line breaks before the date, not at a hyphen in it. */
.test-proof-log time {
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

/* The navigation bar and the foot (home.md, 導覽列 and 頁尾; design/DESIGN.md, 元件) ---------
   Both as wide as the site: --max-width, with --gutter inside the line
   that sets them off. On a narrow screen the bar shows the name and the
   menu, a <details> with the same links and the button. */

.top,
.foot {
  padding: 0 var(--gutter);
}

.top .bar,
.foot .bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Where the links and the button do not fit beside the name (a window just wider than --breakpoint), they
   go to a second row together; no word of the bar is broken. */
.top .bar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  min-height: 84px;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.top .wide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
}

.top .home b,
.top .domain,
.top .wide a {
  white-space: nowrap;
}

/* On a phone narrower than the name, the domain goes under it rather than past the edge. */
.top .home {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  gap: 4px 10px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.top .logo {
  width: 30px;
  height: 30px;
  flex: none;
}

/* The name and the domain: both in the display face, centred on each other (design/DESIGN.md, 元件). */
.top .home b {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.04em;
}

.top .domain {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-kicker);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--mute);
}

.top .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  font-size: var(--size-kicker);
}

/* Each link at least --min-target high (design/DESIGN.md, 無障礙). */
.top .links a,
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: var(--min-target);
}

.top nav a:not(.button),
.foot a {
  color: var(--ink);
  text-decoration: none;
}

.top nav a:not(.button):hover,
.foot a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.top .nav-button {
  margin: 0;
  min-height: var(--min-target);
  padding: 0 18px;
  font-size: var(--size-kicker);
}

/* The menu: only on a narrow screen. It keeps its size; the name gives way. */
.menu {
  display: none;
  flex: none;
  white-space: nowrap;
}

.menu summary {
  display: flex;
  align-items: center;
  min-height: var(--min-target);
  padding: 0 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: var(--size-kicker);
  list-style: none;
  cursor: pointer;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu[open] summary {
  background: var(--soft);
}

/* Open, it hangs below the bar, over the page, as wide as the bar. */
.menu nav {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  padding: 4px 0 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.menu nav a:not(.button) {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-top: 1px solid var(--line);
}

.menu nav a:not(.button):first-child {
  border-top: 0;
}

.menu .nav-button {
  justify-content: center;
  margin-top: 12px;
  min-height: var(--button-height);
}

.foot {
  margin-top: 48px;
}

.foot .bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 28px;
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
  font-size: var(--size-kicker);
}

.foot .site {
  margin-right: 12px;
}

.foot .site b {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  color: var(--ink);
}

.foot .site span {
  margin-left: 6px;
  color: var(--mute);
}

.logo-card-body {
  fill: var(--you);
}

.logo-chip {
  fill: var(--bg);
}

.logo-island-body {
  fill: var(--ink);
  stroke: var(--bg);
}

/* Titles ------------------------------------------------------------------------ */

/* Every page's heading, in the display face (design/DESIGN.md, 字). */
.title {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: 21px;
  line-height: 1.55;
  margin: 28px 0 8px;
}

.title .line {
  display: block;
}

/* Does the account owner acknowledge it ---------------------------------------- */

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin: 36px 0 10px;
}

.backlink {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  padding: 6px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow-wrap: anywhere;
}

/* The profile on Threads. A fixed height that holds three lines of bio and
   two links; more than that scrolls inside the frame, rather than cut a
   link off. The embed's page is white below its own card, so the frame
   is drawn as one white box around all of it. */
iframe.threads-profile {
  display: block;
  width: 100%;
  max-width: 558px;
  height: 360px;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--bg);
}

/* A main button (design/DESIGN.md, 元件): raspberry red, white words, square corners, --button-height high. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--button-height);
  margin: 4px 0 2px;
  padding: 0 24px;
  border-radius: var(--radius);
  background: var(--you);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
  text-decoration: none;
}

.button:hover {
  background: var(--you-hover);
  color: var(--bg);
}

/* The proof log page (proof-log-page.md) --------------------------------------------- */

/* As wide as the site, its edges the navigation bar's (.top .bar). On a desktop the title, the numbers and the sentence above the list on the left, the lookup box at the right of the title; on a phone everything in the page's order, the lookup box right after the title. */
body.proof_log main {
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  padding: 0 calc(2 * var(--gutter)) 72px;
}

body.proof_log .head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  grid-template-areas: "title query" "numbers query";
  grid-template-rows: auto 1fr;
  column-gap: var(--column-gap);
  align-items: start;
  margin-top: 56px;
}

/* The title starts a label's height lower than the lookup box, so that it is level with the box and not with the label; the line under the box for a name not in the format then grows downwards only. */
body.proof_log .title {
  grid-area: title;
  font-size: var(--size-h2);
  line-height: var(--leading-h2);
  margin: 30px 0 20px;
}

body.proof_log .query {
  grid-area: query;
  margin-bottom: 20px;
}

body.proof_log .query p {
  margin: 0 0 10px;
}

body.proof_log .query label {
  font-size: var(--size-kicker);
  color: var(--mute);
}

body.proof_log .field {
  display: flex;
  gap: 8px;
  margin: 0;
}

/* The box: @ and the input inside one frame; the frame shows the focus. */
body.proof_log .field .box {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
}

body.proof_log .field .box:focus-within {
  outline: var(--focus-ring) solid var(--ink);
  outline-offset: 3px;
}

body.proof_log .field .at {
  color: var(--mute);
  font: 16px var(--font-body);
}

body.proof_log .field input {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 16px var(--font-body);
}

body.proof_log .field input:focus-visible {
  outline: none;
}

/* 查 and 更多: secondary buttons (design/DESIGN.md, 元件), a frame of ink on white. */
body.proof_log .field button,
body.proof_log .more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: 700 16px var(--font-body);
  text-decoration: none;
  cursor: pointer;
}

body.proof_log .field button:hover,
body.proof_log .more a:hover {
  background: var(--soft);
  color: var(--ink);
}

body.proof_log .bad {
  margin-top: 8px;
}

body.proof_log .numbers {
  grid-area: numbers;
}

body.proof_log .numbers p {
  margin: 0 0 8px;
}

body.proof_log .numbers .small {
  max-width: none;
  line-height: var(--leading-small);
}

body.proof_log .log {
  margin-top: 36px;
}

/* One row a record: the date, the short ID, what the record did; the whole row is the link to the card. */
body.proof_log .rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

body.proof_log .rows a {
  display: grid;
  grid-template-columns: 8.5em 20em minmax(0, 1fr);
  gap: 0 16px;
  align-items: baseline;
  padding: 16px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
}

body.proof_log .rows a:hover {
  background: var(--soft);
}

body.proof_log .rows time {
  color: var(--mute);
}

body.proof_log .rows .id {
  color: var(--you);
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.proof_log .rows .what {
  overflow-wrap: anywhere;
}

body.proof_log .rows .what b {
  color: var(--ink);
}

body.proof_log .none {
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid var(--ink);
}

body.proof_log .more {
  margin: 20px 0 0;
}

/* The two links, a line of their own below the numbers and the sentence under them, before the list. */
body.proof_log .numbers .download {
  margin: 16px 0 0;
}

body.proof_log .download a + a {
  margin-left: 32px;
}

@media (width < 760px) {
  body.proof_log main {
    padding: 0 var(--gutter-phone) 56px;
  }

  body.proof_log .head {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "query" "numbers";
    grid-template-rows: auto;
    margin-top: 28px;
  }

  body.proof_log .title {
    font-size: var(--size-h2-phone);
    margin-top: 0;
  }

  body.proof_log .rows a {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 0;
  }

  body.proof_log .more a {
    display: flex;
  }
}

/* The page of a short ID that resolves to nothing */

.typed {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

/* Steps and a row of actions; the home page and the page of hanging a proof (hang.md) each set their own below. */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin: 0 0 8px;
}

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 12px;
  align-items: start;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}

.steps .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  color: var(--ink);
}

.steps b {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
}

.steps .small {
  display: block;
}

/* The home page (home.md; design/DESIGN.md; design/screens/home-desktop.png, home-phone.png) ---------- */

/* As wide as the site: each section runs edge to edge, its content within the navigation bar's edges (.top .bar). */
body.home main {
  max-width: none;
  padding: 0;
}

body.home .in {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

body.home main > section {
  padding: var(--section) var(--gutter);
}

body.home main > section + section {
  border-top: 1px solid var(--line);
}

body.home main p,
body.home main ul:not(.dots),
body.home main ol,
body.home main dl,
body.home main dd,
body.home main figure,
body.home main blockquote {
  margin: 0;
  padding: 0;
}

/* Lists of the page's own are not bulleted; an answer of the FAQ keeps its list (ul.dots). */
body.home main ul:not(.dots),
body.home main ol {
  list-style: none;
}

/* Read by a screen reader, not shown: each figure's one sentence; on how to check an account's proof and on hanging a proof, what each picture shows. */
body.home .sr,
body.check .sr,
body.hang .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The words: a kicker above each heading, headings broken by hand after a comma (design/DESIGN.md, 字). */
body.home .kicker {
  font-size: var(--size-kicker);
  line-height: var(--leading-kicker);
  letter-spacing: 0.04em;
  color: var(--mute);
}

body.home .line {
  display: block;
}

body.home .headline {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-h1);
  line-height: var(--leading-h1);
  letter-spacing: 0.01em;
}

body.home .heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-h2);
  line-height: var(--leading-h2);
  color: var(--ink);
}

body.home .kicker + .heading {
  margin-top: 14px;
}

body.home .lede {
  max-width: var(--measure);
}

body.home .heading + .lede {
  margin-top: 24px;
}

body.home .lede + .lede {
  margin-top: 10px;
}

body.home .stress {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-lead);
  line-height: var(--leading-h3);
  color: var(--ink);
}

body.home .button.big {
  margin: 0;
  padding: 0 30px;
  font-size: 18px;
}

body.home .split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--column-gap);
  align-items: start;
}

/* Dots: one an account (design/DESIGN.md, 點). The grey rings are a pattern on --dot-pitch; the others are SVG, on the same grid. */
body.home .rings {
  background-image: radial-gradient(circle at calc(var(--dot-pitch) / 2) calc(var(--dot-pitch) / 2), transparent 0 3.1px, var(--dot) 3.3px 4.4px, transparent 4.7px);
  background-size: var(--dot-pitch) var(--dot-pitch);
}

body.home .dot-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.home .dot-field .proof {
  fill: var(--proof);
}

body.home .dot-field .you {
  fill: var(--you);
}

body.home .dot-field .you-ring {
  fill: none;
  stroke: var(--you);
  stroke-width: 2;
  opacity: 0.35;
  transform: scale(1.25);
  transform-box: fill-box;
  transform-origin: center;
}

body.home .dot-field .you-patch {
  fill: var(--bg);
}

body.home .dot-field .you-label {
  fill: var(--you);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
}

/* The one thing that moves: the first screen's 你, three times, then still (design/DESIGN.md, 動態). */
body.home .hero-field .pulse {
  animation: pulse var(--pulse-duration) ease-out var(--pulse-count);
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  80%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .hero-field .pulse {
    animation: none;
  }
}

/* 第一屏. Below the copy, 88px and the room of the line #335 took out from above the buttons (a line of --size-lead and
   the 16px under it), so the dots and their legend keep the height of the final design on a wide screen: 691px, the
   38 rows of dots src/pages/home.ts draws down to (HERO_ROWS). */
body.home .hero {
  position: relative;
  padding-top: 64px;
  padding-bottom: calc(88px + var(--size-lead) * var(--leading-h3) + 16px);
}

body.home .hero .copy {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

body.home .hero .lede {
  margin-top: 30px;
}

body.home .hero .lede p + p {
  margin-top: 6px;
}

body.home .hero .actions {
  gap: 12px 26px;
  margin: 34px 0 0;
}

body.home .again {
  margin-top: 18px;
  font-size: var(--size-kicker);
  color: var(--mute);
}

body.home .needs {
  margin-top: 6px;
}

body.home .hero-field {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% + 72px);
  right: 0;
  overflow: hidden;
}

body.home .hero-field .rings {
  position: absolute;
  inset: 0;
}

body.home .fade {
  mask-image: linear-gradient(90deg, transparent 0, var(--ink) 30%), linear-gradient(0deg, transparent 0, var(--ink) 18%);
  mask-composite: intersect;
}

body.home .legend {
  position: absolute;
  right: var(--gutter);
  bottom: 28px;
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--mute);
}

body.home .key {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.home .key i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

body.home .key .ring {
  border: 1.5px solid var(--dot);
}

body.home .key .filled {
  background: var(--proof);
}

/* 為什麼 */
body.home .why .head {
  position: sticky;
  top: 32px;
}

body.home .cases > li {
  padding: 28px 0 30px;
  border-top: 1px solid var(--line);
}

body.home .cases > li:first-child {
  padding-top: 6px;
  border-top: 0;
}

body.home .case .kind {
  font-size: var(--size-small);
  color: var(--mute);
}

body.home .case blockquote {
  margin-top: 10px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--line);
  font-size: 16px;
  line-height: 1.8;
}

body.home .case .count {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: var(--size-small);
  color: var(--mute);
}

body.home .case blockquote + .count {
  margin-top: 14px;
}

body.home .comments {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

body.home .comments li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  line-height: 1.5;
}

body.home .comments i {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--dot);
  border-radius: 50%;
}

body.home .strip {
  flex: none;
  height: var(--dot-pitch);
  max-width: 70%;
}

body.home .strip.short {
  width: calc(6 * var(--dot-pitch));
}

body.home .strip.long {
  width: calc(24 * var(--dot-pitch));
}

body.home .case .what {
  margin-top: 12px;
  font-size: 16px;
  color: var(--ink);
}

body.home .conclusion {
  max-width: 20em;
  margin-top: 80px;
}

/* 不必公開你是誰 */
body.home .how .split {
  gap: 24px var(--column-gap);
}

body.home .how .split .lede + .lede {
  margin-top: 18px;
}

body.home .claim {
  display: block;
  margin: 14px 0 4px;
  text-indent: -0.5em;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-lead);
  line-height: 1.6;
  color: var(--ink);
}

body.home .flow {
  position: relative;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr) 300px;
  align-items: start;
  margin-top: 72px;
}

body.home .flow .caption {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.7;
}

body.home .flow .caption b {
  display: block;
  font-size: 17px;
  color: var(--ink);
}

body.home .laptop {
  position: relative;
  width: 360px;
  padding-bottom: 96px;
}

body.home .screen {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 214px;
  padding: 16px 22px;
  background: var(--bg);
  border: 9px solid var(--ink);
  border-bottom-width: 14px;
  border-radius: 14px 14px 4px 4px;
  color: var(--ink);
}

body.home .screen p {
  line-height: 1.4;
}

body.home .s-brand {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: 13px;
}

body.home .s-label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
}

body.home .s-pin {
  width: 150px;
  padding: 0 10px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 34px !important;
  letter-spacing: 0.3em;
}

body.home .s-run {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--mute);
}

body.home .s-run i {
  width: 72px;
  height: 4px;
  background: var(--line);
  box-shadow: inset 43px 0 0 var(--ink);
}

body.home .base {
  height: 12px;
  margin: 0 -24px;
  background: var(--ink);
  border-radius: 0 0 12px 12px;
}

body.home .reader {
  position: absolute;
  right: 10px;
  bottom: 0;
  width: 118px;
  height: 30px;
  background: var(--text);
  border-radius: 6px;
}

body.home .reader::before {
  content: "";
  position: absolute;
  left: -70px;
  top: 14px;
  width: 70px;
  border-top: 2px solid var(--text);
}

body.home .id-card {
  position: absolute;
  left: 14px;
  bottom: 18px;
  width: 90px;
  height: 58px;
  padding: 7px 8px;
  background: var(--you);
  border-radius: 6px;
}

body.home .id-card .chip {
  display: block;
  width: 16px;
  height: 13px;
  background: var(--soft);
  border-radius: 3px;
}

body.home .id-card .stripe {
  display: block;
  width: 54px;
  height: 5px;
  margin-top: 6px;
  background: var(--ink);
  border-radius: 1px;
}

body.home .id-card .stripe.short {
  width: 36px;
  margin-top: 4px;
}

/* The dashed arrow from the computer to the proof log: what is sent. */
body.home .sent {
  position: relative;
  padding: 70px 20px 0 36px;
}

body.home .sent::before {
  content: "";
  position: absolute;
  left: 0;
  right: 14px;
  top: 140px;
  border-top: 2px dashed var(--ink);
}

body.home .sent::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 134px;
  border: 7px solid transparent;
  border-left: 12px solid var(--ink);
}

body.home .sent .label {
  position: relative;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}

body.home .sent .caption {
  position: relative;
  max-width: 240px;
}

/* The proof card (design/DESIGN.md, 元件): white, an ink frame, the account the largest; no red. */
body.home .proof-card {
  position: relative;
  width: 240px;
  padding: 14px 18px 12px;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-panel);
  color: var(--ink);
}

body.home .card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

body.home .card-top .logo {
  width: 20px;
  height: 20px;
}

body.home .card-top .platform {
  margin-left: auto;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 400;
}

body.home .proof-card .account {
  margin-top: 18px;
  font-weight: var(--weight-account);
  font-size: 28px;
  line-height: 1.1;
}

body.home .proof-card .short-id {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

body.home .log-mock {
  padding: 14px 16px 10px;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
}

body.home .log-title {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

body.home .log-mock .row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

body.home .log-mock .row:last-child {
  border-bottom: 0;
}

body.home .log-mock .first {
  font-weight: 700;
  color: var(--ink);
}

body.home .log-mock .first > span {
  margin-left: auto;
  font-weight: 400;
  font-size: 12px;
  color: var(--text);
}

body.home .log-mock .row i {
  width: 70px;
  height: 7px;
  background: var(--line);
  border-radius: 2px;
}

body.home .log-mock .row i.mid {
  width: 54px;
}

body.home .log-mock .row i.long {
  width: 82px;
}

body.home .log-mock .row i.end {
  width: 96px;
  margin-left: auto;
}

body.home .viewers {
  display: flex;
  justify-content: space-around;
  align-items: end;
  height: 46px;
  margin-top: 30px;
}

body.home .viewers span {
  position: relative;
  border: 1.5px solid var(--mute);
}

body.home .viewers span::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  height: 26px;
  margin-bottom: 4px;
  border-left: 1.5px dashed var(--mute);
}

body.home .viewers .phone {
  width: 20px;
  height: 34px;
  border-radius: 4px;
}

body.home .viewers .laptop-icon {
  width: 42px;
  height: 28px;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 5px 0 -1px var(--mute);
}

body.home .viewers .window {
  width: 40px;
  height: 32px;
  border-top-width: 6px;
  border-radius: 3px;
}

body.home .checks {
  display: grid;
  gap: 2px;
  margin: 6px 0 8px;
}

body.home .checks li {
  padding-left: 1.4em;
  text-indent: -1.4em;
}

body.home .see {
  margin-top: 28px;
  font-size: 16px;
}

body.home .tenets {
  margin-top: 88px;
  border-top: 1px solid var(--ink);
}

body.home .tenets > div {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

body.home .tenets dt {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-lead);
  line-height: 1.6;
  color: var(--ink);
}

body.home .tenets dd {
  max-width: 34em;
}

body.home .limit {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 64px;
  align-items: end;
  margin-top: 72px;
}

/* As wide as the final design's: the second line wraps between 帳號 and 背書. */
body.home .limit .heading {
  max-width: 13.6em;
}

body.home .limit p + p {
  margin-top: 1.85em;
}

/* 一起能改變什麼 */
body.home .together {
  padding-bottom: 0;
}

body.home .together .head {
  max-width: 760px;
}

body.home .tally {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 64px;
  margin-top: 64px;
}

body.home .stat {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

body.home .stat.recent {
  border-top-color: var(--proof);
}

body.home .stat .label {
  font-size: var(--size-kicker);
  line-height: var(--leading-kicker);
  color: var(--mute);
}

/* The big numbers: room under the comma for the next line (design/DESIGN.md, 字). */
body.home .stat .number {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-figure);
  line-height: var(--leading-figure);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

body.home .stat.recent .number {
  color: var(--proof);
}

body.home .stat .unit {
  margin-top: 24px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
}

body.home .ratio {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 12px;
  margin-top: 40px;
}

body.home .ratio .track {
  fill: var(--proof-track);
}

body.home .ratio .part {
  fill: var(--proof);
}

body.home .ratio-key {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin-top: 10px;
  font-size: var(--size-small);
  color: var(--mute);
}

body.home .ratio-key i {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
}

body.home .ratio-key .part {
  background: var(--proof);
}

body.home .ratio-key .track {
  background: var(--proof-track);
}

body.home .tally .note {
  grid-column: 1 / -1;
  margin-top: 18px;
}

/* The crowd: as wide as the site, faded at the top and the bottom. */
body.home .crowd {
  position: relative;
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  height: calc(17 * var(--dot-pitch));
  margin: 40px auto 0;
  overflow: hidden;
  mask-image: linear-gradient(0deg, transparent, var(--ink) 22%, var(--ink) 78%, transparent);
}

body.home .crowd .rings {
  position: absolute;
  inset: 0;
}

/* The foundation and what is built on it, from left to right in the order they are numbered (design/DESIGN.md, 元件, 地基;
   線: dashed for what is not built yet): three columns as wide and as high as one another, each but the first joined
   to the middle of the one before it by a dashed teal line. */
body.home .stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 32px;
  margin-top: 80px;
}

body.home .layer {
  position: relative;
  padding: 24px 28px 26px;
  border-radius: var(--radius-panel);
}

body.home .layer b {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-lead);
  line-height: 1.5;
  color: var(--ink);
}

body.home .layer p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.8;
}

body.home .layer .when {
  margin-top: 0;
  font-weight: 700;
  font-size: var(--size-small);
  color: var(--mute);
}

body.home .up {
  border: 1.5px dashed var(--mute);
}

body.home .up::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 32px;
  border-top: 2px dashed var(--proof);
}

body.home .ground {
  background: var(--proof-soft);
  border: 1.5px solid var(--proof);
}

body.home .ground .when {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--proof);
}

body.home .ground .when i {
  width: 10px;
  height: 10px;
  background: var(--proof);
  border-radius: 50%;
}

body.home .closing {
  max-width: 24em;
  margin-top: 88px;
  padding-bottom: var(--section);
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
  color: var(--ink);
}

/* 常見問題: each question folds (design/DESIGN.md, 元件). The FAQ's questions (body.faq .question) fold the same way. */
body.home .qa .split {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

body.home .questions details {
  border-top: 1px solid var(--line);
}

body.home .questions details:last-child {
  border-bottom: 1px solid var(--line);
}

body.home .questions summary,
body.faq .question summary {
  position: relative;
  min-height: var(--min-target);
  padding: 20px 40px 20px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
}

body.home .questions summary::-webkit-details-marker,
body.faq .question summary::-webkit-details-marker {
  display: none;
}

body.home .questions summary::after,
body.faq .question summary::after,
body.check .trick summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -8px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
}

body.home .questions details[open] summary::after,
body.faq .question[open] summary::after,
body.check .trick[open] summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

body.home .questions details > p,
body.home .questions details > ul {
  max-width: 38em;
  padding-bottom: 14px;
  font-size: 16px;
}

body.home .more-qa {
  margin-top: 20px;
  font-size: 16px;
}

/* 結尾 */
body.home .end .lede {
  margin-top: 24px;
}

body.home .ask .button {
  margin-top: 32px;
}

body.home .steps-title {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: var(--leading-body);
}

body.home .steps {
  gap: 0;
  margin-top: 10px;
  border-top: 1px solid var(--ink);
}

body.home .steps li {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

body.home .steps .n {
  font-size: 22px;
  line-height: 1.4;
}

body.home .steps b {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}

body.home .steps .small {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

body.home .after {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

/* The home page on a phone (design/DESIGN.md, 版面): one column; the first screen's dots under the headline. */
@media (width < 760px) {
  body.home .in {
    padding: 0;
  }

  body.home main > section {
    padding: var(--section-phone) var(--gutter-phone);
  }

  body.home .headline {
    font-size: calc((100vw - 2 * var(--gutter-phone)) / 9.3);
  }

  body.home .heading {
    font-size: var(--size-h2-phone);
  }

  body.home .kicker {
    font-size: var(--size-kicker-phone);
  }

  body.home .stress,
  body.home .claim,
  body.home .tenets dt {
    font-size: var(--size-lead-phone);
  }

  body.home .closing {
    font-size: var(--size-h3-phone);
    margin-top: 56px;
    padding-bottom: var(--section-phone);
  }

  body.home .button.big {
    width: 100%;
  }

  body.home .hero {
    padding-top: 20px;
    padding-bottom: 48px;
  }

  body.home .hero .in {
    display: flex;
    flex-direction: column;
  }

  body.home .hero .copy {
    display: contents;
  }

  body.home .hero .kicker {
    order: 1;
  }

  body.home .hero .headline {
    order: 2;
  }

  body.home .hero-field {
    order: 3;
    position: relative;
    inset: auto;
    height: 236px;
    margin: 22px calc(-1 * var(--gutter-phone)) 0;
  }

  body.home .hero .lede {
    order: 4;
  }

  body.home .hero .actions {
    order: 5;
    margin-top: 28px;
  }

  body.home .hero .again {
    order: 6;
  }

  body.home .hero .needs {
    order: 7;
  }

  body.home .legend {
    top: 8px;
    right: var(--gutter-phone);
    bottom: auto;
    gap: 2px;
    padding: 6px 10px;
    font-size: 12px;
  }

  body.home .split,
  body.home .qa .split,
  body.home .limit,
  body.home .tally,
  body.home .stack {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  body.home .why .head {
    position: static;
  }

  body.home .strip {
    max-width: 55%;
  }

  body.home .conclusion {
    margin-top: 48px;
  }

  body.home .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 40px;
  }

  body.home .laptop {
    width: min(320px, 100%);
  }

  body.home .base {
    margin: 0 -10px;
  }

  body.home .sent {
    padding: 40px 0 56px;
  }

  body.home .sent::before {
    left: 24px;
    right: auto;
    top: 0;
    bottom: 14px;
    border-top: 0;
    border-left: 2px dashed var(--ink);
  }

  body.home .sent::after {
    left: 18px;
    right: auto;
    top: auto;
    bottom: 0;
    border: 7px solid transparent;
    border-top: 12px solid var(--ink);
  }

  body.home .sent .label,
  body.home .sent .proof-card,
  body.home .sent .caption {
    margin-left: 52px;
  }

  body.home .sent .proof-card {
    width: min(240px, calc(100% - 52px));
  }

  body.home .tenets {
    margin-top: 56px;
  }

  body.home .tenets > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  body.home .limit {
    gap: 12px;
    margin-top: 48px;
  }

  body.home .tally {
    row-gap: 0;
    margin-top: 40px;
  }

  body.home .stat {
    margin-bottom: 32px;
  }

  body.home .stat .number {
    font-size: var(--size-figure-phone);
  }

  body.home .stat .unit {
    font-size: 17px;
  }

  body.home .ratio {
    margin-top: 0;
  }

  body.home .crowd {
    height: calc(11 * var(--dot-pitch));
  }

  body.home .stack {
    gap: 20px;
    margin-top: 56px;
  }

  body.home .layer {
    padding: 24px 22px;
  }

  /* One under another, 1, 2, 3: the line goes up to the one before. */
  body.home .up::before {
    top: auto;
    right: auto;
    bottom: 100%;
    left: 50%;
    width: 0;
    height: 20px;
    border-top: 0;
    border-left: 2px dashed var(--proof);
  }

  body.home .questions summary,
  body.faq .question summary {
    font-size: 17px;
  }
}

/* The FAQ (faq.md): the list of the categories, then every question, folded as the home page's are -- */

/* Laid out after design/DESIGN.md: as wide as the site, its edges the navigation bar's (.top .bar); the list of the
   categories a narrow column at the left that stays on the screen, the questions beside it. */
body.faq main {
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  padding: 0 calc(2 * var(--gutter)) 96px;
}

body.faq .title {
  font-size: var(--size-h2);
  line-height: 1.3;
  margin: 56px 0 0;
}

body.faq .faq-body {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: var(--column-gap);
  align-items: start;
  margin-top: 56px;
}

body.faq .categories {
  position: sticky;
  top: 24px;
  padding-top: 6px;
}

body.faq .categories ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

body.faq .categories a {
  display: block;
  padding: 10px 0 10px 18px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
}

body.faq .categories a:hover {
  color: var(--ink);
  text-decoration: underline;
}

body.faq .category {
  scroll-margin-top: 16px;
}

body.faq .category + .category {
  margin-top: 80px;
}

body.faq .category h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
  letter-spacing: normal;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

/* A question: a line under it, as on the home page; open, its answer under the question, then room before the line. */
body.faq .question {
  max-width: var(--measure);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px;
}

body.faq .question[open] {
  padding-bottom: 28px;
}

body.faq .question p,
body.faq .question ul.dots {
  margin: 12px 0 0;
}

body.faq .question summary + p,
body.faq .question summary + ul.dots {
  margin-top: 0;
}

body.faq .question strong {
  color: var(--ink);
}

body.faq .question ul.dots li {
  margin: 12px 0 0;
}

ul.dots {
  margin: 0 0 10px;
  padding-left: 1.4em;
  list-style-type: "·  ";
}

ul.dots li {
  margin-bottom: 6px;
}

/* How to verify (verify.md) ------------------------------------------------------------- */

/* Laid out after design/DESIGN.md and design/screens/verify-*.png: what it checks and what it does not side by side
   under a line of ink; the AI assistant's paragraph on the left of the prompt; doing it yourself under a thin line.
   The title and the paragraph under it are the ones of what a card proof needs (body.prepare). */
body.verify .checks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--column-gap);
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

/* The two lists' headings one size under the sections' (design/DESIGN.md, 字: 強調句 and 小標題). */
body.verify .checks h2 {
  font-size: var(--size-lead);
  line-height: var(--leading-h3);
  margin: 0 0 14px;
}

body.verify .checks ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.verify .checks li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

body.verify .checks li:first-child {
  border-top: 1px solid var(--line);
}

body.verify .checks strong {
  color: var(--ink);
}

body.verify .assistant {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--column-gap);
  align-items: start;
  margin-top: 88px;
}

body.verify .assistant h2,
body.verify .yourself h2 {
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
  margin: 0 0 14px;
}

body.verify code,
body.verify .yourself a {
  font-family: var(--font-mono);
}

body.verify .warning code {
  padding: 1px 5px;
  border-radius: var(--radius);
  background: var(--soft);
  font-size: 0.92em;
}

/* The prompt: only shown here (design/DESIGN.md, --soft), no frame. */
body.verify .prompt-box {
  padding: 24px 26px 20px;
  border-radius: var(--radius-panel);
  background: var(--soft);
}

body.verify .prompt {
  margin: 0;
  color: var(--ink);
  font: 15px/var(--leading-body) var(--font-mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.verify .copy-row {
  display: flex;
  justify-content: flex-end;
  margin: 18px 0 0;
}

/* A copy button (/copy.js shows it): outlined, the raspberry red; one that is also a .button (hang.md) is that. */
button.copy:not(.button) {
  min-height: var(--min-target);
  padding: 0 20px;
  border: 1.5px solid var(--you);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--you);
  font: 700 15px var(--font-body);
  cursor: pointer;
}

/* The prompt's: a secondary button, an ink frame on white (design/DESIGN.md, 元件). */
body.verify button.copy {
  min-height: 48px;
  padding: 0 26px;
  border-color: var(--ink);
  color: var(--ink);
  font-size: 16px;
}

body.verify .yourself {
  margin-top: 88px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

body.verify .yourself p {
  margin: 0;
}

/* Hanging a proof on a profile (hang.md; design/screens/hang-proof-*.png, hang-*.png) ------------
   Laid out after design/DESIGN.md in the one narrow column (--measure): the title, the link and its two
   buttons, the four steps under a line of ink, apart by thin lines, each with its picture under its words;
   then the two lines of part 3 and the picture of the result, or the button of the page without a proof. */

body.hang .title {
  font-size: var(--size-h2);
  line-height: var(--leading-h2);
  margin: 56px 0 24px;
}

/* The account is a part of the title, in its face (design/screens/hang-proof-*.png). */
body.hang .title .account {
  overflow-wrap: anywhere;
}

body.hang .backlink {
  display: inline-block;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius);
}

body.hang .actions {
  gap: 12px;
  margin: 0 0 44px;
}

body.hang .actions .button {
  margin: 0;
}

/* 複製連結 is the page's one main button (design/DESIGN.md, 元件): a .button, with a <button>'s own frame taken off. */
body.hang button.copy.button {
  border: 0;
  cursor: pointer;
}

/* A second button (design/DESIGN.md, 元件): a frame of ink on white. */
.button.quiet {
  background: var(--bg);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.button.quiet:hover {
  background: var(--soft);
  color: var(--ink);
}

body.hang .steps {
  gap: 0;
  border-top: 1px solid var(--ink);
}

body.hang .steps li {
  grid-template-columns: 24px 1fr;
  align-items: baseline;
  padding: 24px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

body.hang .steps .n {
  font-size: 22px;
}

body.hang .steps .say {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
}

/* The pictures (hang.md, 示意圖): about as wide as a phone, under the words of their step, and the result's under
   the two lines of part 3. A screen is a white card with a thin frame, nothing of Threads' own look; what is not
   read is a grey bar. Where to press is framed in raspberry, its label raspberry with white letters
   (design/DESIGN.md, 顏色: --you). */
body.hang .sketch {
  max-width: 360px;
}

/* More than the panel's own margin (0, the rule shared with /check below): .steps outweighs it. */
body.hang .steps .sketch {
  grid-column: 2;
  margin-top: 16px;
}

body.hang .sketch.result {
  margin-top: 24px;
}

body.hang .sketch .blank {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}

body.hang .profile .name.blank {
  width: 112px;
  height: 12px;
  margin: 6px 0 10px;
  border-radius: 6px;
}

body.hang .profile .followers.blank {
  width: 72px;
}

body.hang .sketch .profile .buttons {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

body.hang .sketch .profile .buttons > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  font-size: var(--size-small);
  font-weight: 700;
  color: var(--ink);
}

body.hang .sketch .profile .buttons > .blank {
  height: auto;
  background: none;
}

body.hang .sketch .profile .buttons > .blank::after {
  content: "";
  width: 56%;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}

body.hang .sketch .press {
  border: 1.5px solid var(--you);
  border-radius: var(--radius);
}

body.hang .sketch .profile .buttons > .press {
  border: 1.5px solid var(--you);
}

body.hang .sketch .tag {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: var(--size-small);
  font-weight: 700;
  line-height: var(--leading-small);
}

body.hang .sketch .sketch-body .tag.press {
  border: 0;
  background: var(--you);
}

body.hang .sketch .end {
  text-align: right;
}

body.hang .sketch .screen {
  padding: 4px 16px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

body.hang .sketch .screen .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}

body.hang .sketch .screen .row:last-child {
  border-bottom: 0;
}

body.hang .sketch .screen .row .blank {
  width: 40%;
}

body.hang .sketch .screen .row.press {
  margin-top: 4px;
  padding: 0 10px;
  border: 1.5px solid var(--you);
}

body.hang .sketch .screen .tag + .row {
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

/* A chevron towards the right: two sides of a square, turned. */
body.hang .sketch .screen .chevron {
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-top: 1.5px solid var(--mute);
  border-right: 1.5px solid var(--mute);
  transform: rotate(45deg);
}

body.hang .sketch .screen .screen-title {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

body.hang .sketch .screen .screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

body.hang .sketch .screen .screen-top .screen-title {
  padding: 0;
  border: 0;
}

body.hang .sketch .screen .screen-top .press {
  padding: 2px 10px;
  font-weight: 700;
}

body.hang .sketch .screen .field-label {
  margin-top: 12px;
  font-size: var(--size-small);
  color: var(--mute);
}

body.hang .sketch .screen .end + .field-label {
  margin-top: 4px;
}

body.hang .sketch .screen .field {
  min-height: 40px;
  margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  overflow-wrap: anywhere;
}

body.hang .sketch .screen .field.press {
  border: 1.5px solid var(--you);
}

body.hang .done {
  margin: 32px 0 4px;
  line-height: 1.6;
}

body.hang .done + .small {
  line-height: var(--leading-small);
}

body.hang .none-yet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 32px 0 0;
}

body.hang .none-yet .button {
  margin: 0;
}

/* The demonstration (hang.md, 示範; design/motion/README.md): the five screens in a row, 360 wide each, and a
   picture of 4:5 that looks at a part of the row. The page sends it hidden; the player (/demo.js) shows it,
   moves the row and plays what the timeline says. Lengths inside the row are the row's own: the camera scales them.
   What the player changes (the row's place, the marks, the press, the rings, what a change of the screens shows)
   starts here as it is before anything has happened. */
body.hang .demo {
  margin: 0 0 32px;
}

body.hang .demo-picture {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soft);
  border-radius: var(--radius-panel);
}

body.hang .demo-row {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

body.hang .demo-row p {
  margin: 0;
}

body.hang .demo-control {
  margin: 12px 0 0;
}

body.hang .demo-control .button {
  margin: 0;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

body.hang .shot {
  position: absolute;
  top: 0;
  width: 360px;
  height: 440px;
  padding: 22px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
}

body.hang .shot.s1 {
  left: 440px;
}

body.hang .shot.s2 {
  left: 880px;
}

body.hang .shot.s3 {
  left: 1320px;
}

body.hang .shot.s4 {
  left: 1760px;
}

/* An account of 30 characters and a long address stay on their line, cut at the end. */
body.hang .shot .clip {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.hang .shot .blank {
  display: block;
  height: 12px;
  background: var(--line);
  border-radius: 6px;
}

/* What to press: the frame, the ink that darkens it, the ring. */
body.hang .shot [data-box] {
  position: relative;
}

body.hang .shot .mark,
body.hang .shot .found {
  position: absolute;
  inset: -6px;
  border: 2px solid var(--you);
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
}

body.hang .shot .found-tag {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 6px 9px;
  background: var(--you);
  border-radius: 6px;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
}

/* The line a visitor looks for is framed in ink, as on the picture of the result. */
body.hang .shot .found {
  border-color: var(--ink);
}

body.hang .shot .found-tag {
  background: var(--ink);
}

body.hang .shot .pressed {
  position: absolute;
  inset: 0;
  background: var(--ink);
  border-radius: inherit;
  opacity: 0;
}

body.hang .shot .ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border: 3px solid var(--you);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* The first screen: this page's own title, link and two buttons. */
body.hang .shot .heading {
  margin: 26px 0 22px;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: 25px;
}

body.hang .shot .heading > span {
  display: block;
}

body.hang .shot .heading .cut {
  display: flex;
  gap: 0.25em;
  white-space: nowrap;
}

body.hang .shot .address {
  padding: 12px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.hang .shot .pair {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

body.hang .shot .pair > span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: var(--radius);
  font-weight: 700;
}

body.hang .shot .pair .main {
  background: var(--you);
  color: var(--bg);
}

body.hang .shot .pair .second {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

body.hang .shot .swap {
  position: relative;
}

body.hang .shot .swap .over {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
}

body.hang .shot .lines {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

body.hang .shot .lines .blank:nth-child(1) {
  width: 78%;
}

body.hang .shot .lines .blank:nth-child(2) {
  width: 52%;
}

body.hang .shot .lines .blank:nth-child(3) {
  width: 64%;
}

body.hang .shot .lines .blank:nth-child(4) {
  width: 86%;
}

/* The profile. The line of the link comes over what is under it, which moves down to make room. */
body.hang .shot .who {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 18px;
}

body.hang .shot .who > span:first-child {
  min-width: 0;
}

body.hang .shot .who .name {
  width: 120px;
  height: 18px;
}

body.hang .shot .who .handle {
  display: block;
  margin-top: 10px;
  font-size: 16px;
}

body.hang .shot .avatar {
  flex: none;
  width: 64px;
  height: 64px;
  background: var(--line);
  border-radius: 50%;
}

body.hang .shot .bio {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

body.hang .shot .bio .blank:nth-child(1) {
  width: 82%;
}

body.hang .shot .bio .blank:nth-child(2) {
  width: 60%;
}

body.hang .shot .below {
  position: relative;
}

body.hang .shot .link-row {
  position: absolute;
  left: 0;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-weight: 700;
  opacity: 0;
}

body.hang .shot .link-icon {
  flex: none;
  width: 16px;
  height: 8px;
  border: 1.5px solid var(--mute);
  border-radius: 4px;
  transform: rotate(-45deg);
}

body.hang .shot .followers {
  width: 34%;
  margin-top: 16px;
}

body.hang .shot .buttons {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

body.hang .shot .buttons > span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border: 1px solid var(--dot);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}

body.hang .shot .buttons .blank {
  width: 56%;
}

/* The two lists and the form. */
body.hang .shot .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  margin-bottom: 10px;
  font-size: 17px;
}

body.hang .shot .top .act {
  padding: 6px 4px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
}

/* The links' top has both ways back; the player says which platform the demonstration shows. On the iPhone's, 完成
   at the right is what to press and ✕ is not there; on Android's, ✕ at the left is, and 完成 is grey. */
body.hang .demo[data-variant="ios"] .shot [data-box="x3"] {
  display: none;
}

body.hang .demo[data-variant="android"] .shot [data-box="done3"] {
  color: var(--dot);
}

body.hang .shot .top .act.close {
  padding: 7px 8px;
  font-size: 18px;
  line-height: 1;
}

body.hang .shot .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 54px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
}

body.hang .shot .row .blank {
  width: 96px;
}

body.hang .shot .row .chevron {
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-top: 1.5px solid var(--mute);
  border-right: 1.5px solid var(--mute);
  transform: rotate(45deg);
}

body.hang .shot .row.added {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  opacity: 0;
}

body.hang .shot .field-label {
  margin: 16px 0 6px;
  color: var(--mute);
  font-size: 12px;
}

body.hang .shot .field {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--dot);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

body.hang .shot .field .clip {
  flex: 1;
  opacity: 0;
}

/* Where the paste bubble is: the box the timeline presses. The bubble in it comes and goes; its ring stays to the end. */
body.hang .shot .paste-at {
  position: absolute;
  left: 18px;
  top: -44px;
  border-radius: 9px;
}

body.hang .shot .paste {
  display: block;
  position: relative;
  padding: 9px 16px;
  background: var(--ink);
  border-radius: 9px;
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 14px;
  opacity: 0;
}

body.hang .shot .paste::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: var(--ink);
  transform: rotate(45deg);
}

/* With the player: the demonstration in place of the pictures, beside the four steps; the step it is showing is
   marked. The column is wider for the two. */
body.hang main.with-demo {
  max-width: calc(920px + 2 * var(--gutter));
}

body.hang .playing .steps .sketch,
body.hang .playing .sketch.result {
  display: none;
}

body.hang .playing .how {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

body.hang .playing .steps li {
  padding: 20px 14px;
}

body.hang .playing .steps li.now {
  background: var(--soft);
  box-shadow: inset 3px 0 0 var(--you);
}

/* What a card proof needs (/prepare) ------------------------------------------- */

/* Laid out after design/DESIGN.md: as wide as the site, its edges the navigation bar's (.top .bar); what to have and the four steps side by side, the usual troubles under them. */
body.prepare main,
body.verify main,
body.check main,
body.privacy main,
body.proof main,
body.account main,
body.proof-missing main,
body.account-not-a-name main {
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  padding: 0 calc(2 * var(--gutter)) 72px;
}

body.prepare .title,
body.verify .title,
body.check .title {
  font-size: var(--size-h2);
  line-height: 1.3;
  margin: 56px 0 20px;
}

body.prepare .intro p,
body.verify .intro p,
body.check .intro p {
  max-width: var(--measure);
}

body.prepare h2,
body.check h2 {
  font-size: 24px;
  margin: 0 0 16px;
}

body.prepare .columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--column-gap);
  margin-top: 56px;
}

body.prepare .columns h2,
body.check .walk h2,
body.check .tells h2 {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}

body.prepare .items {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.prepare .items > div,
body.prepare .items > li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

body.prepare .items dt,
body.prepare .items b {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

body.prepare .items dd {
  margin: 0;
}

body.prepare ol.items li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
}

body.prepare ol.items .n {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
}

body.prepare ol.items p {
  margin: 0;
  font-size: 16px;
}

body.prepare .situations,
body.check .situations {
  max-width: 800px;
  margin-top: 96px;
}

body.prepare .situation,
body.check .situation {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

body.prepare .situation h3,
body.check .situation h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 12px;
}

body.prepare .situation p,
body.check .situation p {
  margin: 0;
}

/* The privacy statement (/privacy) ------------------------------------------- */

/* The width of what a card proof needs (body.prepare main) and its title; then the fourteen sections one under another, each
   heading over a line of ink as the FAQ's categories are, the text at the measure. */
body.privacy .title {
  font-size: var(--size-h2);
  line-height: 1.3;
  margin: 56px 0 8px;
}

body.privacy .intro .small {
  margin-bottom: 20px;
}

body.privacy .intro p,
body.privacy .part p,
body.privacy .part ul.dots {
  max-width: var(--measure);
}

body.privacy .part {
  margin-top: 64px;
}

body.privacy .part h2 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
  letter-spacing: normal;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

body.privacy .part p,
body.privacy .part ul.dots {
  margin: 0 0 14px;
}

body.privacy .part ul.dots li {
  margin: 0 0 10px;
}

body.privacy strong {
  color: var(--ink);
}

/* How to check an account's proof (/check) ------------------------------------------- */

/* The width and the title of what a card proof needs. Each step a row: its words on the left, its picture on the right. */
body.check .walk {
  margin-top: 56px;
}

body.check .step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.check .step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: var(--column-gap);
  align-items: start;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

body.check .step .n {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-h2);
  line-height: 1;
  color: var(--ink);
}

body.check .step h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
  margin: 16px 0 12px;
}

body.check .step-text > p {
  margin: 0;
}

/* 惡意手法: closed until it is opened, a thin line above it; its arrow is the one of the home page's questions. */
body.check .trick {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

body.check .trick summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--min-target);
  padding: 10px 32px 10px 0;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

body.check .trick summary::-webkit-details-marker {
  display: none;
}

body.check .trick p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: var(--leading-small);
}

/* A picture, on how to check an account's proof and on hanging a proof (src/pages/sketch.ts): a rounded panel on the soft grey, its title a small line in the secondary colour. Ink, text, secondary, line and soft only; on hanging a proof, raspberry where to press (below). */
:is(body.check, body.hang) .sketch {
  margin: 0;
  padding: 24px;
  background: var(--soft);
  border-radius: var(--radius-panel);
}

:is(body.check, body.hang) .sketch figcaption {
  margin: 0 0 16px;
  font-size: var(--size-small);
  line-height: var(--leading-small);
  color: var(--mute);
}

:is(body.check, body.hang) .sketch p {
  margin: 0;
}

:is(body.check, body.hang) .sketch .sketch-note {
  margin-top: 16px;
  font-size: 16px;
  line-height: var(--leading-small);
}

/* The example profile (check.md, steps 1 and 3; hang.md, pictures 1 and the result): a white card with a thin frame, nothing of Threads' own look. */
:is(body.check, body.hang) .profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 16px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  line-height: 1.5;
}

:is(body.check, body.hang) .profile .name {
  display: block;
  font-size: 18px;
  color: var(--ink);
}

:is(body.check, body.hang) .profile .handle {
  display: block;
  font-size: 15px;
  color: var(--text);
}

:is(body.check, body.hang) .profile .handle.same {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

:is(body.check, body.hang) .profile .avatar {
  grid-column: 2;
  grid-row: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--line);
}

:is(body.check, body.hang) .profile .bio {
  grid-column: 1 / -1;
  width: 88%;
  height: 10px;
  margin-top: 12px;
  border-radius: 5px;
  background: var(--line);
}

:is(body.check, body.hang) .profile .bio.short {
  width: 56%;
  margin-top: 8px;
}

:is(body.check, body.hang) .profile .link-row {
  grid-column: 1 / -1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 12px;
  padding: 4px 10px 4px 0;
  border: 2px solid transparent;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

:is(body.check, body.hang) .profile .link-row.boxed {
  padding-left: 10px;
  border-color: var(--ink);
  border-radius: var(--radius);
}

/* A link's mark: a link of a chain, drawn with a border. */
:is(body.check, body.hang) .profile .link-icon {
  flex: none;
  width: 16px;
  height: 8px;
  border: 1.5px solid var(--mute);
  border-radius: 4px;
  transform: rotate(-45deg);
}

:is(body.check, body.hang) .profile .tag {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 8px;
  padding: 2px 10px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--bg);
  font-size: var(--size-small);
  font-weight: 700;
}

:is(body.check, body.hang) .profile .followers {
  grid-column: 1 / -1;
  margin-top: 12px;
  font-size: var(--size-small);
  color: var(--mute);
}

/* Step 2: three address bars, each with its label on the left; the characters that are too many in ink with white letters. */
body.check .address {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.check .sketch .address-note + .address {
  margin-top: 16px;
}

body.check .address .verdict {
  flex: none;
  min-width: 84px;
  padding: 4px 8px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: var(--size-small);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: var(--ink);
  background: var(--bg);
}

body.check .address.right .verdict {
  color: var(--bg);
  background: var(--ink);
}

body.check .address .bar {
  flex: 1;
  min-width: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  color: var(--mute);
  overflow-wrap: anywhere;
}

body.check .address.right .bar {
  border: 2px solid var(--ink);
  color: var(--ink);
}

body.check .address .extra {
  padding: 0 2px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--bg);
}

body.check .sketch .address-note {
  margin-top: 6px;
  padding-left: 94px;
  font-size: var(--size-small);
  line-height: var(--leading-small);
  color: var(--mute);
}

body.check .sketch .not-these {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--size-small);
  font-weight: 700;
  color: var(--text);
}

body.check .sketch .not-these + .address {
  margin-top: 12px;
}

/* Step 3: the profile and the page of the card side by side, an = between them. */
body.check .compare .sketch-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

body.check .sketch .side-label {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--mute);
}

body.check .compare .profile {
  padding: 14px;
  gap: 0 10px;
}

body.check .compare .profile .name {
  font-size: 16px;
}

body.check .compare .profile .avatar {
  width: 36px;
  height: 36px;
}

body.check .compare .profile .link-row,
body.check .compare .profile .followers {
  font-size: 11px;
}

body.check .compare .equals {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  text-align: center;
  align-self: center;
}

body.check .proof-sample {
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}

body.check .sketch .ordinal {
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--mute);
}

body.check .sketch .sample-title {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

body.check .sketch .sample-account {
  margin-top: 10px;
  font-weight: var(--weight-account);
  font-size: 30px;
  line-height: var(--leading-account);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

/* Step 4: two lines of the page of a card's section 2, in its style, the same for any number of days. */
body.check .sketch .when {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
  color: var(--ink);
}

body.check .sketch .when + .when {
  margin-top: 12px;
}

body.check .sketch .when .date {
  margin-left: 8px;
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--size-body);
  color: var(--mute);
}

/* What a proof tells you: three side by side. */
body.check .tells {
  margin-top: 96px;
}

body.check .three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

body.check .three h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: 22px;
  line-height: 1.5;
  margin: 8px 0 10px;
}

body.check .three p {
  margin: 0;
  font-size: 16px;
}

/* The page of a card (proof-page.md) and the page of an account (account-page.md) ---------------------- */

/* The first screen: sections 1 and 2 (or the list of an account) on the left, the account owner's question and the profile on the right. */
body.proof .first,
body.account .first,
body.proof .second {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: var(--column-gap);
  align-items: start;
}

body.proof .first,
body.account .first {
  margin-top: 56px;
}

body.proof .title,
body.account .title {
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
  margin: 0;
}

/* The account: the largest words of the first screen (design/DESIGN.md, 字), on both pages. */
body.proof .title .account,
body.account .title .account {
  display: block;
  margin-top: 20px;
  font-family: var(--font-body);
  font-weight: var(--weight-account);
  font-size: var(--size-account);
  line-height: var(--leading-account);
  overflow-wrap: anywhere;
}

/* An account longer than 12 characters (src/pages/proof.ts, LONG_ACCOUNT): one size smaller, and broken anywhere only when even that does not fit. */
body.proof .title .account.long,
body.account .title .account.long {
  font-size: var(--size-h2);
}

/* The ordinal (proof-page.md, section 1): a small line in the secondary colour right above the title, never beside the account. */
body.proof .ordinal {
  margin: 0 0 12px;
  font-size: var(--size-kicker);
  color: var(--mute);
}

body.proof .scope {
  max-width: var(--measure);
  margin: 24px 0 0;
  line-height: var(--leading-small);
}

/* The last card proof: as prominent as the title, the same for any number of days; the date one size smaller. */
body.proof .last {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

body.proof .last .when {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
  color: var(--ink);
  margin-bottom: 12px;
}

body.proof .last .when .date {
  margin-left: 8px;
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--size-body);
  color: var(--mute);
}

body.proof .last .small {
  max-width: var(--measure);
  line-height: var(--leading-small);
}

/* The question of the account owner: a heading, the sentence, the address right above the profile. */
body.proof .ask,
body.account .ask {
  font-size: var(--size-lead);
  line-height: var(--leading-h3);
  margin: 0 0 6px;
}

body.proof .owner > p:not(.small, .backlink),
body.account .owner > p {
  font-size: var(--size-kicker);
  line-height: var(--leading-kicker);
  margin-bottom: 16px;
}

body.proof .backlink {
  display: inline-block;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius);
}

body.proof iframe.threads-profile,
body.account iframe.threads-profile {
  max-width: none;
  margin-bottom: 16px;
}

body.proof .owner .small {
  line-height: var(--leading-small);
  margin-bottom: 8px;
}

body.proof .owner .yours {
  margin-top: 20px;
}

/* Sections 4 and 5 side by side, under a line across the page. */
/* Sections apart by --section each side of a line (design/DESIGN.md, 版面). */
body.proof .second,
body.proof .mine {
  margin-top: var(--section);
  padding-top: var(--section);
  border-top: 1px solid var(--line);
}

body.proof .second .record {
  grid-column: 1;
}

body.proof .second .how-to-check {
  grid-column: 2;
}

/* After several cards, section 5 alone: on the left, as the sections above it. */
body.proof .second .how-to-check:only-child {
  grid-column: 1;
}

body.proof .record h2,
body.proof .how-to-check h2 {
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
  margin: 0 0 20px;
}

body.proof .record h2 {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 0;
}

/* The three facts: a label on the left, the value on the right. */
body.proof .facts {
  margin: 0;
}

body.proof .facts > div {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 0 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

body.proof .facts dt {
  color: var(--mute);
}

body.proof .facts dd {
  margin: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

body.proof .history summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  padding: 20px 0 8px;
  min-height: var(--min-target);
}

body.proof .log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  font-size: var(--size-kicker);
}

body.proof .log li {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

body.proof .log time,
.rows time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Several cards behind one short ID: each its own first screen and record, under its longer beginning of the scoped ID. */
body.proof .many {
  margin-top: 56px;
}

body.proof .many .title {
  margin-bottom: 8px;
}

body.proof .one-of-many {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

body.proof .one-of-many .prefix {
  margin: 0;
  font-size: var(--size-kicker);
  color: var(--mute);
}

body.proof .one-of-many .first {
  margin-top: 24px;
}

/* Getting one's own: under a line across the page, no box. */
body.proof .mine p:first-child {
  max-width: var(--measure);
}

/* The page of an account: the count not enlarged; each card a row, the link right after its beginning of the scoped ID. */
body.account .title .line {
  display: block;
}

body.account .count {
  margin: 28px 0 0;
  color: var(--ink);
}

body.account .cards {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

body.account .cards li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

body.account .cards p {
  margin: 0;
}

body.account .id-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  color: var(--ink);
}

body.account .id-line a {
  margin-left: auto;
}

body.account .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 4px;
  color: var(--mute);
  font-size: var(--size-kicker);
  font-variant-numeric: tabular-nums;
}

body.account .cards + .small {
  margin-top: 16px;
  line-height: var(--leading-small);
}

/* No card: the left column only. */
body.account main > .lookup {
  margin-top: 56px;
}

body.account .lookup > p,
body.proof-missing .missing p,
body.account-not-a-name .missing p {
  max-width: var(--measure);
}

/* A short ID that resolves to no card, a name that cannot be a Threads username: the heading and margins of the two pages they stand in for. */
body.proof-missing .missing,
body.account-not-a-name .missing {
  margin-top: 56px;
}

body.proof-missing .title,
body.account-not-a-name .title {
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
  margin: 0 0 16px;
}

/* A narrow screen (design/DESIGN.md, 版面): below --breakpoint, which a media query cannot read, so it is written here. */
@media (width < 760px) {
  body {
    font-size: var(--size-body-phone);
  }

  main {
    padding: 0 var(--gutter-phone) 56px;
    max-width: none;
  }

  .test-proof-log {
    padding: 8px var(--gutter-phone);
    font-size: var(--size-kicker-phone);
  }

  .top,
  .foot {
    padding: 0 var(--gutter-phone);
  }

  .top .bar,
  .foot .bar {
    padding-left: 0;
    padding-right: 0;
  }

  .top .bar {
    flex-wrap: nowrap;
    min-height: 64px;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 0;
  }

  .top .wide {
    display: none;
  }

  .menu {
    display: block;
  }

  .foot .bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 24px;
    padding-top: 28px;
    padding-bottom: 40px;
  }

  .foot .site {
    grid-column: 1 / -1;
    margin: 0 0 10px;
  }

  .foot a {
    display: flex;
    align-items: center;
    min-height: 48px;
    border-top: 1px solid var(--line);
  }

  iframe.threads-profile {
    height: 380px;
  }

  body.prepare main,
  body.verify main,
  body.check main,
  body.privacy main,
  body.proof main,
  body.account main,
  body.proof-missing main,
  body.account-not-a-name main {
    padding: 0 var(--gutter-phone) 56px;
  }

  /* How to verify: everything one column; the copy button as wide as the prompt. */
  body.verify .checks {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-top: 48px;
  }

  body.verify .checks h2 {
    font-size: var(--size-lead-phone);
  }

  body.verify .assistant {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 56px;
  }

  body.verify .assistant h2,
  body.verify .yourself h2 {
    font-size: var(--size-h3-phone);
  }

  body.verify .prompt-box {
    padding: 18px 16px 16px;
  }

  body.verify .prompt {
    font-size: 14px;
  }

  body.verify button.copy {
    width: 100%;
  }

  body.verify .yourself {
    margin-top: 56px;
  }

  body.prepare .title,
  body.verify .title,
  body.check .title {
    font-size: var(--size-h2-phone);
    margin-top: 28px;
  }

  body.prepare .columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
    margin-top: 36px;
  }

  body.prepare .situations,
  body.check .situations {
    margin-top: 56px;
  }

  body.prepare .situation h3,
  body.check .situation h3 {
    font-size: 19px;
  }

  /* How to check an account's proof: each step's words above its picture; the two sides of step 3, and the three of what a proof tells you, one under another. */
  body.check .walk {
    margin-top: 36px;
  }

  body.check .step {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 36px 0;
  }

  body.check .step .n {
    font-size: var(--size-h2-phone);
  }

  body.check .step h3 {
    font-size: var(--size-h3-phone);
    margin-top: 12px;
  }

  body.check .sketch,
  body.hang .sketch {
    padding: 20px 16px;
  }

  body.check .address {
    flex-wrap: wrap;
    gap: 8px;
  }

  body.check .address .bar {
    flex-basis: 100%;
    padding: 8px 12px;
    font-size: 14px;
  }

  body.check .sketch .address-note {
    padding-left: 12px;
  }

  body.check .compare .sketch-body {
    grid-template-columns: minmax(0, 1fr);
  }

  body.check .sketch .when {
    font-size: var(--size-h3-phone);
  }

  body.check .sketch .when .date {
    font-size: 15px;
  }

  body.check .tells {
    margin-top: 56px;
  }

  body.check .three {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  body.check .three h3 {
    font-size: 19px;
  }

  /* Hanging a proof: the two buttons share the row; the button of the page without a proof is as wide as the screen, under its question. */
  body.hang .title {
    font-size: var(--size-h2-phone);
    margin: 28px 0 20px;
  }

  body.hang .actions {
    flex-wrap: nowrap;
    margin-bottom: 40px;
  }

  body.hang .actions .button {
    flex: 1 1 0;
    min-width: 0;
  }

  /* The demonstration above the four steps, as wide as the column. */
  body.hang .playing .how {
    display: block;
  }

  body.hang .steps li {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  body.hang .steps .say {
    font-size: var(--size-body-phone);
  }

  /* The pictures under the number too: the whole link fits in 網址. */
  body.hang .sketch {
    max-width: none;
  }

  body.hang .steps .sketch {
    grid-column: 1 / -1;
  }

  body.hang .none-yet {
    flex-direction: column;
    align-items: stretch;
  }

  /* The FAQ: the list of the categories above the questions, two to a row. */
  body.faq main {
    padding: 0 var(--gutter-phone) 56px;
  }

  body.faq .title {
    font-size: var(--size-h2-phone);
    margin-top: 28px;
  }

  body.faq .faq-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-top: 28px;
  }

  body.faq .categories {
    position: static;
    padding-top: 0;
  }

  body.faq .categories ol {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  body.faq .categories li {
    border-bottom: 1px solid var(--line);
  }

  body.faq .categories a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0;
  }

  body.faq .category + .category {
    margin-top: 56px;
  }

  body.faq .category h2 {
    font-size: var(--size-h3-phone);
  }

  body.faq .question[open] {
    padding-bottom: 24px;
  }

  body.proof .first,
  body.account .first,
  body.proof .second {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  body.proof .first,
  body.account .first,
  body.proof .many,
  body.account main > .lookup {
    margin-top: 28px;
  }

  body.proof .second .record,
  body.proof .second .how-to-check {
    grid-column: 1;
  }

  body.proof .second,
  body.proof .mine {
    margin-top: var(--section-phone);
    padding-top: var(--section-phone);
  }

  body.proof .title,
  body.account .title,
  body.proof .last .when,
  body.proof .record h2,
  body.proof .how-to-check h2 {
    font-size: var(--size-h3-phone);
  }

  body.proof .title .account,
  body.account .title .account {
    margin-top: 12px;
    font-size: var(--size-account-phone);
  }

  body.proof .title .account.long,
  body.account .title .account.long {
    font-size: var(--size-h2-phone);
  }

  body.proof .last .when .date {
    font-size: var(--size-body-phone);
  }

  body.proof .ask,
  body.account .ask {
    font-size: var(--size-lead-phone);
  }

  body.proof .facts > div {
    grid-template-columns: minmax(0, 1fr);
  }

  body.proof .owner > p:not(.small, .backlink),
  body.account .owner > p,
  body.account .meta,
  body.proof .log,
  body.proof .ordinal,
  body.proof .one-of-many .prefix {
    font-size: var(--size-kicker-phone);
  }

  body.proof-missing .missing,
  body.account-not-a-name .missing {
    margin-top: 28px;
  }

  body.proof-missing .title,
  body.account-not-a-name .title {
    font-size: var(--size-h3-phone);
  }

  body.account .id-line a {
    margin-left: 0;
  }

  body.proof .one-of-many {
    margin-top: 56px;
  }

  body.proof .mine .button {
    display: flex;
    width: 100%;
  }
}
