/*
 * theoattali.fr: one stylesheet, no framework.
 * Newsreader (text) and Martian Mono (figures and code), self-hosted and subset (tools/fonts/build.sh).
 * Colours are tokens: light by default, dark from the system or from the toggle (html[data-theme]).
 */

@font-face {
    font-family: "Newsreader";
    src: url("../fonts/newsreader-GpXbKS2.woff2") format("woff2");
    font-weight: 400 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Martian Mono";
    src: url("../fonts/martian-mono-Yj8nnMi.woff2") format("woff2");
    font-weight: 350 450;
    font-stretch: 75% 100%;
    font-style: normal;
    font-display: swap;
}

/* Fallbacks sized like the web fonts, so the swap does not move the page. */
@font-face {
    font-family: "Newsreader fallback";
    src: local("Georgia"), local("Times New Roman");
    size-adjust: 96%;
    ascent-override: 92%;
    descent-override: 28%;
}

@font-face {
    font-family: "Martian Mono fallback";
    src: local("Menlo"), local("Consolas"), local("DejaVu Sans Mono");
    size-adjust: 104%;
}

:root {
    color-scheme: light;
    --paper: #f4f5f2;
    --raised: #ffffff;
    --ink: #15202e;
    --ink-2: #465263;
    --ink-3: #5d6774;
    --rule: #c9ced4;
    --hairline: #dde1e5;
    --tint: rgb(21 32 46 / 0.055);
    --pass: #0a6e43;
    --fail: #b42318;
    --focus: #1d4ed8;

    --serif: "Newsreader", "Newsreader fallback", Georgia, serif;
    --mono: "Martian Mono", "Martian Mono fallback", ui-monospace, Menlo, monospace;

    /* A classical scale (The Elements of Typographic Style): 12 14 16 18 21 24 36 48 60 72 */
    --step--1: 0.875rem;
    --step-0: 1.125rem;
    --step-1: 1.3125rem;
    --step-2: 1.5rem;
    --step-3: 2.25rem;
    --step-4: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);

    --gutter: clamp(1rem, 4vw, 3rem);
    --measure: 36rem;
    --page: 76rem;
    --space: 1.5rem;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --paper: #0d131b;
    --raised: #131b25;
    --ink: #e3e7ec;
    --ink-2: #aeb7c2;
    --ink-3: #929daa;
    --rule: #2a3542;
    --hairline: #1d2631;
    --tint: rgb(227 231 236 / 0.06);
    --pass: #45cf92;
    --fail: #ff8a7a;
    --focus: #8ab4ff;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --paper: #0d131b;
        --raised: #131b25;
        --ink: #e3e7ec;
        --ink-2: #aeb7c2;
        --ink-3: #929daa;
        --rule: #2a3542;
        --hairline: #1d2631;
        --tint: rgb(227 231 236 / 0.06);
        --pass: #45cf92;
        --fail: #ff8a7a;
        --focus: #8ab4ff;
    }
}

/* ---------- Base ---------- */

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

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

body {
    /* Short pages (legal, 404) keep the footer at the bottom of the screen. */
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: var(--step-0);
    font-weight: 400;
    line-height: 1.6;
    font-kerning: normal;
    font-variant-numeric: oldstyle-nums proportional-nums;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ol,
ul {
    margin: 0;
}

ol,
ul {
    padding: 0;
    list-style: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    text-decoration-color: var(--rule);
    transition: text-decoration-color 0.15s ease;
}

a:hover {
    text-decoration-color: currentColor;
}

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

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

code,
.mono {
    font-family: var(--mono);
    font-size: 0.8em;
    font-stretch: 87.5%;
    font-variant-numeric: tabular-nums slashed-zero;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: 0.75rem;
    z-index: 10;
    padding: 0.5rem 0.875rem;
    background: var(--ink);
    color: var(--paper);
    font-size: var(--step--1);
    text-decoration: none;
    transform: translateY(-200%);
}

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

/* ---------- Page frame ---------- */

.frame {
    width: 100%;
    max-width: var(--page);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1.25rem;
    font-size: var(--step--1);
    color: var(--ink-2);
}

.masthead__home {
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}

.masthead__tools {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.lang-switch {
    display: flex;
    gap: 0.25rem;
}

.lang-switch a,
.lang-switch span,
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0 0.5rem;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-stretch: 87.5%;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.lang-switch [aria-current="page"] {
    color: var(--ink);
    background: var(--tint);
}

.lang-switch a:hover {
    color: var(--ink);
}

.theme-toggle {
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.theme-toggle:hover {
    color: var(--ink);
    background: var(--tint);
}

.theme-toggle svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* The moon offers the dark theme, the sun the light one. */
.theme-toggle .icon-sun,
:root[data-theme="dark"] .theme-toggle .icon-moon {
    display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-moon {
        display: none;
    }

    :root:not([data-theme="light"]) .theme-toggle .icon-sun {
        display: block;
    }
}

.theme-toggle {
    display: none;
}

.js .theme-toggle {
    display: inline-flex;
}

/* ---------- Sections ---------- */

main {
    display: block;
    flex: 1;
}

.section {
    padding-block: clamp(4rem, 9vw, 7.5rem) 0;
}

.section__head {
    display: grid;
    gap: 0.75rem;
    max-width: 44rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

h2 {
    font-size: var(--step-3);
    font-weight: 450;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.section__intro {
    color: var(--ink-2);
    max-width: var(--measure);
}

.source {
    font-size: var(--step--1);
    line-height: 1.5;
    color: var(--ink-3);
}

.source time {
    white-space: nowrap;
}

/* ---------- Opening ---------- */

.opening {
    padding-top: clamp(1rem, 4vw, 2rem);
}

.opening__head {
    display: grid;
    gap: 1.5rem 3rem;
}

@media (min-width: 60rem) {
    .opening__head {
        grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
        align-items: end;
    }
}

.opening__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
    margin-top: 0.75rem;
    font-size: var(--step--1);
}

.opening__links a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: var(--ink-2);
}

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

.opening__name {
    font-size: var(--step-4);
    font-weight: 430;
    line-height: 1;
    letter-spacing: -0.025em;
}

.opening__role {
    margin-top: 0.75rem;
    font-size: var(--step-1);
    color: var(--ink-2);
}

.opening__lede {
    max-width: var(--measure);
    font-size: var(--step-1);
    line-height: 1.45;
}

/* The installs: the one large figure of the page, over the curve it sums up. */
.installs {
    margin-top: clamp(2rem, 4vw, 2.75rem);
}

.installs__figure {
    display: block;
    font-family: var(--mono);
    font-size: clamp(3.25rem, 1rem + 11.5vw, 10.5rem);
    font-weight: 380;
    font-stretch: 75%;
    font-variant-numeric: tabular-nums;
    line-height: 0.95;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.installs__figure .digits {
    display: inline-flex;
}

.installs__figure .digit,
.installs__figure .sep {
    display: inline-block;
}

/* In a monospace face a comma takes a whole cell: close it up in the English figure. */
:lang(en) .installs__figure .sep {
    margin-inline: -0.14em;
}

.installs__caption {
    display: grid;
    gap: 0.375rem;
    max-width: 40rem;
    margin-top: 1rem;
}

.installs__what {
    font-size: var(--step-1);
    line-height: 1.4;
}

.installs__chart {
    position: relative;
    margin-top: clamp(1.25rem, 3vw, 1.75rem);
    margin-inline: calc(var(--gutter) * -0.25);
}

.chart {
    width: 100%;
    height: auto;
    overflow: visible;
}

.chart--narrow {
    display: none;
}

.chart__area {
    fill: var(--tint);
}

.chart__line {
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.75;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.chart__baseline {
    stroke: var(--rule);
    stroke-width: 1;
}

.chart__tick {
    stroke: var(--rule);
    stroke-width: 1;
}

.chart__label {
    fill: var(--ink-3);
    font-family: var(--mono);
    font-size: 12px;
    font-stretch: 87.5%;
}

.chart__note {
    fill: var(--ink-2);
    font-family: var(--serif);
    font-size: 15px;
}

.chart__peak {
    fill: var(--paper);
    stroke: var(--ink);
    stroke-width: 1.5;
}

.chart__now {
    fill: var(--pass);
}

.chart__now-ring {
    fill: none;
    stroke: var(--pass);
    stroke-width: 1.5;
    opacity: 0;
}

/* The month under the pointer, on the wide curve (assets/chart.js). */
.chart__readout[hidden] {
    display: none;
}

.chart__readout line {
    stroke: var(--ink-3);
    stroke-width: 1;
    stroke-dasharray: 2 3;
}

.chart__readout circle {
    fill: var(--paper);
    stroke: var(--ink);
    stroke-width: 1.5;
}

.chart__readout text {
    fill: var(--ink);
    font-family: var(--mono);
    font-size: 13px;
    font-stretch: 87.5%;
    paint-order: stroke;
    stroke: var(--paper);
    stroke-width: 4px;
    stroke-linejoin: round;
}

.chart--wide:has(.chart__readout:not([hidden])) :is(.chart__note, .chart__peak) {
    opacity: 0;
}

/* Every month, as a table shaded by fifths of the range. */
.months {
    margin-top: 1.25rem;
    font-size: var(--step--1);
}

.months summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    color: var(--ink-2);
    cursor: pointer;
    list-style: none;
}

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

.months summary::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
}

@media (prefers-reduced-motion: no-preference) {
    .months summary::before {
        transition: transform 0.2s ease;
    }
}

.months[open] summary::before {
    transform: rotate(45deg);
}

.months summary:hover {
    color: var(--ink);
}

.months__scroll {
    overflow-x: auto;
    margin-top: 0.75rem;
}

.months__hint {
    display: none;
    margin-top: 0.25rem;
    color: var(--ink-3);
}

@media (max-width: 52rem) {
    .months__hint {
        display: block;
    }

    /* Narrow screens: the right edge fades to show the table goes on. */
    .months__scroll {
        mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
    }

    /* Scrolled to the end, December stands clear of the faded edge. */
    .months table {
        margin-inline-end: 2.5rem;
    }
}

.months tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--paper);
}

.months table {
    border-collapse: separate;
    border-spacing: 2px;
    font-family: var(--mono);
    font-size: 0.75rem;
    font-stretch: 75%;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.months th {
    padding: 0.25rem 0.5rem;
    font-weight: 400;
    color: var(--ink-3);
    text-align: right;
}

.months thead th {
    text-align: center;
}

.months td {
    min-width: 3.5rem;
    padding: 0.35rem 0.5rem;
    border-radius: 3px;
    text-align: right;
    color: var(--ink);
}

.months .q1 { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.months .q2 { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.months .q3 { background: color-mix(in srgb, var(--ink) 15%, transparent); }
.months .q4 { background: color-mix(in srgb, var(--ink) 23%, transparent); }
.months .q5 { background: color-mix(in srgb, var(--ink) 32%, transparent); }

/* ---------- Open source ---------- */

.packages {
    border-top: 1px solid var(--ink);
}

.package {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem 2rem;
    padding-block: 1.75rem;
    border-bottom: 1px solid var(--rule);
}

.package__name {
    font-size: var(--step-2);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.package__name a {
    text-decoration: none;
}

.package__name a:hover {
    text-decoration: underline;
    text-decoration-color: var(--rule);
}

.package__text {
    display: grid;
    gap: 0.5rem;
    align-content: start;
}

.package__desc {
    max-width: var(--measure);
    color: var(--ink-2);
}

.package__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    font-size: var(--step--1);
    color: var(--ink-3);
}

.package__meta code {
    font-size: 0.8125rem;
    color: var(--ink-2);
}

.package__figures {
    display: grid;
    /* A fixed column for the number (wide enough for "1 306 525" in the figures face), so every sparkline starts at
       the same place. */
    grid-template-columns: 8.75rem minmax(0, 1fr);
    align-items: end;
    gap: 0.25rem 1.25rem;
}

.package__total {
    font-family: var(--mono);
    font-size: var(--step-2);
    font-weight: 400;
    font-stretch: 87.5%;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    white-space: nowrap;
}

.package__unit {
    grid-column: 1;
    font-size: var(--step--1);
    color: var(--ink-3);
}

.package__spark {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 100%;
}

.package__spark-caption {
    grid-column: 1 / -1;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--ink-3);
}

.spark {
    width: 100%;
    height: auto;
    overflow: visible;
}

.spark__line {
    fill: none;
    stroke: var(--ink-2);
    stroke-width: 1.25;
    stroke-linejoin: round;
}

.spark__area {
    fill: var(--tint);
}

.spark__now {
    fill: var(--ink);
}

.package__pending {
    font-size: var(--step--1);
    color: var(--ink-2);
    max-width: 16rem;
}

.tag {
    display: inline-block;
    padding: 0.05rem 0.5rem;
    border: 1px solid var(--rule);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.6875rem;
    font-stretch: 87.5%;
    line-height: 1.6;
    color: var(--ink-2);
    vertical-align: 0.2em;
    margin-left: 0.5rem;
}

@media (min-width: 52rem) {
    .package {
        grid-template-columns: minmax(0, 1fr) 24rem;
        align-items: start;
    }

    .package__figures {
        padding-top: 0.25rem;
    }
}

/* Projects without an install count: text only, so they never read as missing figures. */
.also__title {
    margin-top: 2.5rem;
    font-size: var(--step-0);
    font-weight: 500;
    color: var(--ink-2);
}

.also {
    display: grid;
    gap: 1.25rem 3rem;
    margin-top: 1rem;
}

@media (min-width: 52rem) {
    .also {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.also__name {
    font-weight: 500;
}

.also__state {
    margin-left: 0.5rem;
    font-size: var(--step--1);
    color: var(--ink-3);
}

.also__desc {
    margin-top: 0.25rem;
    font-size: var(--step--1);
    line-height: 1.5;
    color: var(--ink-2);
}

/* ---------- Sites in production ---------- */

.sites {
    display: grid;
    border-top: 1px solid var(--ink);
}

.site {
    display: grid;
    gap: 1.25rem 3rem;
    align-items: start;
    padding-block: 2rem;
    border-bottom: 1px solid var(--rule);
}

/* One row per site: the capture as evidence, the facts beside it. */
@media (min-width: 56rem) {
    .site {
        grid-template-columns: minmax(0, 28rem) minmax(0, 1fr);
    }
}

.site__text {
    display: grid;
    gap: 0.5rem;
    align-content: start;
}

.site__shot {
    position: relative;
    display: block;
    align-self: start;
    /* Decorative (aria-hidden): rendered, and its lazy images fetched, only when it nears the screen, so the first
       view of the page loads no screenshot. Never on content: Chromium leaves skipped content out of the
       accessibility tree. "auto" keeps the real height once it has been rendered. */
    content-visibility: auto;
    contain-intrinsic-size: auto 16rem;
    /* A neutral mount: the screenshots keep their own colours without sitting raw on the page. */
    padding: 0.75rem;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    background: var(--raised);
    margin-bottom: 1rem;
}

.site__shot picture:first-child img {
    width: 100%;
    aspect-ratio: 8 / 5;
    border-radius: 4px;
    object-fit: cover;
    object-position: top;
    background: var(--paper);
}

.site__phone {
    position: absolute;
    right: 1.5rem;
    bottom: -1.25rem;
    width: 17%;
    min-width: 4rem;
}

.site__phone img {
    aspect-ratio: 390 / 640;
    border: 1px solid var(--rule);
    border-radius: 8px;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 0 0 3px var(--raised);
    background: var(--paper);
}

/* Bright screenshots are dimmed a little on the dark page. */
:root[data-theme="dark"] .site__shot img {
    filter: brightness(0.88);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .site__shot img {
        filter: brightness(0.88);
    }
}


h3 {
    font-size: var(--step-2);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.site__desc {
    max-width: var(--measure);
    color: var(--ink-2);
}

.site__stack {
    font-size: var(--step--1);
    color: var(--ink-3);
}

.status {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    margin-top: 0.25rem;
    font-size: var(--step--1);
    color: var(--ink-2);
}

.status__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.status__dot {
    position: relative;
    flex: none;
    align-self: center;
    width: 0.5625rem;
    height: 0.5625rem;
    border-radius: 50%;
    background: var(--ink-3);
}

.status--up .status__dot {
    background: var(--pass);
}

.status--down .status__dot {
    background: var(--fail);
}

/* The measurement itself, in the figures face. */
.status__data {
    font-family: var(--mono);
    font-size: 0.75rem;
    font-stretch: 87.5%;
    font-variant-numeric: tabular-nums;
    color: var(--ink-3);
}

/* ---------- Under the hood ---------- */

.facts {
    display: grid;
    border-top: 1px solid var(--ink);
}

@media (min-width: 48rem) {
    .facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 3rem;
    }
}

@media (min-width: 72rem) {
    .facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.fact {
    display: grid;
    gap: 0.25rem;
    align-content: start;
    padding-block: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--rule);
}

.fact dt {
    font-size: var(--step--1);
    color: var(--ink-2);
}

.fact dd {
    font-family: var(--mono);
    font-size: var(--step-2);
    font-stretch: 87.5%;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
}

.fact dd.fact__note {
    font-family: var(--serif);
    font-size: 0.8125rem;
    font-stretch: 100%;
    color: var(--ink-3);
    line-height: 1.45;
}

.fact__pass {
    color: var(--pass);
}

.facts__build {
    margin-top: 1rem;
}

.colophon-lede {
    max-width: 44rem;
    margin-bottom: 2.5rem;
    font-size: var(--step-1);
    line-height: 1.5;
}

/* ---------- Footer ---------- */

.footer {
    margin-top: clamp(5rem, 10vw, 8rem);
    padding-block: 2rem 3rem;
    border-top: 1px solid var(--rule);
    font-size: var(--step--1);
    color: var(--ink-2);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.5rem;
}

.footer a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}

.footer__inner > p {
    align-self: center;
}

/* ---------- Legal pages ---------- */

.prose {
    max-width: 40rem;
    padding-top: clamp(2.5rem, 7vw, 5rem);
}

.prose h1 {
    font-size: var(--step-4);
    font-weight: 430;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.prose h2 {
    font-size: var(--step-2);
    font-weight: 500;
    margin: 2.5rem 0 0.75rem;
}

.prose h3 {
    margin: 1.75rem 0 0.5rem;
    font-size: var(--step-0);
    font-weight: 500;
}

.prose p + p,
.prose p + ul,
.prose ul + p {
    margin-top: 0.75rem;
}

.prose ul {
    padding-left: 1.25rem;
    list-style: disc;
}

/* ---------- Responsive chart ---------- */

@media (max-width: 40rem) {
    .chart--wide {
        display: none;
    }

    .chart--narrow {
        display: block;
    }
}

/* The narrow drawing is 600 units wide for about 360 pixels: its text is set larger to read at 12 to 14 px. */
.chart--narrow .chart__label {
    font-size: 20px;
}

.chart--narrow .chart__note {
    font-size: 23px;
}

/* ---------- Motion: one orchestrated opening, then stillness ---------- */

@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }

    .installs__figure .digit {
        animation: digit-in 0.9s cubic-bezier(0.2, 0.7, 0.1, 1) backwards;
    }

    .installs__figure .digits > :nth-child(1) { animation-delay: 0.05s; }
    .installs__figure .digits > :nth-child(2) { animation-delay: 0.1s; }
    .installs__figure .digits > :nth-child(3) { animation-delay: 0.15s; }
    .installs__figure .digits > :nth-child(4) { animation-delay: 0.2s; }
    .installs__figure .digits > :nth-child(5) { animation-delay: 0.25s; }
    .installs__figure .digits > :nth-child(6) { animation-delay: 0.3s; }
    .installs__figure .digits > :nth-child(7) { animation-delay: 0.35s; }
    .installs__figure .digits > :nth-child(8) { animation-delay: 0.4s; }
    .installs__figure .digits > :nth-child(9) { animation-delay: 0.45s; }
    .installs__figure .digits > :nth-child(10) { animation-delay: 0.5s; }
    .installs__figure .digits > :nth-child(11) { animation-delay: 0.55s; }

    /* The curve is uncovered from left to right by a sheet of paper sliding away: a transform, so the
       compositor animates it without repainting the drawing. */
    .installs__plot {
        position: relative;
        overflow: hidden;
    }

    .installs__plot::after {
        content: "";
        position: absolute;
        inset: 0;
        background: var(--paper);
        transform: translateX(100%);
        animation: chart-uncover 1.6s cubic-bezier(0.45, 0, 0.2, 1) 0.25s backwards;
        pointer-events: none;
    }

    .chart__now,
    .chart__peak,
    .chart__note {
        animation: fade-in 0.4s ease 1.7s backwards;
    }

    .chart__now-ring {
        transform-box: fill-box;
        transform-origin: center;
        animation: ring 2.2s ease-out 1.9s 2; /* 4.4 s: under the 5 s of WCAG 2.2.2 */
    }

    .status--up .status__dot::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background: var(--pass);
        animation: ring-dot 2.2s ease-out 0.6s 2;
    }
}

@keyframes digit-in {
    from {
        transform: translateY(0.18em);
    }
}

@keyframes chart-uncover {
    from {
        transform: translateX(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}

@keyframes ring {
    0% {
        opacity: 0.9;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(3.2);
    }
}

@keyframes ring-dot {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(2.8);
    }
}

@media print {
    .masthead__tools,
    .skip-link {
        display: none;
    }

    body {
        background: #fff;
        color: #000;
    }
}
