| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126 |
- @import "tailwindcss";
- @custom-variant dark (&:where(.dark, .dark *));
- /* Chinese pages (html lang="zh-CN"), for the few places Han text sets differently. */
- @custom-variant zh (&:lang(zh));
- @theme inline {
- /* Han characters fall through the Latin faces to the system's Chinese sans:
- PingFang on Apple, Microsoft YaHei on Windows, Noto Sans CJK on Android. */
- --font-sans:
- -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--ff-text, Figtree),
- ui-sans-serif, system-ui, "Segoe UI", Roboto, "PingFang SC",
- "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC",
- "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
- /* In headings they fall through to Noto Serif SC, Fraunces' Han companion
- (config/fonts.ts), and only then to a generic serif, which on Windows
- would be SimSun. */
- --font-display:
- var(--display-face, ui-serif, Georgia),
- var(--ff-display-zh, "Noto Serif SC"), "Noto Serif SC", "Songti SC",
- "Noto Serif CJK SC", "Source Han Serif SC", "PingFang SC",
- "Microsoft YaHei", serif;
- /* The hero name is Han: after the Latin faces, fall through to the same
- Noto Serif SC stack as --font-display so it doesn't drop to SimSun. */
- --font-name:
- var(--name-face, ui-serif, Georgia),
- var(--ff-display-zh, "Noto Serif SC"), "Noto Serif SC", "Songti SC",
- "Noto Serif CJK SC", "Source Han Serif SC", "PingFang SC",
- "Microsoft YaHei", serif;
- --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
- --color-bg: var(--bg);
- --color-card: var(--card);
- --color-card-2: var(--card-2);
- --color-inset: var(--card-inset);
- --color-ink: var(--ink);
- --color-ink-2: var(--ink-2);
- --color-muted: var(--muted);
- --color-line: var(--line);
- --color-line-strong: var(--line-strong);
- --color-glacier: var(--glacier);
- --color-glacier-ink: var(--glacier-ink);
- --color-ember: var(--ember);
- --color-ember-ink: var(--ember-ink);
- --color-sky: var(--sky);
- --color-mint: var(--mint);
- --color-blush: var(--blush);
- --color-butter: var(--butter);
- --color-stage-sky: var(--stage-sky);
- --color-stage-mint: var(--stage-mint);
- --color-stage-butter: var(--stage-butter);
- --color-stage-lilac: var(--stage-lilac);
- --color-stage-blob: var(--stage-blob);
- /* backwards, not both: a held end state would override drag/FLIP transforms */
- --animate-rise: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
- --animate-ping-soft: ping-soft 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
- --animate-shimmer: shimmer 1.6s linear infinite;
- }
- /* ---------- Tokens ---------- */
- /* Display type: a metric-matched fallback until Fraunces arrives after the
- first paint (components/font-loader.tsx), then Fraunces. Every var() has a
- fallback, so a missing variable (say, a page from an older deploy) can never
- void the whole stack and drop the headline to the body sans. */
- /* --display-face lists Latin faces only; --font-display adds the Han ones. */
- :root {
- --display-face: "Fraunces Fallback", ui-serif, Georgia;
- --name-face: "Fraunces Fallback", ui-serif, Georgia, serif;
- }
- html.ff {
- --display-face: var(--ff-display, Fraunces), ui-serif, Georgia;
- --name-face:
- var(--ff-name, Fraunces), var(--ff-display, Fraunces), ui-serif, Georgia,
- serif;
- }
- /* ---------- Chinese ---------- */
- /* Han characters have no italics, so none are faked (Latin keeps its real
- ones). In display type the punctuation is set proportionally ("palt"): a
- full-width comma would leave half an em of air in a headline. */
- html:lang(zh) {
- font-synthesis: none;
- }
- html:lang(zh) :is(.font-display, .title, .notion-h, .notion-title) {
- font-feature-settings: "palt";
- }
- /* A gentle settle when the display face swaps in. */
- .ff-in :is(.font-display, .title) {
- animation: ff-settle 0.5s ease both;
- }
- @keyframes ff-settle {
- from {
- opacity: 0.82;
- }
- }
- :root {
- /* Neutrals: the original warm off-white with white cards. */
- --bg: #f6f2f2;
- --card: #ffffff;
- --card-2: #f8f5f5;
- --ink: #17161b;
- --ink-2: #45424c;
- --muted: #6c6874;
- --line: rgb(23 22 27 / 0.07);
- --line-strong: rgb(23 22 27 / 0.13);
- /* Brand pastels from the original site, plus contrast-safe inks for text and strokes. */
- --sky: #8cc9fe;
- --mint: #63ccae;
- --blush: #ffbfd1;
- --butter: #ffdf9a;
- /* Project cards: a pastel stage by day, a deep tint of the same hue by night. */
- --stage-sky: var(--sky);
- --stage-mint: var(--mint);
- --stage-butter: var(--butter);
- --stage-lilac: #cbbffd;
- --stage-blob: var(--blush);
- --glacier: #2a86dd;
- --ember: #d9487a;
- /* Deeper shades of the same hues for small text (WCAG AA on white). */
- --glacier-ink: #1b6cc2;
- --ember-ink: #c23668;
- --topo: rgb(110 92 104 / 0.1);
- --aurora-a: rgb(140 201 254 / 0.42);
- --aurora-b: rgb(255 191 209 / 0.5);
- --aurora-c: rgb(99 204 174 / 0.2);
- --shadow:
- 0 0 0 0.5px rgb(23 22 27 / 0.05), 0 1px 2px rgb(23 22 27 / 0.04),
- 0 12px 32px -14px rgb(70 40 55 / 0.2);
- --shadow-hover:
- 0 0 0 0.5px rgb(23 22 27 / 0.06), 0 1px 2px rgb(23 22 27 / 0.05),
- 0 24px 48px -18px rgb(70 40 55 / 0.3);
- /* Glass cards: a translucent material over the wallpaper with a lit rim. */
- --card-glass: rgb(255 255 255 / 0.56);
- --card-sheen: rgb(255 255 255 / 0.42);
- --card-inset: rgb(255 255 255 / 0.58);
- --card-blur: 28px;
- --rim-hi: rgb(255 255 255 / 1);
- --rim-lo: rgb(255 255 255 / 0.45);
- --rim-end: rgb(255 255 255 / 0.8);
- --glint: rgb(255 255 255 / 1);
- --card-lifted: rgb(255 255 255 / 0.94);
- /* Motion: three springs (see lib/motion.ts). Everything that moves uses one. */
- --ease-snap: linear(
- 0,
- 0.021,
- 0.075,
- 0.148,
- 0.23,
- 0.316,
- 0.401,
- 0.481,
- 0.555,
- 0.623,
- 0.682,
- 0.735,
- 0.781,
- 0.82,
- 0.853,
- 0.881,
- 0.904,
- 0.924,
- 0.94,
- 0.953,
- 0.963,
- 0.972,
- 0.979,
- 0.984,
- 0.988,
- 0.991,
- 0.994,
- 0.996,
- 0.997,
- 0.998,
- 0.999,
- 1
- );
- --dur-snap: 350ms;
- --ease-glide: linear(
- 0,
- 0.025,
- 0.087,
- 0.173,
- 0.269,
- 0.369,
- 0.467,
- 0.559,
- 0.642,
- 0.715,
- 0.778,
- 0.831,
- 0.876,
- 0.912,
- 0.94,
- 0.963,
- 0.98,
- 0.992,
- 1.001,
- 1.007,
- 1.011,
- 1.013,
- 1.014,
- 1.014,
- 1.013,
- 1.012,
- 1.01,
- 1.009,
- 1.008,
- 1.006,
- 1.005,
- 1.004,
- 1.003,
- 1.002,
- 1.001,
- 1
- );
- --dur-glide: 560ms;
- --ease-wobble: linear(
- 0,
- 0.067,
- 0.229,
- 0.436,
- 0.648,
- 0.837,
- 0.986,
- 1.089,
- 1.148,
- 1.17,
- 1.163,
- 1.138,
- 1.104,
- 1.068,
- 1.034,
- 1.007,
- 0.988,
- 0.976,
- 0.971,
- 0.972,
- 0.975,
- 0.981,
- 0.987,
- 0.993,
- 0.998,
- 1.001,
- 1.004,
- 1.005,
- 1.005,
- 1.004,
- 1.003,
- 1.002,
- 1.001,
- 1
- );
- --dur-wobble: 820ms;
- /* visionOS-style hover light */
- --spot-fill: rgb(140 201 254 / 0.1);
- --spot-rim: rgb(42 134 221 / 0.28);
- /* Liquid glass */
- --glass-tint: rgb(255 255 255 / 0.34);
- --glass-rim: rgb(255 255 255 / 0.95);
- --glass-rim-dim: rgb(255 255 255 / 0.28);
- --glass-shadow:
- 0 1px 2px rgb(40 20 30 / 0.08), 0 14px 34px -14px rgb(60 30 45 / 0.3);
- --glass-ink: #17161b;
- }
- .dark {
- --stage-sky: #142f49;
- --stage-mint: #103830;
- --stage-butter: #362a12;
- --stage-lilac: #231d42;
- --stage-blob: rgb(255 159 189 / 0.12);
- /* Neutrals: the original night palette. */
- --bg: #0b0f11;
- --card: #0f1217;
- --card-2: #151a20;
- --ink: #eef0f7;
- --ink-2: #b7bec9;
- --muted: #8a929e;
- --line: #20262c;
- --line-strong: #2a2f35;
- --glacier: #8cc9fe;
- --ember: #ff9fbd;
- --glacier-ink: #8cc9fe;
- --ember-ink: #ff9fbd;
- --topo: rgb(140 201 254 / 0.07);
- --aurora-a: rgb(70 140 210 / 0.24);
- --aurora-b: rgb(255 150 190 / 0.12);
- --aurora-c: rgb(99 204 174 / 0.08);
- --shadow: 0 1px 1px rgb(0 0 0 / 0.4), 0 16px 40px -22px rgb(0 0 0 / 0.8);
- --shadow-hover:
- 0 1px 1px rgb(0 0 0 / 0.4), 0 26px 50px -22px rgb(0 0 0 / 0.95);
- --card-glass: rgb(26 31 39 / 0.5);
- --card-sheen: rgb(255 255 255 / 0.035);
- --card-inset: rgb(255 255 255 / 0.045);
- --rim-hi: rgb(255 255 255 / 0.3);
- --rim-lo: rgb(255 255 255 / 0.07);
- --rim-end: rgb(255 255 255 / 0.14);
- --glint: rgb(255 255 255 / 0.6);
- --card-lifted: rgb(30 36 45 / 0.95);
- --spot-fill: rgb(255 255 255 / 0.05);
- --spot-rim: rgb(255 255 255 / 0.3);
- --glass-tint: rgb(255 255 255 / 0.05);
- --glass-rim: rgb(255 255 255 / 0.55);
- --glass-rim-dim: rgb(255 255 255 / 0.08);
- --glass-shadow:
- 0 1px 2px rgb(0 0 0 / 0.5), 0 18px 40px -16px rgb(0 0 0 / 0.85);
- --glass-ink: #eef0f7;
- }
- /* ---------- Base ---------- */
- @layer base {
- html {
- color-scheme: light;
- background: var(--bg);
- -webkit-text-size-adjust: 100%;
- scroll-padding-top: 96px;
- }
- html.dark {
- color-scheme: dark;
- }
- /* A column, so on short pages the footer still sits at the bottom. */
- body {
- display: flex;
- flex-direction: column;
- min-height: 100dvh;
- background: var(--bg);
- color: var(--ink);
- font-family: var(--font-sans);
- letter-spacing: -0.004em;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- text-rendering: optimizeLegibility;
- }
- ::selection {
- background: color-mix(in oklab, var(--glacier) 28%, transparent);
- }
- :focus-visible {
- outline: 2px solid color-mix(in oklab, var(--glacier) 85%, transparent);
- outline-offset: 2px;
- }
- /* Inside glass, the ring sits within the control so it reads as part of it. */
- .lg :focus-visible {
- outline-offset: -2px;
- }
- }
- /* ---------- Components (kept below utilities so utilities can override) ---------- */
- @layer components {
- /* Apple-style eyebrow: small, semibold, sentence case. */
- .eyebrow {
- font-size: 13px;
- line-height: 18px;
- font-weight: 600;
- letter-spacing: -0.006em;
- color: var(--muted);
- }
- /* Display type: Fraunces with its softest corners. */
- .font-display,
- .title {
- font-family: var(--font-display);
- font-variation-settings: "SOFT" 100;
- }
- .title {
- font-weight: 600;
- letter-spacing: -0.012em;
- line-height: 1.1;
- color: var(--ink);
- }
- .no-scrollbar {
- scrollbar-width: none;
- }
- .no-scrollbar::-webkit-scrollbar {
- display: none;
- }
- /* macOS-style dock magnification, pure CSS. */
- .dock > a:hover {
- scale: 1.16;
- translate: 0 -3px;
- }
- .dock > a:hover + a,
- .dock > a:has(+ a:hover) {
- scale: 1.07;
- translate: 0 -1px;
- }
- /* ---------- Bento grid ---------- */
- .bento-wrap {
- container-type: inline-size;
- }
- .bento {
- --cols: 2;
- --gap: 10px;
- position: relative;
- display: grid;
- grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
- grid-auto-rows: calc(
- (100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols)
- );
- gap: var(--gap);
- }
- /* Every card sits in an explicit cell, computed per tier (lib/bento-layout.ts). */
- .bento > .card {
- grid-column: var(--c0) / span var(--w0);
- grid-row: var(--r0) / span var(--h0);
- }
- @media (min-width: 480px) {
- .bento > .card {
- grid-column: var(--c1) / span var(--w1);
- grid-row: var(--r1) / span var(--h1);
- }
- }
- @media (min-width: 640px) {
- .bento > .card {
- grid-column: var(--c2) / span var(--w2);
- grid-row: var(--r2) / span var(--h2);
- }
- }
- @media (min-width: 768px) {
- .bento > .card {
- grid-column: var(--c3) / span var(--w3);
- grid-row: var(--r3) / span var(--h3);
- }
- }
- @media (min-width: 1024px) {
- .bento > .card {
- grid-column: var(--c4) / span var(--w4);
- grid-row: var(--r4) / span var(--h4);
- }
- }
- /* Up to portrait tablets the header card (the hero) spans the full width, so
- it is a row of its own, as tall as its content, never a square with empty
- space in it (lib/bento-layout tiers 0 to 2). */
- @media (max-width: 767px) {
- .bento[data-has-header] {
- grid-template-rows: auto;
- }
- /* When a filter doesn't include it, it steps aside so the matches lead. */
- .bento > .card[data-header][data-dim] {
- display: none;
- }
- }
- /* Where the held card will land: a soft, empty well of glass. */
- .bento-ghost {
- border-radius: 28px;
- background: color-mix(in oklab, var(--glacier) 7%, transparent);
- box-shadow:
- inset 0 0 0 1.5px color-mix(in oklab, var(--glacier) 38%, transparent),
- inset 0 10px 30px -12px rgb(0 0 0 / 0.12);
- pointer-events: none;
- animation: fade-in 0.25s ease both;
- }
- @media (max-width: 639px) {
- .bento-ghost {
- border-radius: 24px;
- }
- }
- @media (min-width: 640px) {
- .bento {
- --gap: 14px;
- }
- }
- @media (min-width: 768px) {
- .bento {
- --cols: 3;
- }
- }
- @media (min-width: 1024px) {
- .bento {
- --cols: 4;
- --gap: 18px;
- }
- }
- @media (max-width: 639px) {
- .card {
- --card-radius: 24px;
- }
- }
- .card {
- --card-radius: 28px;
- position: relative;
- isolation: isolate;
- overflow: hidden;
- border-radius: var(--card-radius);
- /* Tints are image layers, never a background-color: while scrolling fast,
- Chrome fills tiles it hasn't painted yet with a layer's background-color,
- as a square the size of the layer (shadow included), which flashed. */
- background:
- linear-gradient(180deg, var(--card-sheen), transparent 36%),
- linear-gradient(var(--card-glass), var(--card-glass));
- -webkit-backdrop-filter: blur(var(--card-blur)) saturate(1.8);
- backdrop-filter: blur(var(--card-blur)) saturate(1.8);
- box-shadow: var(--shadow);
- transition:
- opacity 0.45s ease,
- filter 0.45s ease,
- box-shadow var(--dur-glide) var(--ease-glide),
- scale var(--dur-glide) var(--ease-glide);
- touch-action: pan-y;
- -webkit-touch-callout: none;
- }
- @media (hover: hover) and (pointer: fine) {
- .card {
- cursor: grab;
- }
- }
- /* Card content is clipped to the rounded shape even while layers animate
- (overflow alone lets composited children show square corners). */
- .card-body {
- position: relative;
- height: 100%;
- border-radius: inherit;
- overflow: hidden;
- clip-path: inset(0 round var(--card-radius));
- }
- @media (hover: hover) {
- .card:hover {
- box-shadow: var(--shadow-hover);
- }
- }
- /* visionOS-style hover light: a soft wash where the cursor is and a lit rim nearby. */
- .card::before,
- .card::after {
- content: "";
- position: absolute;
- inset: 0;
- border-radius: inherit;
- pointer-events: none;
- opacity: var(--spot, 0);
- transition: opacity 0.4s ease;
- z-index: 30;
- }
- .card::before {
- background: radial-gradient(
- 380px circle at var(--mx, -999px) var(--my, -999px),
- var(--spot-fill),
- transparent 50%
- );
- z-index: -1;
- }
- .card::after {
- padding: 1px;
- background: radial-gradient(
- 240px circle at var(--mx, -999px) var(--my, -999px),
- var(--spot-rim),
- transparent 65%
- );
- -webkit-mask:
- linear-gradient(#000 0 0) content-box,
- linear-gradient(#000 0 0);
- -webkit-mask-composite: xor;
- mask-composite: exclude;
- }
- .card[data-dim="true"] {
- opacity: 0.32;
- filter: saturate(0.35);
- }
- /* Pressed: the glass gives a little, like a held drop. */
- .card[data-pressed] {
- scale: 0.985;
- transition-duration: 0.45s, 0.45s, var(--dur-snap), var(--dur-snap);
- transition-timing-function: ease, ease, var(--ease-snap), var(--ease-snap);
- }
- /* Lifted: drops its blur (cheap to move) and floats above the grid. */
- .card[data-dragging="true"] {
- z-index: 50;
- scale: 1.03;
- background: linear-gradient(var(--card-lifted), var(--card-lifted));
- -webkit-backdrop-filter: none;
- backdrop-filter: none;
- box-shadow:
- 0 36px 70px -28px rgb(0 0 0 / 0.5),
- 0 14px 28px -14px rgb(0 0 0 / 0.28);
- cursor: grabbing;
- }
- .bento-wrap[data-dragging] .card:not([data-dragging]) {
- cursor: grabbing;
- }
- /* Entrance: each card condenses into place in reading order, and a glint of
- light runs along its glass edge as it settles. */
- .card[data-enter] {
- animation: condense 0.8s var(--ease-glide) backwards;
- animation-delay: calc(var(--i, 0) * 45ms);
- }
- /* The glint: a band of light swept across the rim once, on the compositor.
- It fills backwards only: an animation that fills forwards never ends for
- Chrome, which kept each band (2.2 cards wide) as a GPU layer for good, and
- with fifteen of them, cards scrolled back into view came up blank. Done,
- the band falls back to -100%, as far off the card as +100%. */
- .card[data-enter] .card-rim::after {
- content: "";
- position: absolute;
- inset: 0 -60%;
- background: linear-gradient(
- 108deg,
- transparent 42%,
- var(--glint) 50%,
- transparent 58%
- );
- translate: -100% 0;
- animation: glint 1.4s cubic-bezier(0.3, 0.6, 0.2, 1) backwards;
- animation-delay: calc(var(--i, 0) * 45ms + 0.25s);
- }
- /* The glass edge: brightest where the light comes from, catching again at the bottom. */
- .card-rim {
- position: absolute;
- inset: 0;
- z-index: 29;
- border-radius: inherit;
- padding: 1px;
- pointer-events: none;
- background: linear-gradient(
- 172deg,
- var(--rim-hi),
- var(--rim-lo) 22%,
- transparent 50%,
- var(--rim-lo) 84%,
- var(--rim-end)
- );
- overflow: hidden;
- -webkit-mask:
- linear-gradient(#000 0 0) content-box,
- linear-gradient(#000 0 0);
- -webkit-mask-composite: xor;
- mask-composite: exclude;
- }
- @supports not (
- (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
- ) {
- .card {
- background: linear-gradient(var(--card), var(--card));
- }
- }
- @media (prefers-reduced-transparency: reduce) {
- .card {
- background: linear-gradient(var(--card), var(--card));
- -webkit-backdrop-filter: none;
- backdrop-filter: none;
- }
- }
- /* ---------- Liquid glass ---------- */
- .lg {
- position: relative;
- isolation: isolate;
- background: linear-gradient(var(--glass-tint), var(--glass-tint));
- -webkit-backdrop-filter: blur(var(--lg-blur, 12px)) saturate(1.7);
- backdrop-filter: blur(var(--lg-blur, 12px)) saturate(1.7);
- box-shadow: var(--glass-shadow);
- color: var(--glass-ink);
- }
- .lg[data-refract="true"] {
- -webkit-backdrop-filter: var(--lg-filter);
- backdrop-filter: var(--lg-filter);
- }
- /* The hero lens's copy of the card sits on a plain fill and only has to
- look right: no backdrop blur, and the avatar flattened to the face that
- shows, so nothing in the lens needs a layer of its own. */
- [data-clone] .lg {
- -webkit-backdrop-filter: none;
- backdrop-filter: none;
- }
- [data-clone] [data-face][style*="hidden"] {
- display: none;
- }
- [data-clone] :is([data-face], [data-flipper]) {
- transform: none !important;
- transform-style: flat !important;
- }
- [data-clone] * {
- -webkit-backface-visibility: visible !important;
- backface-visibility: visible !important;
- will-change: auto !important;
- }
- :is(a, button).lg {
- transition: scale var(--dur-wobble) var(--ease-wobble);
- }
- :is(a, button).lg:active {
- scale: 0.94;
- transition-duration: var(--dur-snap);
- transition-timing-function: var(--ease-snap);
- }
- /* Long, thin glass (the nav bar) keeps a steady top light instead of a
- cursor-chasing highlight. */
- .lg[data-steady-light] {
- --sheen: 0;
- --la: 180deg;
- }
- /* Specular sheen: follows the light (the cursor). */
- .lg::before {
- content: "";
- position: absolute;
- inset: 0;
- border-radius: inherit;
- pointer-events: none;
- background:
- radial-gradient(
- 120% 90% at var(--lx, 30%) var(--ly, -10%),
- rgb(255 255 255 / var(--sheen, 0.42)),
- rgb(255 255 255 / calc(var(--sheen, 0.42) * 0.15)) 38%,
- transparent 60%
- ),
- linear-gradient(
- 180deg,
- rgb(255 255 255 / 0.14),
- transparent 40%,
- rgb(255 255 255 / 0.04)
- );
- mix-blend-mode: soft-light;
- z-index: 1;
- }
- .dark .lg::before {
- mix-blend-mode: screen;
- opacity: 0.55;
- }
- /* Rim light: a bright edge where the light hits, a dim one opposite. */
- .lg::after {
- content: "";
- position: absolute;
- inset: 0;
- border-radius: inherit;
- padding: 1px;
- pointer-events: none;
- background: linear-gradient(
- var(--la, 135deg),
- var(--glass-rim),
- var(--glass-rim-dim) 30%,
- transparent 50%,
- var(--glass-rim-dim) 72%,
- color-mix(in oklab, var(--glass-rim) 70%, transparent)
- );
- -webkit-mask:
- linear-gradient(#000 0 0) content-box,
- linear-gradient(#000 0 0);
- -webkit-mask-composite: xor;
- mask-composite: exclude;
- z-index: 2;
- }
- .lg > * {
- position: relative;
- z-index: 3;
- }
- /* Inner caustic: a soft bright pool on the side away from the light. */
- .lg-caustic {
- position: absolute;
- inset: 0;
- border-radius: inherit;
- pointer-events: none;
- z-index: 1 !important;
- box-shadow:
- inset 0 1px 1px rgb(255 255 255 / 0.55),
- inset 0 -8px 16px -10px rgb(255 255 255 / 0.35),
- inset 0 0 0 0.5px rgb(255 255 255 / 0.2);
- }
- .dark .lg-caustic {
- box-shadow:
- inset 0 1px 1px rgb(255 255 255 / 0.28),
- inset 0 -8px 16px -10px rgb(255 255 255 / 0.12),
- inset 0 0 0 0.5px rgb(255 255 255 / 0.1);
- }
- /* The footer spans the page's column, its text on the column's text edge:
- the cards' padding on the home grid, the header on the blog, the prose in
- a post. */
- .site-footer {
- --footer-col: 100%;
- --footer-inset: 20px;
- }
- @media (min-width: 640px) {
- .site-footer {
- --footer-inset: 24px;
- }
- }
- html:has([data-col="blog"]) .site-footer {
- --footer-col: 1040px;
- --footer-inset: 0px;
- }
- html:has([data-col="post"]) .site-footer {
- --footer-col: 760px;
- --footer-inset: calc(min(16px, 8vw) + 2px);
- }
- }
- /* ---------- Motion ---------- */
- @keyframes condense {
- from {
- opacity: 0;
- scale: 0.965;
- translate: 0 14px;
- }
- }
- @keyframes glint {
- from {
- translate: -100% 0;
- }
- to {
- translate: 100% 0;
- }
- }
- @keyframes rise {
- from {
- opacity: 0;
- transform: translateY(14px) scale(0.985);
- }
- to {
- opacity: 1;
- transform: none;
- }
- }
- @keyframes ping-soft {
- 0% {
- transform: scale(0.6);
- opacity: 0.7;
- }
- 80%,
- 100% {
- transform: scale(2.4);
- opacity: 0;
- }
- }
- @keyframes shimmer {
- from {
- background-position: 200% 0;
- }
- to {
- background-position: -200% 0;
- }
- }
- @keyframes fade-in {
- from {
- opacity: 0;
- }
- }
- @keyframes grow {
- from {
- transform: scaleY(0);
- }
- to {
- transform: scaleY(1);
- }
- }
- @keyframes draw {
- from {
- stroke-dashoffset: 1;
- }
- to {
- stroke-dashoffset: 0;
- }
- }
- /* Globe labels need CSS anchor positioning; hide them where it's missing. */
- @supports not (anchor-name: --a) {
- .globe-label {
- display: none !important;
- }
- }
- @keyframes caret {
- 50% {
- opacity: 0;
- }
- }
- @keyframes twinkle {
- 50% {
- opacity: 0.12;
- }
- }
- ::view-transition-old(root),
- ::view-transition-new(root) {
- animation: none;
- mix-blend-mode: normal;
- }
- @media (prefers-reduced-motion: reduce) {
- *,
- ::before,
- ::after {
- animation-duration: 0.001ms !important;
- animation-iteration-count: 1 !important;
- transition-duration: 0.001ms !important;
- scroll-behavior: auto !important;
- }
- }
- /* Unlayered and prefixed with html so it beats react-notion-x's own unlayered CSS. */
- /* ---------- Notion (blog) ---------- */
- html .notion {
- --fg-color: var(--ink);
- --fg-color-0: var(--line);
- --fg-color-1: var(--line-strong);
- --fg-color-2: var(--muted);
- --fg-color-3: var(--muted);
- --fg-color-4: var(--ink-2);
- --fg-color-5: var(--ink-2);
- --fg-color-6: var(--ink);
- --fg-color-icon: var(--ink-2);
- --bg-color: transparent;
- --bg-color-0: var(--card-2);
- --bg-color-1: var(--card-2);
- --bg-color-2: var(--card-2);
- --notion-max-width: 760px;
- font-family: var(--font-sans) !important;
- color: var(--ink);
- }
- html .notion-h,
- html .notion-title {
- font-family: var(--font-display) !important;
- font-variation-settings: "SOFT" 100;
- font-weight: 600;
- letter-spacing: -0.012em;
- }
- html .notion-page {
- padding-bottom: 1.5rem;
- }
- html .notion-text,
- html .notion-list li {
- line-height: 1.75;
- }
- html .notion-link {
- color: var(--glacier-ink);
- border-bottom-color: color-mix(in oklab, var(--glacier) 40%, transparent);
- }
- html .notion-asset-wrapper img,
- html .medium-zoom-image {
- border-radius: 1.25rem !important;
- }
- html .notion-code {
- border-radius: 1rem;
- overflow: hidden !important;
- background: var(--card-2) !important;
- border: 1px solid var(--line);
- }
- html .notion-code code {
- scrollbar-width: none;
- }
- html .notion-code code::-webkit-scrollbar {
- display: none;
- }
- html .notion-code-copy-button {
- display: none;
- }
- html iframe.notion-asset-object-fit,
- html .notion-yt-lite {
- border-radius: 1rem;
- background-color: transparent;
- }
- /*
- * The hero headline: one line that grows with its card (it runs ~6.2em wide).
- * Below 768px the hero is a full-width row as tall as its content, so the line
- * stays single. From 768px it is a square beside other cards: the headline
- * breaks to "Hey, I'm / 邓康临." and grows in two steps as the card gets taller,
- * while the bio scales with the card, so the square fills alike at every size.
- * Measured at the 587px card: the gaps from byline to headline, headline to
- * bio and bio to links come out about even (~38/45/36px of white between the
- * ink), and ~52/51/46 where the bio wraps a line shorter (SF Pro on a Mac).
- */
- .hero-title {
- font-size: clamp(2rem, 15.5cqi, 5.2rem);
- line-height: 1.02;
- }
- /* "Kanglin Deng" is much longer than three Han characters, so the English
- headline scales down and may wrap; the Chinese one stays one line. */
- html:lang(en) .hero-title {
- font-size: clamp(1.6rem, 11cqi, 3.9rem);
- white-space: normal;
- }
- @media (min-width: 768px) {
- @container hero (min-aspect-ratio: 9 / 10) {
- .hero-title {
- line-height: 0.98;
- }
- .hero-tail {
- display: block;
- }
- }
- @container hero (min-height: 472px) and (min-aspect-ratio: 9 / 10) {
- .hero-title {
- font-size: min(18.5cqi, 7.5rem);
- }
- html:lang(en) .hero-title {
- font-size: min(13cqi, 4.6rem);
- }
- }
- @container hero (min-height: 530px) and (min-aspect-ratio: 9 / 10) {
- .hero-title {
- font-size: min(20.4cqi, 7.5rem);
- }
- html:lang(en) .hero-title {
- font-size: min(13cqi, 4.6rem);
- }
- }
- }
- /* The name in the hero: a sky-to-blush gradient, Apple Intelligence style.
- English uses Fraunces italic; Han glyphs have no italic cut, so the Chinese
- name stays upright instead of getting a faked slant. */
- .hero-name {
- font-family: var(--font-name);
- font-style: italic;
- padding-right: 0.06em;
- background-image: linear-gradient(
- 100deg,
- var(--glacier) 5%,
- var(--ember) 95%
- );
- background-image: linear-gradient(
- in oklab 100deg,
- var(--glacier) 5%,
- var(--ember) 95%
- );
- -webkit-background-clip: text;
- background-clip: text;
- color: transparent;
- }
- html:lang(zh) .hero-name {
- font-style: normal;
- }
|