@font-face {
  font-family: DM;
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
/* The website shares the desktop app's paper, forest and sage colours. */
:root {
  font-family: DM, Arial, sans-serif;
  font-synthesis: none;
  --paper: #f7f7f4;
  --surface: #f0f2ed;
  --text: #292b2a;
  --muted: #626c5c;
  --line: #dce0d5;
  --accent: #345f4c;
  --on-accent: #f7f7f4;
  --tint: #e7ebe2;
  --sheet: #fcfcf8;
  --code: #edf1e7;
  --shadow: #25321b17;
  --header: #f7f7f4f5;
  color: var(--text);
  background: var(--paper);
}
:root[data-theme="dark"] {
  --paper: #171c19;
  --surface: #202622;
  --text: #e4ebe1;
  --muted: #acb7a8;
  --line: #354137;
  --accent: #b4c4ae;
  --on-accent: #171c19;
  --tint: #252e27;
  --sheet: #2b352e;
  --code: #232d25;
  --shadow: #080e095c;
  --header: #171c19f5;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a,
button,
select {
  outline-offset: 5px;
  transition:
    color 0.18s,
    background-color 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
}
button:active,
.button:active {
  transform: translateY(1px);
}
button:disabled {
  cursor: default;
}
img {
  max-width: 100%;
}
p {
  line-height: 1.75;
}
em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
h1,
h2 {
  font-weight: 550;
  letter-spacing: -0.06em;
}
h2 {
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: 1.04;
  margin-bottom: 0;
}
h2 em {
  color: var(--accent);
  letter-spacing: -0.055em;
}
.wrap {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 72px);
}
.overline {
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  margin: 0 0 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip-link:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  background: var(--paper);
  padding: 12px;
  z-index: 5;
}
.site-header {
  height: 100px;
  max-width: 1440px;
  padding-inline: clamp(24px, 5vw, 72px);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 2;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -1.1px;
  flex-shrink: 0;
}
.wordmark img {
  display: block;
  border-radius: 8px;
}
.site-header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  font-size: 13px;
}
.site-header nav a {
  padding: 10px 0;
}
.site-header nav a:hover,
footer > a:not(.wordmark):hover {
  color: var(--accent);
}
.theme-control {
  border-left: 1px solid var(--line);
  padding-left: 26px;
  display: flex;
}
.theme-control select {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 12px;
  font-size: 12px;
  background: var(--paper);
  color: var(--text);
  cursor: pointer;
  min-width: 94px;
}
.hero {
  display: grid;
  grid-template-columns: 43% 57%;
  align-items: center;
  padding-block: 60px 58px;
  gap: 0;
  min-height: 595px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding-right: 25px;
}
.hero h1 {
  font-size: clamp(56px, 6.2vw, 89px);
  line-height: 1.015;
  letter-spacing: -0.065em;
  margin: 0 0 30px;
}
.hero h1 em {
  display: inline-block;
  color: var(--accent);
  font-size: 1.12em;
  line-height: 1;
  letter-spacing: -0.065em;
}
.hero-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 29px;
  max-width: 420px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.button {
  background: var(--accent);
  color: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 13px;
  font-weight: 550;
  padding: 17px 22px;
  border-radius: 5px;
  white-space: nowrap;
}
.button span {
  font-size: 20px;
  line-height: 1;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px var(--shadow);
}
.text-link {
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--accent);
  padding: 0;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.text-link:hover {
  text-decoration-color: var(--accent);
}
.hero-media {
  position: relative;
  margin: 0 0 0 22px;
  padding-block: 15px;
}
.preview-backdrop {
  position: absolute;
  inset: -13px 15px 29px -23px;
  background: var(--tint);
  border-radius: 10px;
  transform: rotate(-2deg);
  z-index: 0;
}
.preview-button {
  position: relative;
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 22px 55px var(--shadow);
  text-align: left;
}
.preview-button > img {
  width: 100%;
  height: auto;
  display: block;
}
.preview-enlarge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 10px;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--accent);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.preview-button:hover .preview-enlarge,
.preview-button:focus-visible .preview-enlarge {
  opacity: 1;
  transform: none;
}
.hero-media figcaption {
  position: relative;
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  margin: 20px 0 0;
  letter-spacing: 0.15px;
}
.format-strip {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  padding-block: 25px;
}
.format-strip:before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(24px, 5vw, 72px);
  right: clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.format-strip p {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0;
}
.format-strip p:first-child {
  padding-right: 30px;
  border-right: 1px solid var(--line);
}
.format-strip p > span:not(.status-dot) {
  color: var(--muted);
}
.format-strip a {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.format-strip a:hover {
  color: var(--accent);
}
.page-story {
  padding-top: 100px;
  padding-bottom: 100px;
  scroll-margin-top: 25px;
}
.story-heading {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 42px;
}
.story-heading > p {
  max-width: 400px;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 4px;
  justify-self: end;
}
.story-heading .overline {
  margin-bottom: 20px;
}
.sequence-demo {
  background: var(--tint);
  padding: 30px 32px 22px;
  border-radius: 8px;
}
.sequence-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.sequence-tabs {
  display: flex;
  gap: 3px;
  background: var(--paper);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.sequence-tabs button {
  border: 0;
  color: var(--muted);
  background: none;
  padding: 9px 16px;
  border-radius: 3px;
  font-size: 12px;
}
.sequence-tabs button:hover {
  color: var(--accent);
}
.sequence-tabs button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
}
.sequence-toolbar code {
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 1px;
}
.page-sequence {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
}
.page-sequence li {
  display: flex;
  flex-direction: column;
  position: relative;
  aspect-ratio: 3/4;
  background: var(--sheet);
  border: 1px solid color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: 1px;
  padding: 14px 16px;
  box-shadow:
    0 5px 3px var(--shadow),
    0 15px 20px var(--shadow);
  transform: rotate(-1deg);
  transition: transform 0.25s;
}
.page-sequence li:nth-child(even) {
  transform: rotate(1.3deg);
}
.page-sequence li:hover {
  transform: translateY(-6px);
}
.page-sequence li:first-child,
.page-sequence li:last-child {
  background: color-mix(in srgb, var(--sheet) 90%, var(--accent));
}
.sheet-index {
  font: 9px monospace;
  color: var(--muted);
  text-align: right;
}
.page-sequence strong {
  font-family: Georgia, serif;
  font-size: clamp(32px, 4.2vw, 60px);
  font-weight: 400;
  font-style: italic;
  line-height: 1;
  margin: 10px 0 16px;
  color: var(--accent);
}
.sheet-lines {
  display: block;
  height: 40px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line) 0 1px,
    transparent 1px 7px
  );
  width: 100%;
  position: relative;
}
.sheet-footer {
  font: 6px monospace;
  letter-spacing: 1px;
  margin-top: auto;
  padding-top: 15px;
  color: var(--muted);
}
.sequence-caption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 10px;
}
.sequence-caption p {
  font-size: 11px;
  color: var(--accent);
  margin: 0;
}
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-top: 55px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.principles article + article {
  border-left: 1px solid var(--line);
  padding-left: 60px;
}
.feature-number {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.8px;
}
.principles h3 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 20px 0 15px;
}
.principles h3 em {
  color: var(--accent);
}
.principles p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 470px;
  margin-bottom: 20px;
}
.install-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 20px;
}
.install {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding-block: 85px 75px;
  align-items: center;
}
.install h2 {
  font-size: clamp(40px, 4.3vw, 62px);
}
.install-requirements {
  font: 12px monospace;
  color: var(--muted);
  margin: 30px 0 17px;
}
.install-requirements span {
  padding: 0 12px;
}
.install-code {
  min-width: 0;
}
.terminal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.terminal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: var(--tint);
  font-size: 12px;
}
.terminal-heading > span {
  display: flex;
  gap: 12px;
  align-items: center;
}
.terminal-heading > span > span {
  font: 18px monospace;
  color: var(--accent);
}
.terminal-heading button {
  background: none;
  border: 0;
  color: var(--accent);
  padding: 3px;
  font-size: 11px;
}
.terminal pre {
  padding: 26px 22px;
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 2;
  color: var(--text);
}
.terminal-note {
  border-top: 1px solid var(--line);
  margin: 0 22px;
  padding: 16px 0;
  font-size: 10px;
  color: var(--muted);
}
.terminal-note span {
  color: var(--accent);
  margin-right: 9px;
}
.download-alternative {
  font-size: 11px;
  color: var(--muted);
  margin: 20px 0 0;
}
.download-alternative a {
  margin-left: 6px;
  font-size: 11px;
}
footer {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-block: 38px !important;
}
footer .wordmark {
  font-size: 23px;
}
footer p {
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
  color: var(--muted);
  margin: 0 auto;
}
footer > a:not(.wordmark) {
  font-size: 12px;
  color: var(--accent);
}
dialog {
  width: min(1250px, 95vw);
  max-height: 94dvh;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 30px 90px var(--shadow);
}
dialog::backdrop {
  background: #0c180fbb;
  backdrop-filter: blur(6px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 20px;
}
.dialog-heading h2 {
  font-size: 25px;
  letter-spacing: -1px;
}
.dialog-heading button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text);
}
.dialog-heading button span {
  margin-left: 10px;
}
dialog > img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
}
dialog > p {
  font-size: 11px;
  color: var(--muted);
  margin: 16px 0 0;
}
body:has(dialog[open]) {
  overflow: hidden;
}
/* Documentation uses the same tokens and rhythm as the product page. */
.doc-header {
  position: sticky;
  top: 0;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  max-width: none;
  height: 88px;
}
.doc-header nav {
  margin-left: auto;
}
.doc-layout {
  display: grid;
  grid-template-columns: 215px minmax(0, 760px);
  gap: 74px;
  max-width: 1270px;
  margin: auto;
  padding: 50px clamp(24px, 5vw, 64px) 80px;
}
.doc-nav {
  position: sticky;
  top: 118px;
  align-self: start;
  max-height: calc(100dvh - 145px);
  overflow-y: auto;
  padding-right: 18px;
  font-size: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.doc-links {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.doc-nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 4px;
  line-height: 1.5;
  color: var(--muted);
}
.doc-nav a:hover {
  color: var(--accent);
  background: var(--surface);
}
.doc-nav a.active {
  background: var(--tint);
  color: var(--accent);
  font-weight: 600;
}
.doc-nav a[aria-current="location"] {
  color: var(--accent);
  box-shadow: inset 2px 0 var(--accent);
}
.doc-group {
  display: block;
  font-size: 10px;
  letter-spacing: 1.1px;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 12px 13px;
}
.page-outline {
  padding-top: 24px;
}
.page-outline summary {
  cursor: pointer;
  list-style: none;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.1px;
  padding: 0 12px 14px;
}
.page-outline summary::-webkit-details-marker {
  display: none;
}
.page-outline summary:after {
  content: "−";
  float: right;
  font-size: 15px;
  line-height: 1;
}
.page-outline:not([open]) summary:after {
  content: "+";
}
.doc article {
  min-width: 0;
}
.doc article > .overline {
  font-size: 10px;
  margin-bottom: 22px;
}
.doc h1 {
  font-size: clamp(44px, 5vw, 66px);
  line-height: 1.04;
  margin-bottom: 30px;
}
.doc h2 {
  font-family: Georgia, serif;
  letter-spacing: -1.2px;
  font-weight: 400;
  font-size: 34px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin: 45px 0 20px;
  scroll-margin-top: 115px;
}
.doc h3 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.5px;
  margin: 30px 0 16px;
  scroll-margin-top: 115px;
}
.doc p,
.doc li {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}
.doc li {
  margin-bottom: 9px;
}
.doc strong {
  font-weight: 600;
  color: var(--text);
}
.doc article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.doc article a:hover {
  text-decoration-color: var(--accent);
}
.doc article > p > img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-block: 8px 10px;
}
.doc p code,
.doc li code {
  background: var(--code);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.82em;
  overflow-wrap: anywhere;
}
.doc pre {
  background: var(--code);
  color: var(--text);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.9;
  tab-size: 2;
}
.code-block {
  position: relative;
  margin-block: 22px;
}
.code-block pre {
  margin: 0;
  padding-top: 48px;
}
.code-copy {
  position: absolute;
  right: 13px;
  top: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--accent);
  padding: 4px 10px;
  font-size: 10px;
  border-radius: 4px;
}
.code-copy:hover {
  border-color: var(--accent);
}
.doc blockquote {
  margin: 24px 0;
  padding: 1px 22px;
  background: var(--tint);
  border-left: 2px solid var(--accent);
}
.doc table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 13px;
}
.doc td,
.doc th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.doc th {
  background: var(--surface);
  font-weight: 550;
}
.doc-pager {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 25px;
  font-size: 13px;
}
.doc-pager a {
  max-width: 50%;
}
.doc-pager span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 5px;
}
.doc footer {
  border-top: 1px solid var(--line);
}
@media (min-width: 1600px) {
  .hero {
    padding-top: 75px;
    padding-bottom: 75px;
  }
}
@media (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(52px, 6.2vw, 68px);
  }
  .hero-actions {
    gap: 17px;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
  .hero .button {
    padding: 15px 19px;
    gap: 23px;
  }
  .hero-copy {
    padding-right: 15px;
  }
  .hero-media {
    margin-left: 14px;
  }
  .story-heading {
    gap: 40px;
  }
  .page-sequence {
    gap: 12px;
  }
  .page-sequence li {
    padding: 12px;
  }
  .sheet-footer {
    font-size: 5px;
  }
  .install {
    gap: 40px;
  }
  .doc-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 35px;
  }
  .principles {
    gap: 40px;
  }
  .principles article + article {
    padding-left: 40px;
  }
}
@media (max-width: 800px) {
  .site-header {
    height: 82px;
    gap: 20px;
  }
  .site-header nav {
    gap: 22px;
  }
  .theme-control {
    padding-left: 20px;
  }
  .wordmark {
    font-size: 24px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 35px;
    padding-bottom: 30px;
    gap: 45px;
    min-height: 0;
  }
  .hero-copy {
    padding: 0;
  }
  .hero h1 {
    font-size: clamp(60px, 11vw, 85px);
    margin-bottom: 25px;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-actions .text-link {
    font-size: 13px;
  }
  .hero-media {
    margin: 5px 0 0 14px;
    padding-top: 10px;
  }
  .hero-media figcaption {
    font-size: 10px;
  }
  .preview-backdrop {
    inset: -9px 10px 27px -14px;
  }
  .format-strip {
    flex-wrap: wrap;
    gap: 16px 22px;
    padding-block: 22px;
  }
  .format-strip a {
    margin-left: 0;
  }
  .format-strip p {
    font-size: 11px;
  }
  .format-strip p:first-child {
    padding-right: 22px;
  }
  .story-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .story-heading > p {
    justify-self: start;
    max-width: 500px;
  }
  .page-story {
    padding-top: 70px;
    padding-bottom: 65px;
  }
  .page-sequence {
    gap: 10px;
  }
  .sequence-demo {
    padding: 22px 20px 18px;
  }
  .page-sequence li {
    padding: 10px;
  }
  .page-sequence strong {
    font-size: 40px;
    margin: 8px 0 12px;
  }
  .sheet-lines {
    height: 27px;
  }
  .sheet-footer {
    display: none;
  }
  .sheet-index {
    font-size: 8px;
  }
  .principles h3 {
    font-size: 27px;
  }
  .install {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 55px;
  }
  .install h2 {
    font-size: 50px;
  }
  .install-code {
    max-width: 100%;
  }
  footer {
    gap: 20px;
    flex-wrap: wrap;
  }
  footer p {
    font-size: 15px;
  }
  .doc-header {
    height: 82px;
  }
  .doc-layout {
    display: block;
    padding-top: 22px;
  }
  .doc-nav {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    margin-bottom: 32px;
  }
  .doc-links {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 12px;
    padding-bottom: 14px;
  }
  .doc-links > .doc-group {
    display: none;
  }
  .doc-nav a {
    font-size: 11px;
    padding: 8px 10px;
  }
  .page-outline {
    padding-top: 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 3px;
  }
  .page-outline summary {
    padding: 0 10px 13px;
  }
  .page-outline[open] summary {
    margin-bottom: 7px;
  }
  .page-outline a {
    display: inline-block;
    margin: 0 5px 8px 0;
    background: var(--surface);
    white-space: normal;
  }
  .doc h1 {
    font-size: 50px;
  }
  .doc h2 {
    font-size: 31px;
  }
  .doc-pager {
    margin-top: 38px;
  }
}
@media (max-width: 520px) {
  html {
    scroll-padding-top: 92px;
  }
  .site-header {
    gap: 15px;
    padding-inline: 22px;
  }
  .site-header nav {
    gap: 15px;
    font-size: 11px;
  }
  .site-header .source-link {
    display: none;
  }
  .site-header .wordmark {
    font-size: 23px;
    gap: 9px;
  }
  .site-header .wordmark img {
    width: 29px;
    height: 29px;
  }
  .theme-control {
    border-left: 0;
    padding: 0;
  }
  .theme-control select {
    min-width: 0;
    font-size: 11px;
    padding: 7px 6px;
    max-width: 84px;
  }
  .wrap {
    padding-inline: 24px;
  }
  .hero {
    padding-top: 32px;
    gap: 35px;
  }
  .hero .overline {
    font-size: 9px;
    letter-spacing: 1.1px;
    margin-bottom: 23px;
  }
  .hero h1 {
    font-size: clamp(48px, 14vw, 72px);
  }
  .hero-description {
    font-size: 14px;
  }
  .hero-description br {
    display: none;
  }
  .hero-actions {
    gap: 20px;
  }
  .hero .button {
    font-size: 12px;
    padding: 15px 18px;
  }
  .hero-actions .text-link {
    font-size: 11px;
  }
  .hero-media {
    margin-left: 8px;
  }
  .preview-backdrop {
    left: -8px;
  }
  .hero-media figcaption {
    text-align: left;
    font-size: 9px;
    margin-top: 16px;
  }
  .preview-enlarge {
    display: none;
  }
  .format-strip {
    gap: 14px 0;
  }
  .format-strip p {
    font-size: 10px;
  }
  .format-strip p:first-child {
    padding-right: 16px;
    margin-right: 16px;
    gap: 8px;
  }
  .format-strip p:nth-child(2) {
    gap: 7px;
  }
  .format-strip a {
    font-size: 10px;
  }
  .page-story {
    padding-top: 62px;
  }
  .story-heading h2 {
    font-size: 42px;
  }
  .story-heading > p {
    font-size: 14px;
    line-height: 1.8;
  }
  .sequence-demo {
    margin-inline: -7px;
    padding: 18px 16px 15px;
  }
  .sequence-toolbar {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }
  .sequence-tabs {
    width: 100%;
    justify-content: center;
  }
  .sequence-tabs button {
    font-size: 10px;
    padding: 9px 10px;
    flex: 1;
    white-space: nowrap;
  }
  .sequence-toolbar code {
    font-size: 13px;
  }
  .page-sequence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px 12px;
  }
  .page-sequence li {
    aspect-ratio: 3/3.8;
    padding: 9px 12px;
  }
  .page-sequence strong {
    font-size: 42px;
    margin: 9px 0 15px;
  }
  .sheet-lines {
    height: 22px;
  }
  .sequence-caption {
    flex-direction: column;
    gap: 2px;
    text-align: center;
    padding-top: 24px;
  }
  .sequence-caption p {
    font-size: 11px;
  }
  .sequence-caption > span {
    font-size: 9px;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 32px;
    padding-top: 35px;
  }
  .principles article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 30px;
  }
  .principles h3 {
    font-size: 31px;
    margin: 16px 0 12px;
  }
  .principles p {
    font-size: 14px;
  }
  .install h2 {
    font-size: 45px;
  }
  .install {
    padding-block: 48px;
    gap: 30px;
  }
  .install-requirements {
    font-size: 11px;
    margin-top: 25px;
  }
  .terminal-heading {
    padding: 16px;
    font-size: 11px;
  }
  .terminal pre {
    padding: 22px 16px;
    font-size: 11px;
    line-height: 1.9;
  }
  .terminal-note {
    margin-inline: 16px;
    font-size: 9px;
  }
  .download-alternative {
    font-size: 10px;
  }
  .download-alternative a {
    font-size: 10px;
  }
  footer {
    padding-block: 30px !important;
    gap: 22px;
  }
  footer .wordmark {
    font-size: 22px;
  }
  footer p {
    order: 4;
    flex-basis: 100%;
    font-size: 16px;
    margin: 0;
  }
  footer > a:not(.wordmark) {
    font-size: 11px;
  }
  footer .wordmark {
    margin-right: auto;
  }
  dialog {
    padding: 13px;
    max-height: 94dvh;
  }
  .dialog-heading {
    margin-bottom: 13px;
  }
  .dialog-heading h2 {
    font-size: 23px;
  }
  .dialog-heading button {
    padding: 7px 9px;
    font-size: 11px;
  }
  dialog > p {
    font-size: 10px;
    line-height: 1.6;
  }
  .doc-layout {
    padding-inline: 24px;
  }
  .doc h1 {
    font-size: 44px;
  }
  .doc h2 {
    font-size: 29px;
    margin-top: 37px;
    padding-top: 26px;
  }
  .doc p,
  .doc li {
    font-size: 14px;
  }
  .doc ul,
  .doc ol {
    padding-left: 22px;
  }
  .doc pre {
    padding-inline: 16px;
    font-size: 11px;
  }
  .doc-nav {
    margin-bottom: 30px;
  }
  .doc-pager {
    font-size: 12px;
  }
  .doc td,
  .doc th {
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
  .page-sequence li,
  .page-sequence li:nth-child(even) {
    transform: none;
  }
  .button:hover {
    transform: none;
  }
}

@media (max-width: 380px) {
  .site-header nav > a[href="#pages"] {
    display: none;
  }
  .hero-actions {
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .site-header nav > a[href="#pages"] {
    display: none;
  }
}
