/* The help site's one stylesheet (see web/docsite): design B, "Journal",
   from the canvas on issue #70. One reading column, screenshots wider
   than the text, the app's two typefaces - Jost for display, IBM Plex
   Sans for reading - and its purple.

   Light only, like the app. */

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/jost-latin.235d8f8964.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-sans-latin.056e4e2459.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --line: #ebe5da;
  --line-strong: #e6e0d4;
  --field-line: #d9d1c2;
  --ink: #1c1a17;
  --ink-2: #2e2a25;
  --ink-soft: #4f4a43;
  --ink-mute: #6b655c;
  --logo: #1b2026;
  --accent: #7b5ea7;
  --accent-ink: #5f4596;
  --accent-deep: #3f2c6b;
  --accent-wash: #f1ecf9;
  --accent-halo: rgba(123, 94, 167, 0.18);
  --tip-wash: #eef2ec;
  --tip-ink: #3d6b45;
  --careful-wash: #f6efe4;
  --careful-ink: #8a5a1c;
  --code-wash: #f3efe8;
  --button: #1c1a17;
  --button-ink: #f7f5f1;
  --backdrop: rgba(28, 26, 23, 0.36);
  --shadow: 0 18px 50px rgba(28, 26, 23, 0.1);
  --shadow-pop: 0 10px 30px rgba(28, 26, 23, 0.14);

  --sans: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --display: 'Jost', 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --text: 700px;
  --wide: 860px;
  --page: 1080px;
  --gutter: 24px;
  --gutter-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gutter-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Japanese (#524). The faces above have no Japanese in them, so each
   character they lack comes from the face the browser has for the page's
   language. The Japanese system faces are named, so that it is the same
   on every Mac, iPhone, Android phone and PC, and never a Chinese face's
   shapes for the same characters. Lines break where Japanese readers
   expect: never before 。 or 、, and between phrases where the browser can.
   As the app has them (web/src/fonts.css). */
:root:lang(ja) {
  --sans: 'IBM Plex Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Noto Sans CJK JP',
    'Yu Gothic UI', Meiryo, sans-serif;
  --display: 'Jost', 'IBM Plex Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP',
    'Noto Sans CJK JP', 'Yu Gothic UI', Meiryo, sans-serif;
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: break-word;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--accent-ink);
  text-decoration: none;
}

a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 50;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* --- The header and footer, the same on every page. */

.site-header {
  border-bottom: 1px solid var(--line);
}

.bar {
  max-width: var(--page);
  margin: 0 auto;
  padding: 16px var(--gutter-right) 16px var(--gutter-left);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  color: var(--logo);
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand:hover {
  color: var(--logo);
  text-decoration: none;
}

.mark {
  margin-bottom: -1px;
}

.tld {
  color: var(--accent);
}

.brand-help {
  margin-left: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink-mute);
}

.sections {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 15px;
}

.sections a {
  color: var(--ink-2);
}

.sections a[aria-current='page'] {
  color: var(--accent-ink);
  font-weight: 600;
}

.tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
}

.icon-button:hover {
  color: var(--accent-ink);
  border-color: var(--field-line);
}

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

/* A tap shows the control's own state, not the browser's blue square. */
a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

.languages[open] summary,
.menu[open] summary {
  background: var(--accent-wash);
  border-color: var(--accent-wash);
  color: var(--accent-ink);
}

.languages,
.menu {
  position: relative;
}

.languages summary {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  list-style: none;
}

.languages-panel,
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}

.languages-panel a,
.menu-panel nav a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 15px;
}

.languages-panel a:hover,
.menu-panel nav a:hover {
  background: var(--accent-wash);
  text-decoration: none;
}

.languages-panel a[aria-current='true'],
.menu-panel a[aria-current] {
  font-weight: 600;
}

.languages-panel a[aria-current='true']::after,
.menu-languages a[aria-current='true']::after {
  content: '✓';
  color: var(--accent);
}

.open-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.open-app:hover {
  color: var(--button-ink);
  text-decoration: none;
  background: var(--accent-deep);
}

.menu {
  display: none;
}

.menu summary {
  border-color: transparent;
  background: transparent;
}

.menu-panel {
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  gap: 10px;
}

.menu-panel nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-languages {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer .bar {
  padding-top: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  font-size: 14px;
  color: var(--ink-mute);
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

/* --- Pages that are read: guides, articles, the questions, the
   glossary. */

.doc,
.listing {
  max-width: var(--page);
  margin: 0 auto;
  padding: 56px var(--gutter-right) 80px var(--gutter-left);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.listing {
  align-items: stretch;
  gap: 36px;
}

.doc-head {
  width: 100%;
  max-width: var(--text);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.listing .doc-head {
  max-width: 760px;
}

.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker a {
  color: var(--accent);
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 50px;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.meta {
  margin: 0;
  padding-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 14px;
  color: var(--ink-mute);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.pills a {
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}

.pills a:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
}

.doc-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.doc-body > * {
  width: 100%;
  max-width: var(--text);
  margin: 0;
}

.doc-body > .shot {
  max-width: var(--wide);
}

.doc-body a:not(.term),
.answer a:not(.term),
.definition a:not(.term) {
  text-decoration: underline;
  text-decoration-color: rgba(95, 69, 150, 0.35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.doc-body a:not(.term):hover,
.answer a:not(.term):hover,
.definition a:not(.term):hover {
  text-decoration-color: currentColor;
}

.doc-body h2,
.doc-body h3 {
  font-family: var(--display);
  font-weight: 600;
  scroll-margin-top: 24px;
}

.doc-body > h2 {
  margin-top: 26px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.doc-body > h3 {
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.25;
}

.doc-body ul,
.doc-body ol {
  padding-left: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

ol.steps li::marker {
  color: var(--accent);
  font-family: var(--display);
  font-weight: 600;
}

ol.steps li {
  padding-left: 0.2em;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--code-wash);
  overflow-wrap: anywhere;
}

pre {
  overflow-x: auto;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--code-wash);
}

pre code {
  padding: 0;
  background: none;
  overflow-wrap: normal;
}

.table {
  overflow-x: auto;
}

.table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  text-align: left;
  vertical-align: top;
}

.table th {
  font-weight: 600;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.facts > div {
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}

.facts > div:last-child {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.facts dt {
  font-weight: 600;
}

.facts dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--accent-wash);
}

.callout-label {
  flex: none;
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.75;
  color: var(--accent-ink);
}

.callout-body {
  min-width: 0;
  font-size: 16px;
}

.callout-body > * {
  margin: 0 0 8px;
}

.callout-body > :last-child {
  margin-bottom: 0;
}

.callout.tip {
  background: var(--tip-wash);
}

.callout.tip .callout-label {
  color: var(--tip-ink);
}

.callout.careful {
  background: var(--careful-wash);
}

.callout.careful .callout-label {
  color: var(--careful-ink);
}

/* A term the glossary defines, at its first use on a page: a dotted line
   under it, and its card on hover or tap (see docs.js). */
a.term {
  color: var(--accent-deep);
  font-weight: 500;
  border-bottom: 1.5px dotted var(--accent);
}

a.term:hover {
  background: var(--accent-wash);
  text-decoration: none;
}

.term-card {
  position: absolute;
  z-index: 40;
  width: min(340px, calc(100vw - 32px));
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
  font-size: 14px;
  line-height: 1.55;
}

.term-card-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}

.term-card-text {
  margin: 0;
  color: var(--ink-soft);
}

.term-card a {
  font-size: 13px;
  font-weight: 600;
}

/* --- Annotated screenshots. The marks are SVG in the screenshot's own
   coordinates, laid over the picture, so they scale with it. A figure
   holds a picture for each device it was taken on, and shows the one for
   the screen it is read on. */

.shot {
  margin: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.shot-view {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.shot-view.phone {
  display: none;
}

.shot-view.only {
  display: flex;
}

.shot-frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.shot-frame img {
  display: block;
  max-width: 100%;
  height: auto;
}

.marks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.marks .halo {
  fill: none;
  stroke: var(--accent-halo);
  stroke-width: 10;
}

.marks .ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
}

.marks .outline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 7 5;
}

.marks .marker circle {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 3;
}

.marks .marker text {
  fill: var(--surface);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}

.shot-zoom {
  display: block;
  max-width: 100%;
  height: auto;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  background: var(--surface);
}

.shot figcaption {
  max-width: var(--text);
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
}

/* --- Did this help? */

.feedback {
  width: 100%;
  max-width: var(--text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
}

.feedback-question {
  margin: 0;
  font-weight: 600;
}

.feedback-answers {
  display: flex;
  gap: 10px;
}

.feedback button {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.feedback button:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.feedback-thanks {
  margin: 0;
  color: var(--ink-soft);
}

/* --- Cards: what to read next, and the guides in a topic. */

.keep-reading {
  max-width: calc(var(--wide) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter-right) 80px var(--gutter-left);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.keep-reading h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
}

.cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cards li {
  flex: 1 1 240px;
  min-width: 0;
}

.cards.guides li {
  flex-basis: 300px;
}

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
}

.card:hover {
  color: var(--ink);
  border-color: var(--field-line);
  text-decoration: none;
}

.card-kind {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.card-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
}

.card-summary {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.card-minutes {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
}

.topic {
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 24px;
}

.topic h2,
.update h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
}

.topic h2 a,
.update h2 a {
  color: var(--ink);
}

.updates {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 760px;
}

.update {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.update p {
  margin: 0;
}

.update p:not(.kicker) {
  color: var(--ink-soft);
}

/* --- The questions, folded under each question. */

.questions {
  width: 100%;
  max-width: var(--text);
  display: flex;
  flex-direction: column;
}

.question {
  padding: 14px 0;
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: 24px;
}

.question:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.question summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
}

.question summary::after {
  content: '';
  flex: none;
  width: 9px;
  height: 9px;
  margin: 8px 4px 0 0;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 120ms ease;
}

.question[open] summary::after {
  transform: rotate(225deg);
  margin-top: 12px;
}

.answer {
  margin-top: 10px;
  color: var(--ink-soft);
}

.answer > * {
  margin: 0 0 10px;
}

.answer > :last-child {
  margin-bottom: 0;
}

/* --- The glossary. */

.glossary {
  width: 100%;
  max-width: var(--text);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.entry {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  scroll-margin-top: 24px;
}

.entry:target {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-halo);
}

.entry h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
}

.definition {
  color: var(--ink-soft);
}

.definition > * {
  margin: 0 0 8px;
}

.definition > :last-child {
  margin-bottom: 0;
}

/* --- The home page. */

.kind-home main {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 56px var(--gutter-right) 72px var(--gutter-left);
  display: flex;
  flex-direction: column;
  gap: 64px;
  font-size: 16px;
  line-height: 1.6;
}

.kind-home main h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 760px;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.04;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 20px;
  border: 1px solid var(--field-line);
  border-radius: 999px;
  background: var(--surface);
  max-width: 620px;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-halo);
}

.search-box .icon {
  flex: none;
  stroke: var(--accent);
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  outline: none;
}

/* The browser's own clear button, in its own blue: the dialog has Close,
   and a search is cleared the way any field is. */
.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.hero-results {
  max-width: 620px;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-pop);
}

.news {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.news-text {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-text p {
  margin: 0;
}

.news-text > p:not(.kicker):not(.news-links) {
  color: var(--ink-soft);
}

.kind-home .news h2 {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.news-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 600;
  font-size: 15px;
}

.news-thumb {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 480px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.start,
.topics,
.asked {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.start-cards {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.start-cards li {
  flex: 1 1 280px;
  min-width: 0;
}

.start-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 16px;
  background: var(--accent-wash);
  color: var(--ink);
}

.start-card:hover {
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--field-line);
}

.start-card .card-title {
  font-size: 21px;
  line-height: 1.2;
}

.start-card.tone-1 {
  background: var(--tip-wash);
}

.start-card.tone-1 .card-minutes {
  color: var(--tip-ink);
}

.start-card.tone-2 {
  background: var(--careful-wash);
}

.start-card.tone-2 .card-minutes {
  color: var(--careful-ink);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  column-gap: 48px;
}

.topic-row {
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.topic-row h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
}

.topic-row h3 a {
  color: var(--ink);
}

.topic-links {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 15px;
}

.asked {
  max-width: 760px;
  gap: 8px;
}

.kind-home .asked h2 {
  margin-bottom: 10px;
}

.asked .questions {
  max-width: none;
}

.asked > p {
  margin: 10px 0 0;
  font-weight: 600;
}

/* --- Search. */

.search-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(72vh, 640px);
  margin: 10vh auto auto;
  padding: 0;
  border: none;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.search-dialog[open] {
  display: flex;
  flex-direction: column;
}

.search-dialog::backdrop {
  background: var(--backdrop);
}

.search-dialog .search-box {
  flex: none;
  max-width: none;
  height: 60px;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.search-close {
  flex: none;
  padding: 8px 4px;
  border: none;
  background: transparent;
  color: var(--accent-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.search-dialog .search-results {
  overflow-y: auto;
  padding: 8px;
}

.search-dialog .search-results:empty {
  display: none;
}

.result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink);
}

.result:hover,
.result:focus,
.result.active {
  background: var(--accent-wash);
  color: var(--ink);
  text-decoration: none;
  outline: none;
}

.result-kind {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.result-title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
}

.result-text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.search-empty {
  margin: 0;
  padding: 12px 14px;
  color: var(--ink-mute);
  font-size: 15px;
}

/* --- A phone. */

@media (max-width: 759px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .site-header .bar {
    flex-wrap: nowrap;
    min-height: 58px;
    padding-top: 6px;
    padding-bottom: 6px;
    gap: 6px;
  }

  .brand {
    font-size: 20px;
  }

  .brand .mark {
    width: 12px;
    height: 15px;
  }

  .brand-help {
    margin-left: 8px;
    font-size: 14px;
  }

  .site-header .sections,
  .tools > .languages,
  .tools > .open-app {
    display: none;
  }

  .tools {
    gap: 2px;
  }

  .tools .search-open {
    border-color: transparent;
    background: transparent;
    width: 44px;
    height: 44px;
  }

  .menu {
    display: block;
  }

  .menu summary {
    width: 44px;
    height: 44px;
  }

  .doc,
  .listing {
    padding-top: 28px;
    padding-bottom: 56px;
    gap: 16px;
  }

  .listing {
    gap: 28px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .lead {
    font-size: 18px;
  }

  .meta {
    font-size: 13px;
    gap: 4px 10px;
  }

  .meta .before-also {
    display: none;
  }

  .meta .also {
    flex-basis: 100%;
  }

  .pills a {
    padding: 5px 12px;
    font-size: 13.5px;
  }

  .doc-body {
    gap: 16px;
  }

  .doc-body > h2 {
    margin-top: 12px;
    font-size: 26px;
  }

  .callout {
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
  }

  .callout-label {
    font-size: 14px;
  }

  .shot-view.desktop {
    display: none;
  }

  .shot-view.phone,
  .shot-view.only {
    display: flex;
  }

  .shot-frame {
    border-radius: 16px;
  }

  .keep-reading {
    padding-bottom: 56px;
  }

  .kind-home main {
    padding-top: 32px;
    padding-bottom: 56px;
    gap: 44px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .search-box {
    height: 52px;
    padding: 0 16px;
  }

  .news {
    padding: 20px;
    gap: 18px;
  }

  .kind-home .news h2 {
    font-size: 26px;
  }

  .news-thumb {
    flex-basis: auto;
    width: 100%;
    max-width: 100%;
  }

  .search-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .search-dialog .search-box {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(60px + env(safe-area-inset-top, 0px));
  }

  .site-footer nav {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .question summary::after {
    transition: none;
  }
}
