/*
 * 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 a 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 a 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 lock or shield,
 * nothing that looks like a platform's verified badge; the one check mark
 * is the island proof card's, on the facts checked, each with its day
 * (design/DESIGN.md, 記號), never beside an account. The
 * raspberry red is for links and buttons; teal is the default card face's only.
 *
 * Headings are in GenRyuMin2 TW, the slices of design/fonts/web/, which the
 * site sends itself (/fonts/, a copy: scripts/site-files.ts): the style
 * sheet imported here has one @font-face per slice, with its
 * unicode-range, so a page downloads only the slices of the characters its
 * headings have. The body and the monospace are the system's. The
 * Content-Security-Policy of these pages allows these files, that font and
 * nothing inline (README.md, "頁面送的標頭").
 */
@import url("/fonts/GenRyuMin2TW-B.css");

:root {
  --bg: #FFFFFF;
  --ink: #1A1A1A;
  --text: #1A1A1A;
  --mute: #6B6B6B;
  --line: #E2E2E2;
  --soft: #F6F7F7;
  --dot: #CDD2D6;
  --proof: #1D6B78;
  --proof-soft: #EEF5F6;
  --you: #BF2150;
  --you-hover: #A51A44;
  --stale: #8A5A00;
  --mark: #FFE45C;
  --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: 68px;
  --size-h1-phone: 40px;
  --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-heading: 34px;
  --size-heading-phone: 25px;
  --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: 84px;
  --section-phone: 52px;
  --column-gap: 80px;
  --max-width: 1280px;
  --measure: 32em;
  --button-height: 56px;
  --radius: 4px;
  --radius-panel: 12px;
  --radius-card: 4.2% / 6.66%;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.18), 0 18px 34px -14px rgb(0 0 0 / 0.38);
  --shadow-card-on-top: 0 1px 2px rgb(0 0 0 / 0.18), 0 16px 36px rgb(0 0 0 / 0.24);
  --card-shade: radial-gradient(130% 105% at 0% 100%, rgb(12 10 28 / 0.86), rgb(12 10 28 / 0.62) 40%, rgb(12 10 28 / 0) 74%), linear-gradient(180deg, rgb(12 10 28 / 0.55), rgb(12 10 28 / 0) 30%);
  --mark-light-card: #D94A72;
  --mark-light-chip: #1B1B1F;
  --mark-light-island: #F4F1EA;
  --avatar-1: #D9A441;
  --avatar-1-light: #F1D48A;
  --avatar-2: #4C5FA8;
  --avatar-2-light: #9AA7DD;
  --avatar-3: #6F9A5B;
  --avatar-3-light: #BBD4A2;
  --avatar-4: #9C7BC0;
  --avatar-4-light: #D9C8EA;
  --avatar-5: #5BA7D1;
  --avatar-5-light: #C3E2F3;
  --avatar-6: #E08757;
  --avatar-6-light: #F4C5A6;
  --avatar-7: #5F6B7A;
  --avatar-7-light: #B4BDC8;
  --avatar-8: #A8795A;
  --avatar-8-light: #E6D2BF;
  --avatar-9: #8A8F3C;
  --avatar-9-light: #D9DCA6;
  --avatar-10: #4A4A4A;
  --avatar-10-light: #B0B0B0;
  --card-ratio: 85.6 / 54;
  --min-target: 44px;
  --focus-ring: 3px;
  --dot-pitch: 18px;
}

* {
  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. Below --breakpoint-nav the bar shows the name, the
   button and the menu, a <details> with the same links; on a phone the name
   and the menu, with the button in it too. */

.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);
}

/* A desktop too narrow for the five links (--breakpoint-nav, which a media query cannot read): they go into the
   menu, the button stays in the bar (design/DESIGN.md, 元件). */
@media (width < 1100px) {
  .top .links {
    display: none;
  }

  .menu {
    display: block;
  }

  .menu .nav-button {
    display: none;
  }
}

.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. Threads draws its own card with its own frame at the top, also
   when it has no profile to show, and its page is white below: no frame of
   this page's around it. The card is as wide as the frame here, but for the
   scroll bar Threads' page always keeps a place for (overflow-y: scroll),
   seen where scroll bars take up room. The soft grey is only seen while
   nothing has come from Threads. */
iframe.threads-profile {
  display: block;
  width: 100%;
  max-width: 558px;
  height: 360px;
  margin: 0 0 10px;
  border: 0;
  border-radius: var(--radius-panel);
  background: var(--soft);
}

/* 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 below them 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-heading);
  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);
}

/* Waiting for the next records (site/more.js): the words say so, and it cannot be pressed. */
body.proof_log .more a[aria-disabled] {
  border-color: var(--line);
  background: var(--bg);
  color: var(--mute);
  cursor: default;
}

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 .none {
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid var(--ink);
}

/* On a page that starts before a record, above the list: back to the latest. */
/* The rows more.js adds go in above the button: a browser that keeps the button where it is on the screen would move the page by all of them. */
body.proof_log {
  overflow-anchor: none;
}

body.proof_log .latest {
  margin: 0 0 12px;
}

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

/* What pressing 更多 came to (site/more.js): read by a screen reader only, but when it failed, then seen too. */
body.proof_log .said:not(.failed) {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.proof_log .said {
  margin: 12px 0 0;
}

/* The two links, a line of their own below the list and 更多. */
body.proof_log .download {
  margin: 32px 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-heading-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;
}

/* A drawn avatar (design/DESIGN.md, 插圖): a circle with the shape of a person in it, a head over shoulders, no
   face. Grey where one account is drawn by itself (the profiles, @alice); in a thread each account has a colour of
   its own, the person in it and a lighter one behind (sketch.ts, `avatar`): ten of them, none the red of what can be
   pressed nor the blue-green of the card. Which colour an account has says nothing of it: an account with a card and
   one without are drawn from the same ten. */
.avatar {
  background:
    radial-gradient(circle at 50% 39%, var(--avatar-10-light) 0 17%, transparent 18%),
    radial-gradient(ellipse 34% 27% at 50% 96%, var(--avatar-10-light) 0 98%, transparent 100%),
    var(--line);
}

.avatar.a1 {
  background:
    radial-gradient(circle at 50% 39%, var(--avatar-1) 0 17%, transparent 18%),
    radial-gradient(ellipse 34% 27% at 50% 96%, var(--avatar-1) 0 98%, transparent 100%),
    var(--avatar-1-light);
}

.avatar.a2 {
  background:
    radial-gradient(circle at 50% 39%, var(--avatar-2) 0 17%, transparent 18%),
    radial-gradient(ellipse 34% 27% at 50% 96%, var(--avatar-2) 0 98%, transparent 100%),
    var(--avatar-2-light);
}

.avatar.a3 {
  background:
    radial-gradient(circle at 50% 39%, var(--avatar-3) 0 17%, transparent 18%),
    radial-gradient(ellipse 34% 27% at 50% 96%, var(--avatar-3) 0 98%, transparent 100%),
    var(--avatar-3-light);
}

.avatar.a4 {
  background:
    radial-gradient(circle at 50% 39%, var(--avatar-4) 0 17%, transparent 18%),
    radial-gradient(ellipse 34% 27% at 50% 96%, var(--avatar-4) 0 98%, transparent 100%),
    var(--avatar-4-light);
}

.avatar.a5 {
  background:
    radial-gradient(circle at 50% 39%, var(--avatar-5) 0 17%, transparent 18%),
    radial-gradient(ellipse 34% 27% at 50% 96%, var(--avatar-5) 0 98%, transparent 100%),
    var(--avatar-5-light);
}

.avatar.a6 {
  background:
    radial-gradient(circle at 50% 39%, var(--avatar-6) 0 17%, transparent 18%),
    radial-gradient(ellipse 34% 27% at 50% 96%, var(--avatar-6) 0 98%, transparent 100%),
    var(--avatar-6-light);
}

.avatar.a7 {
  background:
    radial-gradient(circle at 50% 39%, var(--avatar-7) 0 17%, transparent 18%),
    radial-gradient(ellipse 34% 27% at 50% 96%, var(--avatar-7) 0 98%, transparent 100%),
    var(--avatar-7-light);
}

.avatar.a8 {
  background:
    radial-gradient(circle at 50% 39%, var(--avatar-8) 0 17%, transparent 18%),
    radial-gradient(ellipse 34% 27% at 50% 96%, var(--avatar-8) 0 98%, transparent 100%),
    var(--avatar-8-light);
}

.avatar.a9 {
  background:
    radial-gradient(circle at 50% 39%, var(--avatar-9) 0 17%, transparent 18%),
    radial-gradient(ellipse 34% 27% at 50% 96%, var(--avatar-9) 0 98%, transparent 100%),
    var(--avatar-9-light);
}

.avatar.a10 {
  background:
    radial-gradient(circle at 50% 39%, var(--avatar-10) 0 17%, transparent 18%),
    radial-gradient(ellipse 34% 27% at 50% 96%, var(--avatar-10) 0 98%, transparent 100%),
    var(--avatar-10-light);
}

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

/* 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 hanging a proof and on how to check a proof, what each picture shows;
   the island proof card's whole sentence (src/pages/proof-card.ts). */
body.home .sr,
body.why-page .sr,
body.check .sr,
body.hang .sr,
.proof-card .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Headings broken by hand after a comma (design/DESIGN.md, 字). */
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-heading);
  line-height: var(--leading-h2);
  color: var(--ink);
}

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

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

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

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

/* The home page's six sections (home.md; design/DESIGN.md; design/screens/home-desktop.png, home-phone.png). Each
   section is laid out its own way (design/DESIGN.md, 版面); every drawing is hidden from a screen reader, which reads
   its figure's one sentence (body.home .sr). Nothing moves. */

body.home .again {
  margin-top: 14px;
  font-size: var(--size-small);
  line-height: var(--leading-small);
  color: var(--mute);
}

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

/* 第一屏: the words on the left, the drawing, the two lines and the link for a holder on the right. */
body.home .hero {
  padding-top: 64px;
  padding-bottom: 72px;
}

body.home .hero .in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--column-gap);
  align-items: center;
}

/* The headline's longer line, seven characters, stays one line where the column is too narrow for it at the headline's size. */
body.home .hero .headline {
  margin: 0;
  font-size: min(var(--size-h1), calc((100vw - 4 * var(--gutter) - var(--column-gap)) / 2 / 7.3));
}

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

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

body.home .hero .side {
  max-width: 560px;
  margin-left: auto;
}

/* The drawing (design/DESIGN.md, 島民證明卡, 首頁第一屏的圖): the profile, and the card as wide as it lying on its lower
   edge, tilted, its shadow spread wider than the other cards'. The profile's padding at the bottom is the room the card
   takes: turned, its upper right corner is the highest, and still under the frame of the link. The frame is as long
   as 78% of the drawing, longer than the address in it. */
body.home .hero-figure .drawing {
  container-type: inline-size;
}

body.home .drawing-title {
  margin-bottom: 10px;
  font-size: var(--size-small);
  line-height: var(--leading-small);
  color: var(--mute);
}

body.home .hero-figure .profile {
  padding-bottom: 52px;
}

body.home .hero-figure .link-row.boxed {
  width: 78cqw;
  font-size: min(15px, 3.7cqw);
  white-space: nowrap;
  overflow-wrap: normal;
}

body.home .hero-figure .proof-card {
  margin-top: -30px;
  translate: 18px;
  rotate: -3deg;
  box-shadow: var(--shadow-card-on-top);
}

body.home .hero .intro {
  margin-top: 44px;
  font-size: var(--size-small);
  line-height: var(--leading-small);
  color: var(--mute);
}

/* 現在有幾張: the number in a sentence on the left, three cards fanned out on the right. */
body.home .tally .in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--column-gap);
  align-items: center;
}

body.home .stat {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  color: var(--ink);
}

body.home .stat .label {
  display: block;
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
}

/* The big number: room under the comma for the next line (design/DESIGN.md, 字). */
body.home .stat .number {
  font-size: var(--size-figure);
  line-height: var(--leading-figure);
  font-variant-numeric: tabular-nums;
}

body.home .stat .unit {
  margin-left: 6px;
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
}

body.home .tally .recent {
  margin-top: 18px;
  font-size: var(--size-small);
  line-height: var(--leading-small);
  color: var(--mute);
}

body.home .tally .note {
  margin-top: 22px;
  font-size: 16px;
}

body.home .fan .cards {
  position: relative;
  aspect-ratio: 10 / 6.4;
}

body.home .fan .cards > div {
  position: absolute;
  width: 62%;
}

body.home .fan .left {
  top: 16%;
  left: 0;
  transform: rotate(-8deg);
}

body.home .fan .right {
  top: 9%;
  right: 0;
  transform: rotate(7deg);
}

body.home .fan .front {
  z-index: 1;
  top: 4%;
  left: 19%;
  transform: rotate(-2deg);
}

/* A card thrown off the deck leaves the section's side, and the page is no wider for it. */
body.home .tally {
  overflow-x: clip;
}

/* Without the deck's script (site/deck.js): the first three cards fanned out, the rest and the empty card not shown. */
body.home .fan .cards > div:nth-child(n + 4),
body.home .fan .next {
  display: none;
}

/*
 * With it, a deck: the cards are of one size and lie at three places and
 * angles in turn, so that a card is hidden wholly by the one three above it.
 * The top one is dragged; let go far enough it flies off (.left-off,
 * .right-off), nothing under it moves, and the edge of the card that it hid
 * shows. Under the last is the empty card with the button (.next), at the
 * first place, hidden the same way until the cards over it are gone.
 */
body.home .fan.deck .stack {
  display: grid;
  place-items: center;
  padding: 4% 0 12%;
}

body.home .fan.deck .cards {
  z-index: 1;
  display: grid;
  grid-area: 1 / 1;
  place-items: center;
  width: 100%;
  aspect-ratio: auto;
  touch-action: pan-y;
  user-select: none;
}

body.home .fan.deck .cards > div {
  position: relative;
  display: block;
  grid-area: 1 / 1;
  inset: auto;
  width: 77%;
  max-width: 380px;
  padding: 0;
  pointer-events: none;
  transition:
    transform 0.32s cubic-bezier(0.3, 0.7, 0.3, 1),
    opacity 0.32s ease,
    visibility 0s;
}

body.home .fan.deck .cards > div:nth-child(1) {
  z-index: 8;
  transform: translate(0, 0) rotate(-2deg);
}

body.home .fan.deck .cards > div:nth-child(2) {
  z-index: 7;
  transform: translate(7%, 7%) rotate(5deg);
}

body.home .fan.deck .cards > div:nth-child(3) {
  z-index: 6;
  transform: translate(-7%, 9%) rotate(-7deg);
}

body.home .fan.deck .cards > div:nth-child(4) {
  z-index: 5;
  transform: translate(0, 0) rotate(-2deg);
}

body.home .fan.deck .cards > div:nth-child(5) {
  z-index: 4;
  transform: translate(7%, 7%) rotate(5deg);
}

body.home .fan.deck .cards > div:nth-child(6) {
  z-index: 3;
  transform: translate(-7%, 9%) rotate(-7deg);
}

body.home .fan.deck .cards > div:nth-child(7) {
  z-index: 2;
  transform: translate(0, 0) rotate(-2deg);
}

body.home .fan.deck .cards > div.top {
  pointer-events: auto;
  cursor: grab;
}

body.home .fan.deck .cards > div.drag {
  transition: none;
  cursor: grabbing;
}

body.home .fan.deck .cards > div.gone {
  z-index: 20;
  visibility: hidden;
  opacity: 0;
  transition:
    transform 0.32s cubic-bezier(0.3, 0.7, 0.3, 1),
    opacity 0.32s ease,
    visibility 0s 0.32s;
}

body.home .fan.deck .cards > div.left-off {
  transform: translate(-140%, -10%) rotate(-24deg);
}

body.home .fan.deck .cards > div.right-off {
  transform: translate(140%, -10%) rotate(24deg);
}

body.home .fan.deck.empty .cards {
  pointer-events: none;
}

body.home .fan.deck .next {
  display: flex;
  grid-area: 1 / 1;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  width: 77%;
  max-width: 380px;
  aspect-ratio: var(--card-ratio);
  border: 2px dashed var(--you);
  border-radius: var(--radius-card);
  background: var(--bg);
  font-family: var(--font-display);
  font-size: var(--size-h3);
  font-weight: var(--weight-heading);
  line-height: var(--leading-h3);
  color: var(--ink);
  text-align: center;
  transform: translate(0, 0) rotate(-2deg);
}

body.home .fan.deck .example {
  text-align: center;
}

body.home .fan.deck.empty .example {
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  body.home .fan.deck .cards > div,
  body.home .fan.deck .cards > div.gone {
    transition: none;
  }
}

body.home .fan .example {
  margin-top: 18px;
  font-size: var(--size-small);
  line-height: var(--leading-small);
  color: var(--mute);
}

/* 三個步驟: three in a row, each its small picture above its number and title. */
body.home .three-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--column-gap);
  margin-top: 40px;
}

body.home .three-steps > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 12px;
  align-content: start;
}

body.home .get .pic {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

body.home .get .n {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}

body.home .get h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
}

body.home .get h3 + * {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.75;
}

body.home .get .needs li {
  position: relative;
  padding-left: 16px;
}

body.home .get .needs li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

body.home .get .needs .or {
  display: block;
  font-size: var(--size-small);
  color: var(--mute);
}

/* The small pictures: a panel on the soft grey; their words no smaller than the text under them. */
body.home .get .draw {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 110px;
  border-radius: var(--radius-panel);
  background: var(--soft);
}

/* 1: a hand holds a phone with NFC on its screen, the red citizen digital certificate behind it, the arcs of the reading over the card (home.ts, CARD_PHONE). The drawing is as wide as the panel; the sleeve runs on past the drawing, and the panel cuts it off. */
body.home .get .draw.card-phone {
  overflow: hidden;
}

body.home .card-phone svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.home .card-phone .id-card {
  fill: var(--you);
}

body.home .card-phone .chip {
  fill: var(--mark);
}

body.home .card-phone .chip,
body.home .card-phone .on-chip {
  stroke-width: 1.4;
}

body.home .card-phone .hand,
body.home .card-phone .sleeve,
body.home .card-phone .phone,
body.home .card-phone .thumb {
  fill: var(--bg);
}

body.home .card-phone .letters {
  fill: var(--ink);
  stroke: none;
}

/* 2: one whole box with @alice in it, and after it a caret that does not blink. */
body.home .field .box {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--bg);
}

body.home .field .typed {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink);
}

body.home .field .caret {
  width: 2px;
  height: 22px;
  background: var(--ink);
}

/* 3: an avatar, @alice, and the link framed in raspberry red. */
body.home .get .draw.holder {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-content: center;
  gap: 8px 8px;
}

body.home .holder .avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  align-self: center;
}

body.home .holder b {
  font-size: 17px;
  color: var(--ink);
}

body.home .holder .link {
  grid-column: 1 / -1;
  padding: 1px 12px;
  border: 2px solid var(--you);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--you);
}

/* 不必公開你是誰: the heading on the left, the two lines and the link on the right; no picture. */
body.home .unseen .in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 24px var(--column-gap);
  align-items: start;
}

body.home .public > div {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 0 12px;
  padding: 6px 0;
}

body.home .public dt {
  font-weight: 700;
  color: var(--ink);
}

/* 為什麼: the words on the left, the example thread on the right. */
body.home .reason .in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px var(--column-gap);
  align-items: start;
}

/* The brand line, fourteen characters, stays one line: smaller where the column is too narrow for it. */
body.home .reason .heading {
  font-size: min(var(--size-heading), calc((100vw - 4 * var(--gutter) - var(--column-gap)) / 2 / 14.3));
}

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

body.home .post {
  padding: 22px 22px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--bg);
}

/* Each avatar a person of its own colour (.avatar, above). */
body.home .post .avatar {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

body.home .op {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
}

body.home .op .kind {
  font-size: var(--size-small);
  font-weight: 700;
  color: var(--ink);
}

body.home .op .said {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.6;
}

body.home .op .count,
body.home .post .rest {
  margin-top: 8px;
  font-size: var(--size-small);
  color: var(--mute);
}

/* A comment, laid out as a thread's are: its avatar at the left, and beside it a grey bar for its account, its words
   and a row of small outlines where a thread has its actions; beside three of them a small card with no words. The
   others are not drawn any other way (design/DESIGN.md, 插圖). */
body.home .replies li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0 10px;
  border-top: 1px solid var(--line);
}

body.home .replies .avatar {
  align-self: start;
  width: 32px;
  height: 32px;
}

body.home .replies .acts {
  display: flex;
  gap: 16px;
  margin-top: 6px;
}

body.home .replies .acts svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--dot);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.home .replies li > div {
  flex: 1;
  min-width: 0;
}

body.home .replies .who {
  display: block;
  width: 64px;
  height: 7px;
  margin: 3px 0 7px;
  border-radius: 3px;
  background: var(--line);
}

body.home .replies p {
  font-size: 15px;
  line-height: 1.5;
}

body.home .replies .proof-card {
  flex: none;
  width: 60px;
}

body.home .post .rest {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

body.home .thread .caption {
  margin-top: 14px;
  font-size: var(--size-small);
  line-height: var(--leading-small);
  color: var(--mute);
}

/* 常見問題: each question folds (design/DESIGN.md, 元件); the FAQ's questions (body.faq .question) fold the same way. */
body.home .qa .questions {
  max-width: 820px;
  margin-top: 32px;
}

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

/* 結尾: the heading, the button, the link for a holder; under them a row of cards running off both sides. */
body.home .end {
  overflow: hidden;
}

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

body.home .end .row {
  margin: 64px calc(-1 * var(--gutter)) 0;
}

/* The row slides left and right, with no scroll bar; the deck's script begins it at its middle and lets a mouse drag it. */
body.home .end .row .cards {
  display: flex;
  gap: 24px;
  padding: 8px 24px 24px;
  justify-content: safe center;
  overflow-x: auto;
  scrollbar-width: none;
}

/* With the script a mouse drags the row (deck.js). */
body.home .end .row .cards.mouse {
  cursor: grab;
  user-select: none;
}

body.home .end .row .cards::-webkit-scrollbar {
  display: none;
}

body.home .end .row .cards.drag {
  cursor: grabbing;
}

body.home .end .row .proof-card {
  flex: none;
  width: 220px;
}

@media (width < 760px) {
  body.home .hero {
    padding-top: 32px;
    padding-bottom: var(--section-phone);
  }

  body.home .hero .in,
  body.home .tally .in,
  body.home .unseen .in,
  body.home .reason .in {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

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

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

  body.home .hero .actions {
    margin-top: 24px;
  }

  body.home .hero .side {
    max-width: none;
    margin: 0;
  }

  /* As wide as the profile and not moved: turned, its corners are in the page's gutter. */
  body.home .hero-figure .proof-card {
    translate: none;
  }

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

  body.home .reason .heading {
    font-size: min(var(--size-heading-phone), calc((100vw - 2 * var(--gutter-phone)) / 14.3));
  }

  /* A heading on one line on a desktop, broken after its comma on a phone (design/DESIGN.md, 字). */
  body.home .phone-line {
    display: block;
  }

  body.home .stat .label,
  body.home .stat .unit {
    font-size: var(--size-h3-phone);
  }

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

  body.home .three-steps > li {
    grid-template-columns: 112px auto minmax(0, 1fr);
  }

  body.home .get .pic {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0 8px 0 0;
  }

  body.home .get .draw {
    width: 104px;
    height: 84px;
  }

  body.home .field .box {
    padding: 6px 9px;
  }

  body.home .field .typed {
    font-size: 16px;
  }

  body.home .field .caret {
    height: 19px;
  }

  body.home .holder .link {
    padding: 0 8px;
  }

  body.home .end .row {
    margin: 48px calc(-1 * var(--gutter-phone)) 0;
  }

  body.home .end .row .cards {
    gap: 14px;
  }

  body.home .end .row .proof-card {
    width: 140px;
  }
}

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 {
  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 {
  margin-top: -2px;
  transform: rotate(-135deg);
}

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

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

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

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

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

  

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

/* The FAQ (faq.md): the list of the categories, then 最多人問的 open, 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-heading);
  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;
}

/* After the last question, the button to a card proof (faq.md, 最後一題下面), as large as the home page's. */
body.faq .ask {
  margin: var(--section) 0 0;
}

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

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-heading);
  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 of every picture below): .steps outweighs it. */
body.hang .steps .sketch {
  grid-column: 2;
  margin-top: 16px;
}

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

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

body.check .profile .name.blank,
body.home .profile .name.blank,
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 h2 {
  font-size: var(--size-lead);
  line-height: var(--leading-h3);
  margin: 0 0 14px;
}

body.hang .demo-stage {
  position: relative;
}

/* The whole first frame is the button that starts it: the panel's grey over the picture, so that the buttons drawn in it are
   not taken for the page's, and in the middle what looks like a button, a triangle before its word. */
body.hang .demo-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-panel);
  background: none;
  cursor: pointer;
}

body.hang .demo-start::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--soft);
  opacity: 0.8;
}

body.hang .demo-start .button {
  position: relative;
  gap: 12px;
  margin: 0;
}

body.hang .demo-start .button::before {
  content: "";
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentcolor;
}

body.hang .demo-start:hover .button {
  background: var(--soft);
}

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;
  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.developers main,
body.how main,
body.feedback 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,
body.developers .title,
body.how .title,
body.feedback .title {
  font-size: var(--size-heading);
  line-height: 1.3;
  margin: 56px 0 20px;
}

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

body.prepare 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 {
  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 {
  max-width: 800px;
  margin-top: 96px;
}

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

body.prepare .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 {
  margin: 0;
}

/* For developers (/developers) ---------------------------------------------- */

/* Laid out after design/DESIGN.md, as wide as the site (body.prepare main): what is public as rows under a line
   of ink, each its name, its address in the monospace of an address on the soft grey of an address, and what it
   is; the one sentence of what the data do not say in the size of a lead, the sentence to read before building
   on it (developers.md, section 2); what can be made of it in three columns; the developer document under a
   thin line. */
body.developers .published,
body.developers .uses {
  margin-top: 72px;
}

body.developers .published h2,
body.developers .uses h2 {
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}

body.developers .published dl {
  margin: 0 0 28px;
}

body.developers .published dl > div {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 6fr);
  gap: var(--column-gap);
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

body.developers .published dt {
  font-weight: 700;
  color: var(--ink);
}

body.developers .published dd {
  margin: 0;
}

body.developers code {
  padding: 1px 5px;
  border-radius: var(--radius);
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

body.developers .published p {
  max-width: var(--measure);
}

body.developers .published .limit {
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-lead);
  line-height: var(--leading-h3);
  color: var(--ink);
}

body.developers .uses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--column-gap);
}

body.developers .uses h2 {
  grid-column: 1 / -1;
}

body.developers .use h3 {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-lead);
  line-height: 1.5;
  margin: 12px 0;
}

body.developers .use p {
  margin: 0;
}

body.developers .document {
  max-width: var(--measure);
  margin-top: 88px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

body.developers .document h2 {
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
  margin: 0 0 14px;
}

body.developers .document p {
  margin: 0;
}

body.developers .document a {
  font-family: var(--font-mono);
}

/* How it works (/how) -------------------------------------------------------- */

/* Laid out after design/DESIGN.md, as wide as the site (body.prepare main): seven sections, a thin line between
   each two, each laid out its own way: the card's two texts side by side; what the proof says in the size of a
   lead; the fields of a record as rows; the two things anyone can verify side by side, each under its number; the nine things a
   proof cannot guarantee in two columns, each led by its first sentence in bold; the three ways on in a row. */
body.how .part {
  margin-top: var(--section);
  padding-top: var(--section);
  border-top: 1px solid var(--line);
}

body.how .part h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-heading);
  line-height: var(--leading-h2);
  letter-spacing: normal;
}

body.how .part p,
body.how .fields {
  max-width: var(--measure);
}

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

body.how .texts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--column-gap);
  margin: 28px 0;
}

body.how .texts p {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}

body.how .public .texts {
  margin-bottom: 0;
}

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

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

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

body.how .two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--column-gap);
  margin: 32px 0;
  padding: 0;
  list-style: none;
  counter-reset: two;
}

body.how .two li {
  counter-increment: two;
  font-weight: 700;
  color: var(--ink);
}

body.how .two li::before {
  content: counter(two);
  display: block;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-heading);
  line-height: var(--leading-h2);
}

body.how .nine {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--column-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

body.how .nine li {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

body.how .nine strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-lead);
  line-height: var(--leading-h3);
}

body.how .ways {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.how .ways a {
  display: inline-block;
  min-height: var(--min-target);
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-lead);
  line-height: var(--leading-h3);
}

/* 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-heading);
  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 a proof (/check) ------------------------------------------- */

/* Laid out after design/copy/check.md: the title and its one line; the three things side by side, each its numbered
   title, its picture and its sentence, the three rows lined up across the columns; then the date, its words beside its
   small picture; then what a proof cannot tell; then the line to how to verify. Sections apart by --section, a thin line
   between them. The three things are side by side where each has room for its picture (the accounts' two sides on one
   row, each label at most two lines): narrower, they go on to the next row. On a phone everything one column (below). */
body.check .intro .lead {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-lead);
  line-height: var(--leading-h3);
  color: var(--ink);
}

body.check .things {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 48px 24px;
  margin: 40px 0 0;
  padding: 0 0 var(--section);
  list-style: none;
  border-bottom: 1px solid var(--line);
}

/* Each thing's title, picture and sentence in the rows of the list, so that the three pictures start on one line. */
body.check .thing {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
  min-width: 0;
}

body.check .thing h2 {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 16px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  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 .thing h2 .n {
  font-size: var(--size-heading);
  line-height: 1;
}

body.check .thing p {
  margin: 16px 0 0;
}

body.check .thing .sketch {
  align-self: stretch;
  padding: 20px 16px;
}

/* The profile's link on one line in a column of three: smaller where the picture is narrow. */
body.check .thing .profile {
  padding: 16px;
}

body.check .thing .profile .link-row {
  font-size: min(15px, 5.2cqi);
}

/* The date: its heading and its two sentences on the left, its small picture on the right. */
body.check .date {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0 var(--column-gap);
  padding: var(--section) 0;
  border-bottom: 1px solid var(--line);
}

/* The two sections' headings are section headings (design/DESIGN.md, 字: 段落標題). */
body.check .date h2,
body.check .limits h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-heading);
  line-height: var(--leading-h2);
  color: var(--ink);
}

body.check .date .sketch {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
}

body.check .date > p {
  grid-column: 1;
  max-width: var(--measure);
  margin: 0;
}

body.check .date-line {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

body.check .limits {
  padding: var(--section) 0 0;
}

body.check .limits ul {
  max-width: var(--measure);
  margin: 0;
  padding-left: 1.2em;
}

body.check .limits li + li {
  margin-top: 8px;
}

body.check .verify-line {
  max-width: var(--measure);
  margin: 40px 0 0;
}

/* The picture of the second thing (check.md, 示意圖, 第 2 塊): two rows of the two accounts side by side with ＝ or ≠
   between them, a thin line between the rows, the second row's accounts in the secondary colour. No ○ or ✕ by an
   account, and no account highlighted whole: only the extra _ of @alice_. An account is never broken: in a narrow
   column it is smaller (the picture's pieces are a container, cqi its width). */
body.check .sketch-body {
  container-type: inline-size;
}

body.check .pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

body.check .pair + .pair {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* A label breaks at its space only: "Threads" and 上看到的帳號. */
body.check .pair .side .label {
  display: block;
  margin-bottom: 4px;
  word-break: keep-all;
  font-size: 13px;
  line-height: 1.4;
  color: var(--mute);
}

body.check .pair .side .account {
  display: block;
  font-size: min(30px, 10.5cqi);
  font-weight: var(--weight-account);
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}

body.check .pair.differ .side .account {
  color: var(--mute);
}

body.check .pair .relation {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: min(28px, 9cqi);
  line-height: 1.1;
  color: var(--ink);
}

/* The picture of the third thing (第 3 塊): each domain a row, its mark in an ink ring on the left (the body's typeface: the headings'
   has no ✕); the right one in a thick ink frame and bold, the wrong ones in a thin frame in the secondary colour. */
body.check .domain-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

body.check .sketch .domain-row + .domain-row,
body.check .sketch .domain-note + .domain-row {
  margin-top: 12px;
}

body.check .domain-row .mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}

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

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

body.check .sketch .domain-note {
  margin-top: 4px;
  padding-left: 46px;
}

/* The words to look at (check.md, 示意圖): on the highlighter yellow, in the pictures only. It says "look here", not
   right or wrong; the words keep the colour of the rest of their line. */
body.check .sketch mark {
  background: var(--mark);
  color: inherit;
}

/* The pictures of hanging a proof and of how to check a proof ----------------- */

/* A picture (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, and on hanging a proof raspberry where to press (below). */
body.check .sketch,
body.hang .sketch {
  margin: 0;
  padding: 24px;
  background: var(--soft);
  border-radius: var(--radius-panel);
}

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

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

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

/* The example profile (hang.md, pictures 1 and the result; home.md, 第一屏; check.md, 第 1 塊): a white card with a
   thin frame, nothing of Threads' own look. */
body.check .profile,
body.hang .profile,
body.home .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;
}

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

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

body.check .profile .avatar,
body.hang .profile .avatar,
body.home .profile .avatar {
  grid-column: 2;
  grid-row: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

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

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

body.check .profile .link-row,
body.hang .profile .link-row,
body.home .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;
}

body.check .profile .link-row.boxed,
body.hang .profile .link-row.boxed,
body.home .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. */
body.check .profile .link-icon,
body.hang .profile .link-icon {
  flex: none;
  width: 16px;
  height: 8px;
  border: 1.5px solid var(--mute);
  border-radius: 4px;
  transform: rotate(-45deg);
}

body.hang .profile .tag,
body.home .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;
}

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

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

/* Two columns, the same on both pages: the account and the profile on the left; on the right, from the height of the
   left column, what only grows: the record of a card (proof-page.md, section 3), the list of the cards of an account
   (account-page.md). It grows down the right column and pushes nothing. A withdrawn card has no profile. */
body.proof .first,
body.account .first {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 40px var(--column-gap);
  align-items: start;
  margin-top: 56px;
}

body.proof .first .claim,
body.account .first .claim {
  grid-column: 1;
  grid-row: 1;
}

body.proof .first .owner,
body.account .first .owner {
  grid-column: 1;
  grid-row: 2;
}

body.proof .first .last,
body.account .first .card-list {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* The page of a card with an account (proof-page.md, at the top): on the left the card, then right under it what this is;
   on the right the profile from the height of the card, then the last card proof and the record. Three rows: the card
   alone sets the first, so what this is starts right under the card however tall the profile is; the profile spans the
   first two, the record the third. */
body.proof .first:has(.owner) {
  grid-template-rows: auto auto 1fr;
}

body.proof .first .what {
  grid-column: 1;
  grid-row: 2 / span 2;
}

body.proof .first:has(.owner) .owner {
  grid-column: 2;
  grid-row: 1 / span 2;
}

body.proof .first:has(.owner) .last {
  grid-column: 2;
  grid-row: 3;
}

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, 字). The page of a card has it on the card. */
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.account .title .account.long {
  font-size: var(--size-heading);
}

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

/* The last card proof: as prominent as the title, the same for any number of days; the date one size smaller. */
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: 0 0 4px;
}

body.proof .last .when .date {
  margin-left: 8px;
  white-space: nowrap;
  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 record's heading: in the body's typeface, the size of the rows, bold. */
body.proof .last .records {
  margin: 32px 0 8px;
  font-family: var(--font-body);
  font-size: var(--size-kicker);
  font-weight: 700;
  line-height: var(--leading-kicker);
  color: var(--ink);
}

/* The two small lines after the record: the advice, then the links for the holder. */
body.proof .last .advice {
  margin: 16px 0 0;
}

body.proof .last .yours {
  margin: 4px 0 0;
}

body.proof .last .yours a {
  white-space: nowrap;
}

/* The heading above the profile, on both pages: one line when it fits; otherwise broken at its comma or a space, never
   inside a word (proof-page.md, section 2; account-page.md). */
body.proof .ask,
body.account .ask {
  font-size: var(--size-lead);
  line-height: var(--leading-h3);
  margin: 0 0 12px;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

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 .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 sections 1 to 3, 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;
}

/* What this is, under the card (proof-page.md, section 4, block 1): a small heading, the three sentences, the button to the
   home page; no box, as wide as the card. */
body.proof .what {
  max-width: 600px;
}

body.proof .what h2 {
  margin: 0 0 12px;
  font-size: var(--size-lead);
  line-height: var(--leading-h3);
}

body.proof .what p {
  margin: 0 0 8px;
  text-wrap: pretty;
}

body.proof .what p:last-child {
  margin: 20px 0 0;
}

/* The sentence under the profile (proof-page.md, section 2). */
body.proof .owner .unless {
  margin: 0;
  max-width: var(--measure);
  text-wrap: pretty;
}

/* The small line under the embedded profile, with the link to the profile on Threads (proof-page.md, section 2; account-page.md). */
body.proof .owner .to-profile,
body.account .owner .to-profile {
  margin: 8px 0 0;
}

/* The two facts checked on the day of the last card proof (proof-page.md, section 3; design/DESIGN.md, 記號): each
   after a check mark in ink, a line drawing never filled. */
body.proof .last .checked {
  margin: 16px 0 6px;
  color: var(--ink);
}

body.proof .last .checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.proof .last .checks li {
  margin: 0 0 4px;
  color: var(--ink);
}

body.proof .tick {
  width: 1.1em;
  height: 1.1em;
  margin-right: 0.4em;
  vertical-align: -0.2em;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The bottom (proof-page.md, section 4, block 2; design/DESIGN.md, 版面): under a line across the page, under both
   columns, 64 above and below: 完整的檢查方法, the links for the holder in small words, the button. And the one line at
   the bottom of the other three cases (block 3), in its place. */
body.proof .bottom,
body.proof .about,
body.proof-missing .about {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

body.proof .bottom p {
  margin: 0 0 8px;
}

body.proof .bottom .yours {
  line-height: var(--leading-small);
}

body.proof .bottom .yours a {
  white-space: nowrap;
}

body.proof .bottom p:last-child {
  margin: 24px 0 0;
}

/* A short ID of several cards: the small links, then right under them the one line, with no second line across. */
body.proof .bottom + .about {
  margin-top: 40px;
  padding-top: 0;
  border-top: 0;
}

body.proof .about p,
body.proof-missing .about p {
  max-width: var(--measure);
  margin: 0;
  text-wrap: pretty;
}

body.proof .about a,
body.proof-missing .about a {
  white-space: nowrap;
}

/* The island proof card on the page: as wide as the left column, at most 600 (proof-page.md, section 1). */
body.proof .claim .proof-card {
  max-width: 600px;
}

/* More than three months since the last card proof (proof-page.md, section 1; design/DESIGN.md, 島民證明卡): right under
   the card, one line of amber words in bold, no field and no line beside it, as wide as the card. */
body.proof .stale {
  max-width: 600px;
  margin: 16px 0 0;
  color: var(--stale);
  font-weight: 700;
  line-height: var(--leading-small);
  text-wrap: pretty;
}

/* The line that names the face and credits who made it (proof-page.md, section 1, 署名): right under the card and the
   amber line, small words in the secondary colour, the credit a link in the links' colour; as wide as the card. */
body.proof .face-credit {
  max-width: 600px;
  margin: 12px 0 0;
  font-size: var(--size-small);
  line-height: var(--leading-small);
  color: var(--mute);
  text-wrap: pretty;
}

/* Why a proof (/why: why.md; design/DESIGN.md; design/screens/why-desktop.png, why-phone.png) ---------------------

   Of the home page's layer, with rules of its own (src/pages/why.ts). Three sections as wide as the site, a line
   between them: why, the words on the left and the example post on the right; the one sentence of what we need; what we
   can change together, the same thread drawn three times, the two boxes, the closing lines and the button. */
body.why-page main {
  max-width: none;
  padding: 0;
}

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

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

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

body.why-page main :is(h1, h2, h3, p, ul, figure, figcaption, blockquote) {
  margin: 0;
  padding: 0;
}

body.why-page main ul {
  list-style: none;
}

body.why-page .line {
  display: block;
}

/* The page's name and section 3's first line: kickers (DESIGN.md, 字: 段落上方的小標). */
body.why-page .kicker {
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--size-kicker);
  line-height: var(--leading-kicker);
  letter-spacing: 0.04em;
  color: var(--mute);
}

/* Headings at the size of a 段落標題, each line kept one line: smaller where its column is too narrow for it. */
body.why-page .heading {
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-heading);
  line-height: var(--leading-h2);
  color: var(--ink);
}

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

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

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

body.why-page .lede + .lede {
  margin-top: 12px;
}

/* 1. 為什麼: the words in the left column, twelve characters of the heading a line; the post and its question on the right. */
body.why-page .split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--column-gap);
  align-items: start;
}

body.why-page .why .heading {
  font-size: min(var(--size-heading), calc((100vw - 4 * var(--gutter) - var(--column-gap)) / 2 / 12.3));
}

/* The example post (DESIGN.md, 插圖): a white panel in a thin frame; an avatar of its own for each account (.avatar), a grey
   bar for each comment's account. */
body.why-page .post {
  padding: 20px 22px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--bg);
}

body.why-page .post .avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

body.why-page .post .op {
  display: flex;
  gap: 14px;
  align-items: start;
  padding-bottom: 16px;
}

body.why-page .post .op .avatar {
  width: 40px;
  height: 40px;
}

body.why-page .post .kind {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.6;
}

body.why-page .post blockquote {
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.75;
}

body.why-page .post .count {
  margin-top: 8px;
  font-size: var(--size-small);
  line-height: var(--leading-small);
  color: var(--mute);
}

body.why-page .post .comments li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0 14px 8px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.6;
}

body.why-page .post .who {
  display: block;
  width: 64px;
  height: 8px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: var(--line);
}

body.why-page .post .more {
  margin-top: 0;
  padding: 12px 0 0 8px;
  border-top: 1px solid var(--line);
}

body.why-page .ask {
  margin-top: 20px;
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-lead);
  line-height: var(--leading-h3);
}

/* 3. 我們一起能改變什麼. */
body.why-page .together .heading {
  font-size: min(var(--size-heading), calc((100vw - 4 * var(--gutter)) / 14.3));
}

/* The same thread three times, side by side on a phone too: six comments each, a small card (a face only) beside some of
   them. A comment with no card looks as the others do (DESIGN.md, 插圖). */
body.why-page .grow {
  max-width: 900px;
  margin-top: 40px;
}

body.why-page .threads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

body.why-page .thread .label {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: var(--size-small);
  line-height: var(--leading-small);
}

body.why-page .thread ul {
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
}

body.why-page .thread li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 50px;
  gap: 12px;
  align-items: center;
  min-height: 32px;
  padding: 11px 0;
}

body.why-page .thread li + li {
  border-top: 1px solid var(--line);
}

body.why-page .thread .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

body.why-page .thread .bar {
  height: 8px;
  border-radius: 4px;
  background: var(--line);
}

body.why-page .thread li:nth-child(1) .bar { width: 88%; }
body.why-page .thread li:nth-child(2) .bar { width: 60%; }
body.why-page .thread li:nth-child(3) .bar { width: 78%; }
body.why-page .thread li:nth-child(4) .bar { width: 52%; }
body.why-page .thread li:nth-child(5) .bar { width: 72%; }
body.why-page .thread li:nth-child(6) .bar { width: 64%; }

/* A small card's place keeps a card's height when the comment has none, so that every comment is as high as the others. */
body.why-page .thread .mini {
  aspect-ratio: var(--card-ratio);
}

body.why-page .grow figcaption {
  margin-top: 14px;
  font-size: var(--size-small);
  line-height: var(--leading-small);
  color: var(--mute);
}

/* The two boxes (DESIGN.md, 線): what there is now in a solid frame, what is still to come in a dashed one. */
body.why-page .tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}

body.why-page .tier {
  padding: 24px 28px 26px;
  border-radius: var(--radius-panel);
}

body.why-page .tier.now {
  border: 1.5px solid var(--ink);
}

body.why-page .tier.later {
  border: 1.5px dashed var(--mute);
}

body.why-page .tier .when {
  font-size: var(--size-small);
  line-height: var(--leading-small);
  color: var(--mute);
}

body.why-page .tier h3 {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-lead);
  line-height: var(--leading-h3);
  color: var(--ink);
}

body.why-page .tier h3 + p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.8;
}

body.why-page .closing {
  margin-top: 56px;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  font-size: var(--size-h3);
  line-height: var(--leading-h3);
}

body.why-page .act {
  margin-top: 24px;
}

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

@media (width < 760px) {
  body.why-page .in {
    padding: 0;
  }

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

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

  body.why-page .heading {
    font-size: var(--size-heading-phone);
  }

  body.why-page .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  body.why-page .tiers {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 40px;
  }

  body.why-page .why .heading {
    font-size: min(var(--size-heading-phone), calc((100vw - 2 * var(--gutter-phone)) / 12.3));
  }

  body.why-page .together .heading {
    font-size: min(var(--size-heading-phone), calc((100vw - 2 * var(--gutter-phone)) / 14.3));
  }

  body.why-page .post {
    padding: 16px 16px 12px;
  }

  body.why-page .post .comments li {
    padding-left: 0;
  }

  body.why-page .post .more {
    padding-left: 0;
  }

  body.why-page .ask {
    font-size: var(--size-lead-phone);
  }

  body.why-page .grow {
    margin-top: 28px;
  }

  body.why-page .threads {
    gap: 8px;
  }

  body.why-page .thread .label {
    margin-bottom: 6px;
  }

  body.why-page .thread ul {
    padding: 2px 6px;
    border-radius: 8px;
  }

  body.why-page .thread li {
    grid-template-columns: 16px minmax(0, 1fr) 24px;
    gap: 5px;
    min-height: 16px;
    padding: 6px 0;
  }

  body.why-page .thread .avatar {
    width: 16px;
    height: 16px;
  }

  body.why-page .thread .bar {
    height: 5px;
  }

  body.why-page .tier {
    padding: 20px 20px 22px;
  }

  body.why-page .tier h3 {
    font-size: var(--size-lead-phone);
  }

  body.why-page .closing {
    margin-top: 40px;
    font-size: var(--size-h3-phone);
  }

  /* A main button fills the width on a phone (DESIGN.md, 元件). */
  body.why-page .button.big {
    width: 100%;
  }
}

/* The island proof card (design/DESIGN.md, 島民證明卡; src/pages/proof-card.ts) -----------------------------------

   The proportions of a citizen digital certificate, its corners rounded by 4.2% of its own width, two shadows under
   it (one close to it, one spread below) and no frame. The face covers the card; the words lie on it with no field
   under them, in the face's colour of words (ink-dark or ink-light), in three places: the mark and the name at the top
   left, the ordinal and the day at the top right, the sentence and the account at the bottom left. Every length inside
   is in units of the card's own width (cqw), so that it is the same card at any size; src/pages/card-image.ts draws
   the link preview with the same numbers. */
.proof-card {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: var(--card-ratio);
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  color: var(--ink);
  font-family: var(--font-body);
}

.proof-card.ink-light {
  color: var(--bg);
}

.proof-card .face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.proof-card p {
  margin: 0;
}

/* The mark, then the name. The mark keeps its own colours on any face: the red card is the mark's, the one red on
   the card (design/DESIGN.md, 元件). */
.proof-card .card-name {
  position: absolute;
  top: 5cqw;
  left: 5.6cqw;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 3.7cqw;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.proof-card .card-name .logo {
  flex: none;
  width: 5.4cqw;
  height: 5.4cqw;
  margin-right: 1.5cqw;
}

/* The ordinal, and under it the day the card was last signed on: two small lines, their right ends on one line. */
.proof-card .card-meta {
  position: absolute;
  top: 5cqw;
  right: 5.6cqw;
  text-align: right;
  font-weight: 500;
  font-size: 2.9cqw;
  line-height: 1.55;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}

/* The sentence and the account, from the bottom up. */
.proof-card .card-claim {
  position: absolute;
  right: 5.6cqw;
  bottom: 5cqw;
  left: 5.6cqw;
}

/* The sentence: two lines, broken after the comma; 3.7% of the card's width, about 13px on a phone. */
.proof-card .card-say {
  font-weight: 500;
  font-size: 3.7cqw;
  line-height: 1.55;
}

/* The account: the card's largest words, in the headings' typeface, on one line; smaller the longer it is
   (proof-card.ts, accountSize, ACCOUNT_SIZES: the same numbers); nothing beside it. */
.proof-card .card-account {
  margin-top: 1.4cqw;
  font-family: var(--font-display);
  font-weight: var(--weight-heading);
  line-height: 1.08;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.proof-card .card-account.size-1 {
  font-size: 10.6cqw;
}

.proof-card .card-account.size-2 {
  font-size: 8cqw;
}

.proof-card .card-account.size-3 {
  font-size: 6.1cqw;
}

.proof-card .card-account.size-4 {
  font-size: 4.5cqw;
}

/* Only an account of the widest letters (thirty of m) comes to these two. */
.proof-card .card-account.size-5 {
  font-size: 3.6cqw;
}

.proof-card .card-account.size-6 {
  font-size: 2.8cqw;
}

/* A face that is a picture (src/pages/proof-card.ts, PictureFace): the picture covers the card. Over it and under the
   white words, if the face has it, the shade: two dark gradients (--card-shade; proof-card.ts, SHADE, has the same
   numbers, and src/pages/card-image.ts draws them on the link preview). A face of ink words has none. */
.proof-card img.face {
  object-fit: cover;
}

.proof-card .shade {
  position: absolute;
  inset: 0;
  background: var(--card-shade);
}

/* The mark on a face of white words (src/pages/card-image.ts, REVERSED_MARK): a light island, a lighter red card, a near-black chip
   and line around the island. */
.proof-card.ink-light .logo-card-body {
  fill: var(--mark-light-card);
}

.proof-card.ink-light .logo-chip {
  fill: var(--mark-light-chip);
}

.proof-card.ink-light .logo-island-body {
  fill: var(--mark-light-island);
  stroke: var(--mark-light-chip);
}

/* The default face: a light teal field, the island in teal dots (design/DESIGN.md, 島民證明卡). */
.proof-card.face-island .face-field {
  fill: var(--proof-soft);
}

.proof-card.face-island .dot {
  fill: var(--proof);
}

/* 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: 16px 0 0;
  color: var(--ink);
}

/* Right under the count, the sentence that goes with it (principles.md, 查詢頁; with no card, the line on the name); broken at its comma, not inside a word. */
body.account .count + .small {
  max-width: var(--measure);
  margin-top: 8px;
  line-height: var(--leading-small);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

body.account .cards {
  list-style: none;
  margin: 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;
}

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

body.account .lookup > p,
body.account .claim > 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 .nav-button {
    display: flex;
  }

  .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.developers main,
  body.how main,
  body.feedback 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,
  body.developers .title,
  body.how .title,
  body.feedback .title {
    font-size: var(--size-heading-phone);
    margin-top: 28px;
  }

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

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

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

  /* For developers: each item of what is public its three lines one under another; the three uses too. */
  body.developers .published,
  body.developers .uses {
    margin-top: 48px;
  }

  body.developers .published h2,
  body.developers .uses h2,
  body.developers .document h2 {
    font-size: var(--size-h3-phone);
  }

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

  body.developers .published .limit {
    font-size: var(--size-lead-phone);
  }

  body.developers .uses {
    grid-template-columns: minmax(0, 1fr);
  }

  body.developers .use h3 {
    font-size: var(--size-lead-phone);
    margin-top: 20px;
  }

  body.developers .document {
    margin-top: 56px;
  }

  /* How it works: everything side by side one under another. */
  body.how .part {
    margin-top: var(--section-phone);
    padding-top: var(--section-phone);
  }

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

  body.how .texts,
  body.how .two,
  body.how .nine {
    grid-template-columns: minmax(0, 1fr);
  }

  body.how .texts p + p,
  body.how .two li + li {
    margin-top: 24px;
  }

  body.how .says,
  body.how .nine strong,
  body.how .ways a {
    font-size: var(--size-lead-phone);
  }

  body.how .ways {
    flex-direction: column;
    gap: 4px;
  }

  /* How to check a proof: everything one column; the three things one under another. */
  body.check .intro .lead {
    font-size: var(--size-lead-phone);
  }

  body.check .things {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    margin-top: 28px;
    padding-bottom: var(--section-phone);
  }

  body.check .thing {
    display: block;
    grid-row: auto;
  }

  body.check .thing h2 {
    font-size: var(--size-h3-phone);
  }

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

  body.check .date {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    padding: var(--section-phone) 0;
  }

  body.check .date .sketch {
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 16px;
  }

  body.check .date h2,
  body.check .limits h2 {
    font-size: var(--size-heading-phone);
  }

  body.check .limits {
    padding-top: var(--section-phone);
  }

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

  /* 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-heading-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 .demo h2 {
    font-size: var(--size-lead-phone);
  }

  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-heading-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 .ask {
    margin-top: var(--section-phone);
  }

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

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

  /* On a phone one under another, in this order: the account (on the page of a card, the card and what this is under
     it), the profile, then what only grows, so that it pushes nothing down (proof-page.md, account-page.md). */
  body.proof .first,
  body.proof .first:has(.owner),
  body.account .first {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 28px;
  }

  body.proof .first .claim,
  body.proof .first .what,
  body.proof .first:has(.owner) .owner,
  body.proof .first .owner,
  body.proof .first:has(.owner) .last,
  body.proof .first .last,
  body.account .first .claim,
  body.account .first .owner,
  body.account .first .card-list {
    grid-column: 1;
    grid-row: auto;
  }

  body.proof .first .last {
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }

  body.proof .last .records {
    margin-top: 20px;
  }

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

  body.proof .bottom,
  body.proof .about,
  body.proof-missing .about {
    margin-top: 40px;
    padding-top: 40px;
  }

  body.proof .what h2 {
    font-size: var(--size-lead-phone);
  }

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

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

  body.account .title .account.long {
    font-size: var(--size-heading-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.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 .what .button,
  body.proof .bottom .button {
    display: flex;
    width: 100%;
  }
}

/* The app domain's page for a phone without the app (app-domain.md) ------------------------------------------- */

/* One column, as the other pages' own content: the title, the two stores' buttons one under the other, as wide as the longer one. */
body.no-app .title {
  font-size: var(--size-heading-phone);
  line-height: 1.3;
  margin: 40px 0 16px;
}

body.no-app .stores {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 10px;
}

body.no-app h2 {
  font-size: var(--size-h3-phone);
  margin: 36px 0 8px;
}

body.no-app .back {
  margin-top: 36px;
}

/* The feedback page (/feedback; design/copy/feedback.md) ---------------------- */

/* One column as wide as the measure: each box under its label, the line under a box in small type, the button last. */
body.feedback form {
  max-width: var(--measure);
  margin-top: 36px;
}

body.feedback label {
  display: block;
  font-weight: var(--weight-heading);
  margin-top: 28px;
}

body.feedback textarea,
body.feedback input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 var(--font-body);
}

body.feedback textarea {
  min-height: 12em;
  resize: vertical;
}

body.feedback form .small {
  margin: 8px 0 0;
}

body.feedback .count {
  text-align: right;
  color: var(--mute);
}

/* 選擇截圖: a secondary button, an ink frame on white (design/DESIGN.md, 元件); grey once three are chosen. */
body.feedback .pick {
  display: block;
  margin-top: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font: 700 16px var(--font-body);
  cursor: pointer;
}

body.feedback .pick:hover {
  background: var(--soft);
}

body.feedback .pick:disabled {
  border-color: var(--dot);
  background: var(--bg);
  color: var(--mute);
  cursor: default;
}

/* The screenshots chosen (選好的截圖): a row of three cells of one size, each a square, its 移除 under it; nothing while there is none. */
body.feedback .screenshots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

body.feedback .screenshots:empty {
  display: none;
}

/* The thumbnail (its picture whole, fitted in the square by the script, the background showing on two sides); 處理中 in the middle of the square until it is made. */
body.feedback .screenshots canvas,
body.feedback .screenshots .making {
  display: block;
  box-sizing: border-box;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

body.feedback .screenshots .making {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mute);
  font-size: var(--size-small);
}

body.feedback .screenshots .remove {
  display: block;
  width: 100%;
  min-height: var(--min-target);
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--you);
  font: 700 15px var(--font-body);
  text-decoration: underline;
  cursor: pointer;
}

/* Its own line above 送出, set apart as the other parts of the form are (and after `form .small`, which it is too). */
body.feedback form .privacy {
  margin-top: 28px;
}

body.feedback .error {
  margin: 28px 0 0;
  color: var(--you);
  font-weight: var(--weight-heading);
}

body.feedback form .button {
  margin-top: 28px;
  border: 0;
  cursor: pointer;
}

body.feedback form .button:disabled {
  background: var(--dot);
  cursor: default;
}

body.feedback .done {
  margin-top: 36px;
}
