/* Illerom. Tokens and components come from SavComponents (Tilt style); here only the palette and the layout.
   The colours are those of the first sketches: plum marker on a yellow and a blue sticky note. */
@font-face {
    font-family: "Stack Sans Notch";
    src: url(fonts/stack-sans-notch.ttf) format("truetype");
    font-weight: 200 700;
    font-display: swap;
}

/* the letters of the mark (tools/typeface.py): LEAN 0 upright, 100 leaned */
@font-face {
    font-family: "Illerom Bars";
    src: url(fonts/illerom-bars.woff) format("woff");
    font-display: swap;
}

@font-face {
    font-family: "Illerom Bars Mono";
    src: url(fonts/illerom-bars-mono.woff) format("woff");
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url(fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
    font-weight: 100 900;
    font-display: swap;
    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: Inter;
    src: url(fonts/inter-latin-wght-normal.woff2) format("woff2");
    font-weight: 100 900;
    font-display: swap;
    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;
}

:root {
    --note-yellow: #ffd94f;
    --note-blue: #84d3ea;
    --note-pink: #f0a9d0;
    --note-green: #b4dd86;
    --plum: #7d2359;
    --ink: #2a1430;
    --display: "Stack Sans Notch", system-ui, sans-serif;
    --pad: clamp(1rem, 4vw, 2.5rem);
}

:root.sav-theme-light, :root.sav-theme-auto {
    --sav-color-primary: #8a2762;
    --sav-color-on-primary: #fff;
    --sav-tint: 92%;
    --sav-indicator-l: .5;
    --sav-color-bg: #f4f1f7;
    --sav-color-surface: #fff;
    --sav-color-surface-2: #ece6f1;
    --sav-color-input-bg: #fff;
    --sav-color-text: #2a1430;
    --sav-color-text-muted: #6a5873;
    --sav-color-border: #ddd4e4;
    --sav-color-border-strong: #8f7f99;
    --sav-color-neutral: #5d4a68;
}

:root.sav-theme-dark {
    --sav-color-primary: #ffd94f;
    --sav-color-on-primary: #2a1430;
    --sav-tint: 92%;
    --sav-color-bg: #170f1c;
    --sav-color-surface: #221829;
    --sav-color-surface-2: #2e2137;
    --sav-color-input-bg: #1c1322;
    --sav-color-text: #f3ecf7;
    --sav-color-text-muted: #b9a9c3;
    --sav-color-border: #3c2d46;
    --sav-color-border-strong: #7d6a8a;
    --sav-color-neutral: #b9a9c3;
}

@media (prefers-color-scheme: dark) {
    :root.sav-theme-auto {
        --sav-color-primary: #ffd94f;
        --sav-color-on-primary: #2a1430;
        --sav-tint: 92%;
        --sav-indicator-l: 1;
        --sav-color-bg: #170f1c;
        --sav-color-surface: #221829;
        --sav-color-surface-2: #2e2137;
        --sav-color-input-bg: #1c1322;
        --sav-color-text: #f3ecf7;
        --sav-color-text-muted: #b9a9c3;
        --sav-color-border: #3c2d46;
        --sav-color-border-strong: #7d6a8a;
        --sav-color-neutral: #b9a9c3;
    }
}

:root {
    --sav-font: Inter, system-ui, sans-serif;
    --sav-font-size-md: 1rem;
    --sav-font-size-sm: .875rem;
    --sav-font-size-lg: 1.0625rem;
}

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

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

main {
    flex: 1;
    outline: 0;
}

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

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

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 600;
    line-height: 1.12;
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
}

p {
    text-wrap: pretty;
}

a {
    color: inherit;
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--sav-color-focus);
    outline-offset: 3px;
}

.wrap {
    width: 100%;
    max-width: 76rem;
    margin-inline: auto;
    padding-inline: var(--pad);
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.ic {
    width: 1.2em;
    height: 1.2em;
    flex: none;
    display: block;
}

[hidden] {
    display: none !important;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 50;
    padding: .6rem 1rem;
    background: var(--note-yellow);
    color: var(--ink);
    font-weight: 600;
}

.skip:focus {
    top: 1rem;
}

.lede {
    font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem);
    line-height: 1.55;
    color: var(--sav-color-text-muted);
    max-width: 36em;
}

.note {
    font-size: .875rem;
    color: var(--sav-color-text-muted);
}

.more {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    font-weight: 600;
}

/* the mark and the bars */
.mark {
    width: 2.5rem;
    height: 2.5rem;
    flex: none;
}

.mk-back {
    fill: var(--note-blue);
    transition: rotate .35s var(--sav-easing);
}

.mk-tile {
    fill: var(--note-yellow);
    transition: rotate .35s var(--sav-easing);
}

.mk-bars {
    fill: var(--plum);
}

.mk-back, .mk-tile {
    transform-origin: 32px 32px;
}

.brand:hover .mk-back {
    rotate: -14deg;
}

.brand:hover .mk-tile {
    rotate: 14deg;
}

.bars {
    height: .85em;
    width: auto;
    flex: none;
}

.bars .on {
    fill: var(--sav-color-primary);
}

.bars .off {
    fill: var(--sav-color-text-muted);
    opacity: .28;
}

/* top bar */
.top {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in oklab, var(--sav-color-bg) 88%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.top-in {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font: 600 1.35rem/1 var(--display);
    text-decoration: none;
}

.nav {
    display: flex;
    gap: .35rem;
    margin-left: auto;
}

.nav a, .lang, .theme {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 .85rem;
    border: 0;
    background: none;
    color: inherit;
    font: 550 .95rem/1 var(--sav-font);
    text-decoration: none;
    cursor: pointer;
}

.nav a::before, .lang::before, .theme::before {
    content: "";
    position: absolute;
    inset: 4px 0;
    z-index: -1;
    background: transparent;
    transition: background .18s, rotate .25s var(--sav-easing);
}

.nav a:hover::before, .lang:hover::before, .theme:hover::before {
    background: var(--sav-color-surface-2);
    rotate: -2.5deg;
}

.nav a[aria-current]::before {
    background: var(--note-yellow);
    rotate: -2.5deg;
}

.nav a[aria-current] {
    color: var(--ink);
}

.nav a[aria-current]:hover::before {
    rotate: 2.5deg;
}

.tools {
    display: flex;
    gap: .1rem;
}

.lang, .theme {
    min-width: 2.75rem;
    padding: 0;
}

.theme .ic {
    width: 1.35rem;
    height: 1.35rem;
}

.theme .ic:first-child {
    display: none;
}

.sav-theme-dark .theme .ic:first-child {
    display: block;
}

.sav-theme-dark .theme .ic:last-child {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .sav-theme-auto .theme .ic:first-child {
        display: block;
    }

    .sav-theme-auto .theme .ic:last-child {
        display: none;
    }
}

/* opening */
.hero {
    padding-block: clamp(1.75rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
}

.hero-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.1rem, 1.3rem + 3.1vw, 3.6rem);
    letter-spacing: -.015em;
    margin-bottom: 1.1rem;
}

.plates {
    position: relative;
    padding: .75rem .5rem 2.6rem;
}

.plate-y, .plate-b {
    position: relative;
    isolation: isolate;
}

.plate-y {
    padding: clamp(1.9rem, 4vw, 3.1rem) clamp(1.4rem, 3.4vw, 2.6rem) clamp(2.6rem, 5vw, 3.9rem);
}

.plate-y::before, .plate-b::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    transition: rotate .4s var(--sav-easing);
}

.plate-y::before {
    background: var(--note-yellow);
    rotate: -2.2deg;
    box-shadow: 0 14px 34px -18px rgb(42 20 48 / .45);
}

.plate-b {
    position: absolute;
    right: clamp(.25rem, 3vw, 2rem);
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 3.4rem;
    padding: 0 1.4rem;
    border: 0;
    background: none;
    color: var(--ink);
    font: 600 1rem/1 var(--display);
    cursor: pointer;
}

.plate-b::before {
    background: var(--note-blue);
    rotate: 2.8deg;
    box-shadow: 0 10px 22px -12px rgb(42 20 48 / .5);
}

.plate-b:hover::before {
    rotate: -2.8deg;
}

.plates.flipped .plate-y::before {
    rotate: 2.2deg;
}

/* without the button: the blue note leans behind the yellow one, as in the mark */
.plates.solo {
    padding-bottom: .75rem;
}

.solo .plate-y {
    padding-block: clamp(2.2rem, 4.6vw, 3.6rem);
}

.solo .plate-y::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--note-blue);
    rotate: 2.2deg;
}

.wordmark {
    display: block;
    width: 100%;
    overflow: visible;
}

/* the name is written letter by letter with upright bars; when the last one is down, everything leans.
   The steps: --n bars, 70 ms apart, each drawn in .45 s; then the lean (and the notes) at --wm-lean */
.plate-y {
    --wm-lean: calc(13 * 70ms + .55s);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.wordmark .bar {
    fill: var(--plum);
    transform-box: fill-box;
    transform-origin: 50% 0;
    animation: fall .45s calc(var(--n) * 70ms + .1s) var(--sav-easing) backwards;
}

.wordmark .bar.flat {
    transform-origin: 0 50%;
    animation-name: run;
}

.wm-bars {
    transition: transform .75s cubic-bezier(.65, 0, .25, 1);
}

/* the same lean as the attribute matrix(1 0 .5 1), around the middle: upright, the word stays centred */
.wm-lean {
    transform-origin: 0 50px;
    transform: translateX(25px) skewX(26.565deg);
    transition: transform .55s var(--sav-easing);
    animation: lean .85s var(--wm-lean) cubic-bezier(.34, 1.5, .5, 1) backwards;
}

.plate-y::before, .solo .plate-y::after {
    animation: tilt .85s var(--wm-lean) cubic-bezier(.34, 1.5, .5, 1) backwards;
}

/* the lede says it: some straighten up along the way */
@media (hover: hover) {
    .plate-y:hover .wm-lean {
        transform: translateX(25px);
    }
}

.flipped .wm-bars {
    transform: translateX(454px) scaleX(-1);
}

/* each bar is drawn along its own direction: the tall ones from the top down, the dashes from left to right */
@keyframes fall {
    from {
        transform: scaleY(0);
    }
}

@keyframes run {
    from {
        transform: scaleX(0);
    }
}

@keyframes lean {
    from {
        transform: translateX(25px) skewX(0deg);
    }
}

@keyframes tilt {
    from {
        rotate: 0deg;
    }
}

.askew {
    display: inline-block;
    rotate: -5deg;
    transform-origin: 0 70%;
    transition: rotate .4s var(--sav-easing);
}

h1:hover .askew {
    rotate: 0deg;
}

/* filters */
.list {
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
    scroll-margin-top: 5rem;
}

.filters {
    display: grid;
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    gap: 1.1rem 2rem;
    align-items: start;
}

.rows {
    display: grid;
    gap: .75rem;
}

.find {
    --sav-control-md: 3rem;
}

.find [slot="prefix"] {
    display: inline-flex;
    color: var(--sav-color-text-muted);
}

sav-chip {
    --sav-control-md: 2.85rem;
}

sav-chip small {
    font-size: .8em;
    font-weight: 500;
    opacity: .72;
    font-variant-numeric: tabular-nums;
}

sav-chip [slot="prefix"] {
    display: inline-flex;
}

.count {
    margin: 1.6rem 0 1rem;
    font-size: .9rem;
    color: var(--sav-color-text-muted);
}

/* project cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
    gap: 1.75rem 1.6rem;
}

.item {
    display: flex;
}

sav-card:not(:defined) {
    display: block;
    background: var(--sav-color-surface);
    border: 1px solid var(--sav-color-border);
    padding: 1.25rem;
}

.picon {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin: .3rem;
}

.picon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.picon::before {
    content: "";
    position: absolute;
    inset: -.3rem;
    z-index: -1;
    background: var(--tile);
    rotate: -9deg;
    transition: rotate .35s var(--sav-easing);
}

.cat-games {
    --tile: var(--note-yellow);
}

.cat-work {
    --tile: var(--note-blue);
}

.cat-home {
    --tile: var(--note-green);
}

.cat-learn {
    --tile: var(--note-pink);
}

.pbars .bars {
    height: 1.7rem;
}

.pbars .on {
    fill: var(--plum);
}

.pbars .off {
    fill: var(--plum);
    opacity: .25;
}

.pbars {
    display: grid;
}

.plevel {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    font-size: .82rem;
    font-weight: 550;
    color: var(--sav-color-text-muted);
}

/* the icons of the apps of a suite (the card of SavOffice) */
.none {
    display: grid;
    justify-items: center;
    gap: .6rem;
    padding: 3rem 1rem;
    text-align: center;
}

.none p {
    color: var(--sav-color-text-muted);
    margin-bottom: .6rem;
}

.none-bars .bars {
    height: 2.4rem;
}

/* project page */
.phero {
    padding-block: 1rem clamp(2rem, 4vw, 3rem);
}

.back {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    min-height: 2.75rem;
    font-weight: 550;
    text-decoration: none;
    color: var(--sav-color-text-muted);
}

.back:hover {
    color: var(--sav-color-text);
    text-decoration: underline;
}

.phero-in {
    display: flex;
    align-items: center;
    gap: clamp(1.75rem, 5vw, 4rem);
    padding-top: 1.75rem;
}

.picon.xl {
    width: clamp(6.5rem, 16vw, 11rem);
    height: clamp(6.5rem, 16vw, 11rem);
    flex: none;
    margin: 1rem;
}

.picon.xl::before {
    inset: -1rem;
}

.picon.xl .bars {
    height: 4rem;
}

.phero:hover .picon::before {
    rotate: -5deg;
}

.phero-text {
    min-width: 0;
    display: grid;
    gap: .8rem;
    justify-items: start;
}

.phero h1 {
    font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: .6rem;
}

.pbody {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(17rem, 23rem);
    gap: 2.5rem clamp(2rem, 6vw, 5rem);
    align-items: start;
    padding-block: 1.5rem clamp(2.5rem, 5vw, 4rem);
}

.intro {
    font-size: 1.1rem;
    line-height: 1.65;
    max-width: 40em;
}

.ptext h2 {
    margin: 2.2rem 0 1rem;
}

.ticks {
    display: grid;
    gap: .7rem;
}

.ticks li {
    position: relative;
    padding-left: 1.7rem;
    line-height: 1.5;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: .2rem;
    top: .28em;
    width: .42rem;
    height: .95em;
    background: var(--sav-color-primary);
    transform: skewX(26.57deg);
}

.facts {
    position: relative;
    isolation: isolate;
    padding: 1.5rem 1.6rem 1.7rem;
}

.facts::before, .facts::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--sav-color-surface);
    border: 1px solid var(--sav-color-border);
}

.facts::before {
    z-index: -2;
    background: color-mix(in oklab, var(--sav-color-primary) 16%, transparent);
    border: 0;
    rotate: 1.6deg;
}

.facts h2 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.facts dl > div {
    display: grid;
    grid-template-columns: 6.2rem 1fr;
    gap: 1rem;
    padding: .7rem 0;
    border-top: 1px solid var(--sav-color-border);
}

.facts dl > div:first-child {
    border-top: 0;
}

.facts dt {
    color: var(--sav-color-text-muted);
    font-size: .92rem;
}

.facts dd {
    font-weight: 550;
    font-size: .95rem;
}

.facts dd small {
    display: block;
    font-weight: 400;
    font-size: .86rem;
    color: var(--sav-color-text-muted);
    line-height: 1.45;
    margin-top: .2rem;
}

.facts .more {
    margin-top: .9rem;
    font-size: .95rem;
}

.shots {
    padding-block: .5rem clamp(3rem, 6vw, 5rem);
}

.strip {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding: 1.4rem max(var(--pad), calc((100vw - 76rem) / 2 + var(--pad))) 1.4rem;
    scrollbar-width: thin;
}

.strip li {
    flex: none;
    scroll-snap-align: center;
}

/* as tall as the ones of a phone, never wider than the screen */
.strip li {
    --h: clamp(22rem, 60vh, 31rem);
    width: min(calc(var(--h) * var(--r)), calc(100vw - 2 * var(--pad)));
}

.strip.mobile {
    --r: .562;
}

.strip.tablet {
    --r: 1.439;
}

.strip.desktop {
    --r: 1.6;
}

.strip sav-image, .strip img {
    display: block;
    width: 100%;
    --sav-radius-lg: 0px;
}

.strip sav-image::part(frame) {
    border: 1px solid var(--sav-color-border);
}

#shots::part(nav) {
    margin: 1rem max(var(--pad), calc((100vw - 76rem) / 2 + var(--pad))) 0;
}

.rel {
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.rel h2 {
    margin-bottom: 1.4rem;
}

/* about, privacy, not found */
.ahero {
    padding-block: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
}

.ahero h1 {
    font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem);
    max-width: 17em;
    margin-bottom: 1.1rem;
}

.prose {
    max-width: 48rem;
    padding-block: clamp(2rem, 5vw, 4rem) 5rem;
}

.prose h1 {
    font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem);
    margin-bottom: 1.5rem;
}

.prose h2 {
    font-size: 1.3rem;
    margin: 2rem 0 .5rem;
}

.prose p {
    line-height: 1.65;
}

.prose p + p {
    margin-top: 1.2rem;
}

.nf h1 {
    margin: 1.4rem 0 .8rem;
}

/* status */
.sthead {
    padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem;
}

.sthead h1 {
    font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem);
    margin-bottom: .8rem;
}

.stbody {
    padding-bottom: 5rem;
}

[data-status="up"] {
    --st: #16804f;
}

[data-status="degraded"] {
    --st: #b26a00;
}

[data-status="down"] {
    --st: #c22c40;
}

[data-status="unknown"] {
    --st: var(--sav-color-text-muted);
}

.sav-theme-dark {
    --st-mix: 45%;
}

@media (prefers-color-scheme: dark) {
    .sav-theme-auto {
        --st-mix: 45%;
    }
}

.dot {
    flex: none;
    width: .62rem;
    height: .95rem;
    background: color-mix(in oklab, var(--st), #fff var(--st-mix, 0%));
    transform: skewX(26.57deg);
}

.stsum {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem 1.2rem;
    padding: 1.3rem 1.6rem;
    margin-bottom: 2.4rem;
}

.stsum::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--sav-color-surface-2);
    rotate: -.5deg;
}

.stsum .dot {
    width: 1rem;
    height: 1.6rem;
}

.stsum > div {
    flex: 1;
    min-width: 12rem;
}

.stsum h2 {
    font-size: 1.3rem;
}

.stsum p {
    color: var(--sav-color-text-muted);
    font-size: .92rem;
    min-height: 1.5em;
}

.stgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
    gap: 2rem 2.2rem;
}

.stcard {
    scroll-margin-top: 6rem;
}

.stcard:target h3 {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--note-yellow);
}

.stcard summary {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 3.25rem;
    list-style: none;
    cursor: pointer;
}

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

.stcard summary img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.stcard summary h3 {
    flex: 1;
}

.stcard summary .stl {
    display: none;
}

.stcard summary .chev {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--sav-color-text-muted);
    transition: rotate .25s var(--sav-easing);
}

.stcard[open] summary .chev {
    rotate: 90deg;
}

.stcard h3 {
    font-size: 1.15rem;
}

.stcard h3 a {
    text-decoration: none;
}

.stcard h3 a:hover {
    text-decoration: underline;
}

.stcard li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    padding: .6rem .3rem;
    border-top: 1px solid var(--sav-color-border);
    font-size: .95rem;
}

.stn {
    flex: 1;
    min-width: 0;
}

.std {
    color: var(--sav-color-text-muted);
    font-size: .82rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.stcard li:not([data-status="up"]) .std {
    order: 3;
    flex-basis: 100%;
    padding-left: 1.37rem;
    text-align: left;
}

.stcard li:not([data-status="up"]) .std:empty {
    display: none;
}

.stl {
    font-weight: 600;
    font-size: .85rem;
    color: color-mix(in oklab, var(--st), #fff var(--st-mix, 0%));
    white-space: nowrap;
}

.stapi {
    margin-top: 4rem;
    max-width: 48rem;
}

.stapi h2 {
    margin-bottom: .6rem;
}

.stapi > p {
    color: var(--sav-color-text-muted);
}

.codes {
    display: grid;
    gap: .5rem;
    margin: 1.2rem 0;
}

.codes li {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1rem;
    align-items: baseline;
}

.codes span {
    color: var(--sav-color-text-muted);
    font-size: .92rem;
}

code {
    font: .88rem/1.55 var(--sav-font-mono);
    overflow-wrap: anywhere;
}

.stapi pre {
    margin: 0 0 1rem;
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
    background: var(--sav-color-surface-2);
}

.stapi pre code {
    overflow-wrap: normal;
}

/* footer */
.foot {
    border-top: 1px solid var(--sav-color-border);
}

.foot-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 2rem;
    padding-block: 1.6rem;
    font-size: .92rem;
    color: var(--sav-color-text-muted);
}

.foot-who {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
}

.foot-who a {
    font-weight: 600;
    color: var(--sav-color-text);
}

.foot-links {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.5rem;
}

.foot-links a {
    display: inline-block;
    padding-block: .5rem;
    text-decoration: none;
}

.foot-links a:hover {
    text-decoration: underline;
    color: var(--sav-color-text);
}

@media (max-width: 56rem) {
    .hero-in, .pbody, .filters {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero .plates {
        order: -1;
        max-width: 34rem;
        width: 100%;
    }

    .facts {
        max-width: 34rem;
    }
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 40rem) {
    :root {
        --pad: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right));
    }

    .nav a:first-child {
        display: none;
    }

    .top {
        padding-top: env(safe-area-inset-top);
    }

    .top-in {
        gap: .25rem;
        min-height: 3.75rem;
    }

    .mark {
        width: 2.25rem;
        height: 2.25rem;
    }

    .brand {
        min-height: 2.75rem;
        font-size: 1.25rem;
        gap: .5rem;
    }

    .nav a {
        padding: 0 .6rem;
        white-space: nowrap;
    }

    /* opening: the search is on the first screen */
    .hero {
        padding-block: .6rem 1.4rem;
    }

    .hero-in {
        gap: 1.1rem;
    }

    .hero h1 {
        margin-bottom: .5rem;
        font-size: clamp(1.75rem, 7.4vw, 2.1rem);
        line-height: 1.2;
    }

    .lede {
        font-size: 1rem;
        line-height: 1.5;
    }

    .plates, .plates.solo {
        padding: .5rem .25rem;
    }

    .solo .plate-y {
        padding: 1.35rem 1.5rem;
    }

    .plate-y::before {
        rotate: -1.6deg;
    }

    .solo .plate-y::after {
        rotate: 1.6deg;
    }

    /* filters: the rows scroll sideways and fade out where there is more */
    .filters {
        gap: .8rem;
    }

    .rows {
        gap: .2rem;
        min-width: 0;
    }

    .row {
        margin-inline: calc(var(--pad) * -1);
        padding-inline: var(--pad);
        overflow-x: auto;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 2.5rem), transparent);
    }

    .row::-webkit-scrollbar {
        display: none;
    }

    .row sav-chip-group::part(base) {
        flex-wrap: nowrap;
        width: max-content;
        padding: .35rem 1.5rem .35rem 0;
    }

    sav-chip [slot="prefix"] {
        display: none;
    }

    sav-chip {
        --sav-control-md: 3rem;
    }

    .count {
        margin: .9rem 0 .8rem;
    }

    .grid {
        gap: 1rem;
    }

    /* one project */
    .phero {
        padding-block: .25rem 1.25rem;
    }

    .phero-in {
        display: grid;
        grid-template: auto auto / auto minmax(0, 1fr);
        gap: 1rem 1.4rem;
        align-items: center;
        padding-top: .9rem;
    }

    .picon.xl {
        width: 5rem;
        height: 5rem;
        margin: .5rem;
        grid-row: 1 / 3;
    }

    .picon.xl::before {
        inset: -.5rem;
    }

    .picon.xl .bars {
        height: 2.2rem;
    }

    .phero-text {
        display: contents;
    }

    .phero-text > .plevel {
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        margin-bottom: -.75rem;
    }

    .phero h1 {
        grid-column: 2;
        grid-row: 2;
        align-self: start;
        /* the longest word of the name (--w letters) stays on one line beside the icon: no "SavPresentatio / ns" */
        font-size: max(1.2rem, min(clamp(1.7rem, 8vw, 2.2rem), (100vw - 10.5rem) / (var(--w, 10) * .55)));
        overflow-wrap: anywhere;
    }

    .phero-text > .lede, .phero-text > .actions, .phero-text > .note, .phero-text > noscript {
        grid-column: 1 / -1;
    }

    .phero .actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .8rem;
        margin: 0;
    }

    .phero .actions sav-button {
        display: flex;
    }

    .phero .actions sav-button:first-child, .phero .actions sav-button:nth-child(2):last-child {
        grid-column: 1 / -1;
    }

    .pbody {
        gap: 2rem;
        padding-block: .5rem 2rem;
    }

    .intro {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .ptext h2 {
        margin: 1.6rem 0 .8rem;
    }

    .facts {
        padding: 1.1rem 1.2rem 1.2rem;
    }

    .facts::before {
        rotate: .9deg;
    }

    .facts dl > div {
        grid-template-columns: 5.2rem 1fr;
        padding: .6rem 0;
    }

    .facts .more, .facts dd a {
        min-height: 2.75rem;
        align-items: center;
        display: inline-flex;
    }

    .facts dd a {
        min-height: 0;
        padding-block: .35rem;
        margin-block: -.35rem;
    }

    .shots {
        padding-block: 0 2.25rem;
    }

    .strip {
        gap: .9rem;
        padding-block: 1rem;
        scroll-snap-type: x mandatory;
    }

    .strip li {
        --h: min(60vh, 25rem);
    }

    .rel {
        padding-bottom: 2.75rem;
    }

    /* about, typeface */
    .ahero {
        padding-block: 1rem 1rem;
    }

    .ahero h1 {
        font-size: clamp(1.8rem, 7.6vw, 2.2rem);
        margin-bottom: .7rem;
    }

    thead tr, tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-bottom: 1px solid var(--sav-color-border);
        padding-bottom: .9rem;
    }

    thead td {
        display: none;
    }

    th, td {
        border: 0;
        padding: .9rem 1rem 0 0;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    thead th {
        font-size: 1.05rem;
    }

    tbody th {
        grid-column: 1 / -1;
        width: auto;
        font-size: .9rem;
    }

    tbody td {
        padding-top: .3rem;
    }

    /* status: one row for each project, opened by a tap (or by itself when something is wrong) */
    .sthead {
        padding-block: 1rem .9rem;
    }

    .sthead h1 {
        margin-bottom: .4rem;
    }

    .stsum {
        padding: 1rem 1.1rem;
        margin-bottom: 1rem;
        gap: .7rem .9rem;
    }

    .stsum > div {
        min-width: 9rem;
    }

    .stsum h2 {
        font-size: 1.15rem;
    }

    .stgrid {
        gap: 0;
    }

    .stcard {
        border-bottom: 1px solid var(--sav-color-border);
        scroll-margin-top: 4.5rem;
    }

    .stcard summary {
        min-height: 3.5rem;
    }

    .stcard summary h3 {
        font-size: 1.05rem;
    }

    .stcard summary .stl {
        display: block;
    }

    .stcard ul {
        padding: 0 0 .6rem 2.75rem;
    }

    .stcard li {
        padding-inline: 0;
    }

    .stapi {
        margin-top: 2.5rem;
    }

    .foot-in {
        flex-direction: column;
        align-items: flex-start;
        padding-block: 1.2rem calc(1.2rem + env(safe-area-inset-bottom));
    }

    .foot-links {
        display: grid;
        grid-template-columns: auto auto;
        gap: 0 1.8rem;
    }

    .foot-links a {
        padding-block: .7rem;
    }
}

@media (max-width: 22.5rem) {
    .nav a {
        padding: 0 .3rem;
        font-size: .88rem;
    }

    .lang, .theme {
        min-width: 2.4rem;
    }

    .brand {
        font-size: 1.1rem;
        gap: .35rem;
    }

    .phero .actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Illerom Bars */
.tf-text {
    --lean: 100;
    font-family: "Illerom Bars", var(--display);
    font-variation-settings: "LEAN" var(--lean);
    font-kerning: none;
    letter-spacing: 0;
    color: var(--tf-ink, var(--plum));
}

/* a note to write on: yellow, with the blue one leaning behind, as in the opening */
.note-y {
    position: relative;
    isolation: isolate;
}

.note-y::before, .note-y::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--note-yellow);
    rotate: -1.6deg;
    box-shadow: 0 14px 34px -18px rgb(42 20 48 / .45);
    z-index: -1;
}

.note-y::after {
    background: var(--note-blue);
    rotate: 1.8deg;
    box-shadow: none;
    z-index: -2;
}

.thero h1 {
    max-width: 14em;
}

.ttry {
    padding-block: .5rem clamp(3rem, 6vw, 4.5rem);
}

.try {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}

.try-note {
    min-height: 13rem;
    display: grid;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.75rem, 5vw, 3.5rem);
}

.try-note .tf-text {
    font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
    /* the tops lean back past the start of the line */
    padding-inline: .3em 0;
    min-height: 1.3em;
}

.try-ctl {
    display: grid;
    gap: 1.25rem;
    align-content: center;
}

.tf-text.mono {
    font-family: "Illerom Bars Mono", var(--display);
}

.try-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.formats-h {
    margin-top: 1.4rem;
    font-size: 1rem;
}

.formats-h + .formats {
    margin-top: .55rem;
}

/* written again: each letter comes in upright, then the whole line leans */
.tf-text.writing .w {
    white-space: nowrap;
}

.tf-text.writing .w > span {
    display: inline-block;
    animation: letter-in .35s calc(var(--i) * 45ms) var(--sav-easing) backwards;
}

.tf-text.writing {
    animation: text-lean .8s var(--done) cubic-bezier(.34, 1.4, .5, 1) backwards;
}

@keyframes letter-in {
    from {
        opacity: 0;
        transform: translateY(-.25em);
    }
}

@keyframes text-lean {
    from {
        font-variation-settings: "LEAN" 0;
    }
}

.talpha, .trules, .ttwins {
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.talpha h2, .trules h2, .ttwins h2, .tget h2 {
    margin-bottom: .6rem;
}

.alpha {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr));
    gap: .5rem;
    margin-top: 1.4rem;
}

.ch {
    position: relative;
    isolation: isolate;
    width: 100%;
    display: grid;
    justify-items: center;
    gap: .35rem;
    padding: 1rem .5rem .7rem;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.ch::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--sav-color-surface);
    border: 1px solid var(--sav-color-border);
    transition: rotate .3s var(--sav-easing), background .2s;
}

.ch-g {
    --lean: 100;
    font-size: 3.4rem;
    line-height: 1;
    height: 1em;
    padding-left: .2em;
    transition: font-variation-settings .45s var(--sav-easing);
}

.ch-l {
    font-size: .8rem;
    font-weight: 600;
    color: var(--sav-color-text-muted);
}

.ch[aria-pressed="true"] .ch-g {
    font-variation-settings: "LEAN" 0;
}

.ch[aria-pressed="true"]::before {
    background: var(--note-yellow);
    border-color: transparent;
}

.ch[aria-pressed="true"] .ch-l {
    color: var(--ink);
}

@media (hover: hover) {
    .ch:hover .ch-g {
        font-variation-settings: "LEAN" 0;
    }

    .ch:hover::before {
        rotate: -2deg;
    }
}

.steps {
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.5rem;
    margin-top: 1.4rem;
    counter-reset: step;
}

.steps sav-card {
    --sav-card-padding: 1.5rem;
    height: 100%;
}

.step {
    display: grid;
    gap: .6rem;
}

.step-g {
    display: flex;
    gap: .9rem;
    height: 3.5rem;
    margin-bottom: .4rem;
}

.step-g .glyph {
    height: 100%;
    width: auto;
}

.step h3 {
    font-size: 1.2rem;
}

.step p, .ttwins > p, .tget p {
    color: var(--sav-color-text-muted);
    max-width: 42em;
}

.glyph {
    display: block;
    overflow: visible;
    fill: var(--tf-ink, var(--plum));
}

.glyph .grid {
    fill: none;
    stroke: var(--sav-color-border-strong);
    stroke-width: .6;
    stroke-dasharray: 2 2;
}

/* plum on paper and on the notes, yellow on the dark background */
:root.sav-theme-dark {
    --tf-ink: var(--note-yellow);
}

@media (prefers-color-scheme: dark) {
    :root.sav-theme-auto {
        --tf-ink: var(--note-yellow);
    }
}

.note-y, .ch[aria-pressed="true"] {
    --tf-ink: var(--plum);
}

.twins {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}

.twins sav-card {
    --sav-card-padding: 1.1rem 1.25rem;
    height: 100%;
}

.twin {
    display: grid;
    justify-items: start;
    gap: .7rem;
}

.twin .glyph {
    height: 2.75rem;
    width: auto;
}

.twin b {
    font: 600 1.15rem/1.2 var(--display);
    word-spacing: .25em;
}

.tget {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2rem clamp(2rem, 5vw, 4.5rem);
    align-items: start;
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.tget .actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.4rem;
}

.formats {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .9rem;
}

.formats .kb {
    color: var(--sav-color-text-muted);
    font-weight: 400;
    font-size: .8em;
}

.tget-code {
    display: grid;
    gap: .75rem;
    justify-items: start;
    min-width: 0;
}

.tget-code sav-code-block {
    width: 100%;
}

/* home: the typeface, after the projects */
.tfhome {
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.tfhome-in {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.tfhome-note {
    display: block;
    text-decoration: none;
    padding: clamp(1.4rem, 3.5vw, 2.4rem) clamp(1.6rem, 4vw, 3rem);
}

.tfhome-note .tf-text {
    font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem);
    line-height: 1.35;
    padding-left: .3em;
    transition: font-variation-settings .9s var(--sav-easing);
}

.tfhome-note .tf-text.upright {
    font-variation-settings: "LEAN" 0;
}

.tfhome h2 {
    margin-bottom: .7rem;
}

.tfhome p {
    color: var(--sav-color-text-muted);
    max-width: 34em;
    margin-bottom: 1.2rem;
}

@media (max-width: 56rem) {
    .try, .tget, .tfhome-in {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 40rem) {
    .try-note {
        min-height: 9rem;
        padding: 1.4rem 1.5rem;
    }

    .alpha {
        grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
        gap: .4rem;
    }

    .ch {
        padding: .8rem .25rem .55rem;
    }

    .ch-g {
        font-size: 2.6rem;
    }

    .tfhome-note {
        order: -1;
    }
}

@view-transition {
    navigation: auto;
}

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

    :root {
        --sav-motion: 0;
    }

    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* the "Sav" of the Sav apps is never bold, as in the apps themselves */
.sav { font-weight: 400 !important; }

/* ================================================================== home
   The notes of the mark everywhere: the numbers, the featured suite, the rules. Each note leans and straightens when
   touched, as the name in the opening (which stays as it was: .plates above). */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    margin-bottom: .9rem;
    font-size: .8rem;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sav-color-text-muted);
}

.kicker .bars {
    height: 1em;
}

.hero-go {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.7rem;
}

/* the numbers: four little notes */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: clamp(1.75rem, 4vw, 3rem);
}

.stat {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: baseline;
    gap: .55rem;
    padding: .95rem 1.2rem;
    color: var(--ink);
}

.stat::before, .wn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--c);
    rotate: var(--r);
    box-shadow: 0 12px 26px -18px rgb(42 20 48 / .55);
    transition: rotate .4s var(--sav-easing);
}

.stat:hover::before, .wn:hover::before {
    rotate: 0deg;
}

.stat b {
    font: 700 clamp(1.8rem, 1.25rem + 1.6vw, 2.5rem)/1 var(--display);
    font-variant-numeric: tabular-nums;
}

.stat span {
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.25;
}

.stat-0, .wn-0 { --c: var(--note-yellow); --r: -1.6deg; }
.stat-1, .wn-1 { --c: var(--note-blue); --r: 1.3deg; }
.stat-2, .wn-2 { --c: var(--note-green); --r: -1.1deg; }
.stat-3, .wn-3 { --c: var(--note-pink); --r: 1.7deg; }

/* featured: SavOffice on a card with a blue note behind */
.feat {
    padding-block: clamp(1rem, 3vw, 2rem) clamp(3.5rem, 7vw, 5.5rem);
}

.feat-in {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(1.75rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.feat-in::before, .feat-in::after {
    content: "";
    position: absolute;
    inset: 0;
}

.feat-in::before {
    z-index: -1;
    background: var(--sav-color-surface);
    border: 1px solid var(--sav-color-border);
    box-shadow: 0 24px 50px -30px rgb(42 20 48 / .5);
}

.feat-in::after {
    z-index: -2;
    background: var(--note-blue);
    rotate: 1.6deg;
    translate: .4rem .5rem;
}

.feat h2 {
    font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.5rem);
    margin-bottom: .8rem;
}

.feat-text > p:not(.kicker) {
    color: var(--sav-color-text-muted);
    max-width: 34em;
    margin-bottom: 1.5rem;
}

.feat-apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr)); /* as many as fit: the suite keeps growing */
    gap: .4rem;
}

.feat-apps a {
    position: relative;
    isolation: isolate;
    display: grid;
    justify-items: center;
    gap: .4rem;
    padding: .55rem .2rem .5rem;
    text-decoration: none;
    text-align: center;
    font-size: .74rem;
    font-weight: 600;
}

.feat-apps a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--sav-color-surface-2);
    rotate: var(--r, -2deg);
    transition: rotate .3s var(--sav-easing), background .2s;
}

.feat-apps li:nth-child(odd) a {
    --r: 1.8deg;
}

.feat-apps li:nth-child(3n) a {
    --r: -1deg;
}

.feat-apps a:hover::before, .feat-apps a:focus-visible::before {
    rotate: 0deg;
    background: color-mix(in oklab, var(--note-yellow) 55%, var(--sav-color-surface));
}

.feat-apps img {
    width: 2.5rem;
    height: 2.5rem;
    transition: transform .3s var(--sav-easing);
}

.feat-apps a:hover img {
    transform: translateY(-3px) rotate(-5deg);
}

.feat-apps span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* the list */
.list-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .4rem 2rem;
    margin-bottom: 1.4rem;
}

.list-head h2, .why h2 {
    font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.5rem);
}

.list-head p {
    color: var(--sav-color-text-muted);
}

/* a project: a coloured note on top (the colour of its kind) with the icon on a white tile, then the words */
.pj {
    flex: 1;
    min-width: 0;
    --sav-card-padding: 0;
}

.pj-in {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pj-top {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    min-height: 7.4rem;
    padding: 1.15rem 1.1rem 1.15rem 1.45rem;
    background: repeating-linear-gradient(115deg, transparent 0 18px, var(--stripe) 18px 26px), color-mix(in oklab, var(--tile) var(--tint), var(--sav-color-surface));
    --stripe: rgb(255 255 255 / .25);
    --tint: 42%;
}

.pj-icon {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-top: .3rem;
}

.pj-icon::before {
    content: "";
    position: absolute;
    inset: -.4rem;
    z-index: -1;
    background: var(--sav-color-surface);
    rotate: -7deg;
    box-shadow: 0 10px 20px -12px rgb(42 20 48 / .5);
    transition: rotate .35s var(--sav-easing);
}

.item:hover .pj-icon::before {
    rotate: 6deg;
}

.pj-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s var(--sav-easing);
}

.item:hover .pj-icon img {
    transform: rotate(-3deg) scale(1.04);
}

.pj-top .plevel {
    padding: .3rem .6rem;
    background: var(--sav-color-surface);
    color: var(--sav-color-text);
    font-size: .78rem;
}

.pj-body {
    flex: 1;
    display: grid;
    align-content: start;
    gap: .35rem;
    padding: 1.1rem 1.45rem .3rem;
}

.pj-kind {
    font-size: .74rem;
    font-weight: 650;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--sav-color-text-muted);
}

.pj h3 {
    font-size: 1.35rem;
}

.pj h3 a {
    text-decoration: none;
}

.pj h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.pj h3 a:focus-visible {
    outline: 0;
}

.pj h3 a:focus-visible::after {
    outline: 3px solid var(--sav-color-focus);
    outline-offset: -4px;
}

.pj-tag {
    color: var(--sav-color-text-muted);
    line-height: 1.5;
}

/* the apps of a suite: little icons side by side, each whole (they used to overlap, which hid half of each) */
.pj-apps {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .55rem;
}

.pj-apps img {
    display: block;
    width: 1.3rem;
    height: 1.3rem;
}

.pj-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .9rem;
    padding: .8rem 1.1rem .95rem 1.45rem;
    border-top: 1px dashed var(--sav-color-border);
}

.pj-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .85rem;
    font-size: .8rem;
    color: var(--sav-color-text-muted);
}

.pj-facts li {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.pj-facts .ic {
    width: 1rem;
    height: 1rem;
}

.go {
    position: relative;
    z-index: 1;
    --sav-control-sm: 2.4rem;
}

.soon {
    font-size: .875rem;
    font-weight: 550;
    color: var(--sav-color-text-muted);
}

:root.sav-theme-dark .pj-top {
    --stripe: rgb(255 255 255 / .035);
    --tint: 27%;
    background: repeating-linear-gradient(115deg, transparent 0 18px, var(--stripe) 18px 26px), color-mix(in oklch, var(--tile) var(--tint), var(--sav-color-surface));
}

@media (prefers-color-scheme: dark) {
    :root.sav-theme-auto .pj-top {
        --stripe: rgb(255 255 255 / .035);
        --tint: 27%;
        background: repeating-linear-gradient(115deg, transparent 0 18px, var(--stripe) 18px 26px), color-mix(in oklch, var(--tile) var(--tint), var(--sav-color-surface));
    }
}

/* the rules: four notes */
.why {
    padding-block: clamp(3rem, 7vw, 5.5rem);
    background: var(--sav-color-surface-2);
}

.why h2 {
    margin-bottom: clamp(1.6rem, 4vw, 2.6rem);
}

.why-notes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.wn {
    position: relative;
    isolation: isolate;
    padding: 1.4rem 1.35rem 1.6rem;
    color: var(--ink);
}

.wn-n {
    font: 700 .85rem/1 var(--display);
    letter-spacing: .06em;
    opacity: .55;
}

.wn h3 {
    margin: .75rem 0 .45rem;
    font-size: 1.3rem;
    color: var(--ink);
}

.wn p {
    font-size: .95rem;
    line-height: 1.5;
    color: color-mix(in oklab, var(--ink) 84%, transparent);
}

.wn-levels {
    display: grid;
    gap: .35rem;
    margin-top: .9rem;
    font-size: .85rem;
    font-weight: 600;
}

.wn-levels li {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.wn-levels .bars {
    height: 1rem;
}

.wn-levels .on, .kicker .on {
    fill: var(--plum);
}

.wn-levels .off {
    fill: var(--plum);
    opacity: .25;
}

:root.sav-theme-dark .kicker .on {
    fill: var(--note-yellow);
}

@media (prefers-color-scheme: dark) {
    :root.sav-theme-auto .kicker .on {
        fill: var(--note-yellow);
    }
}

.why + .tfhome {
    padding-top: clamp(3rem, 7vw, 5.5rem);
}

/* the bigger projects, each at home */
.homes {
    padding-block: clamp(2.75rem, 6vw, 4.5rem);
    background: var(--sav-color-surface-2);
}

.homes-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1.6rem;
}

.homes-head h2 {
    margin-bottom: .5rem;
}

.homes-head p {
    color: var(--sav-color-text-muted);
    max-width: 34em;
}

.homes-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.homes-list a {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: start;
    gap: .3rem;
    height: 100%;
    padding: 1.25rem 1.25rem 1.05rem;
    text-decoration: none;
    font-size: .92rem;
    color: var(--sav-color-text-muted);
}

.homes-list a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--sav-color-surface);
    border: 1px solid var(--sav-color-border);
    transition: rotate .3s var(--sav-easing), border-color .2s;
}

.homes-list a:hover::before {
    rotate: -1.2deg;
    border-color: var(--sav-color-border-strong);
}

.hm-icon img {
    display: block;
    width: 3rem;
    height: 3rem;
    margin-bottom: .45rem;
    object-fit: contain;
}

.homes-list b {
    color: var(--sav-color-text);
    font: 600 1.15rem/1.25 var(--display);
}

.hm-host {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .55rem;
    font-size: .8rem;
    font-weight: 650;
    color: var(--sav-color-primary);
}

.hm-host .ic {
    width: .95rem;
    height: .95rem;
}

@media (max-width: 64rem) {
    .why-notes, .homes-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 56rem) {
    .feat-in {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 40rem) {
    .hero-go sav-button {
        flex: 1 1 auto;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .8rem;
        margin-top: 1.5rem;
    }

    .stat {
        flex-direction: column;
        gap: .2rem;
        padding: .8rem 1rem;
    }

    .feat-in {
        padding: 1.4rem 1.1rem;
    }

    .feat-apps {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: .35rem;
    }

    .feat-apps a {
        padding: .65rem .2rem;
    }

    .feat-apps img {
        width: 2.3rem;
        height: 2.3rem;
    }

    /* the names are still read by screen readers */
    .feat-apps span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    /* a project: the note on the left, the words on the right */
    .pj-in {
        display: grid;
        grid-template-columns: 5.6rem minmax(0, 1fr);
    }

    .pj-top {
        grid-row: 1 / 3;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .7rem;
        min-height: 0;
        padding: .9rem .5rem;
    }

    .pj-icon {
        width: 3.3rem;
        height: 3.3rem;
        margin: 0;
    }

    .pj-icon::before {
        inset: -.3rem;
    }

    /* only the bars: the words are in the title */
    .pj-top .plevel {
        gap: 0;
        padding: .25rem .4rem;
        font-size: 0;
    }

    .pj-top .plevel .bars {
        height: .8rem;
    }

    .pj-body {
        gap: .2rem;
        padding: .85rem 1rem .1rem;
    }

    .pj-kind {
        font-size: .7rem;
    }

    .pj h3 {
        font-size: 1.15rem;
    }

    .pj-tag {
        font-size: .93rem;
        line-height: 1.4;
    }

    .pj-foot {
        grid-column: 2;
        margin-top: .4rem;
        padding: .45rem 1rem .8rem;
    }

    /* the features as icons only (their names stay for screen readers, and in the tooltip) */
    .pj-facts {
        gap: .6rem;
    }

    .pj-facts .ic {
        width: 1.15rem;
        height: 1.15rem;
    }

    .pj-facts span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .go {
        --sav-control-sm: 2.75rem;
    }

    .item:active .pj-icon::before {
        rotate: 6deg;
    }

    .why-notes {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.1rem;
    }

    /* the bigger projects: one per row, the icon on the left */
    .homes-list {
        grid-template-columns: minmax(0, 1fr);
        gap: .7rem;
    }

    .homes-list a {
        grid-template-columns: 2.75rem minmax(0, 1fr);
        column-gap: .9rem;
        row-gap: .1rem;
        padding: .9rem 1rem;
    }

    .homes-list a > * {
        grid-column: 2;
    }

    .homes-list a > .hm-icon {
        grid-column: 1;
        grid-row: 1 / 4;
        align-self: center;
    }

    .hm-icon img {
        width: 2.75rem;
        height: 2.75rem;
        margin: 0;
    }

    .hm-host {
        margin-top: .25rem;
    }
}

/* ================================================================== about (same notes as the home) */
.ab-sub {
    color: var(--sav-color-text-muted);
    max-width: 42em;
    margin-top: .7rem;
}

.ab-name, .ab-sites, .ab-levels {
    padding-block: clamp(1.5rem, 4vw, 3rem) clamp(3.5rem, 7vw, 5.5rem);
}

.ab-name h2, .ab-sites h2, .ab-levels h2, .ab-help h2 {
    font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.5rem);
}

/* the name: the letters one by one, each on its tile */
.ab-name {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.ab-name-text > p:not(.kicker) {
    color: var(--sav-color-text-muted);
    margin-top: .8rem;
    max-width: 38em;
}

.rev {
    display: inline-flex !important;
    align-items: center;
    gap: .7rem;
    margin-top: 1.3rem !important;
    padding: .55rem .9rem;
    background: var(--sav-color-surface);
    border: 1px dashed var(--sav-color-border-strong);
    font: 600 1.05rem/1 var(--display);
    color: var(--sav-color-text) !important;
}

.rev span:last-child {
    color: var(--sav-color-primary);
}

.rev .ic {
    color: var(--sav-color-text-muted);
}

.letters {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .6rem;
}

.lt {
    position: relative;
    isolation: isolate;
    display: grid;
    justify-items: center;
    gap: .2rem;
    padding: 1rem .2rem .8rem;
    text-align: center;
}

.lt::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--sav-color-surface);
    border: 1px solid var(--sav-color-border);
    rotate: calc((var(--i) - 3) * .9deg);
    transition: rotate .35s var(--sav-easing), background .2s;
}

.lt:hover::before {
    rotate: 0deg;
}

.lt .tf-text {
    font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem);
    line-height: 1.1;
    transition: font-variation-settings .5s var(--sav-easing);
}

.lt:hover .tf-text {
    font-variation-settings: "LEAN" 0;
}

.lt b {
    font: 600 1rem/1 var(--display);
}

.lt small {
    font-size: .72rem;
    line-height: 1.25;
    color: var(--sav-color-text-muted);
}

.lt-m::before {
    background: var(--note-yellow);
    border-color: transparent;
}

.lt-m b, .lt-m small {
    color: var(--ink);
}

.lt-m .tf-text {
    --tf-ink: var(--plum);
}

/* two sites, side by side */
.sites {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
    margin-top: 1.8rem;
}

.site {
    position: relative;
    isolation: isolate;
    padding: 0 1.5rem 1.2rem;
}

.site::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--sav-color-surface);
    border: 1px solid var(--sav-color-border);
    box-shadow: 0 20px 40px -30px rgb(42 20 48 / .5);
}

.site h3 {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 -1.5rem 1rem;
    padding: 1.1rem 1.5rem;
    font-size: 1.35rem;
    color: var(--ink);
    background: repeating-linear-gradient(115deg, transparent 0 18px, rgb(255 255 255 / .25) 18px 26px), var(--c);
}

.site-1 { --c: var(--note-yellow); }
.site-2 { --c: var(--note-blue); }

.site h3 a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: inherit;
    text-decoration: none;
}

.site h3 a:hover {
    text-decoration: underline;
}

.site h3 .mark {
    width: 1.8rem;
    height: 1.8rem;
}

.site dl {
    display: grid;
}

.site dl > div {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 1rem;
    padding-block: .8rem;
    border-top: 1px dashed var(--sav-color-border);
}

.site dl > div:first-child {
    border-top: 0;
}

.site dt {
    font-size: .85rem;
    font-weight: 600;
    color: var(--sav-color-text-muted);
}

.site dd {
    margin: 0;
    font-weight: 550;
    line-height: 1.45;
}

/* the rules: two notes with an icon */
.why-notes.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
}

.wn-ic {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    background: rgb(255 255 255 / .55);
    rotate: -6deg;
}

.wn-ic .ic {
    width: 1.4rem;
    height: 1.4rem;
    rotate: 6deg;
    color: var(--plum);
}

.two .wn {
    padding: 1.6rem 1.6rem 1.8rem;
}

.two .wn p {
    font-size: 1rem;
}

/* the levels: three steps, from the idea to stable */
.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    --step-gap: 2.6rem;
    gap: var(--step-gap);
    margin: 1.8rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: start;
    gap: .45rem;
    padding: 1.4rem 1.4rem 1.2rem;
}

.step::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--sav-color-surface);
    border: 1px solid var(--sav-color-border);
    border-top: 5px solid var(--c);
}

/* an arrow from one step to the next: a chevron drawn in its own box, centred in the gap between the two steps */
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.1rem;
    right: calc(var(--step-gap) / -2 - .55rem);
    width: 1.1rem;
    height: 1.1rem;
    background: var(--sav-color-border-strong);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.step-1 { --c: var(--note-pink); }
.step-2 { --c: var(--note-blue); }
.step-3 { --c: var(--note-green); }

.step-bars .bars {
    height: 2.1rem;
    margin-bottom: .35rem;
}

.step h3 {
    font-size: 1.25rem;
}

.step p {
    color: var(--sav-color-text-muted);
    line-height: 1.5;
}

.step small {
    justify-self: start;
    margin-top: .4rem;
    padding: .25rem .55rem;
    font-size: .8rem;
    font-weight: 650;
    color: var(--ink);
    background: var(--c);
}

/* help */
.ab-help-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem 3rem;
}

.ab-help-in p:not(.kicker) {
    color: var(--sav-color-text-muted);
    margin-top: .6rem;
    max-width: 38em;
}

.ab-help .hero-go {
    margin: 0;
}

@media (max-width: 64rem) {
    .ab-name {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 56rem) {
    .sites, .why-notes.two, .steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .step:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: calc(var(--step-gap) / -2 - .55rem);
        left: 2rem;
        rotate: 90deg;
    }
}

@media (max-width: 40rem) {
    .letters {
        gap: .35rem;
    }

    .lt {
        padding: .7rem .1rem .6rem;
    }

    .lt .tf-text {
        font-size: 2.1rem;
    }

    .lt small {
        display: none;
    }

    .site {
        padding: 0 1.1rem 1rem;
    }

    .site h3 {
        margin: 0 -1.1rem .6rem;
        padding: .9rem 1.1rem;
    }

    .site dl > div {
        grid-template-columns: minmax(0, 1fr);
        gap: .15rem;
    }

    .ab-help .hero-go {
        width: 100%;
    }
}
