// ==============================================================================
// Shadow Design — Modern Preflight Reset
// ==============================================================================
@use 'variables' as *;
@layer sd-reset {
// 1. Box Sizing Universale
*, *::before, *::after {
box-sizing: border-box;
}
// 2. Azzeramento margini predefiniti
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd {
margin: 0;
}
// 3. Document & Body
html {
font-size: 100%;
}
body {
background-color: $color-void;
color: $zinc-100;
font-family: $font-sans;
font-size: 0.875rem;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
// 4. Normalizzazione Button (cancella solo gli stili nativi del browser)
button, [type="button"], [type="reset"], [type="submit"] {
appearance: none;
-webkit-appearance: none;
background-color: transparent;
border: none;
font-family: inherit;
font-size: inherit;
color: inherit;
cursor: pointer;
user-select: none;
vertical-align: middle;
&:focus:not(:focus-visible) {
outline: none;
}
&:disabled, &[disabled] {
cursor: not-allowed;
opacity: 0.5;
}
}
// 5. Form Controls (Input, Textarea, Select)
input, textarea, select {
font-family: inherit;
font-size: inherit;
color: inherit;
background-color: transparent;
&:focus:not(:focus-visible) {
outline: none;
}
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"] {
appearance: none;
-webkit-appearance: none;
}
// 6. Tipografia & Link
h1, h2, h3, h4, h5, h6 {
font-size: inherit;
font-weight: inherit;
}
a {
color: inherit;
text-decoration: none;
}
ul, ol {
list-style: none;
padding: 0;
}
code, kbd, samp, pre {
font-family: $font-mono;
font-size: 1em;
}
img, svg, video, canvas, audio, iframe, embed, object {
display: block;
vertical-align: middle;
}
}