globals.css 23 KB

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