Files
lucid/styles.css
Sn3aky d91908b9aa The docs rail's pill, as Settings' rail and Lumen's sidebar move it
The highlight no longer slides on a spring and wobbles. Its two edges move
apart from each other the way the shell's glider does: the edge on the way
leads (200ms, emphasized decelerate) and the other closes up behind it
(330ms, standard), stretching with nothing overshooting the row. Each row's
words and glyph light by how much of it the pill covers, the row it stops
on turns its glyph filled and its words a weight up, and a glyph swells
under the pointer and gives under a press. On phones the section you are
on is a filled chip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 13:12:42 +01:00

3726 lines
69 KiB
CSS

/* Lucid's site. Flat, opaque surfaces the way the shell draws them with the glass
turned down: tonal containers, the expressive shapes, the Poster clock's figures and
Google Sans Flex rounded where it is loud. Palettes are the shell's own, dark and light.
No blur and no glow anywhere. Pages are written by tools/build.py; this file is not. */
@font-face {
font-family: "Lucid Sans";
src: url("assets/fonts/GoogleSansFlex.woff") format("woff");
font-weight: 1 1000;
font-display: swap;
}
@font-face {
font-family: "Lucid Poster";
src: url("assets/fonts/LucidPoster.woff") format("woff");
font-display: swap;
}
@font-face {
font-family: "Noto Sans Mono";
src: url("assets/fonts/NotoSansMono.woff2") format("woff2");
font-display: swap;
}
:root {
color-scheme: dark;
--brand: #00f0ff;
--mark: var(--brand);
--bg: #0e1415;
--s1: #161d1d;
--s2: #1a2121;
--s3: #252b2c;
--s4: #303636;
--text: #dee4e4;
--text-2: #bec8c9;
--line: #3f4849;
--line-2: #899393;
--accent: #80d4dc;
--on-accent: #00363a;
--accent-c: #004c52;
--on-accent-c: #9df0f8;
--secondary: #b1cbce;
--tertiary: #b7c7ea;
--error: #ffb4ab;
--success: #36e27e;
--sec-c: #30494b;
--on-sec-c: #cce8ea;
--ter-c: #354562;
--on-ter-c: #d7e2ff;
--err-c: #8d0009;
--on-err-c: #ffdad6;
--scrim: rgb(0 0 0 / 0.6);
--text-3: color-mix(in oklab, var(--text-2) 70%, var(--bg));
--hover: color-mix(in oklab, var(--text) 8%, transparent);
--press: color-mix(in oklab, var(--text) 12%, transparent);
--accent-hover: var(--accent);
--accent-pressed: var(--accent);
--font: "Lucid Sans", "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--poster: "Lucid Poster", "Lucid Sans", system-ui, sans-serif;
--mono: "Noto Sans Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
--wrap: 1240px;
--gutter: clamp(16px, 4vw, 40px);
--r-xs: 8px;
--r-sm: 12px;
--r-md: 16px;
--r-lg: 20px;
--r-xl: 28px;
--r-2xl: 36px;
--ease-in: cubic-bezier(0.05, 0.7, 0.1, 1);
--ease-out: cubic-bezier(0.3, 0, 0.8, 0.15);
--ease-std: cubic-bezier(0.33, 1, 0.68, 1);
/* M3 Expressive spatial springs (Compose MotionScheme.expressive), sampled into linear() */
--spring-fast: linear(0, 0.0442, 0.1537, 0.2988, 0.4562, 0.6089, 0.7458, 0.8604, 0.9503, 1.0158, 1.0593, 1.0841, 1.0941, 1.0931, 1.0846, 1.0719, 1.0572, 1.0424, 1.0287, 1.017, 1.0076, 1.0006, 0.9957, 0.9927, 0.9913, 0.991, 0.9916, 0.9927, 0.994, 0.9955, 0.9968, 0.998, 1);
--spring: linear(0, 0.0303, 0.1051, 0.2049, 0.3152, 0.4263, 0.5316, 0.6271, 0.7108, 0.7821, 0.8411, 0.8887, 0.9262, 0.955, 0.9764, 0.9917, 1.0023, 1.009, 1.0129, 1.0148, 1.0151, 1.0145, 1.0133, 1.0117, 1.0101, 1.0084, 1.0068, 1.0054, 1.0042, 1.0031, 1.0023, 1.0016, 1);
--d-quick: 120ms;
--d-short: 180ms;
--d-medium: 280ms;
--d-long: 400ms;
--d-spring-fast: 360ms;
--d-spring: 440ms;
--d-spring-slow: 600ms;
}
/* light, the brand palette's own light scheme */
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) {
color-scheme: light;
--mark: #006970;
--bg: #e6eced;
--s1: #d6e2e3;
--s2: #ceddde;
--s3: #c7d8d9;
--s4: #c3d2d4;
--text: #161d1d;
--text-2: #3f4849;
--line: #bec8c9;
--line-2: #6f797a;
--accent: #006970;
--on-accent: #ffffff;
--accent-c: #9df0f8;
--on-accent-c: #002022;
--secondary: #4a6365;
--tertiary: #4f5e7d;
--error: #ba1a1a;
--success: #2c6a46;
--sec-c: #cce8ea;
--on-sec-c: #051f21;
--ter-c: #d7e2ff;
--on-ter-c: #0a1b36;
--err-c: #ffdad6;
--on-err-c: #410002;
--scrim: rgb(20 10 8 / 0.45);
}
}
:root[data-theme="light"] {
color-scheme: light;
--mark: #006970;
--bg: #e6eced;
--s1: #d6e2e3;
--s2: #ceddde;
--s3: #c7d8d9;
--s4: #c3d2d4;
--text: #161d1d;
--text-2: #3f4849;
--line: #bec8c9;
--line-2: #6f797a;
--accent: #006970;
--on-accent: #ffffff;
--accent-c: #9df0f8;
--on-accent-c: #002022;
--secondary: #4a6365;
--tertiary: #4f5e7d;
--error: #ba1a1a;
--success: #2c6a46;
--sec-c: #cce8ea;
--on-sec-c: #051f21;
--ter-c: #d7e2ff;
--on-ter-c: #0a1b36;
--err-c: #ffdad6;
--on-err-c: #410002;
--scrim: rgb(20 10 8 / 0.45);
}
/* Theme.accentHover / accentPressed: the accent six tone steps toward the light in dark
mode (toward the dark in light mode) for hover, the other way for a press. M3 tone is
CIELAB L*, so lab(from ...) makes the same shift for every palette */
@supports (color: lab(from red l a b)) {
:root {
--accent-hover: lab(from var(--accent) calc(l + 6) a b);
--accent-pressed: lab(from var(--accent) calc(l - 6) a b);
}
@media (prefers-color-scheme: light) {
:root:not([data-theme="dark"]) {
--accent-hover: lab(from var(--accent) calc(l - 6) a b);
--accent-pressed: lab(from var(--accent) calc(l + 6) a b);
}
}
:root[data-theme="light"] {
--accent-hover: lab(from var(--accent) calc(l - 6) a b);
--accent-pressed: lab(from var(--accent) calc(l + 6) a b);
}
}
/* the shell's fixed palettes, dark and light, as Settings → Theme offers them */
:root[data-palette="catppuccin-mocha"] {
--mark: var(--accent);
--bg: #11111b;
--s1: #181825;
--s2: #1e1e2e;
--s3: #313244;
--s4: #45475a;
--text: #cdd6f4;
--text-2: #a6adc8;
--line: #313244;
--line-2: #6c7086;
--accent: #89b4fa;
--on-accent: #1e1e2e;
--accent-c: #45475a;
--on-accent-c: #cdd6f4;
--secondary: #cba6f7;
--tertiary: #a6e3a1;
--error: #f38ba8;
--sec-c: #45475a;
--on-sec-c: #cdd6f4;
--ter-c: #45475a;
--on-ter-c: #cdd6f4;
--err-c: #45475a;
--on-err-c: #f38ba8;
}
@media (prefers-color-scheme: light) {
:root[data-palette="catppuccin-mocha"]:not([data-theme="dark"]) {
--bg: #ecf1ff;
--s1: #d9dff6;
--s2: #d1d7ec;
--s3: #c8cfe3;
--s4: #c0c6da;
--text: #1e1e2e;
--text-2: #444462;
--line: #c0c6da;
--line-2: #7373a2;
--accent: #475f86;
--on-accent: #ffffff;
--accent-c: #d6e3ff;
--on-accent-c: #131c2b;
--secondary: #6a5582;
--tertiary: #486646;
--error: #894c5d;
--sec-c: #ebdcff;
--on-sec-c: #201829;
--ter-c: #b0f3ac;
--on-ter-c: #131e12;
--err-c: #ffd9e2;
--on-err-c: #2c141b;
}
}
:root[data-palette="catppuccin-mocha"][data-theme="light"] {
--bg: #ecf1ff;
--s1: #d9dff6;
--s2: #d1d7ec;
--s3: #c8cfe3;
--s4: #c0c6da;
--text: #1e1e2e;
--text-2: #444462;
--line: #c0c6da;
--line-2: #7373a2;
--accent: #475f86;
--on-accent: #ffffff;
--accent-c: #d6e3ff;
--on-accent-c: #131c2b;
--secondary: #6a5582;
--tertiary: #486646;
--error: #894c5d;
--sec-c: #ebdcff;
--on-sec-c: #201829;
--ter-c: #b0f3ac;
--on-ter-c: #131e12;
--err-c: #ffd9e2;
--on-err-c: #2c141b;
}
/* Gruvbox */
:root[data-palette="gruvbox"] {
--mark: var(--accent);
--bg: #1d2021;
--s1: #282828;
--s2: #32302f;
--s3: #3c3836;
--s4: #504945;
--text: #ebdbb2;
--text-2: #bdae93;
--line: #3c3836;
--line-2: #665c54;
--accent: #83a598;
--on-accent: #282828;
--accent-c: #504945;
--on-accent-c: #ebdbb2;
--secondary: #d3869b;
--tertiary: #b8bb26;
--error: #fb4934;
--sec-c: #504945;
--on-sec-c: #ebdbb2;
--ter-c: #504945;
--on-ter-c: #ebdbb2;
--err-c: #504945;
--on-err-c: #fb4934;
}
@media (prefers-color-scheme: light) {
:root[data-palette="gruvbox"]:not([data-theme="dark"]) {
--bg: #fff0ca;
--s1: #efdfb5;
--s2: #e6d6ae;
--s3: #ddcea7;
--s4: #d4c5a0;
--text: #282828;
--text-2: #474747;
--line: #d4c5a0;
--line-2: #777777;
--accent: #4d635b;
--on-accent: #ffffff;
--accent-c: #bceddb;
--on-accent-c: #151d1a;
--secondary: #81505e;
--tertiary: #60620f;
--error: #ae3021;
--sec-c: #ffd9e2;
--on-sec-c: #29161b;
--ter-c: #e6eb32;
--on-ter-c: #1c1d02;
--err-c: #ffdad8;
--on-err-c: #3a0a05;
}
}
:root[data-palette="gruvbox"][data-theme="light"] {
--bg: #fff0ca;
--s1: #efdfb5;
--s2: #e6d6ae;
--s3: #ddcea7;
--s4: #d4c5a0;
--text: #282828;
--text-2: #474747;
--line: #d4c5a0;
--line-2: #777777;
--accent: #4d635b;
--on-accent: #ffffff;
--accent-c: #bceddb;
--on-accent-c: #151d1a;
--secondary: #81505e;
--tertiary: #60620f;
--error: #ae3021;
--sec-c: #ffd9e2;
--on-sec-c: #29161b;
--ter-c: #e6eb32;
--on-ter-c: #1c1d02;
--err-c: #ffdad8;
--on-err-c: #3a0a05;
}
/* Nightfox */
:root[data-palette="nightfox"] {
--mark: var(--accent);
--bg: #131a24;
--s1: #212e3f;
--s2: #29394f;
--s3: #32445e;
--s4: #39506d;
--text: #cdcecf;
--text-2: #aeafb0;
--line: #29394f;
--line-2: #71839b;
--accent: #719cd6;
--on-accent: #213147;
--accent-c: #324865;
--on-accent-c: #d4e3ff;
--secondary: #63cdcf;
--tertiary: #81b29a;
--error: #c94f6d;
--sec-c: #214d4e;
--on-sec-c: #78f5f8;
--ter-c: #354c40;
--on-ter-c: #aff0d1;
--err-c: #792c3f;
--on-err-c: #ffd9df;
}
@media (prefers-color-scheme: light) {
:root[data-palette="nightfox"]:not([data-theme="dark"]) {
--bg: #f0f1f2;
--s1: #dfdfe0;
--s2: #d6d7d8;
--s3: #cecfd0;
--s4: #c5c6c7;
--text: #192330;
--text-2: #36485f;
--line: #c5c6c7;
--line-2: #5d799d;
--accent: #446085;
--on-accent: #ffffff;
--accent-c: #d4e3ff;
--on-accent-c: #111c2a;
--secondary: #2e6768;
--tertiary: #476556;
--error: #9e3d55;
--sec-c: #77f6f8;
--on-sec-c: #091f1f;
--ter-c: #aef1cf;
--on-ter-c: #121e18;
--err-c: #ffd9df;
--on-err-c: #340f18;
}
}
:root[data-palette="nightfox"][data-theme="light"] {
--bg: #f0f1f2;
--s1: #dfdfe0;
--s2: #d6d7d8;
--s3: #cecfd0;
--s4: #c5c6c7;
--text: #192330;
--text-2: #36485f;
--line: #c5c6c7;
--line-2: #5d799d;
--accent: #446085;
--on-accent: #ffffff;
--accent-c: #d4e3ff;
--on-accent-c: #111c2a;
--secondary: #2e6768;
--tertiary: #476556;
--error: #9e3d55;
--sec-c: #77f6f8;
--on-sec-c: #091f1f;
--ter-c: #aef1cf;
--on-ter-c: #121e18;
--err-c: #ffd9df;
--on-err-c: #340f18;
}
/* Nord */
:root[data-palette="nord"] {
--mark: var(--accent);
--bg: #1b2027;
--s1: #2e3440;
--s2: #3b4252;
--s3: #434c5e;
--s4: #4c566a;
--text: #eceff4;
--text-2: #d8dee9;
--line: #3b4252;
--line-2: #4c566a;
--accent: #88c0d0;
--on-accent: #213338;
--accent-c: #334862;
--on-accent-c: #adecff;
--secondary: #81a1c1;
--tertiary: #a3be8c;
--error: #bf616a;
--sec-c: #394858;
--on-sec-c: #cee5ff;
--ter-c: #3f4a35;
--on-ter-c: #ccedaf;
--err-c: #6e353b;
--on-err-c: #ffd9dc;
}
@media (prefers-color-scheme: light) {
:root[data-palette="nord"]:not([data-theme="dark"]) {
--bg: #f5f8fd;
--s1: #e4e6eb;
--s2: #dbdee3;
--s3: #d3d5da;
--s4: #cacdd1;
--text: #232831;
--text-2: #3f4755;
--line: #cacdd1;
--line-2: #6b788e;
--accent: #44636c;
--on-accent: #ffffff;
--accent-c: #adecff;
--on-accent-c: #111d21;
--secondary: #4c6075;
--tertiary: #546347;
--error: #91484f;
--sec-c: #cfe5ff;
--on-sec-c: #151c24;
--ter-c: #ccedaf;
--on-ter-c: #181d13;
--err-c: #ffd9dc;
--on-err-c: #2f1316;
}
}
:root[data-palette="nord"][data-theme="light"] {
--bg: #f5f8fd;
--s1: #e4e6eb;
--s2: #dbdee3;
--s3: #d3d5da;
--s4: #cacdd1;
--text: #232831;
--text-2: #3f4755;
--line: #cacdd1;
--line-2: #6b788e;
--accent: #44636c;
--on-accent: #ffffff;
--accent-c: #adecff;
--on-accent-c: #111d21;
--secondary: #4c6075;
--tertiary: #546347;
--error: #91484f;
--sec-c: #cfe5ff;
--on-sec-c: #151c24;
--ter-c: #ccedaf;
--on-ter-c: #181d13;
--err-c: #ffd9dc;
--on-err-c: #2f1316;
}
/* Tokyo Night */
:root[data-palette="tokyo-night"] {
--mark: var(--accent);
--bg: #16161e;
--s1: #1a1b26;
--s2: #1e202e;
--s3: #292e42;
--s4: #363b54;
--text: #c0caf5;
--text-2: #a9b1d6;
--line: #292e42;
--line-2: #51597d;
--accent: #7aa2f7;
--on-accent: #1a1b26;
--accent-c: #363b54;
--on-accent-c: #c0caf5;
--secondary: #bb9af7;
--tertiary: #9ece6a;
--error: #f7768e;
--sec-c: #363b54;
--on-sec-c: #c0caf5;
--ter-c: #363b54;
--on-ter-c: #c0caf5;
--err-c: #363b54;
--on-err-c: #f7768e;
}
@media (prefers-color-scheme: light) {
:root[data-palette="tokyo-night"]:not([data-theme="dark"]) {
--bg: #edf0ff;
--s1: #dadff6;
--s2: #d1d6ec;
--s3: #c9cee3;
--s4: #c1c5da;
--text: #1a1b26;
--text-2: #43455b;
--line: #c1c5da;
--line-2: #717598;
--accent: #455e91;
--on-accent: #ffffff;
--accent-c: #d8e2ff;
--on-accent-c: #121b2f;
--secondary: #68558b;
--tertiary: #4d6631;
--error: #954554;
--sec-c: #e8deff;
--on-sec-c: #1f182d;
--ter-c: #bcf37e;
--on-ter-c: #151e0a;
--err-c: #ffd9de;
--on-err-c: #301217;
}
}
:root[data-palette="tokyo-night"][data-theme="light"] {
--bg: #edf0ff;
--s1: #dadff6;
--s2: #d1d6ec;
--s3: #c9cee3;
--s4: #c1c5da;
--text: #1a1b26;
--text-2: #43455b;
--line: #c1c5da;
--line-2: #717598;
--accent: #455e91;
--on-accent: #ffffff;
--accent-c: #d8e2ff;
--on-accent-c: #121b2f;
--secondary: #68558b;
--tertiary: #4d6631;
--error: #954554;
--sec-c: #e8deff;
--on-sec-c: #1f182d;
--ter-c: #bcf37e;
--on-ter-c: #151e0a;
--err-c: #ffd9de;
--on-err-c: #301217;
}
/* ------------------------------------------------------------------ base */
*,
*::before,
*::after {
box-sizing: border-box;
}
[hidden] {
display: none !important;
}
/* a grid stack never grows past its column for a long line of code */
:where(.hero, .hero-copy, .eco, .eco-col, .feature, .pair, .settings-layout, .doc, .doc-sec, .release, .support, .report, .about-head, .people, .credits, .gallery, .palette-grid, .board) {
grid-template-columns: minmax(0, 1fr);
}
html {
-webkit-text-size-adjust: 100%;
scroll-padding-top: 88px;
background: var(--bg);
}
body {
margin: 0;
min-height: 100vh;
background: var(--bg);
color: var(--text);
font-family: var(--font);
font-size: 1rem;
line-height: 1.6;
font-optical-sizing: auto;
font-variation-settings: "ROND" 0;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
transition: background-color var(--d-medium) var(--ease-std), color var(--d-medium) var(--ease-std);
}
img {
max-width: 100%;
height: auto;
}
a {
color: var(--accent);
text-decoration: none;
}
a:hover {
text-decoration: underline;
text-underline-offset: 3px;
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 3px;
border-radius: 999px;
}
::selection {
background: var(--accent-c);
color: var(--on-accent-c);
}
code,
kbd {
font-family: var(--mono);
font-size: 0.86em;
background: var(--s3);
color: var(--text);
border-radius: 6px;
padding: 0.12em 0.4em;
}
kbd {
border: 1px solid var(--line);
border-bottom-width: 2px;
}
.sprite {
position: absolute;
width: 0;
height: 0;
overflow: hidden;
}
.i {
width: 1.25em;
height: 1.25em;
fill: currentColor;
flex: none;
}
.skip {
position: absolute;
left: 16px;
top: -60px;
z-index: 100;
padding: 10px 18px;
border-radius: 999px;
background: var(--accent);
color: var(--on-accent);
}
.skip:focus {
top: 12px;
}
main {
padding-inline: var(--gutter);
}
/* the type: display sizes are Google Sans Flex at its roundest, as the shell sets them */
/* the type: Google Sans Flex crisp and tight at display sizes, the rounding kept for
the small things the shell rounds (chips, the panel titles) */
.display,
h1,
h2,
h3,
.ver {
font-variation-settings: "ROND" 0;
text-wrap: balance;
}
.display {
margin: 0;
font-weight: 600;
font-size: clamp(3rem, 7vw, 6.2rem);
line-height: 1;
letter-spacing: -0.045em;
}
.display.sm {
font-size: clamp(2.4rem, 5.2vw, 4.2rem);
line-height: 1.02;
}
.hl {
color: var(--mark);
}
h2 {
margin: 0;
font-weight: 600;
font-size: clamp(2rem, 4.2vw, 3.3rem);
line-height: 1.06;
letter-spacing: -0.035em;
}
h3 {
margin: 0;
font-weight: 700;
font-size: 1.35rem;
line-height: 1.2;
letter-spacing: -0.01em;
}
.lede {
color: var(--text-2);
font-size: clamp(1.05rem, 1.5vw, 1.22rem);
line-height: 1.55;
max-width: 62ch;
text-wrap: pretty;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 10px;
margin: 0 0 14px;
color: var(--accent);
font-weight: 650;
font-size: 0.95rem;
letter-spacing: 0.02em;
}
.eyebrow::before {
content: "";
width: 10px;
height: 10px;
border-radius: 3px;
background: var(--accent);
rotate: 45deg;
}
/* -------------------------------------------------------------- buttons */
/* M3Button: a pill at rest and on hover, an 8% state layer, the corners pull in on a
press. accent buttons swell on hover, as the user asked of them, and take
Theme.accentHover's fill */
.btn {
position: relative;
isolation: isolate;
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
height: 52px;
padding: 0 26px;
border: 0;
border-radius: 999px;
font: inherit;
font-weight: 620;
font-size: 1rem;
color: var(--text);
background: var(--s3);
cursor: pointer;
text-decoration: none !important;
transition: border-radius var(--d-medium) var(--ease-std), background-color var(--d-short) var(--ease-std),
scale var(--d-spring-fast) var(--spring-fast);
}
.btn::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
background: currentColor;
opacity: 0;
transition: opacity var(--d-quick) var(--ease-std);
}
.btn:hover::before {
opacity: 0.08;
}
.btn:active {
border-radius: 14px;
}
.btn:active::before {
opacity: 0.12;
}
.btn.accent {
background: var(--accent);
color: var(--on-accent);
}
.btn.accent::before {
display: none;
}
@media (hover: hover) {
.btn.accent:hover {
scale: 1.06;
background: var(--accent-hover);
}
}
.btn.accent:active {
scale: 0.97;
background: var(--accent-pressed);
}
.btn.tonal {
background: var(--s3);
}
.btn.sm {
height: 38px;
padding: 0 16px;
font-size: 0.9rem;
}
.actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
margin-top: 28px;
}
.actions.center {
justify-content: center;
}
.icon-btn {
display: inline-grid;
place-items: center;
width: 44px;
height: 44px;
border: 0;
border-radius: 999px;
background: transparent;
color: inherit;
cursor: pointer;
transition: background-color var(--d-quick) var(--ease-std);
}
.icon-btn:hover {
background: var(--hover);
}
.chip {
display: inline-flex;
align-items: center;
height: 24px;
padding: 0 10px;
border-radius: 999px;
background: var(--s3);
color: var(--text);
font-size: 0.75rem;
font-weight: 750;
letter-spacing: 0.02em;
}
.chip.accent {
background: var(--accent);
color: var(--on-accent);
}
/* ------------------------------------------------------------------ bar */
/* lucidbar's look at 1.2x: flat pills floating over the page in its three zones. the
Start pill, the pages by name with the accent pill under the one you are on, and the
System pill with the version where the battery sits */
.bar {
--bh: 42px;
--cell: 32px;
--grow: 4px;
position: sticky;
top: 0;
z-index: 50;
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
align-items: center;
gap: 10px;
padding: 12px var(--gutter);
view-transition-name: lucid-bar;
}
.zone.end {
justify-self: end;
}
.zone {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.pill {
position: relative;
isolation: isolate;
display: flex;
flex: none;
align-items: center;
height: var(--bh);
border-radius: calc(var(--bh) / 2);
color: var(--text);
}
/* the surface is apart from what it holds, so a hover can grow it sideways and down
the way BarPill does, while the content swells a little on OutBack */
.pill::before {
content: "";
position: absolute;
inset: 0;
z-index: -1;
border-radius: inherit;
background: var(--s2);
transition: inset 200ms var(--ease-std);
}
.pill > .face {
display: flex;
align-items: center;
transition: scale var(--d-medium) cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (hover: hover) {
/* evenly on every side: a page has no screen edge above the bar to stop it */
.pill.grows:hover::before {
inset: calc(var(--grow) * -1);
}
.pill.grows:hover > .face {
scale: 1.04;
}
}
/* Start: Lucid's mark in a circle as wide as the bar is tall; pressed, it squashes */
.pill.start {
justify-content: center;
width: var(--bh);
text-decoration: none !important;
}
.pill.start:active > .face {
scale: 0.9;
transition-timing-function: cubic-bezier(0.34, 1.8, 0.64, 1);
}
.pill.start .mark {
width: 25px;
height: 25px;
}
/* the pages: the one you are on in the accent pill, which follows the pointer the way
the workspaces' does; the lit name widens by the bar's litGrow, and what the pill
covers turns on-accent exactly to its edges */
.pages {
padding-inline: 4px;
}
.pg-row {
--l: 0px;
--r: 0px;
position: relative;
display: flex;
height: calc(var(--bh) - 8px);
}
.pg-lit,
.pg-ink {
position: absolute;
inset: 0;
border-radius: calc((var(--bh) - 8px) / 2);
pointer-events: none;
}
.pg-lit {
right: auto;
left: var(--l);
width: calc(var(--r) - var(--l));
background: var(--accent);
}
.js .pg-lit:not(.ready) {
opacity: 0;
}
.pg {
position: relative;
z-index: 1;
display: inline-flex;
flex: none;
align-items: center;
height: 100%;
padding: 0 16px;
border-radius: calc((var(--bh) - 8px) / 2);
color: var(--text-2);
font-size: 15px;
font-weight: 600;
line-height: 1;
white-space: nowrap;
outline-offset: -2px;
text-decoration: none !important;
transition: padding 300ms var(--ease-std), color 200ms var(--ease-std);
}
.hovering .pg.lit {
padding-inline: 24px;
}
.pg.on {
color: var(--accent);
}
.pg-ink {
z-index: 2;
display: flex;
color: var(--on-accent);
clip-path: inset(0 calc(100% - var(--r)) 0 var(--l) round calc((var(--bh) - 8px) / 2));
}
.pg-ink .pg {
color: inherit;
}
/* before script.js, or without it, the page you are on still gets its accent pill */
html:not(.js) .pg-row > .pg.on {
background: var(--accent);
color: var(--on-accent);
}
/* System: glyphs a state layer apart, a rule, and the version on a battery's body. every
mark sits about 16px from the next and 14px from either end, measured on the ink; the
state layers sit 4px inside */
.pill.system {
padding-inline: 4px;
}
.sys {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
height: calc(var(--bh) - 8px);
min-width: calc(var(--bh) - 8px);
padding: 0 7px;
border: 0;
border-radius: calc((var(--bh) - 8px) / 2);
background: transparent;
color: var(--text);
font: inherit;
font-size: 15px;
font-weight: 640;
font-variant-numeric: tabular-nums;
cursor: pointer;
text-decoration: none !important;
transition: background-color var(--d-quick) var(--ease-std);
}
.sys:hover,
.sys[aria-expanded="true"] {
background: var(--hover);
}
.sys .i {
width: 20px;
height: 20px;
}
.stars .i {
color: var(--accent);
}
.sys-sep {
flex: none;
width: 1.5px;
height: 16px;
margin-inline: 8px 7px;
border-radius: 1px;
background: color-mix(in oklab, var(--text) 22%, transparent);
}
.sys.menu-btn {
display: none;
}
.bar-ver {
display: inline-flex;
flex: none;
align-items: center;
height: 20px;
margin-inline: 8px 10px;
padding: 0 7px;
border-radius: 5.4px;
background: var(--accent);
color: var(--s2);
font-size: 12.5px;
font-weight: 760;
line-height: 1;
font-variant-numeric: tabular-nums;
text-decoration: none !important;
transition: background-color var(--d-quick) var(--ease-std);
}
.bar-ver:hover {
background: var(--accent-hover);
}
.mark {
width: 26px;
height: 26px;
overflow: visible;
}
.mark-ring {
fill: none;
stroke: var(--mark);
stroke-width: 3;
stroke-linecap: round;
}
.mark-dot {
fill: var(--mark);
}
.mark-star {
fill: var(--text);
}
.mark-orbit {
transform-origin: 12px 12px;
transition: rotate var(--d-spring-slow) var(--spring);
}
.pill.start:hover .mark-orbit,
.launcher:hover .mark-orbit,
.mark-big:hover .mark-orbit {
rotate: 60deg;
}
/* a panel grows out of the pill that opened it, on the expressive spring */
.bar-panel,
.sheet {
position: absolute;
top: calc(var(--bh) + 20px);
z-index: 60;
padding: 18px;
border-radius: var(--r-xl);
background: var(--s2);
box-shadow: 0 0 0 1px color-mix(in oklab, var(--line) 50%, transparent), 0 18px 40px rgb(0 0 0 / 0.35);
transform-origin: top right;
animation: grow var(--d-spring) var(--spring) both;
}
.bar-panel {
right: var(--gutter);
width: min(380px, calc(100vw - 32px));
}
.sheet {
right: var(--gutter);
width: min(320px, calc(100vw - 32px));
display: grid;
gap: 2px;
}
@keyframes grow {
from {
scale: 0.6;
opacity: 0;
}
}
.panel-title {
margin: 0 0 4px;
font-weight: 720;
font-size: 1.1rem;
font-variation-settings: "ROND" 100;
}
.panel-blurb {
margin: 0 0 14px;
color: var(--text-2);
font-size: 0.9rem;
line-height: 1.45;
}
.sheet-row {
display: flex;
align-items: center;
gap: 14px;
height: 52px;
padding: 0 16px;
border-radius: 999px;
color: var(--text);
font-weight: 560;
text-decoration: none !important;
}
.sheet-row:hover {
background: var(--hover);
}
.sheet-row.on {
background: var(--accent-c);
color: var(--on-accent-c);
}
/* M3Segmented, with the check that grows into the picked one */
.seg {
display: inline-flex;
border: 1px solid var(--line-2);
border-radius: 999px;
overflow: hidden;
}
.seg.wide {
display: flex;
}
.seg button {
flex: 1;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0;
height: 40px;
padding: 0 18px;
border: 0;
background: transparent;
color: var(--text);
font: inherit;
font-size: 0.92rem;
font-weight: 600;
cursor: pointer;
transition: background-color var(--d-short) var(--ease-std);
}
.seg button + button {
border-left: 1px solid var(--line-2);
}
.seg button .i {
width: 0;
transition: width var(--d-spring-fast) var(--spring-fast), margin var(--d-spring-fast) var(--spring-fast);
}
.seg button.on {
background: var(--sec-c);
color: var(--on-sec-c);
}
.seg button.on .i {
width: 18px;
margin-right: 6px;
}
.seg button:not(.on):hover {
background: var(--hover);
}
/* ThemePage's palette tiles: the theme's own background and accent */
.palettes {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
margin-top: 14px;
}
.pal {
position: relative;
display: grid;
justify-items: start;
gap: 8px;
padding: 10px;
border: 0;
border-radius: var(--r-lg);
background: var(--s3);
color: var(--text);
font: inherit;
font-size: 0.82rem;
font-weight: 600;
text-align: left;
cursor: pointer;
transition: background-color var(--d-quick) var(--ease-std), border-radius var(--d-medium) var(--ease-std);
}
.pal:hover {
background: var(--s4);
}
.pal:active {
border-radius: var(--r-sm);
}
.pal .sw {
position: relative;
width: 100%;
aspect-ratio: 16 / 10;
border-radius: 12px;
overflow: hidden;
}
.pal .sw i {
position: absolute;
right: 10%;
bottom: 14%;
width: 34%;
aspect-ratio: 1;
border-radius: 999px;
}
.pal .sw b {
position: absolute;
left: 10%;
top: 16%;
width: 46%;
height: 16%;
border-radius: 999px;
opacity: 0.85;
}
.pal.on {
box-shadow: inset 0 0 0 2px var(--accent);
}
.pal.on::after {
content: "";
position: absolute;
top: 6px;
right: 6px;
width: 20px;
height: 20px;
border-radius: 999px;
background: var(--accent)
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.55 15.15 18.03 6.68q.3-.3.7-.3t.7.3q.3.3.3.71t-.3.71l-9.18 9.2q-.3.3-.7.3t-.7-.3L4.55 13q-.3-.3-.29-.71t.31-.71q.3-.3.71-.3t.71.3Z' fill='%23fff'/%3E%3C/svg%3E")
center / 14px no-repeat;
}
.palettes.big {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 12px;
margin: 0;
}
.palettes.big .pal {
padding: 12px;
font-size: 0.95rem;
border-radius: var(--r-xl);
}
/* ------------------------------------------------------------------ hero */
.hero {
display: grid;
grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
gap: clamp(32px, 5vw, 72px);
align-items: center;
max-width: var(--wrap);
margin: clamp(28px, 6vw, 72px) auto 44px;
}
.news-chip {
display: inline-flex;
align-items: center;
gap: 10px;
height: 36px;
padding: 0 12px 0 6px;
margin-bottom: 26px;
border-radius: 999px;
background: var(--s2);
color: var(--text);
font-weight: 600;
font-size: 0.92rem;
text-decoration: none !important;
transition: background-color var(--d-quick) var(--ease-std);
}
.news-chip:hover {
background: var(--s3);
}
.news-chip .i {
width: 18px;
height: 18px;
color: var(--accent);
transition: translate var(--d-spring-fast) var(--spring-fast);
}
.news-chip:hover .i {
translate: 3px 0;
}
.hero .lede {
margin: 26px 0 0;
}
/* the widgets that sit beside the words: Lucid's own, telling the real time */
.widgets {
display: grid;
grid-template-columns: 1.05fr 1fr;
grid-template-rows: auto auto;
gap: 14px;
align-items: stretch;
}
.w {
position: relative;
border-radius: var(--r-xl);
padding: 18px;
color: inherit;
text-decoration: none !important;
}
/* the Poster clock: the hour over the minute, straight on the "wallpaper" */
.poster {
grid-row: span 2;
display: grid;
align-content: center;
padding: 0 8px;
color: var(--mark);
font-family: var(--poster);
font-size: clamp(7.5rem, 15vw, 13rem);
line-height: 0.8;
font-variant-numeric: tabular-nums;
}
.poster-h,
.poster-m {
display: block;
}
.poster-m {
color: var(--accent);
}
.poster-date {
margin-top: 16px;
font-family: var(--font);
font-size: 1rem;
line-height: 1.3;
font-weight: 600;
color: var(--text-2);
}
.today {
display: grid;
align-content: space-between;
min-height: 150px;
background: var(--accent-c);
color: var(--on-accent-c);
}
.today-day {
font-weight: 700;
color: color-mix(in oklab, var(--on-accent-c) 75%, var(--accent));
}
.today-num {
font-family: var(--poster);
font-size: 4.2rem;
line-height: 0.9;
}
.today-month {
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
font-size: 0.92rem;
}
.today-month .dot {
width: 6px;
height: 6px;
border-radius: 999px;
background: currentColor;
}
.progress {
display: grid;
place-items: center;
background: var(--s2);
min-height: 150px;
}
.wave-ring {
width: min(150px, 100%);
aspect-ratio: 1;
}
.wave-ring .track {
fill: none;
stroke: var(--s4);
stroke-width: 9;
}
.wave-ring .fill {
fill: none;
stroke: var(--accent);
stroke-width: 9;
stroke-linecap: round;
}
.progress-copy {
position: absolute;
inset: 0;
display: grid;
place-content: center;
text-align: center;
line-height: 1.15;
}
.progress-copy strong {
font-size: 1.6rem;
font-weight: 760;
font-variation-settings: "ROND" 100;
font-variant-numeric: tabular-nums;
}
.progress-copy span,
.progress-copy small {
font-size: 0.78rem;
color: var(--text-2);
}
.github {
display: grid;
align-content: space-between;
gap: 6px;
grid-column: 2;
background: var(--ter-c);
color: var(--on-ter-c);
transition: scale var(--d-spring-fast) var(--spring-fast);
}
@media (hover: hover) {
.github:hover {
scale: 1.03;
}
}
.gh-head {
display: flex;
align-items: center;
gap: 8px;
font-weight: 650;
}
.gh-num {
font-family: var(--poster);
font-size: 3.4rem;
line-height: 0.95;
}
.gh-sub {
font-size: 0.85rem;
opacity: 0.85;
}
.hero-shot {
max-width: var(--wrap);
margin: 0 auto;
padding: 10px;
border-radius: var(--r-2xl);
background: var(--s2);
}
.hero-shot img {
display: block;
width: 100%;
border-radius: 26px;
}
/* ---------------------------------------------------------------- bands */
.band {
max-width: var(--wrap);
margin: clamp(80px, 12vw, 150px) auto 0;
}
.band-head {
max-width: 780px;
margin-bottom: 40px;
}
.band-head p:not(.eyebrow) {
color: var(--text-2);
font-size: 1.1rem;
margin: 18px 0 0;
text-wrap: pretty;
}
/* the ecosystem as the launcher lists it: an icon on a shape, a name, a line */
.eco {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
}
.eco-col {
display: grid;
align-content: start;
gap: 2px;
padding: 14px;
border-radius: var(--r-2xl);
background: var(--s1);
}
.eco-col h3 {
padding: 8px 12px 12px;
font-size: 1.05rem;
color: var(--text-2);
font-weight: 650;
}
.row,
.link-card {
display: grid;
grid-template-columns: 52px minmax(0, 1fr);
align-items: center;
column-gap: 14px;
padding: 10px 12px;
border-radius: var(--r-lg);
color: var(--text);
text-decoration: none !important;
transition: background-color var(--d-quick) var(--ease-std);
}
.row:hover,
.link-card:hover {
background: var(--hover);
}
.row > .app,
.link-card > .app {
grid-column: 1;
grid-row: 1;
justify-self: center;
}
.row-text {
grid-column: 2;
grid-row: 1;
display: grid;
line-height: 1.3;
}
.row-text strong {
font-weight: 650;
}
.row-text small {
color: var(--text-2);
font-size: 0.86rem;
}
/* the shell's shapes take radius 1 as the circle inside their box, so the
pointed ones reach past it: let them, and draw them a little larger */
.shape {
overflow: visible;
}
/* the gravity icons, with each part's own hover motion from the set */
.app {
width: 48px;
height: 48px;
overflow: visible;
}
.app .pt {
transform-box: view-box;
transition: transform var(--d-spring) var(--spring);
}
.row:hover .app .pt,
.link-card:hover .app .pt,
.pad:hover .app .pt,
.pad.playing .app .pt,
.feature:hover .feature-icon .app .pt,
.dock-item:hover .app .pt {
transform: translate(calc(var(--dx) * 1px), calc(var(--dy) * 1px)) rotate(var(--rot)) scale(var(--sx), var(--sy));
}
.app.icon48 {
width: 50px;
height: 50px;
}
.app.icon52 {
width: 54px;
height: 54px;
}
.app.icon64 {
width: 72px;
height: 72px;
}
/* a gravity tile on one of the shell's shapes: the set's hover lifts the tile off its
base and grows the symbol; on top, the symbol moves the way what it shows would, as
the weather icons do. once per hover, and each time a pad plays */
.gm {
transform-box: fill-box;
transform-origin: 50% 50%;
animation-duration: 860ms;
animation-timing-function: ease-in-out;
animation-fill-mode: both;
}
.gm:is([data-move="ring"], [data-move="alarm"], [data-move="jiggle"]) {
transform-origin: 50% 8%;
}
.gm[data-move="write"] {
transform-origin: 12% 88%;
}
.gm[data-move="point"] {
transform-origin: 22% 12%;
}
.gm[data-move="fill"] {
transform-origin: 50% 100%;
}
.gm[data-move="spin"] {
animation-duration: 900ms;
animation-timing-function: cubic-bezier(0.34, 1.32, 0.5, 1);
}
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="drop"] { animation-name: mv-drop; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="rise"] { animation-name: mv-rise; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="slide"] { animation-name: mv-slide; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="beat"] { animation-name: mv-beat; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="write"] { animation-name: mv-write; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="jiggle"] { animation-name: mv-jiggle; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="tilt"] { animation-name: mv-tilt; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="point"] { animation-name: mv-point; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="jelly"] { animation-name: mv-jelly; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="twinkle"] { animation-name: mv-twinkle; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="ring"] { animation-name: mv-ring; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="alarm"] { animation-name: mv-alarm; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="tap"] { animation-name: mv-tap; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="spin"] { animation-name: mv-spin; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="glow"] { animation-name: mv-glow; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="plug"] { animation-name: mv-plug; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="jolt"] { animation-name: mv-jolt; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="fill"] { animation-name: mv-fill; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="snap"] { animation-name: mv-snap; }
:is(.row:hover, .link-card:hover, .pad.playing) .gm[data-move="nudge"] { animation-name: mv-nudge; }
/* a bar coming in from the top; a dock coming up from below */
@keyframes mv-drop {
30% { translate: 0 -3px; }
60% { translate: 0 1.4px; }
82% { translate: 0 -0.5px; }
}
@keyframes mv-rise {
25% { translate: 0 2.6px; }
55% { translate: 0 -1.8px; }
80% { translate: 0 0.6px; }
}
/* sliders and code pushed side to side */
@keyframes mv-slide {
25% { translate: -2.4px 0; }
55% { translate: 2px 0; }
80% { translate: -0.7px 0; }
}
@keyframes mv-beat {
20% { scale: 1.18; }
45% { scale: 0.94; }
70% { scale: 1.05; }
}
/* a pencil writing from its tip */
@keyframes mv-write {
20% { rotate: -14deg; }
45% { rotate: 9deg; }
70% { rotate: -4deg; }
}
@keyframes mv-jiggle {
15% { rotate: 9deg; }
35% { rotate: -8deg; }
55% { rotate: 5deg; }
75% { rotate: -2deg; }
}
@keyframes mv-tilt {
30% { rotate: -18deg; }
60% { rotate: 8deg; }
85% { rotate: -3deg; }
}
/* lucid's pointer, tilting as it moves */
@keyframes mv-point {
30% { translate: 2px 2px; rotate: -14deg; }
65% { translate: -0.6px -0.6px; rotate: 5deg; }
}
/* motion on springs: the jelly's stretch, wide then tall */
@keyframes mv-jelly {
20% { scale: 1.16 0.86; }
45% { scale: 0.9 1.1; }
70% { scale: 1.05 0.96; }
}
@keyframes mv-twinkle {
25% { rotate: 18deg; scale: 1.22; }
55% { rotate: -6deg; scale: 0.94; }
}
/* a bell swinging from its top */
@keyframes mv-ring {
10% { rotate: 16deg; }
25% { rotate: -14deg; }
40% { rotate: 10deg; }
55% { rotate: -7deg; }
70% { rotate: 4deg; }
85% { rotate: -2deg; }
}
@keyframes mv-alarm {
8% { rotate: 12deg; scale: 1.08; }
16% { rotate: -12deg; }
24% { rotate: 10deg; }
32% { rotate: -10deg; }
40% { rotate: 7deg; }
48% { rotate: -7deg; scale: 1.04; }
60% { rotate: 3deg; }
75% { rotate: -1deg; scale: 1; }
}
@keyframes mv-tap {
25% { translate: 0 2.4px; scale: 0.9; }
55% { translate: 0 -1px; scale: 1.05; }
}
@keyframes mv-spin {
to { rotate: 360deg; }
}
/* a sun: its rays turn a step and it brightens */
@keyframes mv-glow {
35% { rotate: 30deg; scale: 1.16; }
70% { rotate: 48deg; scale: 0.97; }
to { rotate: 45deg; }
}
/* a plug pulled back and pushed home */
@keyframes mv-plug {
25% { translate: 0 -4px; }
60% { translate: 0 1px; }
80% { translate: 0 -0.4px; }
}
@keyframes mv-jolt {
12% { translate: -1.5px 0; scale: 1.14; opacity: 0.55; }
26% { translate: 1.5px 0; opacity: 1; }
40% { translate: -1px 0; opacity: 0.7; }
55% { translate: 0.6px 0; scale: 1.04; opacity: 1; }
}
/* a battery filling from its foot */
@keyframes mv-fill {
20% { scale: 1 0.8; }
50% { scale: 1 1.08; }
75% { scale: 1 0.97; }
}
@keyframes mv-snap {
25% { scale: 0.8; }
55% { scale: 1.12; }
80% { scale: 0.97; }
}
@keyframes mv-nudge {
25% { translate: 2px 0; }
50% { translate: -1px 0; }
75% { translate: 0.5px 0; }
}
/* the apps, a picture beside each */
.feature {
display: grid;
grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
gap: clamp(24px, 4vw, 56px);
align-items: center;
padding: clamp(14px, 2vw, 22px);
border-radius: var(--r-2xl);
background: var(--s1);
}
.feature + .feature {
margin-top: 18px;
}
.feature.flip .feature-copy {
order: 2;
}
.feature-copy {
padding: clamp(6px, 2vw, 24px);
}
.feature-copy h3 {
font-size: clamp(1.6rem, 2.4vw, 2.2rem);
font-weight: 620;
letter-spacing: -0.025em;
margin: 18px 0 12px;
}
.feature-copy p {
margin: 0;
color: var(--text-2);
text-wrap: pretty;
}
.feature-icon {
display: flex;
gap: 8px;
}
.shot {
margin: 0;
}
.shot img {
display: block;
width: 100%;
border-radius: var(--r-lg);
background: var(--s2);
}
.shot figcaption {
margin-top: 10px;
color: var(--text-2);
font-size: 0.92rem;
font-weight: 560;
}
.pair {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 22px 18px;
}
/* sounds: pads on the expressive shapes, each morphing as it plays */
.board {
padding: clamp(18px, 3vw, 32px);
border-radius: var(--r-2xl);
background: var(--s1);
}
.board-title {
margin: 0 0 14px;
color: var(--text-2);
font-weight: 650;
}
.board-title + .pads {
margin-bottom: 28px;
}
.pads {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
gap: 10px;
}
.pad {
position: relative;
display: grid;
grid-template-rows: 1fr auto;
justify-items: center;
align-items: center;
gap: 6px;
padding: 10px 6px 12px;
border: 0;
border-radius: var(--r-xl);
background: transparent;
color: var(--text);
font: inherit;
font-size: 0.86rem;
font-weight: 600;
cursor: pointer;
transition: background-color var(--d-quick) var(--ease-std);
}
.pad:hover {
background: var(--hover);
}
.app.pad-art {
grid-row: 1;
grid-column: 1;
width: 90px;
height: 90px;
transition: scale var(--d-spring-fast) var(--spring-fast);
}
.pad:active .app.pad-art {
scale: 0.9;
}
/* colour: the palettes, and the roles of the one on screen */
.palette-grid {
display: grid;
grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
gap: 18px;
align-items: start;
}
.roles {
display: grid;
gap: 4px;
padding: 12px;
border-radius: var(--r-2xl);
background: var(--s1);
}
.role {
display: grid;
grid-template-columns: 36px minmax(0, 1fr) auto;
align-items: center;
gap: 12px;
padding: 8px 10px;
border: 0;
border-radius: var(--r-md);
background: transparent;
color: var(--text);
font: inherit;
text-align: left;
cursor: pointer;
}
.role:hover {
background: var(--hover);
}
.role i {
width: 36px;
height: 36px;
border-radius: 12px;
box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--text) 12%, transparent);
}
.role span {
font-weight: 600;
font-size: 0.92rem;
}
.role code {
background: none;
color: var(--text-2);
padding: 0;
}
.role.copied code {
color: var(--accent);
}
/* news: the notification Updates.qml posts */
.notif {
max-width: 460px;
padding: 16px 18px 18px;
border-radius: var(--r-xl);
background: var(--s2);
box-shadow: 0 0 0 1px color-mix(in oklab, var(--line) 40%, transparent);
}
.notif-app {
display: flex;
align-items: center;
gap: 8px;
color: var(--text-2);
font-size: 0.85rem;
font-weight: 600;
}
.notif-mark {
position: relative;
display: grid;
place-items: center;
width: 26px;
height: 26px;
}
.notif-mark .shape {
position: absolute;
inset: 0;
fill: var(--accent);
}
.notif-mark span {
position: relative;
display: grid;
color: var(--on-accent);
}
.notif-mark .i {
width: 16px;
height: 16px;
}
.notif-time::before {
content: "· ";
}
.notif-title {
margin: 12px 0 4px;
font-weight: 720;
font-size: 1.1rem;
}
.notif-body {
margin: 0;
color: var(--text-2);
font-size: 0.95rem;
}
.notif-actions {
display: flex;
gap: 8px;
margin-top: 14px;
}
/* the closing band: the news beside the install */
.closing {
display: grid;
grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
gap: clamp(24px, 4vw, 56px);
align-items: start;
}
.closing .band-head {
margin-bottom: 26px;
}
.closing .actions.center {
justify-content: flex-start;
}
/* install: kitty, wearing the theme, with the prompt starship draws */
.term {
max-width: 760px;
border-radius: var(--r-xl);
background: var(--s1);
overflow: hidden;
}
.term-bar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 8px 8px 20px;
background: var(--s2);
color: var(--text-2);
font-size: 0.85rem;
font-weight: 600;
}
.term pre {
margin: 0;
padding: 22px 24px 26px;
overflow-x: auto;
font-family: var(--mono);
font-size: 0.95rem;
line-height: 1.9;
}
.term pre code {
background: none;
padding: 0;
font-size: inherit;
}
.term .pr {
color: var(--accent);
font-weight: 700;
}
.term .ps {
color: var(--tertiary);
}
.copy {
display: inline-grid;
place-items: center;
width: 38px;
height: 38px;
border: 0;
border-radius: 999px;
background: transparent;
color: var(--text-2);
cursor: pointer;
transition: background-color var(--d-quick) var(--ease-std), color var(--d-quick) var(--ease-std);
}
.copy:hover {
background: var(--hover);
color: var(--text);
}
.copy.done {
color: var(--accent);
}
/* ------------------------------------------------------------ inner pages */
.page-head {
max-width: 880px;
margin: clamp(32px, 6vw, 72px) auto 40px;
text-align: center;
}
.page-head .lede {
margin: 22px auto 0;
}
.page-head.left {
margin: 0 0 28px;
text-align: left;
}
.page-head.left .lede {
margin-left: 0;
}
/* tour: the pictures, plain, opening in a viewer like Lens */
.gallery {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
max-width: var(--wrap);
margin: 0 auto;
}
.tile {
display: grid;
gap: 10px;
padding: 8px 8px 14px;
border: 0;
border-radius: var(--r-xl);
background: var(--s1);
color: var(--text);
font: inherit;
text-align: left;
cursor: zoom-in;
transition: translate var(--d-spring-fast) var(--spring-fast), background-color var(--d-quick) var(--ease-std);
}
/* the desktop first, across the whole grid, then the rest three by three */
.tile.wide {
grid-column: 1 / -1;
}
.tile img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: var(--r-lg);
}
.tile-title {
padding: 0 8px;
font-weight: 620;
}
@media (hover: hover) {
.tile:hover {
translate: 0 -4px;
background: var(--s2);
}
}
.viewer {
width: 100vw;
height: 100vh;
max-width: none;
max-height: none;
margin: 0;
padding: 0;
border: 0;
background: #060808;
color: #e6ecec;
display: none;
grid-template-rows: auto minmax(0, 1fr) auto;
}
.viewer[open] {
display: grid;
}
.viewer::backdrop {
background: #000;
}
.viewer-top {
display: flex;
align-items: center;
gap: 16px;
padding: 12px 16px 8px 24px;
}
.viewer-title {
font-weight: 650;
}
.viewer-count {
margin-left: auto;
color: #a9b3b4;
font-size: 0.9rem;
font-variant-numeric: tabular-nums;
}
.viewer-stage {
position: relative;
display: grid;
place-items: center;
padding: 0 72px;
min-height: 0;
}
.viewer-stage img {
max-width: 100%;
max-height: 100%;
border-radius: 12px;
object-fit: contain;
}
.viewer .nav {
position: absolute;
top: 50%;
translate: 0 -50%;
background: rgb(255 255 255 / 0.08);
}
.viewer .nav.prev {
left: 16px;
}
.viewer .nav.next {
right: 16px;
}
.filmstrip {
display: flex;
justify-content: center;
gap: 8px;
padding: 14px 16px 18px;
overflow-x: auto;
}
.filmstrip button {
flex: none;
width: 88px;
aspect-ratio: 16 / 9;
padding: 0;
border: 0;
border-radius: 10px;
background: #111;
overflow: hidden;
opacity: 0.5;
cursor: pointer;
transition: opacity var(--d-short) var(--ease-std), width var(--d-spring-fast) var(--spring-fast);
}
.filmstrip button.on {
opacity: 1;
width: 112px;
box-shadow: 0 0 0 2px var(--accent);
}
.filmstrip img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* docs: Settings' own layout, a rail with Lumen's glider beside grouped cards */
.settings-layout {
display: grid;
grid-template-columns: 280px minmax(0, 1fr);
gap: 24px;
max-width: var(--wrap);
margin: 24px auto 0;
align-items: start;
}
.rail {
position: sticky;
top: 76px;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 12px;
overflow-x: hidden;
overscroll-behavior: contain;
padding: 12px;
border-radius: var(--r-2xl);
background: var(--s1);
max-height: calc(100vh - 96px);
overflow-y: auto;
}
.search {
display: flex;
align-items: center;
gap: 10px;
height: 52px;
padding: 0 16px;
border-radius: 999px;
background: var(--s3);
color: var(--text-2);
}
.search {
min-width: 0;
}
.search input {
flex: 1;
width: 100%;
min-width: 0;
-webkit-appearance: none;
appearance: none;
border: 0;
background: transparent;
color: var(--text);
font: inherit;
outline: none;
}
.rail-nav {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 2px;
}
.rail-group {
margin: 12px 16px 4px;
color: var(--text-2);
font-size: 0.8rem;
font-weight: 650;
}
/* Settings' rail and Lumen's sidebar: a row's words and glyph take the pill's colour by
how much of the row it covers right now (--lit, set by script.js each frame), so they
light as it arrives and the rows it passes only flicker; the row it stops on turns
its glyph filled and its words a weight up */
.rail-nav a {
--lit: 0;
position: relative;
z-index: 1;
display: grid;
grid-template-columns: auto minmax(0, 1fr);
align-items: center;
column-gap: 14px;
height: 48px;
padding: 0 16px;
border-radius: 999px;
color: color-mix(in oklab, var(--on-accent-c) calc(var(--lit) * 100%), var(--text-2));
font-weight: 500;
text-decoration: none !important;
transition: background-color var(--d-quick) var(--ease-std);
}
.rail-nav a:hover {
background: var(--hover);
}
.rail-nav a.on:hover {
background: color-mix(in oklab, var(--on-accent-c) 8%, transparent);
}
.rail-nav a.arrived {
font-weight: 600;
}
/* the glyph swells under the pointer and gives under a press, on the spatial curve */
.rail-nav a > .i {
grid-row: 1;
grid-column: 1;
transition: scale 500ms cubic-bezier(0.38, 1.21, 0.22, 1), opacity var(--d-short) var(--ease-std);
}
.rail-nav a:hover > .i {
scale: 1.12;
}
.rail-nav a:active > .i {
scale: 0.92;
}
.rail-nav a > .i:nth-of-type(2),
.rail-nav a.arrived > .i:nth-of-type(1) {
opacity: 0;
}
.rail-nav a.arrived > .i:nth-of-type(2) {
opacity: 1;
}
.rail-nav a > span {
grid-column: 2;
}
/* before script.js, or without it, the section you are on is still lit */
html:not(.js) .rail-nav a.on {
--lit: 1;
background: var(--accent-c);
}
.rail-pill {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 48px;
border-radius: 999px;
background: var(--accent-c);
opacity: 0;
scale: 0.94;
pointer-events: none;
transition: opacity var(--d-short) var(--ease-std), scale var(--d-short) cubic-bezier(0.2, 0, 0, 1);
}
.rail-pill.shown {
opacity: 1;
scale: 1;
}
.rail-nav a span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.doc {
display: grid;
gap: 18px;
}
.card {
border-radius: var(--r-2xl);
background: var(--s1);
}
.doc-sec {
padding: clamp(20px, 3vw, 36px);
}
.doc-sec h2 {
font-size: clamp(1.8rem, 3vw, 2.4rem);
margin-bottom: 18px;
}
.doc-sec h4,
.release h4 {
margin: 34px 0 10px;
font-size: 1.3rem;
font-weight: 720;
font-variation-settings: "ROND" 100;
letter-spacing: -0.01em;
}
.doc-sec h5,
.release h5 {
margin: 22px 0 8px;
font-size: 1.05rem;
font-weight: 680;
color: var(--accent);
}
.doc-sec p,
.doc-sec li,
.release p,
.release li {
color: var(--text-2);
text-wrap: pretty;
}
.doc-sec strong,
.release strong {
color: var(--text);
}
.doc-sec ul,
.doc-sec ol,
.release ul {
padding-left: 1.3em;
}
.doc-sec li + li,
.release li + li {
margin-top: 8px;
}
.doc-empty {
padding: 24px;
border-radius: var(--r-xl);
background: var(--s1);
color: var(--text-2);
}
.code {
position: relative;
margin: 16px 0;
border-radius: var(--r-lg);
background: var(--s2);
}
.code pre {
margin: 0;
padding: 18px 56px 18px 20px;
overflow-x: auto;
font-family: var(--mono);
font-size: 0.88rem;
line-height: 1.7;
}
.code pre code {
background: none;
padding: 0;
font-size: inherit;
}
.code .copy {
position: absolute;
top: 8px;
right: 8px;
}
.table {
margin: 16px 0;
overflow-x: auto;
border-radius: var(--r-lg);
background: var(--s2);
}
table {
width: 100%;
border-collapse: collapse;
font-size: 0.92rem;
}
th,
td {
padding: 11px 16px;
text-align: left;
vertical-align: top;
}
th {
color: var(--text);
font-weight: 680;
background: var(--s3);
}
tr + tr td {
border-top: 1px solid color-mix(in oklab, var(--line) 55%, transparent);
}
td {
color: var(--text-2);
}
td code {
white-space: nowrap;
}
.callout {
margin: 16px 0;
padding: 14px 18px;
border-radius: var(--r-lg);
background: var(--accent-c);
color: var(--on-accent-c);
}
.callout a {
color: inherit;
text-decoration: underline;
}
.qa {
border-radius: var(--r-lg);
background: var(--s2);
}
.qa + .qa {
margin-top: 4px;
}
.qa summary {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 16px 20px;
font-weight: 620;
cursor: pointer;
list-style: none;
}
.qa summary::-webkit-details-marker {
display: none;
}
.qa summary .i {
transition: rotate var(--d-spring-fast) var(--spring-fast);
}
.qa[open] summary .i {
rotate: 180deg;
}
.qa p {
margin: 0;
padding: 0 20px 18px;
}
/* changelog */
.releases {
display: grid;
gap: 14px;
max-width: 920px;
margin: 0 auto;
}
.release {
padding: clamp(20px, 3vw, 36px);
border-radius: var(--r-2xl);
background: var(--s1);
}
.release > header,
.release > summary {
display: flex;
align-items: center;
gap: 14px;
flex-wrap: wrap;
}
.release > summary {
cursor: pointer;
list-style: none;
}
.release > summary::-webkit-details-marker {
display: none;
}
.release > summary .i {
margin-left: auto;
transition: rotate var(--d-spring-fast) var(--spring-fast);
}
.release[open] > summary .i {
rotate: 180deg;
}
.ver {
font-weight: 640;
font-size: clamp(1.8rem, 4vw, 2.6rem);
letter-spacing: -0.03em;
}
.release time {
color: var(--text-2);
font-weight: 560;
}
.release.latest .ver {
color: var(--mark);
}
.release figure.shot {
margin: 18px 0;
}
.release > p:first-of-type {
font-size: 1.08rem;
}
.pr,
.who {
font-weight: 600;
}
/* support */
.support {
display: grid;
grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
gap: 18px;
max-width: var(--wrap);
margin: 0 auto;
align-items: start;
}
.report {
display: grid;
gap: 16px;
padding: clamp(18px, 3vw, 32px);
}
.field {
display: grid;
gap: 6px;
}
.field > span {
color: var(--text-2);
font-size: 0.88rem;
font-weight: 600;
}
.field input,
.field textarea,
.field select {
width: 100%;
padding: 13px 16px;
border: 1px solid var(--line);
border-radius: var(--r-md);
background: var(--s2);
color: var(--text);
font: inherit;
transition: border-color var(--d-quick) var(--ease-std), box-shadow var(--d-quick) var(--ease-std);
}
.field textarea {
resize: vertical;
}
.field textarea.mono {
font-family: var(--mono);
font-size: 0.88rem;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
outline: none;
border-color: var(--accent);
box-shadow: inset 0 0 0 1px var(--accent);
}
.field-row {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
margin: 16px 0;
}
[data-bug-only] {
display: grid;
gap: 0;
}
.hint {
color: var(--text-2);
font-size: 0.88rem;
}
.help-cards {
display: grid;
gap: 10px;
}
.link-card {
padding: 16px;
border-radius: var(--r-xl);
}
/* about */
.about-head {
display: grid;
grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
gap: 18px;
max-width: var(--wrap);
margin: clamp(28px, 5vw, 60px) auto 0;
}
.profile {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: 24px;
align-items: start;
padding: clamp(20px, 3vw, 36px);
}
.avatar {
width: 96px;
height: 96px;
border-radius: 32px;
background: var(--s3);
}
.profile p {
color: var(--text-2);
margin: 10px 0 0;
}
.handle {
font-weight: 600;
}
.stats {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.stat {
display: grid;
align-content: end;
gap: 4px;
padding: 18px 20px;
}
.stat:nth-child(1) {
background: var(--accent-c);
color: var(--on-accent-c);
}
.stat:nth-child(4) {
background: var(--ter-c);
color: var(--on-ter-c);
}
.poster-num {
font-family: var(--poster);
font-size: clamp(3rem, 6vw, 4.6rem);
line-height: 0.9;
}
.stat span:last-child {
font-weight: 600;
opacity: 0.85;
}
.timeline {
position: relative;
display: grid;
gap: 4px;
margin: 0;
padding: 0 0 0 30px;
list-style: none;
max-width: 820px;
}
.timeline::before {
content: "";
position: absolute;
left: 9px;
top: 14px;
bottom: 14px;
width: 3px;
border-radius: 3px;
background: var(--s3);
}
.timeline li {
position: relative;
display: grid;
grid-template-columns: 120px minmax(0, 1fr);
column-gap: 18px;
padding: 12px 18px;
border-radius: var(--r-lg);
}
.timeline li::before {
content: "";
position: absolute;
left: -27px;
top: 19px;
width: 11px;
height: 11px;
border-radius: 999px;
background: var(--line-2);
}
.timeline li.now {
background: var(--s1);
}
.timeline li.now::before {
background: var(--accent);
box-shadow: 0 0 0 5px color-mix(in oklab, var(--accent) 25%, transparent);
}
.timeline time {
grid-row: span 2;
color: var(--text-2);
font-size: 0.9rem;
font-weight: 560;
padding-top: 2px;
}
.timeline strong {
font-weight: 680;
}
.timeline span {
color: var(--text-2);
font-size: 0.95rem;
}
.people,
.credits {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.person {
display: grid;
grid-template-columns: 48px minmax(0, 1fr);
gap: 16px;
align-items: center;
padding: 16px;
color: var(--text);
text-decoration: none !important;
transition: background-color var(--d-quick) var(--ease-std);
}
.person:hover,
.credit:hover {
background: var(--s2);
}
.person img {
width: 48px;
height: 48px;
border-radius: 16px;
background: var(--s3);
}
.person > span,
.credit {
display: grid;
line-height: 1.35;
}
.person small,
.credit small {
color: var(--text-2);
font-size: 0.88rem;
}
.credits {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.credit {
gap: 4px;
padding: 18px;
color: var(--text);
text-decoration: none !important;
transition: background-color var(--d-quick) var(--ease-std);
}
.mark-show {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: clamp(24px, 5vw, 64px);
align-items: center;
padding: clamp(20px, 4vw, 44px);
border-radius: var(--r-2xl);
background: var(--s1);
}
.mark-show p:not(.eyebrow) {
color: var(--text-2);
}
.mark-show h2 {
margin-bottom: 14px;
}
.mark-big {
position: relative;
display: grid;
place-items: center;
width: clamp(150px, 20vw, 220px);
aspect-ratio: 1;
}
.mark-plate {
position: absolute;
inset: 0;
fill: var(--s3);
transition: rotate var(--d-spring-slow) var(--spring);
}
.mark-big:hover .mark-plate {
rotate: 30deg;
}
.mark-big .mark {
position: relative;
width: 58%;
height: 58%;
}
/* 404 */
.lost {
max-width: 760px;
margin: clamp(40px, 8vw, 100px) auto 0;
text-align: center;
}
.poster-404 {
display: flex;
justify-content: center;
gap: 0.04em;
margin: 0 0 18px;
font-family: var(--poster);
font-size: clamp(9rem, 26vw, 17rem);
line-height: 0.85;
color: var(--mark);
}
.poster-404 span:nth-child(2) {
color: var(--accent);
}
.lost .lede {
margin: 18px auto 0;
}
/* --------------------------------------------------------------- footer */
/* the dock, Lucid's own icons on it */
.foot {
display: grid;
justify-items: center;
gap: 18px;
margin-top: clamp(90px, 12vw, 150px);
padding: 0 var(--gutter) 36px;
}
.dock {
display: flex;
align-items: center;
gap: 6px;
padding: 8px;
border-radius: 30px;
background: var(--s2);
box-shadow: 0 0 0 1px color-mix(in oklab, var(--line) 40%, transparent);
}
.dock-item {
position: relative;
display: grid;
place-items: center;
width: 56px;
height: 56px;
border-radius: 20px;
transition: background-color var(--d-quick) var(--ease-std);
}
.dock-item:hover {
background: var(--hover);
}
.dock-item .app {
width: 44px;
height: 44px;
}
.dock-item .mark {
width: 32px;
height: 32px;
}
.dock-sep {
width: 1px;
height: 30px;
margin: 0 4px;
background: var(--line);
}
.tip {
position: absolute;
bottom: calc(100% + 10px);
left: 50%;
translate: -50% 4px;
padding: 6px 12px;
border-radius: 999px;
background: var(--s4);
color: var(--text);
font-size: 0.8rem;
font-weight: 600;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity var(--d-short) var(--ease-std), translate var(--d-spring-fast) var(--spring-fast);
}
.dock-item:hover .tip,
.dock-item:focus-visible .tip {
opacity: 1;
translate: -50% 0;
}
.fine {
margin: 0;
color: var(--text-3);
font-size: 0.85rem;
text-align: center;
}
.fine a {
color: var(--text-2);
}
/* ---------------------------------------------------------------- motion */
/* sections rise into place as they come into view; armed by the head script only */
.reveal [data-rise]:not(.in) {
opacity: 0;
translate: 0 28px;
}
@view-transition {
navigation: auto;
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
transition-duration: 0ms !important;
animation-duration: 0ms !important;
}
}
/* ---------------------------------------------------------- lively motion */
/* the hero: one line, then the part of Lucid it is right now, in an accent pill
that springs to each word's width the way a bar pill does */
.hero-title {
display: grid;
justify-items: start;
gap: 0.08em;
}
.ht-cycle {
position: relative;
display: inline-grid;
align-items: center;
height: 1.16em;
padding: 0 0.3em;
border-radius: 0.34em;
background: var(--accent);
color: var(--on-accent);
overflow: hidden;
white-space: nowrap;
transition: width var(--d-spring-slow) var(--spring), background-color var(--d-medium) var(--ease-std);
}
.ht-word {
grid-area: 1 / 1;
display: inline-block;
line-height: 1;
padding-bottom: 0.06em;
}
.ht-word.in {
animation: word-swap-in var(--d-spring-slow) var(--spring) both;
}
.ht-word.out {
animation: word-swap-out 240ms var(--ease-out) both;
}
@keyframes word-swap-in {
from {
transform: translateY(105%) rotate(var(--tilt, 6deg)) scale(0.9);
}
}
@keyframes word-swap-out {
to {
transform: translateY(-90%) scale(0.92);
opacity: 0;
}
}
/* words of a heading tip in and land one after another, like the Lyrics widget's
Word by word captions */
.split .wd {
display: inline-block;
transition: opacity 320ms var(--ease-std) calc(var(--i) * 55ms + 90ms),
transform var(--d-spring-slow) var(--spring) calc(var(--i) * 55ms + 90ms);
}
.reveal [data-rise]:not(.in) .split .wd {
opacity: 0;
transform: translateY(0.55em) rotate(var(--tilt, 4deg)) scale(0.88);
}
/* siblings rise one after another */
[data-rise] {
transition-delay: var(--d, 0ms);
}
.reveal [data-rise]:not(.in) {
scale: 0.97;
}
[data-rise] {
transition-property: opacity, translate, scale;
transition-duration: 520ms, var(--d-spring-slow), var(--d-spring-slow);
transition-timing-function: var(--ease-std), var(--spring), var(--spring);
}
/* a group's members come in one by one, the group itself already there */
.reveal [data-rise].stagger:not(.in) {
opacity: 1;
translate: none;
scale: none;
}
.stagger > * {
transition: opacity 420ms var(--ease-std) calc(var(--i, 0) * 45ms),
translate var(--d-spring-slow) var(--spring) calc(var(--i, 0) * 45ms),
scale var(--d-spring-slow) var(--spring) calc(var(--i, 0) * 45ms),
background-color var(--d-quick) var(--ease-std);
}
.reveal [data-rise].stagger:not(.in) > *,
.reveal [data-rise]:not(.in) .stagger > * {
opacity: 0;
translate: 0 26px;
scale: 0.94;
}
/* once landed, hovers answer at once */
.stagger.done > *,
[data-rise].done {
transition-delay: 0ms;
}
/* pictures settle as they come up the page */
.settle {
scale: calc(0.93 + 0.07 * var(--p, 1));
transform-origin: 50% 100%;
transition-property: opacity, translate;
}
/* the Poster clock's figures roll over when they change */
.roll {
animation: roll var(--d-spring-slow) var(--spring);
}
@keyframes roll {
from {
transform: translateY(-0.28em);
opacity: 0.15;
}
}
/* a pad rings as it plays, in its own outline */
.pad {
overflow: visible;
}
.ring {
grid-row: 1;
grid-column: 1;
width: 90px;
height: 90px;
overflow: visible;
fill: none;
stroke: var(--accent);
stroke-width: 1.6;
vector-effect: non-scaling-stroke;
pointer-events: none;
animation: ring 950ms var(--ease-in) forwards;
}
.ring path {
stroke-width: 3px;
vector-effect: non-scaling-stroke;
}
@keyframes ring {
from {
scale: 0.9;
opacity: 0.9;
}
to {
scale: 1.7;
opacity: 0;
}
}
/* the dock's hover: the icon swells and lifts, the jelly does the rest */
.dock-item .app,
.dock-item .mark {
transition: scale var(--d-spring-fast) var(--spring-fast), translate var(--d-spring-fast) var(--spring-fast);
}
.dock-item:hover .app,
.dock-item:hover .mark {
scale: 1.12;
translate: 0 -2px;
}
/* moving between pages: the old one lifts away, the new one rises (Chromium);
elsewhere script.js does the same by hand */
@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
html:not(.vt-swap)::view-transition-old(root) {
animation: page-out 200ms var(--ease-out) both;
}
html:not(.vt-swap)::view-transition-new(root) {
animation: page-in 420ms var(--ease-in) both;
}
}
/* a palette or mode change: only the circle script.js draws */
html.vt-swap::view-transition-old(root),
html.vt-swap::view-transition-new(root) {
animation: none;
mix-blend-mode: normal;
}
@keyframes page-out {
to {
opacity: 0;
translate: 0 -12px;
}
}
@keyframes page-in {
from {
opacity: 0;
translate: 0 18px;
}
}
main,
.foot {
transition: opacity 180ms var(--ease-out), translate 200ms var(--ease-out);
}
.leaving main,
.leaving .foot {
opacity: 0;
translate: 0 -12px;
}
/* the viewer opens out of the picture you clicked */
.viewer-stage img.flying {
transition: none;
}
/* the co-developer, first among the people */
.person.lead {
grid-column: 1 / -1;
grid-template-columns: 72px minmax(0, 1fr);
padding: 22px;
background: var(--accent-c);
color: var(--on-accent-c);
}
.person.lead img {
width: 72px;
height: 72px;
border-radius: 24px;
}
.person.lead strong {
font-size: 1.25rem;
}
.person.lead small {
color: color-mix(in oklab, var(--on-accent-c) 82%, transparent);
font-size: 0.95rem;
}
.person.lead:hover {
background: color-mix(in oklab, var(--accent-c) 88%, var(--on-accent-c));
}
.role-chip {
display: inline-flex;
align-items: center;
height: 24px;
margin-left: 10px;
padding: 0 10px;
border-radius: 999px;
background: var(--accent);
color: var(--on-accent);
font-size: 0.75rem;
font-weight: 700;
vertical-align: 3px;
}
/* ------------------------------------------------------------ narrower */
@media (max-width: 1080px) {
.hero {
grid-template-columns: minmax(0, 1fr);
}
.widgets {
max-width: 640px;
}
.eco {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.eco-col:last-child {
grid-column: span 2;
}
.credits {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.about-head {
grid-template-columns: minmax(0, 1fr);
}
}
/* too narrow to centre the pages on the page: centre them between the side pills */
@media (max-width: 1080px) {
.bar {
grid-template-columns: auto minmax(0, 1fr) auto;
}
.pill.pages {
justify-self: center;
}
}
@media (max-width: 900px) {
.bar {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.pill.pages {
display: none;
}
.sys.menu-btn {
display: inline-flex;
}
.feature,
.feature.flip {
grid-template-columns: minmax(0, 1fr);
}
.feature.flip .feature-copy {
order: 0;
}
.settings-layout {
grid-template-columns: minmax(0, 1fr);
}
.rail {
position: static;
max-height: none;
}
.rail-nav {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.rail-group,
.rail-pill {
display: none;
}
.rail-nav a {
height: 40px;
background: var(--s3);
}
/* chips here, no pill to glide: the one you are on is filled */
.rail-nav a.on {
background: var(--accent-c);
}
.support,
.palette-grid,
.closing {
grid-template-columns: minmax(0, 1fr);
}
.gallery {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 440px) {
.sys.stars,
.sys-sep {
display: none;
}
}
@media (max-width: 640px) {
.bar {
--bh: 38px;
--cell: 28px;
padding-inline: 12px;
gap: 6px;
}
.zone {
gap: 6px;
}
.bar-ver,
.stars span {
display: none;
}
.sys {
padding-inline: 6px;
}
.eco,
.pair,
.people,
.credits,
.stats {
grid-template-columns: minmax(0, 1fr);
}
.eco-col:last-child {
grid-column: auto;
}
.widgets {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.poster {
grid-column: span 2;
grid-row: auto;
font-size: 8rem;
}
.github {
grid-column: span 2;
}
.gallery {
grid-template-columns: minmax(0, 1fr);
}
.tile.wide {
grid-column: auto;
}
.field-row {
grid-template-columns: minmax(0, 1fr);
}
.profile,
.mark-show {
grid-template-columns: minmax(0, 1fr);
}
.timeline li {
grid-template-columns: minmax(0, 1fr);
}
.viewer-stage {
padding: 0 8px;
}
.viewer .nav {
display: none;
}
.dock-item {
width: 46px;
height: 46px;
}
.dock-item .app {
width: 36px;
height: 36px;
}
}