globals.css 23 KB

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