/* SPDX-License-Identifier: GPL-3.0-or-later */
/*
 * Plasma's website: one stylesheet for every page. Colors follow the visitor's light or dark
 * setting. The big headlines are cut through their x-height by the logo's own wave, as the
 * wordmark is: a mask (images/wave-cut.svg, made by tools/site_images.py) on live text.
 */

@font-face {
  font-family: "Instrument Sans";
  src: url(fonts/instrument-sans-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url(fonts/instrument-sans-latin-500-normal.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url(fonts/instrument-sans-latin-600-normal.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url(fonts/space-mono-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Colors */

:root {
  color-scheme: light dark;
  --paper: #F5F5F7;
  --card: #FFFFFF;
  --ink: #0B0B0D;
  --body: #46464C;
  --mist: #66666D;
  --rule: #D9D9DE;
  --rule-strong: #B9B9C0;
  --button: #0B0B0D;
  --button-ink: #F5F5F7;
  --button-hover: #2E2E33;
  --soft: rgba(11, 11, 13, .06);
  --soft-hover: rgba(11, 11, 13, .12);
  --shade: 0 1px 2px rgba(11, 11, 13, .08), 0 32px 64px -24px rgba(11, 11, 13, .38);
  /* The privacy band is the page turned over: graphite on a light page, light on a dark one. */
  --band: #0B0B0D;
  --band-ink: #F5F5F7;
  --band-body: #B9B9C0;

  --gutter: clamp(20px, 5vw, 72px);
  --space: clamp(96px, 10vw, 144px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B0B0D;
    --card: #161618;
    --ink: #F5F5F7;
    --body: #C2C2C8;
    --mist: #8E8E95;
    --rule: #2B2B30;
    --rule-strong: #4A4A50;
    --button: #F5F5F7;
    --button-ink: #0B0B0D;
    --button-hover: #FFFFFF;
    --soft: rgba(255, 255, 255, .1);
    --soft-hover: rgba(255, 255, 255, .17);
    --shade: 0 0 0 1px rgba(255, 255, 255, .1), 0 32px 64px -24px rgba(0, 0, 0, .7);
    --band: #F5F5F7;
    --band-ink: #0B0B0D;
    --band-body: #46464C;
  }
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

a:focus-visible,
summary:focus-visible,
pre:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 8px;
}

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

.link:hover {
  text-decoration-thickness: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: 12px;
  z-index: 1;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--button);
  color: var(--button-ink);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip:focus-visible {
  transform: none;
}

/* Layout */

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

.section {
  padding-top: var(--space);
}

/* A heading on one side and its words on the other, one above the other when narrow. */
.split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 64px;
}

.split > .title {
  flex: 1 1 400px;
  min-width: 0;
  max-width: 620px;
}

.split > .text {
  flex: 1 1 400px;
  min-width: 0;
  max-width: 560px;
}

.split > .aside {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 420px;
}

.split > .main {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 800px;
}

/* Type */

.display {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-size: clamp(60px, 13.5vw, 200px);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: .92;
}

.heading {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 66px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.heading-wide {
  max-width: 900px;
}

.lede {
  margin: 0;
  font-size: clamp(18px, 1.45vw, 20px);
  line-height: 1.55;
  color: var(--body);
}

.sources-intro .lede,
.aside .lede {
  margin-top: 24px;
}

.more {
  margin: 18px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

.text .buttons {
  margin-top: 28px;
}

.text .small {
  margin-top: 24px;
  line-height: 1.55;
}

.small {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mist);
}

h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
}

h3 + p {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

code,
pre {
  font-family: "Space Mono", monospace;
}

pre {
  margin: 16px 0 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--rule);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink);
  overflow-x: auto;
  white-space: pre;
}

/* The wave cut: one mask image 36 em wide, placed 3.2 em left of the text, over a box 1.2 em tall
   (the 0.92 line and 0.14 em of padding above and below), which puts the wave through the middle
   of Instrument Sans's x-height. The padding is taken back with margins, so lines sit as before. */
.cut {
  display: block;
  padding: .14em 0;
  margin: -.14em 0;
  -webkit-mask-image: url(images/wave-cut.svg);
  mask-image: url(images/wave-cut.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 36em 1.2em;
  mask-size: 36em 1.2em;
  -webkit-mask-position: -3.2em 0;
  mask-position: -3.2em 0;
}

/* Once, as the page opens, the cut flows into place, as the wordmark does on Plasma's launch
   screen. */
.flow {
  animation: flow 2.4s cubic-bezier(.25, .1, .2, 1) .2s both;
}

@keyframes flow {
  from {
    -webkit-mask-position: -4.8em 0;
    mask-position: -4.8em 0;
  }
  to {
    -webkit-mask-position: -3.2em 0;
    mask-position: -3.2em 0;
  }
}

/* Buttons */

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  transition: background-color 120ms ease-out;
}

.button-medium {
  min-height: 52px;
  padding: 0 24px;
  font-size: 17px;
}

.button-small {
  min-height: 46px;
  padding: 0 20px;
  font-size: 16px;
}

.button-primary {
  background: var(--button);
  color: var(--button-ink);
}

.button-primary:hover {
  background: var(--button-hover);
}

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

.button-soft:hover {
  background: var(--soft-hover);
}

/* Header */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.site-nav .logo {
  flex: 0 0 auto;
}

.site-nav .logo img {
  width: auto;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 17px;
  font-weight: 500;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 0 0 auto;
}

.nav-github {
  font-size: 17px;
  font-weight: 500;
}

/* Home: the opening */

.hero {
  padding-top: clamp(40px, 7vw, 104px);
}

.hero-foot {
  margin: clamp(36px, 4vw, 56px) 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 64px;
}

.hero-lede {
  flex: 1 1 460px;
  min-width: 0;
  max-width: 640px;
  margin: 0;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.5;
  color: var(--body);
}

.hero-actions {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Pictures of Plasma */

.shot {
  margin: clamp(48px, 5vw, 72px) 0 0;
}

.shot img,
.card-picture {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shade);
}

.shot figcaption {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--mist);
}

.shot-hero {
  margin-top: clamp(48px, 6vw, 88px);
}

.shot-hero img {
  border-radius: 14px;
}

.shot-follow {
  margin-top: 40px;
}

/* From edge to edge: Multiview. */
.shot-bleed img {
  border-radius: 0;
  box-shadow: none;
}

.shot-bleed figcaption {
  max-width: 1440px;
  margin: 18px auto 0;
  padding: 0 var(--gutter);
}

.shots {
  margin: clamp(48px, 5vw, 72px) 0 0;
  display: grid;
  gap: 40px 24px;
}

.shots-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}

.shots-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.shots .shot {
  margin: 0;
}

.shots-3 .shot figcaption {
  margin-top: 16px;
}

/* Lists */

.facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.facts li {
  position: relative;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
}

.facts li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mist);
}

/* Terms and what they mean, a row each between rules. */
.spec {
  --term: 190px;
  margin: 0;
}

.spec > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.spec > div:last-child {
  border-bottom: 1px solid var(--rule);
}

.spec dt {
  flex: 0 0 var(--term);
  font-size: 17px;
  font-weight: 600;
}

.spec dd {
  flex: 1 1 300px;
  min-width: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
}

.spec-large {
  --term: 200px;
}

.spec-large > div {
  gap: 6px 32px;
  padding: 24px 0;
}

.spec-large dt {
  font-size: 22px;
  letter-spacing: -.01em;
}

.spec-large dd {
  flex-basis: 280px;
}

.spec-compact {
  --term: 150px;
  margin-top: 28px;
}

.spec-compact > div {
  gap: 4px 24px;
  padding: 14px 0;
}

.spec-compact dd {
  flex-basis: 240px;
  line-height: 1.5;
}

/* Home: sections */

.sources {
  gap: 40px 64px;
}

.sources-intro {
  flex: 1 1 380px;
  min-width: 0;
  max-width: 520px;
}

.sources .spec {
  flex: 1 1 520px;
  min-width: 0;
  max-width: 680px;
}

.columns {
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 36px 56px;
}

.cards {
  margin: clamp(48px, 5vw, 72px) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 48px 24px;
}

.cards h3 {
  margin-top: 28px;
}

.card-picture {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.phones {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shade);
  display: flex;
  justify-content: center;
  gap: 5%;
  padding: 7% 0 0;
}

.phones img {
  width: 37%;
  align-self: flex-start;
}

.band {
  margin: var(--space) 0 0;
  background: var(--band);
  color: var(--band-ink);
}

.band ::selection {
  background: var(--band-ink);
  color: var(--band);
}

.band .wrap {
  padding-top: clamp(72px, 9vw, 128px);
  padding-bottom: clamp(72px, 9vw, 128px);
}

.band-heading {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: .98;
}

.band-points {
  margin: clamp(48px, 5vw, 72px) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px 56px;
}

.band-points p {
  margin: 0;
  font-size: 19px;
  line-height: 1.5;
  color: var(--band-body);
}

/* The three files of a build, each a link to the Releases page. */
.files {
  margin: clamp(40px, 4vw, 56px) 0 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--rule);
}

.files a {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 32px;
  padding: 24px 28px;
  transition: background-color 120ms ease-out;
}

.files a + a {
  border-top: 1px solid var(--rule);
}

.files a:hover {
  background: var(--soft);
}

.files a:focus-visible {
  outline-offset: -6px;
  border-radius: 14px;
}

.file-text {
  flex: 1 1 380px;
  min-width: 0;
}

.file-name {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.file-note {
  display: block;
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--body);
}

.files code {
  font-size: 15px;
  color: var(--ink);
}

.steps {
  list-style: none;
  margin: clamp(56px, 6vw, 80px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 48px;
}

.steps li {
  min-width: 0;
}

.step-number {
  display: block;
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--mist);
}

.steps h3 {
  margin-top: 20px;
}

.install-foot {
  margin: clamp(48px, 5vw, 64px) 0 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 40px;
}

.install-foot p {
  flex: 1 1 520px;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}

/* The milestones, along a line on wide screens and down it on narrow ones. */
.timeline {
  list-style: none;
  margin: clamp(48px, 5vw, 72px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.timeline li {
  position: relative;
  padding: 40px 14px 0 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  background: var(--rule);
}

.timeline li.done::before {
  background: var(--ink);
}

.dot {
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
}

.dot-now {
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--paper);
}

.dot-later {
  background: var(--paper);
  border: 2px solid var(--rule-strong);
}

.milestone {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.milestone-later {
  color: var(--body);
}

.milestone-what {
  display: block;
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.4;
  color: var(--body);
}

.milestone-state {
  display: block;
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.milestone-state-later {
  font-weight: 400;
  color: var(--mist);
}

.faq {
  border-top: 1px solid var(--rule);
}

.faq details {
  border-bottom: 1px solid var(--rule);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
  list-style: none;
  cursor: pointer;
}

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

.faq summary svg {
  flex: none;
  transition: transform 150ms ease-out;
}

.faq details[open] summary svg {
  transform: rotate(45deg);
}

.faq p {
  margin: 0;
  padding: 0 48px 26px 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

/* The install guide */

.guide-hero {
  padding-top: clamp(40px, 6vw, 88px);
}

.display-guide {
  font-size: clamp(56px, 11vw, 160px);
}

.guide-lede {
  max-width: 640px;
  margin: clamp(32px, 3.5vw, 48px) 0 0;
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.5;
  color: var(--body);
}

.needs {
  margin: clamp(48px, 5vw, 72px) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 48px;
}

.needs > div {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}

.needs h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.needs p {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
}

.guide {
  padding-top: clamp(64px, 7vw, 104px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px clamp(40px, 6vw, 96px);
}

.toc {
  position: sticky;
  top: 32px;
  flex: 0 1 280px;
  min-width: 0;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc a {
  display: flex;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 500;
  transition: background-color 120ms ease-out;
}

.toc a:hover {
  background: var(--soft);
}

.toc a:focus-visible {
  outline-offset: 0;
}

.toc span {
  width: 14px;
  color: var(--mist);
}

.guide-body {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 820px;
}

.step + .step {
  padding-top: clamp(72px, 8vw, 112px);
}

.step-heading {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.step-heading span {
  margin-right: .4em;
  color: var(--mist);
}

.step-text {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
}

.step-more {
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

.step-note {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mist);
}

.step .shot {
  margin-top: 32px;
}

.step .shot figcaption {
  margin-top: 16px;
}

.step .facts {
  margin-top: 20px;
}

.step .facts li {
  line-height: 1.55;
}

.step .facts li::before {
  top: .62em;
}

.files-compact {
  margin-top: 28px;
}

.files-compact a {
  gap: 10px 28px;
  padding: 22px 26px;
}

.files-compact .file-text {
  flex-basis: 300px;
}

.files-compact .file-name {
  font-size: 19px;
}

.files-compact code {
  font-size: 14.5px;
}

.how {
  margin: 28px 0 0;
  padding: 0 0 0 1.4em;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
}

.how li {
  padding-left: 6px;
}

.how pre {
  margin-top: 14px;
  padding: 18px 20px;
  font-size: 14px;
}

.how p {
  margin: 18px 0 0;
}

.box {
  margin: 32px 0 0;
  padding: 22px 26px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--rule);
}

.box p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

.box strong {
  font-weight: 600;
  color: var(--ink);
}

.spec-ways {
  --term: 230px;
  margin-top: 32px;
}

.spec-ways > div {
  gap: 6px 32px;
  padding: 20px 0;
}

.spec-ways dt {
  font-size: 18px;
}

.spec-stacked {
  margin-top: 28px;
}

.spec-stacked > div {
  display: block;
  padding: 20px 0;
}

.spec-stacked dt {
  font-size: 18px;
}

.spec-stacked dd {
  margin: 8px 0 0;
}

.step .buttons {
  margin-top: 44px;
}

/* The page that isn't there */

.lost {
  padding-top: clamp(40px, 6vw, 88px);
}

.lost .buttons {
  margin-top: clamp(32px, 3.5vw, 48px);
}

/* Footer */

.site-footer {
  margin: var(--space) 0 0;
  border-top: 1px solid var(--rule);
}

.site-footer .wrap {
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 64px;
}

.footer-about {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 420px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 72px;
}

.footer-links h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 16px;
}

.footer-links a {
  color: var(--body);
}

.footer-links a:hover {
  color: var(--ink);
}

/* The wordmark, set as wide as the page, cut by its wave. */
.footer-mark {
  margin: clamp(56px, 7vw, 104px) 0 0;
  display: flex;
  overflow: hidden;
}

.footer-mark span {
  font-size: clamp(100px, 27.8vw, 400px);
  font-weight: 600;
  letter-spacing: -.032em;
  line-height: .92;
}

.footer-small {
  margin: 40px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mist);
}

.footer-small p {
  margin: 0;
}

.footer-small p:first-child {
  flex: 1 1 480px;
  min-width: 0;
  max-width: 780px;
}

/* Narrower screens */

@media (max-width: 940px) {
  .nav-links,
  .toc {
    display: none;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline li {
    padding: 0 0 26px 38px;
  }

  .timeline li::before {
    left: 7px;
    right: auto;
    top: 4px;
    bottom: -4px;
    width: 2px;
    height: auto;
  }

  .timeline li:last-child::before {
    display: none;
  }

  .dot {
    top: 3px;
  }
}

@media (max-width: 520px) {
  .nav-github {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow {
    animation: none;
  }

  .button,
  .files a,
  .toc a,
  .faq summary svg {
    transition: none;
  }
}
