globals.css 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945
  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: 768px) {
  351. .bento > .card {
  352. grid-column: var(--c2) / span var(--w2);
  353. grid-row: var(--r2) / span var(--h2);
  354. }
  355. }
  356. @media (min-width: 1024px) {
  357. .bento > .card {
  358. grid-column: var(--c3) / span var(--w3);
  359. grid-row: var(--r3) / span var(--h3);
  360. }
  361. }
  362. /* Where the held card will land: a soft, empty well of glass. */
  363. .bento-ghost {
  364. border-radius: 28px;
  365. background: color-mix(in oklab, var(--glacier) 7%, transparent);
  366. box-shadow:
  367. inset 0 0 0 1.5px color-mix(in oklab, var(--glacier) 38%, transparent),
  368. inset 0 10px 30px -12px rgb(0 0 0 / 0.12);
  369. pointer-events: none;
  370. animation: fade-in 0.25s ease both;
  371. }
  372. @media (max-width: 639px) {
  373. .bento-ghost {
  374. border-radius: 24px;
  375. }
  376. }
  377. @media (min-width: 640px) {
  378. .bento {
  379. --gap: 14px;
  380. }
  381. }
  382. @media (min-width: 768px) {
  383. .bento {
  384. --cols: 3;
  385. }
  386. }
  387. @media (min-width: 1024px) {
  388. .bento {
  389. --cols: 4;
  390. --gap: 18px;
  391. }
  392. }
  393. @media (max-width: 639px) {
  394. .card {
  395. --card-radius: 24px;
  396. }
  397. }
  398. .card {
  399. --card-radius: 28px;
  400. position: relative;
  401. isolation: isolate;
  402. overflow: hidden;
  403. border-radius: var(--card-radius);
  404. background:
  405. linear-gradient(180deg, var(--card-sheen), transparent 36%),
  406. var(--card-glass);
  407. -webkit-backdrop-filter: blur(var(--card-blur)) saturate(1.8);
  408. backdrop-filter: blur(var(--card-blur)) saturate(1.8);
  409. box-shadow: var(--shadow);
  410. transition:
  411. opacity 0.45s ease,
  412. filter 0.45s ease,
  413. box-shadow var(--dur-glide) var(--ease-glide),
  414. scale var(--dur-glide) var(--ease-glide);
  415. touch-action: pan-y;
  416. -webkit-touch-callout: none;
  417. }
  418. @media (hover: hover) and (pointer: fine) {
  419. .card {
  420. cursor: grab;
  421. }
  422. }
  423. /* Card content is clipped to the rounded shape even while layers animate
  424. (overflow alone lets composited children show square corners). */
  425. .card-body {
  426. position: relative;
  427. height: 100%;
  428. border-radius: inherit;
  429. overflow: hidden;
  430. clip-path: inset(0 round var(--card-radius));
  431. }
  432. @media (hover: hover) {
  433. .card:hover {
  434. box-shadow: var(--shadow-hover);
  435. }
  436. }
  437. /* visionOS-style hover light: a soft wash where the cursor is and a lit rim nearby. */
  438. .card::before,
  439. .card::after {
  440. content: "";
  441. position: absolute;
  442. inset: 0;
  443. border-radius: inherit;
  444. pointer-events: none;
  445. opacity: var(--spot, 0);
  446. transition: opacity 0.4s ease;
  447. z-index: 30;
  448. }
  449. .card::before {
  450. background: radial-gradient(
  451. 380px circle at var(--mx, -999px) var(--my, -999px),
  452. var(--spot-fill),
  453. transparent 50%
  454. );
  455. z-index: -1;
  456. }
  457. .card::after {
  458. padding: 1px;
  459. background: radial-gradient(
  460. 240px circle at var(--mx, -999px) var(--my, -999px),
  461. var(--spot-rim),
  462. transparent 65%
  463. );
  464. -webkit-mask:
  465. linear-gradient(#000 0 0) content-box,
  466. linear-gradient(#000 0 0);
  467. -webkit-mask-composite: xor;
  468. mask-composite: exclude;
  469. }
  470. .card[data-dim="true"] {
  471. opacity: 0.32;
  472. filter: saturate(0.35);
  473. }
  474. /* Pressed: the glass gives a little, like a held drop. */
  475. .card[data-pressed] {
  476. scale: 0.985;
  477. transition-duration: 0.45s, 0.45s, var(--dur-snap), var(--dur-snap);
  478. transition-timing-function: ease, ease, var(--ease-snap), var(--ease-snap);
  479. }
  480. /* Lifted: drops its blur (cheap to move) and floats above the grid. */
  481. .card[data-dragging="true"] {
  482. z-index: 50;
  483. scale: 1.03;
  484. background: var(--card-lifted);
  485. -webkit-backdrop-filter: none;
  486. backdrop-filter: none;
  487. box-shadow:
  488. 0 36px 70px -28px rgb(0 0 0 / 0.5),
  489. 0 14px 28px -14px rgb(0 0 0 / 0.28);
  490. cursor: grabbing;
  491. }
  492. .bento-wrap[data-dragging] .card:not([data-dragging]) {
  493. cursor: grabbing;
  494. }
  495. /* Entrance: each card condenses into place in reading order, and a glint of
  496. light runs along its glass edge as it settles. */
  497. .card[data-enter] {
  498. animation: condense 0.8s var(--ease-glide) backwards;
  499. animation-delay: calc(var(--i, 0) * 45ms);
  500. }
  501. /* The glint: a band of light swept across the rim once, on the compositor. */
  502. .card[data-enter] .card-rim::after {
  503. content: "";
  504. position: absolute;
  505. inset: 0 -60%;
  506. background: linear-gradient(
  507. 108deg,
  508. transparent 42%,
  509. var(--glint) 50%,
  510. transparent 58%
  511. );
  512. translate: -100% 0;
  513. animation: glint 1.4s cubic-bezier(0.3, 0.6, 0.2, 1) both;
  514. animation-delay: calc(var(--i, 0) * 45ms + 0.25s);
  515. }
  516. /* The glass edge: brightest where the light comes from, catching again at the bottom. */
  517. .card-rim {
  518. position: absolute;
  519. inset: 0;
  520. z-index: 29;
  521. border-radius: inherit;
  522. padding: 1px;
  523. pointer-events: none;
  524. background: linear-gradient(
  525. 172deg,
  526. var(--rim-hi),
  527. var(--rim-lo) 22%,
  528. transparent 50%,
  529. var(--rim-lo) 84%,
  530. var(--rim-end)
  531. );
  532. overflow: hidden;
  533. -webkit-mask:
  534. linear-gradient(#000 0 0) content-box,
  535. linear-gradient(#000 0 0);
  536. -webkit-mask-composite: xor;
  537. mask-composite: exclude;
  538. }
  539. @supports not (
  540. (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
  541. ) {
  542. .card {
  543. background: var(--card);
  544. }
  545. }
  546. @media (prefers-reduced-transparency: reduce) {
  547. .card {
  548. background: var(--card);
  549. -webkit-backdrop-filter: none;
  550. backdrop-filter: none;
  551. }
  552. }
  553. /* ---------- Liquid glass ---------- */
  554. .lg {
  555. position: relative;
  556. isolation: isolate;
  557. background: var(--glass-tint);
  558. -webkit-backdrop-filter: blur(var(--lg-blur, 12px)) saturate(1.7);
  559. backdrop-filter: blur(var(--lg-blur, 12px)) saturate(1.7);
  560. box-shadow: var(--glass-shadow);
  561. color: var(--glass-ink);
  562. }
  563. .lg[data-refract="true"] {
  564. -webkit-backdrop-filter: var(--lg-filter);
  565. backdrop-filter: var(--lg-filter);
  566. }
  567. :is(a, button).lg {
  568. transition: scale var(--dur-wobble) var(--ease-wobble);
  569. }
  570. :is(a, button).lg:active {
  571. scale: 0.94;
  572. transition-duration: var(--dur-snap);
  573. transition-timing-function: var(--ease-snap);
  574. }
  575. /* Long, thin glass (the nav bar) keeps a steady top light instead of a
  576. cursor-chasing highlight. */
  577. .lg[data-steady-light] {
  578. --sheen: 0;
  579. --la: 180deg;
  580. }
  581. /* Specular sheen: follows the light (the cursor). */
  582. .lg::before {
  583. content: "";
  584. position: absolute;
  585. inset: 0;
  586. border-radius: inherit;
  587. pointer-events: none;
  588. background:
  589. radial-gradient(
  590. 120% 90% at var(--lx, 30%) var(--ly, -10%),
  591. rgb(255 255 255 / var(--sheen, 0.42)),
  592. rgb(255 255 255 / calc(var(--sheen, 0.42) * 0.15)) 38%,
  593. transparent 60%
  594. ),
  595. linear-gradient(
  596. 180deg,
  597. rgb(255 255 255 / 0.14),
  598. transparent 40%,
  599. rgb(255 255 255 / 0.04)
  600. );
  601. mix-blend-mode: soft-light;
  602. z-index: 1;
  603. }
  604. .dark .lg::before {
  605. mix-blend-mode: screen;
  606. opacity: 0.55;
  607. }
  608. /* Rim light: a bright edge where the light hits, a dim one opposite. */
  609. .lg::after {
  610. content: "";
  611. position: absolute;
  612. inset: 0;
  613. border-radius: inherit;
  614. padding: 1px;
  615. pointer-events: none;
  616. background: linear-gradient(
  617. var(--la, 135deg),
  618. var(--glass-rim),
  619. var(--glass-rim-dim) 30%,
  620. transparent 50%,
  621. var(--glass-rim-dim) 72%,
  622. color-mix(in oklab, var(--glass-rim) 70%, transparent)
  623. );
  624. -webkit-mask:
  625. linear-gradient(#000 0 0) content-box,
  626. linear-gradient(#000 0 0);
  627. -webkit-mask-composite: xor;
  628. mask-composite: exclude;
  629. z-index: 2;
  630. }
  631. .lg > * {
  632. position: relative;
  633. z-index: 3;
  634. }
  635. /* Inner caustic: a soft bright pool on the side away from the light. */
  636. .lg-caustic {
  637. position: absolute;
  638. inset: 0;
  639. border-radius: inherit;
  640. pointer-events: none;
  641. z-index: 1 !important;
  642. box-shadow:
  643. inset 0 1px 1px rgb(255 255 255 / 0.55),
  644. inset 0 -8px 16px -10px rgb(255 255 255 / 0.35),
  645. inset 0 0 0 0.5px rgb(255 255 255 / 0.2);
  646. }
  647. .dark .lg-caustic {
  648. box-shadow:
  649. inset 0 1px 1px rgb(255 255 255 / 0.28),
  650. inset 0 -8px 16px -10px rgb(255 255 255 / 0.12),
  651. inset 0 0 0 0.5px rgb(255 255 255 / 0.1);
  652. }
  653. }
  654. /* ---------- Motion ---------- */
  655. @keyframes condense {
  656. from {
  657. opacity: 0;
  658. scale: 0.965;
  659. translate: 0 14px;
  660. }
  661. }
  662. @keyframes glint {
  663. from {
  664. translate: -100% 0;
  665. }
  666. to {
  667. translate: 100% 0;
  668. }
  669. }
  670. @keyframes rise {
  671. from {
  672. opacity: 0;
  673. transform: translateY(14px) scale(0.985);
  674. }
  675. to {
  676. opacity: 1;
  677. transform: none;
  678. }
  679. }
  680. @keyframes ping-soft {
  681. 0% {
  682. transform: scale(0.6);
  683. opacity: 0.7;
  684. }
  685. 80%,
  686. 100% {
  687. transform: scale(2.4);
  688. opacity: 0;
  689. }
  690. }
  691. @keyframes shimmer {
  692. from {
  693. background-position: 200% 0;
  694. }
  695. to {
  696. background-position: -200% 0;
  697. }
  698. }
  699. @keyframes notify {
  700. from {
  701. opacity: 0;
  702. transform: translateY(-14px) scale(0.96);
  703. }
  704. to {
  705. opacity: 1;
  706. transform: none;
  707. }
  708. }
  709. @keyframes fade-in {
  710. from {
  711. opacity: 0;
  712. }
  713. }
  714. @keyframes grow {
  715. from {
  716. transform: scaleY(0);
  717. }
  718. to {
  719. transform: scaleY(1);
  720. }
  721. }
  722. @keyframes draw {
  723. from {
  724. stroke-dashoffset: 1;
  725. }
  726. to {
  727. stroke-dashoffset: 0;
  728. }
  729. }
  730. /* Globe labels need CSS anchor positioning; hide them where it's missing. */
  731. @supports not (anchor-name: --a) {
  732. .globe-label {
  733. display: none !important;
  734. }
  735. }
  736. @keyframes caret {
  737. 50% {
  738. opacity: 0;
  739. }
  740. }
  741. @keyframes twinkle {
  742. 50% {
  743. opacity: 0.12;
  744. }
  745. }
  746. ::view-transition-old(root),
  747. ::view-transition-new(root) {
  748. animation: none;
  749. mix-blend-mode: normal;
  750. }
  751. @media (prefers-reduced-motion: reduce) {
  752. *,
  753. ::before,
  754. ::after {
  755. animation-duration: 0.001ms !important;
  756. animation-iteration-count: 1 !important;
  757. transition-duration: 0.001ms !important;
  758. scroll-behavior: auto !important;
  759. }
  760. }
  761. /* Unlayered and prefixed with html so it beats react-notion-x's own unlayered CSS. */
  762. /* ---------- Notion (blog) ---------- */
  763. html .notion {
  764. --fg-color: var(--ink);
  765. --fg-color-0: var(--line);
  766. --fg-color-1: var(--line-strong);
  767. --fg-color-2: var(--muted);
  768. --fg-color-3: var(--muted);
  769. --fg-color-4: var(--ink-2);
  770. --fg-color-5: var(--ink-2);
  771. --fg-color-6: var(--ink);
  772. --fg-color-icon: var(--ink-2);
  773. --bg-color: transparent;
  774. --bg-color-0: var(--card-2);
  775. --bg-color-1: var(--card-2);
  776. --bg-color-2: var(--card-2);
  777. --notion-max-width: 760px;
  778. font-family: var(--font-sans) !important;
  779. color: var(--ink);
  780. }
  781. html .notion-h,
  782. html .notion-title {
  783. font-family: var(--font-display) !important;
  784. font-variation-settings: "SOFT" 100;
  785. font-weight: 600;
  786. letter-spacing: -0.012em;
  787. }
  788. html .notion-page {
  789. padding-bottom: 6rem;
  790. }
  791. html .notion-text,
  792. html .notion-list li {
  793. line-height: 1.75;
  794. }
  795. html .notion-link {
  796. color: var(--glacier-ink);
  797. border-bottom-color: color-mix(in oklab, var(--glacier) 40%, transparent);
  798. }
  799. html .notion-asset-wrapper img,
  800. html .medium-zoom-image {
  801. border-radius: 1.25rem !important;
  802. }
  803. html .notion-code {
  804. border-radius: 1rem;
  805. overflow: hidden !important;
  806. background: var(--card-2) !important;
  807. border: 1px solid var(--line);
  808. }
  809. html .notion-code code {
  810. scrollbar-width: none;
  811. }
  812. html .notion-code code::-webkit-scrollbar {
  813. display: none;
  814. }
  815. html .notion-code-copy-button {
  816. display: none;
  817. }
  818. html iframe.notion-asset-object-fit,
  819. html .notion-yt-lite {
  820. border-radius: 1rem;
  821. background-color: transparent;
  822. }
  823. /* The name in the hero: a sky-to-blush gradient, Apple Intelligence style. */
  824. .hero-name {
  825. font-family: var(--font-name);
  826. font-style: italic;
  827. padding-right: 0.06em;
  828. background-image: linear-gradient(
  829. 100deg,
  830. var(--glacier) 5%,
  831. var(--ember) 95%
  832. );
  833. background-image: linear-gradient(
  834. in oklab 100deg,
  835. var(--glacier) 5%,
  836. var(--ember) 95%
  837. );
  838. -webkit-background-clip: text;
  839. background-clip: text;
  840. color: transparent;
  841. }