globals.css 24 KB

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