The audit caught a real bug: `resources.css` declared `font-family: 'IBM Plex Mono'` and `font-family: 'Libre Baskerville'` as literal font names. `next/font/google` does not register the loaded webfonts under those names — it generates hashed family names and exposes them via `--font-ibm-plex-mono` and `--font-libre-baskerville` CSS variables on the same element that gets the `*-module__*__variable` class. The shipped CSS therefore never used the downloaded webfonts; visitors without the fonts installed locally saw the generic monospace / Georgia fallback chain instead of the intended typography. Switched all four font-family declarations to reference the variables first, then the literal name, then a generic family: font-family: var(--font-ibm-plex-mono), 'IBM Plex Mono', ui-monospace, ... font-family: var(--font-libre-baskerville), 'Libre Baskerville', Georgia, serif Also fixed the Wordmark SVG which had a hardcoded `fontFamily` SVG attribute (overrides CSS); replaced with an inline `style` referencing the same CSS variable. Verified the CSS bundle now contains var(--font-ibm-plex-mono) and var(--font-libre-baskerville) at the relevant rules.
514 lines
11 KiB
CSS
514 lines
11 KiB
CSS
/* =============================================================================
|
|
* Resources subsite stylesheet — ported from the hackerspace-sh Vue project.
|
|
*
|
|
* Scoped under .resources-root so it cannot bleed into the management app's
|
|
* shadcn/Tailwind design system. Every selector below must descend from
|
|
* .resources-root.
|
|
* ===========================================================================*/
|
|
|
|
.resources-root {
|
|
--res-bg: #0c0c0c;
|
|
--res-surface: #161616;
|
|
--res-border: #252525;
|
|
--res-text: #e8e8e8;
|
|
--res-text-dim: #707070;
|
|
--res-text-muted: #404040;
|
|
--res-accent: #d4ff00;
|
|
|
|
/* next/font/google sets --font-ibm-plex-mono and --font-libre-baskerville
|
|
* on this element's classlist. Use them so the loaded webfonts actually
|
|
* render; fall back to the user's system "IBM Plex Mono" / Libre
|
|
* Baskerville if present, then to generic mono / serif.
|
|
*/
|
|
background: var(--res-bg);
|
|
color: var(--res-text);
|
|
font-family: var(--font-ibm-plex-mono), 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
-webkit-font-smoothing: antialiased;
|
|
min-height: 100vh;
|
|
position: relative;
|
|
}
|
|
|
|
.resources-root ::selection {
|
|
background: var(--res-accent);
|
|
color: var(--res-bg);
|
|
}
|
|
|
|
.resources-root a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.resources-root .wordmark {
|
|
height: 1.5em;
|
|
width: auto;
|
|
}
|
|
|
|
/* Grid background */
|
|
.resources-root .resources-grid-bg {
|
|
position: fixed;
|
|
inset: 0;
|
|
background-image:
|
|
linear-gradient(var(--res-border) 1px, transparent 1px),
|
|
linear-gradient(90deg, var(--res-border) 1px, transparent 1px);
|
|
background-size: 60px 60px;
|
|
opacity: 0.3;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
.resources-root > *:not(.resources-grid-bg):not(.resources-iframe-wrapper) {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Container */
|
|
.resources-root .resources-container {
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
padding: 0 32px;
|
|
}
|
|
|
|
/* Header */
|
|
.resources-root header {
|
|
padding: 48px 0;
|
|
border-bottom: 1px solid var(--res-border);
|
|
}
|
|
|
|
.resources-root .resources-header-inner {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 24px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.resources-root .resources-site-title {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.resources-root .resources-site-title svg {
|
|
height: 24px;
|
|
width: auto;
|
|
}
|
|
|
|
.resources-root .resources-header-links {
|
|
display: flex;
|
|
gap: 32px;
|
|
font-size: 0.8125rem;
|
|
color: var(--res-text-dim);
|
|
}
|
|
|
|
.resources-root .resources-header-links a:hover {
|
|
color: var(--res-text);
|
|
}
|
|
|
|
.resources-root .resources-header-links a.resources-header-link-accent {
|
|
color: var(--res-accent);
|
|
}
|
|
|
|
.resources-root .resources-header-links a.resources-header-link-accent:hover {
|
|
color: var(--res-text);
|
|
}
|
|
|
|
/* Hero */
|
|
.resources-root .resources-hero {
|
|
padding: 32px 0;
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 32px;
|
|
align-items: center;
|
|
}
|
|
|
|
.resources-root .resources-hero-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.resources-root .resources-hero-title {
|
|
font-family: var(--font-libre-baskerville), 'Libre Baskerville', Georgia, serif;
|
|
font-size: clamp(1.75rem, 4vw, 2.5rem);
|
|
font-weight: 400;
|
|
line-height: 1.15;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.resources-root .resources-hero-title em {
|
|
font-style: italic;
|
|
color: var(--res-accent);
|
|
}
|
|
|
|
.resources-root .resources-hero-prompt {
|
|
width: 32px;
|
|
height: 32px;
|
|
color: var(--res-text);
|
|
}
|
|
|
|
.resources-root .resources-hero-sub {
|
|
font-size: 0.9375rem;
|
|
color: var(--res-text-dim);
|
|
line-height: 1.7;
|
|
max-width: 380px;
|
|
}
|
|
|
|
/* Section header */
|
|
.resources-root .resources-section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
padding: 48px 0 40px;
|
|
border-top: 1px solid var(--res-border);
|
|
}
|
|
|
|
.resources-root .resources-section-label {
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.15em;
|
|
text-transform: uppercase;
|
|
color: var(--res-text-dim);
|
|
}
|
|
|
|
.resources-root .resources-section-count {
|
|
font-size: 0.75rem;
|
|
color: var(--res-text-muted);
|
|
}
|
|
|
|
/* Projects grid */
|
|
.resources-root .resources-projects {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 1px;
|
|
background: var(--res-border);
|
|
border: 1px solid var(--res-border);
|
|
}
|
|
|
|
.resources-root .resources-card {
|
|
background: var(--res-bg);
|
|
padding: 40px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 280px;
|
|
position: relative;
|
|
transition: background 0.3s ease;
|
|
}
|
|
|
|
.resources-root .resources-card:hover {
|
|
background: var(--res-surface);
|
|
}
|
|
|
|
.resources-root .resources-card-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
}
|
|
|
|
.resources-root .resources-card-icon {
|
|
position: absolute;
|
|
top: 24px;
|
|
right: 24px;
|
|
width: 48px;
|
|
height: 48px;
|
|
color: var(--res-text);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.resources-root .resources-card-icon svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.resources-root .resources-card-has-icon .resources-card-num {
|
|
padding-right: 60px;
|
|
}
|
|
|
|
.resources-root .resources-card-num {
|
|
font-size: 0.6875rem;
|
|
color: var(--res-text-muted);
|
|
letter-spacing: 0.1em;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.resources-root .resources-card-title {
|
|
font-family: var(--font-libre-baskerville), 'Libre Baskerville', Georgia, serif;
|
|
font-size: 1.625rem;
|
|
font-weight: 400;
|
|
letter-spacing: -0.01em;
|
|
margin-bottom: 12px;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.resources-root .resources-card:hover .resources-card-title {
|
|
color: var(--res-accent);
|
|
}
|
|
|
|
.resources-root .resources-card-desc {
|
|
font-size: 0.8125rem;
|
|
color: var(--res-text-dim);
|
|
line-height: 1.65;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.resources-root .resources-card-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 32px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid var(--res-border);
|
|
}
|
|
|
|
.resources-root .resources-card-type {
|
|
font-size: 0.6875rem;
|
|
color: var(--res-text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
}
|
|
|
|
.resources-root .resources-card-arrow {
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid var(--res-border);
|
|
border-radius: 50%;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.resources-root .resources-card-arrow svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
color: var(--res-text-dim);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.resources-root .resources-card:hover .resources-card-arrow {
|
|
background: var(--res-accent);
|
|
border-color: var(--res-accent);
|
|
}
|
|
|
|
.resources-root .resources-card:hover .resources-card-arrow svg {
|
|
color: var(--res-bg);
|
|
transform: translateX(2px);
|
|
}
|
|
|
|
.resources-root .resources-card-featured {
|
|
grid-column: 1 / -1;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: 60px;
|
|
min-height: auto;
|
|
padding: 48px;
|
|
}
|
|
|
|
.resources-root .resources-card-featured .resources-card-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.resources-root .resources-card-visual {
|
|
width: 180px;
|
|
height: 180px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
color: var(--res-text);
|
|
}
|
|
|
|
.resources-root .resources-card-visual svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* Author */
|
|
.resources-root .resources-author {
|
|
padding: 80px 0;
|
|
border-top: 1px solid var(--res-border);
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
gap: 48px;
|
|
align-items: center;
|
|
}
|
|
|
|
.resources-root .resources-author-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.resources-root .resources-author-label {
|
|
font-size: 0.6875rem;
|
|
color: var(--res-text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
}
|
|
|
|
.resources-root .resources-author-name {
|
|
font-family: var(--font-libre-baskerville), 'Libre Baskerville', Georgia, serif;
|
|
font-size: 1.5rem;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.resources-root .resources-author-bio {
|
|
font-size: 0.8125rem;
|
|
color: var(--res-text-dim);
|
|
}
|
|
|
|
.resources-root .resources-author-link {
|
|
font-size: 0.8125rem;
|
|
padding: 14px 28px;
|
|
border: 1px solid var(--res-border);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.resources-root .resources-author-link:hover {
|
|
background: var(--res-accent);
|
|
border-color: var(--res-accent);
|
|
color: var(--res-bg);
|
|
}
|
|
|
|
.resources-root .resources-author-link svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
/* Footer */
|
|
.resources-root footer {
|
|
padding: 40px 0;
|
|
border-top: 1px solid var(--res-border);
|
|
font-size: 0.75rem;
|
|
color: var(--res-text-muted);
|
|
}
|
|
|
|
.resources-root .resources-footer-inner {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.resources-root footer a {
|
|
color: var(--res-text-dim);
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.resources-root footer a:hover {
|
|
color: var(--res-text);
|
|
}
|
|
|
|
.resources-root .resources-footer-links {
|
|
display: flex;
|
|
gap: 24px;
|
|
}
|
|
|
|
/* Iframe wrapper (used by /zine, /governance, /space-after-dark, /proposal-duel, /atlas) */
|
|
.resources-root .resources-iframe-wrapper {
|
|
position: fixed;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--res-bg);
|
|
z-index: 2;
|
|
}
|
|
|
|
.resources-root .resources-iframe-topbar {
|
|
height: 48px;
|
|
min-height: 48px;
|
|
background: var(--res-bg);
|
|
border-bottom: 1px solid var(--res-border);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 24px;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.resources-root .resources-iframe-back {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--res-text-dim);
|
|
transition: color 0.2s;
|
|
}
|
|
|
|
.resources-root .resources-iframe-back:hover {
|
|
color: var(--res-text);
|
|
}
|
|
|
|
.resources-root .resources-iframe-back > svg:first-child {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.resources-root .resources-iframe-back .wordmark {
|
|
height: 18px;
|
|
width: auto;
|
|
}
|
|
|
|
.resources-root .resources-iframe-title {
|
|
color: var(--res-text-muted);
|
|
font-size: 0.75rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
}
|
|
|
|
.resources-root .resources-iframe-frame {
|
|
flex: 1;
|
|
width: 100%;
|
|
border: none;
|
|
background: #fff;
|
|
}
|
|
|
|
/* Mobile */
|
|
@media (max-width: 768px) {
|
|
.resources-root .resources-container {
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.resources-root .resources-hero {
|
|
grid-template-columns: 1fr;
|
|
gap: 16px;
|
|
padding: 24px 0;
|
|
}
|
|
|
|
.resources-root .resources-hero-sub {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.resources-root .resources-projects {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.resources-root .resources-card {
|
|
padding: 32px 24px;
|
|
min-height: auto;
|
|
}
|
|
|
|
.resources-root .resources-card-featured {
|
|
flex-direction: column;
|
|
gap: 32px;
|
|
}
|
|
|
|
.resources-root .resources-card-featured .resources-card-visual {
|
|
width: 140px;
|
|
height: 140px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.resources-root .resources-author {
|
|
grid-template-columns: 1fr;
|
|
gap: 24px;
|
|
}
|
|
|
|
.resources-root .resources-footer-inner {
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
text-align: center;
|
|
}
|
|
}
|