/* Extends the shared tokens in ../main.css. */
:root {
  --surface: #171a20;
  --border-strong: #3a414e;
  --heading: #f4f6fa;
}

body {
  display: block;
  min-height: auto;
  padding: 0;
  line-height: 1.65;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  text-align: left;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
}

.crumb .mark {
  width: 28px;
  height: 28px;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.2;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

h2 {
  margin: 3.75rem 0 1rem;
  padding-top: 0.25rem;
  font-size: 1.65rem;
  letter-spacing: -0.015em;
}

h3 {
  margin: 2.25rem 0 0.65rem;
  font-size: 1.15rem;
}

.lede {
  max-width: 680px;
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

p {
  margin: 0 0 1.15rem;
}

a {
  color: var(--brand-text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
}

a:hover {
  border-bottom-color: var(--brand-text);
}

.crumb a,
.foot a {
  color: var(--faint);
  border-bottom-color: transparent;
}

.crumb a:hover,
.foot a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.contents {
  margin: 2.75rem 0 3.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--surface);
}

.contents ol {
  columns: 2;
  margin: 0;
  padding-left: 1.35rem;
}

.contents li {
  margin: 0.25rem 0;
  break-inside: avoid;
}

ul {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.55rem;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: #23272f;
  color: var(--heading);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.hero {
  margin: 0 0 3rem;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  /* The illustration's near-black ground screens away into the page background. */
  mix-blend-mode: screen;
}

.tui-shot {
  margin: 1.75rem 0 2rem;
}

.tui-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 12px 36px rgb(0 0 0 / 35%);
}

.tui-shot figcaption {
  margin-top: 0.65rem;
  color: var(--faint);
  font-size: 0.85rem;
}

.foot {
  margin-top: 5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--faint);
  font-size: 0.85rem;
}

@media (min-width: 720px) {
  main {
    padding: 4rem 2rem 7rem;
  }
}

@media (max-width: 540px) {
  .contents ol {
    columns: 1;
  }
}
