217 lines
4.7 KiB
CSS
217 lines
4.7 KiB
CSS
:root {
|
|
--lt-blue: rgb(69, 212, 243);
|
|
--mid-blue: rgb(26, 169, 239);
|
|
--dk-blue: rgb(63, 46, 231);
|
|
--purple: rgb(161, 49, 232);
|
|
--lilac: rgb(187, 121, 245);
|
|
|
|
--background-color: #fff;
|
|
--foreground-color: #000;
|
|
|
|
--separator-color: #dfdfdf;
|
|
--header-border-color: var(--separator-color);
|
|
--footer-border-color: var(--separator-color);
|
|
|
|
--box-shadow-color: rgba(230, 230, 230, 0.5);
|
|
--header-box-shadow-color: var(--box-shadow-color);
|
|
|
|
--font-family-body: Verdana, Helvetica, sans-serif;
|
|
--font-family-heading: Museo_Slab, Tahoma, sans-serif;
|
|
--font-family-site-heading: /*Krungthep,*/ Museo_Slab, Tahoma, sans-serif;
|
|
--font-size-min: 7px;
|
|
--font-size-max: 8px;
|
|
|
|
--content-width: 80rem;
|
|
|
|
--transition-duration: 0.7s;
|
|
|
|
--twitter-icon: url(/icons/twitter.svg);
|
|
--github-icon: url(/icons/github.svg);
|
|
--instagram-icon: url(/icons/instagram.svg);
|
|
--rss-icon: url(/icons/rss.svg);
|
|
}
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--background-color: #000;
|
|
--foreground-color: #fff;
|
|
|
|
--twitter-icon: url(/icons/twitter-dark.svg);
|
|
--github-icon: url(/icons/github-dark.svg);
|
|
--instagram-icon: url(/icons/instagram-dark.svg);
|
|
--rss-icon: url(/icons/rss-dark.svg);
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: var(--mid-blue);
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
text-underline-offset: 0.12em;
|
|
}
|
|
a:visited { color: none; }
|
|
|
|
body {
|
|
font-size: 2rem;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: var(--font-family-heading);
|
|
margin: 0;
|
|
margin-block: 2rem 0.5rem;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
background-color: var(--background-color);
|
|
color: var(--foreground-color);
|
|
font-family: var(--font-family-body);
|
|
font-size: clamp(var(--font-size-min), 1vw, var(--font-size-max));
|
|
}
|
|
|
|
main {
|
|
max-width: var(--content-width);
|
|
margin: 0 auto;
|
|
margin-block-start: 10rem;
|
|
}
|
|
|
|
p {
|
|
letter-spacing: 0.025em;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
h1.site {
|
|
color: var(--mid-blue);
|
|
}
|
|
@supports (background-clip: text) {
|
|
h1.site {
|
|
background:
|
|
radial-gradient(circle at 20% 70%, var(--purple), transparent 40%),
|
|
radial-gradient(circle at 30% 30%, var(--lt-blue), var(--mid-blue) 20%, transparent 80%),
|
|
radial-gradient(ellipse at 95% 20%, var(--dk-blue), var(--mid-blue) 70%, transparent 80%),
|
|
radial-gradient(circle at 100% 100%, var(--purple), var(--lilac) 100%),
|
|
radial-gradient(circle at 45% 100%, var(--lilac), var(--purple) 60%),
|
|
radial-gradient(ellipse at 50% 50%, var(--dk-blue), transparent 80%);
|
|
background-clip: text;
|
|
color: transparent;
|
|
}
|
|
}
|
|
|
|
h1.site * { color: inherit; }
|
|
|
|
header.site {
|
|
display: flex;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
header.site h1 {
|
|
font-family: var(--font-family-site-heading);
|
|
margin: 0;
|
|
}
|
|
|
|
header.site .grid {
|
|
align-items: baseline;
|
|
display: grid;
|
|
gap: 0.5em;
|
|
grid-template-columns: max-content auto max-content;
|
|
max-width: var(--content-width);
|
|
}
|
|
|
|
header.site .platter {
|
|
margin: 0 auto;
|
|
padding: 1.5rem 3rem;
|
|
}
|
|
|
|
header.site .grid nav:first-of-type {
|
|
justify-content: start;
|
|
}
|
|
|
|
header.site .grid nav:last-of-type {
|
|
justify-content: end;
|
|
}
|
|
|
|
nav.site {
|
|
align-items: center;
|
|
display: flex;
|
|
font-size: max(1.5rem, 80%);
|
|
justify-content: start;
|
|
letter-spacing: 0.12em;
|
|
list-style: none;
|
|
text-transform: lowercase;
|
|
}
|
|
|
|
nav.site li {
|
|
display: block;
|
|
margin-inline-end: 0.5em;
|
|
}
|
|
nav.site .active {
|
|
font-weight: bold;
|
|
}
|
|
|
|
nav.bulleted li:first-child::before {
|
|
content: "";
|
|
margin-inline-end: 0;
|
|
}
|
|
|
|
nav.bulleted li::before {
|
|
content: "•";
|
|
font-size: 60%;
|
|
opacity: 80%;
|
|
margin-inline-end: 0.5em;
|
|
}
|
|
|
|
p { margin-block-end: 1em; }
|
|
p:last-child { margin-block-end: 0; }
|
|
|
|
footer.site {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-size: 1.6rem;
|
|
margin-block-start: 2rem;
|
|
text-align: center;
|
|
}
|
|
|
|
footer.site > div {
|
|
border-top: 1px solid var(--footer-border-color);
|
|
padding-block-start: 2rem;
|
|
max-width: var(--content-width);
|
|
}
|
|
|
|
footer.site ul {
|
|
align-items: center;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
list-style: none;
|
|
}
|
|
|
|
footer.site .slogans li {
|
|
margin-inline-start: 0.5em;
|
|
}
|
|
|
|
footer.site p {
|
|
margin: 0;
|
|
}
|
|
|
|
footer.site p + p {
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
@media (max-width: 740px) {
|
|
footer.site .slogans span {
|
|
white-space: nowrap;
|
|
}
|
|
}
|
|
|
|
.platter {
|
|
background: var(--background-color);
|
|
border: 1px solid var(--header-border-color);
|
|
border-radius: 12px;
|
|
box-shadow: 4px 5px 5px var(--header-box-shadow-color);
|
|
}
|