globals.css 22 KB

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