generated from inherentlee/11ty
82 lines
1.5 KiB
CSS
82 lines
1.5 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
}
|
|
|
|
/* numbered components are from https://www.joshwcomeau.com/css/custom-css-reset/ */
|
|
*, *::before, *::after {
|
|
box-sizing: border-box; /* 1. Use a more-intuitive box-sizing model */
|
|
}
|
|
|
|
#root, #__next {
|
|
isolation: isolate; /* 10. Create a root stacking context */
|
|
}
|
|
|
|
*:not(dialog) {
|
|
margin: 0; /* 2. Remove default margins */
|
|
}
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
html {
|
|
interpolate-size: allow-keywords; /* 3. Enable keyword animations */
|
|
}
|
|
}
|
|
|
|
body {
|
|
line-height: 1.5; /* 4. Increase line-height */
|
|
-webkit-font-smoothing: antialiased; /* 5. Improve text rendering */
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
#content {
|
|
width: 65%;
|
|
max-width: 1800px;
|
|
margin-inline: auto;
|
|
margin-block-end: 3rem;
|
|
}
|
|
|
|
@media (max-width: 1050px) {
|
|
#content {
|
|
width: 85%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 650px) {
|
|
#content {
|
|
width: 92%;
|
|
}
|
|
}
|
|
|
|
img, picture, video, canvas, svg {
|
|
display: block; /* 6. Improve media defaults */
|
|
max-width: 100%; /* 6. Improve media defaults */
|
|
height: auto; /* 6. Improve media defaults */
|
|
margin: 0 auto;
|
|
}
|
|
|
|
input, button, textarea, select {
|
|
font: inherit; /* 7. Inherit fonts for form controls */
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6, p {
|
|
overflow-wrap: break-word; /* 8. Avoid text overflows */
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
text-wrap: balance; /* 9. Improve line wrapping */
|
|
font-family: serif;
|
|
margin-block-start: 1em;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
}
|
|
|
|
p {
|
|
text-wrap: pretty; /* 9. Improve line wrapping */
|
|
}
|
|
|
|
#hero {
|
|
aspect-ratio: 40 / 9;
|
|
object-fit: cover;
|
|
}
|