globals.css 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932
  1. @import "tailwindcss";
  2. @custom-variant dark (&:where(.dark, .dark *));
  3. @theme inline {
  4. --font-sans:
  5. -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--ff-text),
  6. ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  7. --font-display: var(--display-face);
  8. --font-name: var(--name-face);
  9. --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  10. --color-bg: var(--bg);
  11. --color-card: var(--card);
  12. --color-card-2: var(--card-2);
  13. --color-inset: var(--card-inset);
  14. --color-ink: var(--ink);
  15. --color-ink-2: var(--ink-2);
  16. --color-muted: var(--muted);
  17. --color-line: var(--line);
  18. --color-line-strong: var(--line-strong);
  19. --color-glacier: var(--glacier);
  20. --color-glacier-ink: var(--glacier-ink);
  21. --color-ember: var(--ember);
  22. --color-ember-ink: var(--ember-ink);
  23. --color-sky: var(--sky);
  24. --color-mint: var(--mint);
  25. --color-blush: var(--blush);
  26. --color-butter: var(--butter);
  27. /* backwards, not both: a held end state would override drag/FLIP transforms */
  28. --animate-rise: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  29. --animate-ping-soft: ping-soft 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
  30. --animate-shimmer: shimmer 1.6s linear infinite;
  31. }
  32. /* ---------- Tokens ---------- */
  33. /* Display type: a metric-matched fallback until Fraunces arrives after the
  34. first paint (components/font-loader.tsx), then Fraunces. */
  35. :root {
  36. --display-face: "Fraunces Fallback", ui-serif, Georgia, serif;
  37. --name-face: "Fraunces Fallback", ui-serif, Georgia, serif;
  38. }
  39. html.ff {
  40. --display-face: var(--ff-display), ui-serif, Georgia, serif;
  41. --name-face: var(--ff-name), var(--ff-display), ui-serif, Georgia, serif;
  42. }
  43. /* A gentle settle when the display face swaps in. */
  44. .ff-in :is(.font-display, .title, .hero-name) {
  45. animation: ff-settle 0.5s ease both;
  46. }
  47. @keyframes ff-settle {
  48. from {
  49. opacity: 0.82;
  50. }
  51. }
  52. :root {
  53. /* Neutrals: the original warm off-white with white cards. */
  54. --bg: #f6f2f2;
  55. --card: #ffffff;
  56. --card-2: #f8f5f5;
  57. --ink: #17161b;
  58. --ink-2: #45424c;
  59. --muted: #6c6874;
  60. --line: rgb(23 22 27 / 0.07);
  61. --line-strong: rgb(23 22 27 / 0.13);
  62. /* Brand pastels from the original site, plus contrast-safe inks for text and strokes. */
  63. --sky: #8cc9fe;
  64. --mint: #63ccae;
  65. --blush: #ffbfd1;
  66. --butter: #ffdf9a;
  67. --glacier: #2a86dd;
  68. --ember: #d9487a;
  69. /* Deeper shades of the same hues for small text (WCAG AA on white). */
  70. --glacier-ink: #1b6cc2;
  71. --ember-ink: #c23668;
  72. --topo: rgb(110 92 104 / 0.1);
  73. --aurora-a: rgb(140 201 254 / 0.42);
  74. --aurora-b: rgb(255 191 209 / 0.5);
  75. --aurora-c: rgb(99 204 174 / 0.2);
  76. --shadow:
  77. 0 0 0 0.5px rgb(23 22 27 / 0.05), 0 1px 2px rgb(23 22 27 / 0.04),
  78. 0 12px 32px -14px rgb(70 40 55 / 0.2);
  79. --shadow-hover:
  80. 0 0 0 0.5px rgb(23 22 27 / 0.06), 0 1px 2px rgb(23 22 27 / 0.05),
  81. 0 24px 48px -18px rgb(70 40 55 / 0.3);
  82. /* Glass cards: a translucent material over the wallpaper with a lit rim. */
  83. --card-glass: rgb(255 255 255 / 0.56);
  84. --card-sheen: rgb(255 255 255 / 0.42);
  85. --card-inset: rgb(255 255 255 / 0.58);
  86. --card-blur: 28px;
  87. --rim-hi: rgb(255 255 255 / 1);
  88. --rim-lo: rgb(255 255 255 / 0.45);
  89. --rim-end: rgb(255 255 255 / 0.8);
  90. --glint: rgb(255 255 255 / 1);
  91. --card-lifted: rgb(255 255 255 / 0.94);
  92. /* Motion: three springs (see lib/motion.ts). Everything that moves uses one. */
  93. --ease-snap: linear(
  94. 0,
  95. 0.021,
  96. 0.075,
  97. 0.148,
  98. 0.23,
  99. 0.316,
  100. 0.401,
  101. 0.481,
  102. 0.555,
  103. 0.623,
  104. 0.682,
  105. 0.735,
  106. 0.781,
  107. 0.82,
  108. 0.853,
  109. 0.881,
  110. 0.904,
  111. 0.924,
  112. 0.94,
  113. 0.953,
  114. 0.963,
  115. 0.972,
  116. 0.979,
  117. 0.984,
  118. 0.988,
  119. 0.991,
  120. 0.994,
  121. 0.996,
  122. 0.997,
  123. 0.998,
  124. 0.999,
  125. 1
  126. );
  127. --dur-snap: 350ms;
  128. --ease-glide: linear(
  129. 0,
  130. 0.025,
  131. 0.087,
  132. 0.173,
  133. 0.269,
  134. 0.369,
  135. 0.467,
  136. 0.559,
  137. 0.642,
  138. 0.715,
  139. 0.778,
  140. 0.831,
  141. 0.876,
  142. 0.912,
  143. 0.94,
  144. 0.963,
  145. 0.98,
  146. 0.992,
  147. 1.001,
  148. 1.007,
  149. 1.011,
  150. 1.013,
  151. 1.014,
  152. 1.014,
  153. 1.013,
  154. 1.012,
  155. 1.01,
  156. 1.009,
  157. 1.008,
  158. 1.006,
  159. 1.005,
  160. 1.004,
  161. 1.003,
  162. 1.002,
  163. 1.001,
  164. 1
  165. );
  166. --dur-glide: 560ms;
  167. --ease-wobble: linear(
  168. 0,
  169. 0.067,
  170. 0.229,
  171. 0.436,
  172. 0.648,
  173. 0.837,
  174. 0.986,
  175. 1.089,
  176. 1.148,
  177. 1.17,
  178. 1.163,
  179. 1.138,
  180. 1.104,
  181. 1.068,
  182. 1.034,
  183. 1.007,
  184. 0.988,
  185. 0.976,
  186. 0.971,
  187. 0.972,
  188. 0.975,
  189. 0.981,
  190. 0.987,
  191. 0.993,
  192. 0.998,
  193. 1.001,
  194. 1.004,
  195. 1.005,
  196. 1.005,
  197. 1.004,
  198. 1.003,
  199. 1.002,
  200. 1.001,
  201. 1
  202. );
  203. --dur-wobble: 820ms;
  204. /* visionOS-style hover light */
  205. --spot-fill: rgb(140 201 254 / 0.1);
  206. --spot-rim: rgb(42 134 221 / 0.28);
  207. /* Liquid glass */
  208. --glass-tint: rgb(255 255 255 / 0.34);
  209. --glass-rim: rgb(255 255 255 / 0.95);
  210. --glass-rim-dim: rgb(255 255 255 / 0.28);
  211. --glass-shadow:
  212. 0 1px 2px rgb(40 20 30 / 0.08), 0 14px 34px -14px rgb(60 30 45 / 0.3);
  213. --glass-ink: #17161b;
  214. }
  215. .dark {
  216. /* Neutrals: the original night palette. */
  217. --bg: #0b0f11;
  218. --card: #0f1217;
  219. --card-2: #151a20;
  220. --ink: #eef0f7;
  221. --ink-2: #b7bec9;
  222. --muted: #8a929e;
  223. --line: #20262c;
  224. --line-strong: #2a2f35;
  225. --glacier: #8cc9fe;
  226. --ember: #ff9fbd;
  227. --glacier-ink: #8cc9fe;
  228. --ember-ink: #ff9fbd;
  229. --topo: rgb(140 201 254 / 0.07);
  230. --aurora-a: rgb(70 140 210 / 0.24);
  231. --aurora-b: rgb(255 150 190 / 0.12);
  232. --aurora-c: rgb(99 204 174 / 0.08);
  233. --shadow: 0 1px 1px rgb(0 0 0 / 0.4), 0 16px 40px -22px rgb(0 0 0 / 0.8);
  234. --shadow-hover:
  235. 0 1px 1px rgb(0 0 0 / 0.4), 0 26px 50px -22px rgb(0 0 0 / 0.95);
  236. --card-glass: rgb(26 31 39 / 0.5);
  237. --card-sheen: rgb(255 255 255 / 0.035);
  238. --card-inset: rgb(255 255 255 / 0.045);
  239. --rim-hi: rgb(255 255 255 / 0.3);
  240. --rim-lo: rgb(255 255 255 / 0.07);
  241. --rim-end: rgb(255 255 255 / 0.14);
  242. --glint: rgb(255 255 255 / 0.6);
  243. --card-lifted: rgb(30 36 45 / 0.95);
  244. --spot-fill: rgb(255 255 255 / 0.05);
  245. --spot-rim: rgb(255 255 255 / 0.3);
  246. --glass-tint: rgb(255 255 255 / 0.05);
  247. --glass-rim: rgb(255 255 255 / 0.55);
  248. --glass-rim-dim: rgb(255 255 255 / 0.08);
  249. --glass-shadow:
  250. 0 1px 2px rgb(0 0 0 / 0.5), 0 18px 40px -16px rgb(0 0 0 / 0.85);
  251. --glass-ink: #eef0f7;
  252. }
  253. /* ---------- Base ---------- */
  254. @layer base {
  255. html {
  256. color-scheme: light;
  257. background: var(--bg);
  258. -webkit-text-size-adjust: 100%;
  259. scroll-padding-top: 96px;
  260. }
  261. html.dark {
  262. color-scheme: dark;
  263. }
  264. body {
  265. min-height: 100dvh;
  266. background: var(--bg);
  267. color: var(--ink);
  268. font-family: var(--font-sans);
  269. letter-spacing: -0.004em;
  270. -webkit-font-smoothing: antialiased;
  271. -moz-osx-font-smoothing: grayscale;
  272. text-rendering: optimizeLegibility;
  273. }
  274. ::selection {
  275. background: color-mix(in oklab, var(--glacier) 28%, transparent);
  276. }
  277. :focus-visible {
  278. outline: 2px solid color-mix(in oklab, var(--glacier) 85%, transparent);
  279. outline-offset: 2px;
  280. }
  281. /* Inside glass, the ring sits within the control so it reads as part of it. */
  282. .lg :focus-visible {
  283. outline-offset: -2px;
  284. }
  285. }
  286. /* ---------- Components (kept below utilities so utilities can override) ---------- */
  287. @layer components {
  288. /* Apple-style eyebrow: small, semibold, sentence case. */
  289. .eyebrow {
  290. font-size: 13px;
  291. line-height: 18px;
  292. font-weight: 600;
  293. letter-spacing: -0.006em;
  294. color: var(--muted);
  295. }
  296. /* Display type: Fraunces with its softest corners. */
  297. .font-display,
  298. .title {
  299. font-family: var(--font-display);
  300. font-variation-settings: "SOFT" 100;
  301. }
  302. .title {
  303. font-weight: 600;
  304. letter-spacing: -0.012em;
  305. line-height: 1.1;
  306. color: var(--ink);
  307. }
  308. .no-scrollbar {
  309. scrollbar-width: none;
  310. }
  311. .no-scrollbar::-webkit-scrollbar {
  312. display: none;
  313. }
  314. /* macOS-style dock magnification, pure CSS. */
  315. .dock > a:hover {
  316. scale: 1.16;
  317. translate: 0 -3px;
  318. }
  319. .dock > a:hover + a,
  320. .dock > a:has(+ a:hover) {
  321. scale: 1.07;
  322. translate: 0 -1px;
  323. }
  324. /* ---------- Bento grid ---------- */
  325. .bento-wrap {
  326. container-type: inline-size;
  327. }
  328. .bento {
  329. --cols: 2;
  330. --gap: 10px;
  331. position: relative;
  332. display: grid;
  333. grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  334. grid-auto-rows: calc(
  335. (100cqi - (var(--cols) - 1) * var(--gap)) / var(--cols)
  336. );
  337. gap: var(--gap);
  338. }
  339. /* Every card sits in an explicit cell, computed per tier (lib/bento-layout.ts). */
  340. .bento > .card {
  341. grid-column: var(--c0) / span var(--w0);
  342. grid-row: var(--r0) / span var(--h0);
  343. }
  344. @media (min-width: 640px) {
  345. .bento > .card {
  346. grid-column: var(--c1) / span var(--w1);
  347. grid-row: var(--r1) / span var(--h1);
  348. }
  349. }
  350. @media (min-width: 1024px) {
  351. .bento > .card {
  352. grid-column: var(--c2) / span var(--w2);
  353. grid-row: var(--r2) / span var(--h2);
  354. }
  355. }
  356. /* Where the held card will land: a soft, empty well of glass. */
  357. .bento-ghost {
  358. border-radius: 28px;
  359. background: color-mix(in oklab, var(--glacier) 7%, transparent);
  360. box-shadow:
  361. inset 0 0 0 1.5px color-mix(in oklab, var(--glacier) 38%, transparent),
  362. inset 0 10px 30px -12px rgb(0 0 0 / 0.12);
  363. pointer-events: none;
  364. animation: fade-in 0.25s ease both;
  365. }
  366. @media (max-width: 639px) {
  367. .bento-ghost {
  368. border-radius: 24px;
  369. }
  370. }
  371. @media (min-width: 640px) {
  372. .bento {
  373. --cols: 4;
  374. --gap: 14px;
  375. }
  376. }
  377. @media (min-width: 1024px) {
  378. .bento {
  379. --gap: 18px;
  380. }
  381. }
  382. @media (max-width: 639px) {
  383. .card {
  384. --card-radius: 24px;
  385. }
  386. }
  387. .card {
  388. --card-radius: 28px;
  389. position: relative;
  390. isolation: isolate;
  391. overflow: hidden;
  392. border-radius: var(--card-radius);
  393. background:
  394. linear-gradient(180deg, var(--card-sheen), transparent 36%),
  395. var(--card-glass);
  396. -webkit-backdrop-filter: blur(var(--card-blur)) saturate(1.8);
  397. backdrop-filter: blur(var(--card-blur)) saturate(1.8);
  398. box-shadow: var(--shadow);
  399. transition:
  400. opacity 0.45s ease,
  401. filter 0.45s ease,
  402. box-shadow var(--dur-glide) var(--ease-glide),
  403. scale var(--dur-glide) var(--ease-glide);
  404. touch-action: pan-y;
  405. -webkit-touch-callout: none;
  406. }
  407. @media (hover: hover) and (pointer: fine) {
  408. .card {
  409. cursor: grab;
  410. }
  411. }
  412. /* Card content is clipped to the rounded shape even while layers animate
  413. (overflow alone lets composited children show square corners). */
  414. .card-body {
  415. position: relative;
  416. height: 100%;
  417. border-radius: inherit;
  418. overflow: hidden;
  419. clip-path: inset(0 round var(--card-radius));
  420. }
  421. @media (hover: hover) {
  422. .card:hover {
  423. box-shadow: var(--shadow-hover);
  424. }
  425. }
  426. /* visionOS-style hover light: a soft wash where the cursor is and a lit rim nearby. */
  427. .card::before,
  428. .card::after {
  429. content: "";
  430. position: absolute;
  431. inset: 0;
  432. border-radius: inherit;
  433. pointer-events: none;
  434. opacity: var(--spot, 0);
  435. transition: opacity 0.4s ease;
  436. z-index: 30;
  437. }
  438. .card::before {
  439. background: radial-gradient(
  440. 380px circle at var(--mx, -999px) var(--my, -999px),
  441. var(--spot-fill),
  442. transparent 50%
  443. );
  444. z-index: -1;
  445. }
  446. .card::after {
  447. padding: 1px;
  448. background: radial-gradient(
  449. 240px circle at var(--mx, -999px) var(--my, -999px),
  450. var(--spot-rim),
  451. transparent 65%
  452. );
  453. -webkit-mask:
  454. linear-gradient(#000 0 0) content-box,
  455. linear-gradient(#000 0 0);
  456. -webkit-mask-composite: xor;
  457. mask-composite: exclude;
  458. }
  459. .card[data-dim="true"] {
  460. opacity: 0.32;
  461. filter: saturate(0.35);
  462. }
  463. /* Pressed: the glass gives a little, like a held drop. */
  464. .card[data-pressed] {
  465. scale: 0.985;
  466. transition-duration: 0.45s, 0.45s, var(--dur-snap), var(--dur-snap);
  467. transition-timing-function: ease, ease, var(--ease-snap), var(--ease-snap);
  468. }
  469. /* Lifted: drops its blur (cheap to move) and floats above the grid. */
  470. .card[data-dragging="true"] {
  471. z-index: 50;
  472. scale: 1.03;
  473. background: var(--card-lifted);
  474. -webkit-backdrop-filter: none;
  475. backdrop-filter: none;
  476. box-shadow:
  477. 0 36px 70px -28px rgb(0 0 0 / 0.5),
  478. 0 14px 28px -14px rgb(0 0 0 / 0.28);
  479. cursor: grabbing;
  480. }
  481. .bento-wrap[data-dragging] .card:not([data-dragging]) {
  482. cursor: grabbing;
  483. }
  484. /* Entrance: each card condenses into place in reading order, and a glint of
  485. light runs along its glass edge as it settles. */
  486. .card[data-enter] {
  487. animation: condense 0.8s var(--ease-glide) backwards;
  488. animation-delay: calc(var(--i, 0) * 45ms);
  489. }
  490. /* The glint: a band of light swept across the rim once, on the compositor. */
  491. .card[data-enter] .card-rim::after {
  492. content: "";
  493. position: absolute;
  494. inset: 0 -60%;
  495. background: linear-gradient(
  496. 108deg,
  497. transparent 42%,
  498. var(--glint) 50%,
  499. transparent 58%
  500. );
  501. translate: -100% 0;
  502. animation: glint 1.4s cubic-bezier(0.3, 0.6, 0.2, 1) both;
  503. animation-delay: calc(var(--i, 0) * 45ms + 0.25s);
  504. }
  505. /* The glass edge: brightest where the light comes from, catching again at the bottom. */
  506. .card-rim {
  507. position: absolute;
  508. inset: 0;
  509. z-index: 29;
  510. border-radius: inherit;
  511. padding: 1px;
  512. pointer-events: none;
  513. background: linear-gradient(
  514. 172deg,
  515. var(--rim-hi),
  516. var(--rim-lo) 22%,
  517. transparent 50%,
  518. var(--rim-lo) 84%,
  519. var(--rim-end)
  520. );
  521. overflow: hidden;
  522. -webkit-mask:
  523. linear-gradient(#000 0 0) content-box,
  524. linear-gradient(#000 0 0);
  525. -webkit-mask-composite: xor;
  526. mask-composite: exclude;
  527. }
  528. @supports not (
  529. (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
  530. ) {
  531. .card {
  532. background: var(--card);
  533. }
  534. }
  535. @media (prefers-reduced-transparency: reduce) {
  536. .card {
  537. background: var(--card);
  538. -webkit-backdrop-filter: none;
  539. backdrop-filter: none;
  540. }
  541. }
  542. /* ---------- Liquid glass ---------- */
  543. .lg {
  544. position: relative;
  545. isolation: isolate;
  546. background: var(--glass-tint);
  547. -webkit-backdrop-filter: blur(var(--lg-blur, 12px)) saturate(1.7);
  548. backdrop-filter: blur(var(--lg-blur, 12px)) saturate(1.7);
  549. box-shadow: var(--glass-shadow);
  550. color: var(--glass-ink);
  551. }
  552. .lg[data-refract="true"] {
  553. -webkit-backdrop-filter: var(--lg-filter);
  554. backdrop-filter: var(--lg-filter);
  555. }
  556. :is(a, button).lg {
  557. transition: scale var(--dur-wobble) var(--ease-wobble);
  558. }
  559. :is(a, button).lg:active {
  560. scale: 0.94;
  561. transition-duration: var(--dur-snap);
  562. transition-timing-function: var(--ease-snap);
  563. }
  564. /* Long, thin glass (the nav bar) keeps a steady top light instead of a
  565. cursor-chasing highlight. */
  566. .lg[data-steady-light] {
  567. --sheen: 0;
  568. --la: 180deg;
  569. }
  570. /* Specular sheen: follows the light (the cursor). */
  571. .lg::before {
  572. content: "";
  573. position: absolute;
  574. inset: 0;
  575. border-radius: inherit;
  576. pointer-events: none;
  577. background:
  578. radial-gradient(
  579. 120% 90% at var(--lx, 30%) var(--ly, -10%),
  580. rgb(255 255 255 / var(--sheen, 0.42)),
  581. rgb(255 255 255 / calc(var(--sheen, 0.42) * 0.15)) 38%,
  582. transparent 60%
  583. ),
  584. linear-gradient(
  585. 180deg,
  586. rgb(255 255 255 / 0.14),
  587. transparent 40%,
  588. rgb(255 255 255 / 0.04)
  589. );
  590. mix-blend-mode: soft-light;
  591. z-index: 1;
  592. }
  593. .dark .lg::before {
  594. mix-blend-mode: screen;
  595. opacity: 0.55;
  596. }
  597. /* Rim light: a bright edge where the light hits, a dim one opposite. */
  598. .lg::after {
  599. content: "";
  600. position: absolute;
  601. inset: 0;
  602. border-radius: inherit;
  603. padding: 1px;
  604. pointer-events: none;
  605. background: linear-gradient(
  606. var(--la, 135deg),
  607. var(--glass-rim),
  608. var(--glass-rim-dim) 30%,
  609. transparent 50%,
  610. var(--glass-rim-dim) 72%,
  611. color-mix(in oklab, var(--glass-rim) 70%, transparent)
  612. );
  613. -webkit-mask:
  614. linear-gradient(#000 0 0) content-box,
  615. linear-gradient(#000 0 0);
  616. -webkit-mask-composite: xor;
  617. mask-composite: exclude;
  618. z-index: 2;
  619. }
  620. .lg > * {
  621. position: relative;
  622. z-index: 3;
  623. }
  624. /* Inner caustic: a soft bright pool on the side away from the light. */
  625. .lg-caustic {
  626. position: absolute;
  627. inset: 0;
  628. border-radius: inherit;
  629. pointer-events: none;
  630. z-index: 1 !important;
  631. box-shadow:
  632. inset 0 1px 1px rgb(255 255 255 / 0.55),
  633. inset 0 -8px 16px -10px rgb(255 255 255 / 0.35),
  634. inset 0 0 0 0.5px rgb(255 255 255 / 0.2);
  635. }
  636. .dark .lg-caustic {
  637. box-shadow:
  638. inset 0 1px 1px rgb(255 255 255 / 0.28),
  639. inset 0 -8px 16px -10px rgb(255 255 255 / 0.12),
  640. inset 0 0 0 0.5px rgb(255 255 255 / 0.1);
  641. }
  642. }
  643. /* ---------- Motion ---------- */
  644. @keyframes condense {
  645. from {
  646. opacity: 0;
  647. scale: 0.965;
  648. translate: 0 14px;
  649. }
  650. }
  651. @keyframes glint {
  652. from {
  653. translate: -100% 0;
  654. }
  655. to {
  656. translate: 100% 0;
  657. }
  658. }
  659. @keyframes rise {
  660. from {
  661. opacity: 0;
  662. transform: translateY(14px) scale(0.985);
  663. }
  664. to {
  665. opacity: 1;
  666. transform: none;
  667. }
  668. }
  669. @keyframes ping-soft {
  670. 0% {
  671. transform: scale(0.6);
  672. opacity: 0.7;
  673. }
  674. 80%,
  675. 100% {
  676. transform: scale(2.4);
  677. opacity: 0;
  678. }
  679. }
  680. @keyframes shimmer {
  681. from {
  682. background-position: 200% 0;
  683. }
  684. to {
  685. background-position: -200% 0;
  686. }
  687. }
  688. @keyframes notify {
  689. from {
  690. opacity: 0;
  691. transform: translateY(-14px) scale(0.96);
  692. }
  693. to {
  694. opacity: 1;
  695. transform: none;
  696. }
  697. }
  698. @keyframes fade-in {
  699. from {
  700. opacity: 0;
  701. }
  702. }
  703. @keyframes grow {
  704. from {
  705. transform: scaleY(0);
  706. }
  707. to {
  708. transform: scaleY(1);
  709. }
  710. }
  711. @keyframes draw {
  712. from {
  713. stroke-dashoffset: 1;
  714. }
  715. to {
  716. stroke-dashoffset: 0;
  717. }
  718. }
  719. /* Globe labels need CSS anchor positioning; hide them where it's missing. */
  720. @supports not (anchor-name: --a) {
  721. .globe-label {
  722. display: none !important;
  723. }
  724. }
  725. @keyframes caret {
  726. 50% {
  727. opacity: 0;
  728. }
  729. }
  730. @keyframes twinkle {
  731. 50% {
  732. opacity: 0.12;
  733. }
  734. }
  735. ::view-transition-old(root),
  736. ::view-transition-new(root) {
  737. animation: none;
  738. mix-blend-mode: normal;
  739. }
  740. @media (prefers-reduced-motion: reduce) {
  741. *,
  742. ::before,
  743. ::after {
  744. animation-duration: 0.001ms !important;
  745. animation-iteration-count: 1 !important;
  746. transition-duration: 0.001ms !important;
  747. scroll-behavior: auto !important;
  748. }
  749. }
  750. /* Unlayered and prefixed with html so it beats react-notion-x's own unlayered CSS. */
  751. /* ---------- Notion (blog) ---------- */
  752. html .notion {
  753. --fg-color: var(--ink);
  754. --fg-color-0: var(--line);
  755. --fg-color-1: var(--line-strong);
  756. --fg-color-2: var(--muted);
  757. --fg-color-3: var(--muted);
  758. --fg-color-4: var(--ink-2);
  759. --fg-color-5: var(--ink-2);
  760. --fg-color-6: var(--ink);
  761. --fg-color-icon: var(--ink-2);
  762. --bg-color: transparent;
  763. --bg-color-0: var(--card-2);
  764. --bg-color-1: var(--card-2);
  765. --bg-color-2: var(--card-2);
  766. --notion-max-width: 760px;
  767. font-family: var(--font-sans) !important;
  768. color: var(--ink);
  769. }
  770. html .notion-h,
  771. html .notion-title {
  772. font-family: var(--font-display) !important;
  773. font-variation-settings: "SOFT" 100;
  774. font-weight: 600;
  775. letter-spacing: -0.012em;
  776. }
  777. html .notion-page {
  778. padding-bottom: 6rem;
  779. }
  780. html .notion-text,
  781. html .notion-list li {
  782. line-height: 1.75;
  783. }
  784. html .notion-link {
  785. color: var(--glacier-ink);
  786. border-bottom-color: color-mix(in oklab, var(--glacier) 40%, transparent);
  787. }
  788. html .notion-asset-wrapper img,
  789. html .medium-zoom-image {
  790. border-radius: 1.25rem !important;
  791. }
  792. html .notion-code {
  793. border-radius: 1rem;
  794. overflow: hidden !important;
  795. background: var(--card-2) !important;
  796. border: 1px solid var(--line);
  797. }
  798. html .notion-code code {
  799. scrollbar-width: none;
  800. }
  801. html .notion-code code::-webkit-scrollbar {
  802. display: none;
  803. }
  804. html .notion-code-copy-button {
  805. display: none;
  806. }
  807. html iframe.notion-asset-object-fit,
  808. html .notion-yt-lite {
  809. border-radius: 1rem;
  810. background-color: transparent;
  811. }
  812. /* The name in the hero: a sky-to-blush gradient, Apple Intelligence style. */
  813. .hero-name {
  814. font-family: var(--font-name);
  815. font-style: italic;
  816. padding-right: 0.06em;
  817. background-image: linear-gradient(
  818. 100deg,
  819. var(--glacier) 5%,
  820. var(--ember) 95%
  821. );
  822. background-image: linear-gradient(
  823. in oklab 100deg,
  824. var(--glacier) 5%,
  825. var(--ember) 95%
  826. );
  827. -webkit-background-clip: text;
  828. background-clip: text;
  829. color: transparent;
  830. }