globals.css 22 KB

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