212 lines
3.0 KiB
CSS
212 lines
3.0 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
|
|
--color-blue-light: #c8e5f5;
|
|
--color-gold-light: #ecd399;
|
|
--color-blue-dark: #02293e;
|
|
--color-gold-dark: #715511;
|
|
|
|
--color-bg: light-dark(var(--color-blue-light), var(--color-blue-dark));
|
|
--color-text: light-dark(var(--color-blue-dark), var(--color-blue-light));
|
|
--color-accent: light-dark(var(--color-gold-dark), var(--color-gold-light));
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
color: var(--color-text);
|
|
background-color: var(--color-bg);
|
|
font-family: sans-serif;
|
|
}
|
|
|
|
main {
|
|
width: 65%;
|
|
margin: 0 auto 2rem;
|
|
}
|
|
|
|
@media (max-width: 650px) {
|
|
main {
|
|
width: 92%;
|
|
}
|
|
}
|
|
|
|
img {
|
|
display: block;
|
|
}
|
|
|
|
h1 {
|
|
margin: 3rem auto 1rem;
|
|
text-align: center;
|
|
font-size: 2.2rem;
|
|
}
|
|
|
|
h2, h3 {
|
|
margin: 3rem auto .5rem;
|
|
color: var(--color-accent);
|
|
border-bottom: solid;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.35rem;
|
|
text-align: right;
|
|
}
|
|
|
|
@media (max-width: 650px) {
|
|
h1 {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.2rem;
|
|
}
|
|
}
|
|
|
|
p {
|
|
margin: 0 auto 1.5rem;
|
|
line-height: 1.5rem;
|
|
}
|
|
|
|
@media (max-width: 650px) {
|
|
p {
|
|
font-size: .9rem;
|
|
line-height: 1.3rem;
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: var(--color-text);
|
|
text-decoration: underline;
|
|
text-decoration-style: solid;
|
|
text-decoration-thickness: .2rem;
|
|
text-decoration-color: var(--color-accent);
|
|
transition: text-decoration-thickness .5s;
|
|
padding: 0 .15rem;
|
|
}
|
|
|
|
@media (any-hover: hover) {
|
|
a:hover {
|
|
text-decoration-thickness: .4rem;
|
|
}
|
|
}
|
|
|
|
a:focus-visible {
|
|
text-decoration: none;
|
|
outline: var(--color-accent) solid .15rem;
|
|
border-radius: .15rem;
|
|
}
|
|
|
|
ul {
|
|
margin: 0 auto 1.5rem 2rem;
|
|
line-height: 1.5rem;
|
|
}
|
|
|
|
@media (max-width: 650px) {
|
|
ul {
|
|
font-size: .9rem;
|
|
line-height: 1.3rem;
|
|
}
|
|
}
|
|
|
|
time {
|
|
font-weight: 700;
|
|
}
|
|
|
|
nav ul {
|
|
display: flex;
|
|
gap: 1rem;
|
|
list-style: none;
|
|
justify-content: center;
|
|
margin: 1rem auto;
|
|
}
|
|
|
|
nav a {
|
|
font-size: 1.4rem;
|
|
border: 1px solid;
|
|
border-radius: .15rem;
|
|
padding: .15rem .3rem;
|
|
color: var(--color-accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
@media (max-width: 650px) {
|
|
nav a {
|
|
font-size: 1.2rem;
|
|
}
|
|
}
|
|
|
|
@media (any-hover: hover) {
|
|
nav a:hover {
|
|
color: var(--color-bg);
|
|
background-color: var(--color-accent);
|
|
}
|
|
}
|
|
|
|
nav a:focus-visible {
|
|
outline: none;
|
|
border-radius: 0;
|
|
color: var(--color-bg);
|
|
background-color: var(--color-accent);
|
|
}
|
|
|
|
header img {
|
|
max-height: 25vh;
|
|
max-width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
@media (max-width: 650px) {
|
|
header img {
|
|
max-height: 20vh;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: light) {
|
|
#logo-dark {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
#logo-light {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
#author {
|
|
text-align: right;
|
|
margin-bottom: 3rem;
|
|
font-style: italic;
|
|
}
|
|
|
|
footer {
|
|
color: var(--color-bg);
|
|
background-color: var(--color-text);
|
|
padding: 1rem;
|
|
}
|
|
|
|
footer p {
|
|
text-align: center;
|
|
margin: 0;
|
|
}
|
|
|
|
footer a {
|
|
color: var(--color-bg);
|
|
text-decoration-color: var(--color-bg);
|
|
}
|
|
|
|
footer a:focus-visible {
|
|
outline-color: var(--color-bg);
|
|
}
|