/* tmail.sh: the landing page and the docs. No build step: plain CSS.
   One look, dark: aubergine, violet for the protocol, mint for what is good. */

@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(fonts/red-hat-display-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Display";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(fonts/red-hat-display-latin-wght-normal.woff2) format("woff2-variations");
  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: "Red Hat Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(fonts/red-hat-mono-latin-wght-normal.woff2) format("woff2-variations");
}

:root {
  color-scheme: dark;

  --page: #17131f;
  --rail: #1c1726;
  --ink: #ece8f5;
  --muted: #a59fb8;
  --line: #2e2740;
  --field: #3d3554;
  --accent: #b8a6ff;
  --accent-ink: #c8baff;
  --on-accent: #17131f;
  --mark: #2b2440;
  --good: #7fe0c3;

  /* The wire: protocol text is set on this. */
  --wire: #1f1a2b;
  --wire-line: #352d4a;
  --wire-ink: #ece8f5;
  --wire-muted: #9a93b0;
  --wire-call: #b8a6ff;
  --wire-ok: #7fe0c3;

  /* The chart's three kinds of data, checked with the palette validator
     against both surfaces. */
  --c-bodies: #8770e0;
  --c-meta: #35a7c2;
  --c-search: #b8922a;

  --sans: "Red Hat Display", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 66ch;
  --wide: 70rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}

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

code,
pre,
kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  font-variant-ligatures: none;
}
p code,
li code,
td code,
dd code,
figcaption code {
  background: var(--rail);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.3em;
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -100rem;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--page);
  padding: 0.5rem 0.75rem;
}

/* ---------- The top bar ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.7rem var(--gutter);
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}
.wordmark {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.wordmark span {
  color: var(--accent);
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  font-size: 0.95rem;
}
.top nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}
.top nav a:hover,
.top nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
}

/* ---------- Shared type ---------- */

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 7.2vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
}
h3 {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
p {
  margin: 0 0 1em;
  max-width: var(--measure);
  text-wrap: pretty;
}
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
  max-width: 58ch;
}
.note {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Landing: the hero ---------- */

.hero {
  padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 4rem);
}
.hero h1 {
  max-width: 13ch;
}
.hero .lede {
  margin-top: 1.6rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.8rem 0 0;
}
.button {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font-weight: 650;
  text-decoration: none;
  border: 1.5px solid var(--accent);
  color: var(--accent-ink);
}
.button:hover {
  background: var(--mark);
}
.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}
.button.primary:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
}

/* ---------- The wire: two transcripts side by side ---------- */

.wire {
  margin: clamp(2.2rem, 5vw, 3.5rem) 0 0;
  background: var(--wire);
  color: var(--wire-ink);
  border: 1px solid var(--wire-line);
  border-radius: 14px;
  overflow: hidden;
}
.wire-title {
  margin: 0;
  max-width: none;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--wire-line);
  font-weight: 650;
}
.wire-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.wire-side {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.wire-side + .wire-side {
  border-left: 1px solid var(--wire-line);
}
.wire-who {
  margin: 0;
  max-width: none;
  padding: 0.8rem 1.25rem 0.5rem;
  color: var(--wire-muted);
  font-size: 0.9rem;
}
.wire-log {
  margin: 0;
  padding: 0 1.25rem 0.9rem;
  height: 21.5rem;
  overflow-y: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.62;
  list-style: none;
  scrollbar-color: var(--wire-line) transparent;
  scrollbar-width: thin;
}
.wire-log li {
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wire-log .tag {
  color: var(--wire-muted);
}
.wire-log .call {
  color: var(--wire-call);
  font-weight: 700;
}
.wire-log .ask {
  white-space: normal;
  overflow-wrap: anywhere;
}
.wire-log .back {
  color: var(--wire-muted);
  white-space: normal;
  padding-left: 4ch;
  text-indent: -2ch;
  max-width: 46ch;
}
.wire-log .gap {
  height: 0.9rem;
}
.wire-log.rolling li.later {
  visibility: hidden;
}
.wire-sum {
  margin: 0;
  max-width: none;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--wire-line);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.wire-sum small {
  display: block;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.88rem;
  color: var(--wire-muted);
  margin-top: 0.2rem;
}
.wire-side.ours .wire-sum {
  color: var(--wire-call);
}
.wire-note {
  margin: 0.9rem 0 0;
  max-width: 78ch;
}

@media (max-width: 46rem) {
  .wire-sides {
    grid-template-columns: 1fr;
  }
  .wire-side + .wire-side {
    border-left: 0;
    border-top: 1px solid var(--wire-line);
  }
  .wire-log {
    height: 13rem;
  }
  .wire-side.ours .wire-log {
    height: auto;
  }
}

/* ---------- Landing: sections ---------- */

.part {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}
.part.tinted {
  background: var(--rail);
}
.part h2 {
  max-width: 20ch;
  margin-bottom: 1.2rem;
}
.part .lede {
  margin-bottom: 2rem;
}

/* Statements in two columns: a name, and what it means. Not cards. */
.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 0 3rem;
  margin: 2.2rem 0 0;
  padding: 0;
}
.points.two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
}
.points > div {
  padding: 1.1rem 0 1.2rem;
  border-top: 1px solid var(--line);
}
.points dt {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}
.points dd {
  margin: 0;
  max-width: 52ch;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.5rem 3.5rem;
  align-items: start;
}
@media (max-width: 58rem) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* The apps, one row each: its name and what it is built with, then
   what is its own. */
.app-rows {
  margin-top: 2.4rem;
}
.app-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: 0.8rem 3rem;
  padding: 1.7rem 0 1.5rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 4.5rem;
}
.app-row h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.app-row h3 code {
  font-size: 0.9em;
}
.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: 3rem;
  font-size: 0.97rem;
  line-height: 1.45;
}
.ticks li {
  position: relative;
  padding: 0.25rem 0 0.25rem 1.1rem;
  break-inside: avoid;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--good);
}
@media (max-width: 58rem) {
  .app-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 40rem) {
  .ticks {
    columns: 1;
  }
}

/* What the apps do: a list under each heading. */
.feats-title {
  margin: 3rem 0 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.8rem 3rem;
  margin: 1.4rem 0 1.4rem;
}
.feat h3 {
  padding-bottom: 0.45rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid var(--field);
}
.feat ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.45;
}
.feat li {
  position: relative;
  padding: 0.22rem 0 0.22rem 1.1rem;
}
.feat li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--good);
}

/* ---------- Code ---------- */

.code {
  margin: 0;
  background: var(--wire);
  color: var(--wire-ink);
  border: 1px solid var(--wire-line);
  border-radius: 12px;
  overflow: hidden;
}
.code figcaption {
  padding: 0.6rem 1.1rem;
  border-bottom: 1px solid var(--wire-line);
  color: var(--wire-muted);
  font-size: 0.86rem;
}
.code pre {
  margin: 0;
  padding: 1rem 1.1rem 1.1rem;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.6;
  tab-size: 2;
}
.code .c {
  color: var(--wire-muted);
}
.code .k {
  color: var(--wire-call);
}
.code .ok {
  color: var(--wire-ok);
}
.doc .code {
  margin: 1.4rem 0 1.6rem;
}

/* ---------- A Watch stream, as an illustration ---------- */

.watch {
  margin: 0;
  background: var(--wire);
  color: var(--wire-ink);
  border: 1px solid var(--wire-line);
  border-radius: 14px;
  overflow: hidden;
}
.watch figcaption {
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--wire-line);
  font-weight: 700;
}
.watch ol {
  list-style: none;
  margin: 0;
  padding: 1rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
}
.watch li {
  display: grid;
  padding: 0.32rem 0;
}
.watch li span {
  white-space: pre-wrap;
}
.watch li em {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.84rem;
  color: var(--wire-muted);
  padding-left: 2ch;
}
.watch .call {
  color: var(--wire-call);
  font-weight: 700;
}
.watch .in {
  color: var(--wire-ok);
  font-weight: 700;
}
.watch .dim {
  color: var(--wire-muted);
}
.watch .watch-note {
  margin: 0;
  max-width: none;
  padding: 0.8rem 1.2rem;
  border-top: 1px solid var(--wire-line);
  color: var(--wire-muted);
  font-size: 0.9rem;
}
.split.second {
  margin-top: 3rem;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}
.split.second .points {
  margin-top: 0;
  grid-template-columns: 1fr;
}
.split.second .points > div:first-child {
  border-top: 0;
  padding-top: 0;
}
@media (max-width: 58rem) {
  .split.second {
    grid-template-columns: 1fr;
  }
}

/* ---------- Tables ---------- */

.table {
  overflow-x: auto;
  margin: 1.4rem 0 1.6rem;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
caption {
  text-align: left;
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
  caption-side: top;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 1rem 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
thead th {
  font-weight: 650;
  color: var(--muted);
  border-bottom-color: var(--field);
  white-space: nowrap;
}
tbody th {
  font-weight: 500;
}
td.n,
th.n {
  text-align: right;
  white-space: nowrap;
  padding-right: 1.4rem;
}
tr.ours td,
tr.ours th {
  font-weight: 700;
}
td.best {
  font-weight: 700;
  color: var(--good);
}

/* ---------- The storage chart: horizontal stacked bars, to scale ---------- */

.chart {
  margin: 2rem 0 0;
}
.chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}
.chart-key li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.sw {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 3px;
  flex: none;
}
.sw.bodies,
.seg.bodies {
  background: var(--c-bodies);
}
.sw.meta,
.seg.meta {
  background: var(--c-meta);
}
.sw.search,
.seg.search {
  background: var(--c-search);
}
.bars {
  --label: 9.5rem;
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding: 1.9rem 0 0.4rem;
  margin-bottom: 2.2rem;
}
.bar-row {
  display: grid;
  grid-template-columns: var(--label) minmax(0, 1fr);
  align-items: center;
  position: relative;
}
.bar-name {
  font-weight: 600;
  line-height: 1.2;
  padding-right: 0.8rem;
}
.bar-name small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.82rem;
}
.bar-track {
  position: relative;
  height: 2.5rem;
}
/* The whole track is 24 GiB wide. */
.bar {
  display: flex;
  gap: 2px;
  height: 100%;
  align-items: stretch;
}
.seg {
  flex: none;
  min-width: 2px;
  border-radius: 0;
}
.seg:first-child {
  border-radius: 0;
}
.seg:last-of-type {
  border-radius: 0 4px 4px 0;
}
.seg:hover,
.seg:focus-visible {
  filter: brightness(1.12);
}
.bar-total {
  align-self: center;
  margin-left: 0.6rem;
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.bar-total small {
  font-weight: 400;
  color: var(--muted);
}
.grid {
  position: absolute;
  inset: 0 0 0 var(--label);
  pointer-events: none;
}
.grid i {
  position: absolute;
  top: 1.5rem;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.grid b {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.grid b:first-of-type {
  transform: none;
}
.grid .mail {
  background: none;
  border-left: 1.5px dashed var(--muted);
  top: 1.5rem;
}
.grid .mail-label {
  color: var(--ink);
  font-weight: 600;
  transform: none;
  padding-left: 0.4rem;
  top: auto;
  bottom: -1.6rem;
}
/* Where the chart's marks stand: the track is 24 GiB wide. Kept here and
   not in style attributes, which the site's content policy does not allow. */
.grid .g0 {
  left: 0;
}
.grid .g5 {
  left: 20.83%;
}
.grid .g10 {
  left: 41.67%;
}
.grid .g15 {
  left: 62.5%;
}
.grid .g20 {
  left: 83.33%;
}
.grid .gmail {
  left: 47.08%;
}
.w-cyrus-b {
  width: 50%;
}
.w-cyrus-m {
  width: 5%;
}
.w-cyrus-s {
  width: 38.33%;
}
.w-stal-b {
  width: 30.83%;
}
.w-stal-m {
  width: 9.17%;
}
.w-stal-s {
  width: 1.67%;
}
.w-tern-b {
  width: 17.08%;
}
.w-tern-m {
  width: 0.33%;
}
.w-tern-s {
  width: 0.25%;
}
.tip {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  background: var(--ink);
  color: var(--page);
  font-size: 0.85rem;
  line-height: 1.35;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  max-width: 16rem;
}
.tip[hidden] {
  display: none;
}
@media (max-width: 40rem) {
  .bars {
    --label: 0rem;
    gap: 1.4rem;
  }
  .bar-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .bar-name small {
    display: none;
  }
  .grid {
    inset: 0;
  }
  .grid .mail-label {
    display: none;
  }
  .bar-total {
    position: absolute;
    right: 0;
    top: -1.6rem;
    margin: 0;
  }
}

/* ---------- Queries with what they cost ---------- */

.queries {
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--wire);
  color: var(--wire-ink);
  border: 1px solid var(--wire-line);
  border-radius: 12px;
  overflow: hidden;
}
.queries li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1.2rem;
  padding: 0.8rem 1.1rem;
  align-items: baseline;
}
.queries li + li {
  border-top: 1px solid var(--wire-line);
}
.queries li code {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  white-space: normal;
  background: none;
  border: 0;
  padding: 0;
}
.queries .ms {
  color: var(--wire-call);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.queries .what {
  grid-column: 1 / -1;
  color: var(--wire-muted);
  font-size: 0.86rem;
}

/* ---------- The closing band and the foot ---------- */

.status {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--wire);
  color: var(--wire-ink);
}
.status h2 {
  max-width: 22ch;
  margin-bottom: 1rem;
}
.status a {
  color: var(--wire-call);
}
.status p code {
  background: var(--wire-line);
  border-color: var(--wire-line);
}
.status .note {
  color: var(--wire-muted);
}
.status .button {
  border-color: var(--wire-call);
  color: var(--wire-call);
}
.status .button:hover {
  background: var(--wire-line);
}

.foot {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  justify-content: space-between;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
}
.foot a {
  color: var(--muted);
}

/* ---------- Docs ---------- */

.docs {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 3.5rem;
}
.side {
  position: sticky;
  top: 3.4rem;
  align-self: start;
  padding: 2.4rem 0 2rem;
  max-height: calc(100vh - 3.4rem);
  overflow-y: auto;
  font-size: 0.95rem;
}
.side ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side > ol > li {
  margin-bottom: 0.15rem;
}
.side a {
  display: block;
  padding: 0.3rem 0.7rem;
  border-left: 3px solid transparent;
  color: var(--ink);
  text-decoration: none;
  border-radius: 0 6px 6px 0;
}
.side a:hover {
  background: var(--rail);
}
.side a[aria-current="page"] {
  background: var(--mark);
  border-left-color: var(--accent);
  font-weight: 650;
}
.side ol ol {
  margin: 0.2rem 0 0.6rem;
  font-size: 0.88rem;
}
.side ol ol a {
  padding: 0.18rem 0.7rem 0.18rem 1.4rem;
  color: var(--muted);
}

.doc {
  padding: 2.6rem 0 4.5rem;
  min-width: 0;
}
.doc h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1;
  max-width: 18ch;
  margin-bottom: 1.2rem;
}
.doc h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin: 3rem 0 0.9rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  max-width: 28ch;
}
.doc h3 {
  margin: 2rem 0 0.6rem;
}
.doc ul,
.doc ol {
  max-width: var(--measure);
  padding-left: 1.3rem;
  margin: 0 0 1em;
}
.doc li {
  margin-bottom: 0.4em;
}
.doc li::marker {
  color: var(--muted);
}
.doc .lede {
  margin-bottom: 1.6rem;
}
.aside {
  border-left: 3px solid var(--accent);
  background: var(--rail);
  padding: 0.9rem 1.1rem;
  border-radius: 0 8px 8px 0;
  max-width: var(--measure);
  margin: 1.4rem 0 1.6rem;
}
.aside p:last-child {
  margin-bottom: 0;
}
.aside strong {
}
.next {
  margin-top: 3.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.next a {
  font-weight: 650;
}

@media (max-width: 54rem) {
  .docs {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .side {
    display: none;
  }
}

/* ---------- The doors: who comes in where ---------- */

.doors {
  margin: 1.6rem 0 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr);
  gap: 0;
  align-items: stretch;
  font-size: 0.92rem;
  line-height: 1.35;
}
.doors-col {
  display: grid;
  gap: 0.5rem;
  align-content: center;
}
.doors-col.mid {
  padding: 0 1.2rem;
}
.door {
  border: 1px solid var(--field);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  background: var(--page);
}
.door b {
  display: block;
}
.door span {
  color: var(--muted);
}
.door.native {
  border-color: var(--accent);
  background: var(--mark);
}
.core {
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 0.9rem;
  display: grid;
  gap: 0.5rem;
  align-content: center;
  height: 100%;
}
.core > b {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
@media (max-width: 46rem) {
  .doors {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .doors-col.mid {
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  .top,
  .side {
    display: none;
  }
}
