Feature/brutalism overhaul #10
@@ -151,7 +151,12 @@
|
|||||||
outline-offset: 2px;
|
outline-offset: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Background lives on html (not body) so the grain overlay can sit behind
|
||||||
|
* body's content at a negative z-index and still paint against the cream
|
||||||
|
* canvas — with the background on body, a z-index:-1 body::before would hide
|
||||||
|
* behind body's own background instead of showing through the page gaps. */
|
||||||
html {
|
html {
|
||||||
|
@apply bg-background;
|
||||||
font-size: var(--font-size);
|
font-size: var(--font-size);
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
/* Reserve scrollbar gutter so locking body scroll (e.g. when a modal
|
/* Reserve scrollbar gutter so locking body scroll (e.g. when a modal
|
||||||
@@ -160,23 +165,24 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@apply bg-background text-foreground;
|
@apply text-foreground;
|
||||||
font-family: var(--font-body);
|
font-family: var(--font-body);
|
||||||
font-weight: var(--font-weight-body);
|
font-weight: var(--font-weight-body);
|
||||||
line-height: var(--line-height-tight);
|
line-height: var(--line-height-tight);
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Page-wide blue dot grain overlay. z-index 100 puts it above the footer
|
/* Page-wide blue dot grain. z-index -1 drops it behind body's content so
|
||||||
* (z-50) so the grain reads as continuous across the entire viewport;
|
* opaque surfaces (cards, badges, footer) cover it and the grain only shows
|
||||||
* pointer-events: none keeps everything clickable through it. */
|
* through the transparent page gaps; pointer-events: none keeps everything
|
||||||
|
* clickable through it. */
|
||||||
body::before {
|
body::before {
|
||||||
@apply grain-pattern;
|
@apply grain-pattern;
|
||||||
content: "";
|
content: "";
|
||||||
position: fixed;
|
position: fixed;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
z-index: 100;
|
z-index: -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1,
|
h1,
|
||||||
|
|||||||
Reference in New Issue
Block a user