| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932 |
- @import "tailwindcss";
- @custom-variant dark (&:where(.dark, .dark *));
- @theme inline {
- --font-sans:
- -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--ff-text),
- ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
- --font-display: var(--display-face);
- --font-name: var(--name-face);
- --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);
- /* 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. */
- :root {
- --display-face: "Fraunces Fallback", ui-serif, Georgia, serif;
- --name-face: "Fraunces Fallback", ui-serif, Georgia, serif;
- }
- html.ff {
- --display-face: var(--ff-display), ui-serif, Georgia, serif;
- --name-face: var(--ff-name), var(--ff-display), ui-serif, Georgia, serif;
- }
- /* A gentle settle when the display face swaps in. */
- .ff-in :is(.font-display, .title, .hero-name) {
- 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;
- --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 {
- /* 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;
- }
- body {
- 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: 640px) {
- .bento > .card {
- grid-column: var(--c1) / span var(--w1);
- grid-row: var(--r1) / span var(--h1);
- }
- }
- @media (min-width: 1024px) {
- .bento > .card {
- grid-column: var(--c2) / span var(--w2);
- grid-row: var(--r2) / span var(--h2);
- }
- }
- /* 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 {
- --cols: 4;
- --gap: 14px;
- }
- }
- @media (min-width: 1024px) {
- .bento {
- --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);
- background:
- linear-gradient(180deg, var(--card-sheen), transparent 36%),
- 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: 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. */
- .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) both;
- 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: var(--card);
- }
- }
- @media (prefers-reduced-transparency: reduce) {
- .card {
- background: var(--card);
- -webkit-backdrop-filter: none;
- backdrop-filter: none;
- }
- }
- /* ---------- Liquid glass ---------- */
- .lg {
- position: relative;
- isolation: isolate;
- background: 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);
- }
- :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);
- }
- }
- /* ---------- 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 notify {
- from {
- opacity: 0;
- transform: translateY(-14px) scale(0.96);
- }
- to {
- opacity: 1;
- transform: none;
- }
- }
- @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: 6rem;
- }
- 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 name in the hero: a sky-to-blush gradient, Apple Intelligence style. */
- .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;
- }
|