feat(website): finish responsive polish

Self-host the Inter and Space Grotesk variable fonts, tighten the mobile layout, hide oversized edge marks on narrow screens, and add keyboard focus plus reduced-motion safeguards. Exclude website and documentation-only changes from the desktop CI workflow.
This commit is contained in:
2026-06-15 19:55:01 +01:00
parent 072c3887cf
commit e14dbda41d
6 changed files with 66 additions and 18 deletions
+30
View File
@@ -1,5 +1,21 @@
@import "tailwindcss";
@font-face {
font-family: "Inter";
font-style: normal;
font-display: swap;
font-weight: 100 900;
src: url("@fontsource-variable/inter/files/inter-latin-wght-normal.woff2") format("woff2-variations");
}
@font-face {
font-family: "Space Grotesk";
font-style: normal;
font-display: swap;
font-weight: 300 700;
src: url("@fontsource-variable/space-grotesk/files/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
}
/* Phokus brand tokens — near-black surfaces, hairline edges, one amber accent
(the iris focal point). Borrowed from the app, not copied literally. */
@theme {
@@ -23,6 +39,7 @@ html {
}
body {
margin: 0;
background-color: var(--color-canvas);
color: var(--color-ink);
font-family: var(--font-sans);
@@ -30,8 +47,21 @@ body {
text-rendering: optimizeLegibility;
}
a:focus-visible {
outline: 2px solid var(--color-amber);
outline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}