wcag and responsiveness
Some checks failed
ci / site (push) Has been cancelled
publish-image / publish (push) Has been cancelled

This commit is contained in:
2026-02-10 03:22:22 -05:00
parent 3b0b97f139
commit c21614020a
9 changed files with 569 additions and 8 deletions

View File

@@ -8,6 +8,7 @@
--stroke: rgba(255, 255, 255, 0.16);
--accent: #ffcd4a;
--accent2: #5ee4ff;
--focus: rgba(94, 228, 255, 0.95);
}
* {
@@ -22,12 +23,10 @@ body {
body {
margin: 0;
color: var(--fg);
background:
radial-gradient(1000px 600px at 10% 10%, rgba(94, 228, 255, 0.22), transparent 55%),
radial-gradient(900px 600px at 90% 20%, rgba(255, 205, 74, 0.18), transparent 50%),
radial-gradient(900px 700px at 30% 90%, rgba(140, 88, 255, 0.14), transparent 55%),
linear-gradient(180deg, var(--bg0), var(--bg1));
background: linear-gradient(180deg, var(--bg0), var(--bg1));
/* Prefer a display-friendly font if available; fall back to system fonts. */
font-family:
"Manrope",
ui-sans-serif,
system-ui,
-apple-system,
@@ -41,11 +40,53 @@ body {
"Segoe UI Emoji";
}
/* Oversized fixed background layer to avoid gradient cutoffs on large screens. */
body::before {
content: "";
position: fixed;
inset: -40vmax;
z-index: -1;
pointer-events: none;
background:
radial-gradient(1200px 800px at 10% 10%, rgba(94, 228, 255, 0.22), transparent 60%),
radial-gradient(1100px 800px at 90% 20%, rgba(255, 205, 74, 0.18), transparent 58%),
radial-gradient(1200px 900px at 30% 90%, rgba(140, 88, 255, 0.14), transparent 62%);
}
a {
color: inherit;
text-decoration: none;
}
/* WCAG-ish baseline: make keyboard focus obvious. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
outline: 3px solid var(--focus);
outline-offset: 3px;
}
.skip-link {
position: absolute;
left: 14px;
top: 12px;
z-index: 999;
padding: 10px 12px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.18);
background: rgba(10, 14, 28, 0.92);
color: var(--fg);
font-weight: 800;
transform: translateY(-220%);
transition: transform 140ms ease;
}
.skip-link:focus {
transform: translateY(0);
}
.container {
width: min(1100px, calc(100% - 48px));
margin: 0 auto;
@@ -78,10 +119,122 @@ a {
color: var(--muted);
}
.nav a {
padding: 10px 12px;
border-radius: 999px;
}
.nav a:hover {
color: var(--fg);
}
.nav-toggle {
display: none;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.14);
background: rgba(255, 255, 255, 0.04);
color: var(--fg);
}
.nav-toggle-icon {
width: 18px;
height: 12px;
position: relative;
display: block;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
content: "";
position: absolute;
left: 0;
right: 0;
height: 2px;
border-radius: 999px;
background: rgba(242, 244, 255, 0.92);
}
.nav-toggle-icon::before {
top: 0;
box-shadow: 0 5px 0 rgba(242, 244, 255, 0.92);
}
.nav-toggle-icon::after {
bottom: 0;
}
@media (max-width: 760px) {
.site-header {
position: sticky;
}
.nav-toggle {
display: inline-flex;
}
.nav {
position: absolute;
top: calc(100% + 10px);
right: 14px;
width: min(86vw, 320px);
padding: 10px;
display: flex;
flex-direction: column;
gap: 6px;
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.14);
background: rgba(10, 14, 28, 0.92);
box-shadow:
0 18px 60px rgba(0, 0, 0, 0.55),
0 0 0 1px rgba(255, 255, 255, 0.05) inset;
transform-origin: top right;
transition:
opacity 160ms ease,
transform 160ms ease,
visibility 0s linear 160ms;
}
.nav[data-open="false"] {
opacity: 0;
transform: translateY(-6px) scale(0.98);
pointer-events: none;
visibility: hidden;
}
.nav[data-open="true"] {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
visibility: visible;
transition:
opacity 160ms ease,
transform 160ms ease,
visibility 0s;
}
.nav a {
padding: 12px 12px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
scroll-behavior: auto !important;
transition-duration: 0.001ms !important;
animation-duration: 0.001ms !important;
animation-iteration-count: 1 !important;
}
}
.subnav {
display: flex;
gap: 10px;