globals.css 23 KB

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