/* lato-regular - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: url('./fonts/lato-v24-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-italic - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Lato';
font-style: italic;
font-weight: 400;
src: url('./fonts/lato-v24-latin_latin-ext-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-700 - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: url('./fonts/lato-v24-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-700italic - latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Lato';
font-style: italic;
font-weight: 700;
src: url('./fonts/lato-v24-latin_latin-ext-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* caveat-500 - cyrillic_cyrillic-ext_latin_latin-ext */
@font-face {
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
font-family: 'Caveat';
font-style: normal;
font-weight: 500;
src: url('./fonts/caveat-v18-cyrillic_cyrillic-ext_latin_latin-ext-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
:root {
font-family: var(--font-normal);
--font-normal: 'Lato', sans-serif;
--font-accent: 'Caveat', cursive;
--type-scale: 1.250;
--primary-accent: purple;
--secondary-accent: gold;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-accent);
}
.titanic {
font-size: calc(1rem * pow(var(--type-scale), 6));
}
h1, .xxxlarge {
margin-top: 0;
margin-bottom: 0;
font-size: calc(1rem * pow(var(--type-scale), 5));
}
h2, .xxlarge {
font-size: calc(1rem * pow(var(--type-scale), 4));
}
h3, .xlarge {
font-size: calc(1rem * pow(var(--type-scale), 3));
}
h4, .larger {
font-size: calc(1rem * pow(var(--type-scale), 2));
}
h5, .large {
font-size: calc(1rem * var(--type-scale));
}
h6, .normal {
font-size: 1rem;
}
small, .small {
font-size: calc(1rem * pow(var(--type-scale, -1)));
}
nav#headerbar {
background: var(--primary-accent);
color: whitesmoke;
border-bottom: .75rem solid var(--secondary-accent);
padding: .3rem;
vertical-align: center;
/*position: sticky;
top: 0;*/
}
nav#headerbar a#homepage {
font-weight: bolder;
font-family: var(--font-accent);
font-size: 2rem;
}
nav#headerbar > ul {
display: flex;
padding: inherit;
margin: inherit;
gap: .75em;
}
nav#headerbar > ul > li {
display: inline-flex;
flex-direction: column;
marker: none;
padding: inherit;
margin: inherit;
justify-content: center;
}
nav#headerbar > ul > li.shiftright {
margin-left: auto;
}
nav#headerbar a {
color: white;
}
body > main {
max-width: 60rem;
margin: auto;
padding: .75rem;
}
body > footer {
text-align: center;
}
.sidebyside {
display: flex;
flex-wrap: wrap;
gap: .75rem;
margin-top: .75rem;
margin-bottom: .75rem;
}
.sidebyside > * {
width: 100%;
margin-top: 0;
margin-bottom: 0;
border: .125rem solid black;
border-radius: .75rem;
padding: .75rem;
margin-top: 0 !important;
margin-bottom: 0 !important;
flex-basis: 28rem;
flex-grow: 1;
}
article > * + * {
margin-top: .75rem;
}
article > header {
padding-bottom: .75rem;
border-bottom: 1px solid gray;
}
article > footer {
border-top: 1px solid gray;
}
article.h-entry, article.h-feed, article.h-card, article.h-event {
border: 2px solid black;
border-radius: .75rem;
padding: .75rem;
margin-top: .75rem;
margin-bottom: .75rem;
}
.webinteractions > ul.counters {
display: inline-flex;
padding: inherit;
margin: inherit;
gap: .75em;
flex-wrap: wrap;
}
.webinteractions > ul.counters > li > .icon {
font-size: 1.5em;
font-family: emoji;
}
.webinteractions > ul.counters > li {
display: inline-flex;
align-items: center;
gap: .5em;
}
article.h-entry > header.metadata ul {
padding-inline-start: unset;
margin: unset;
}
article.h-entry > header.metadata ul.categories {
flex-wrap: wrap;
display: inline-flex;
list-style-type: none;
}
article.h-entry > header.metadata ul.categories li {
display: inline;
margin-inline-start: unset;
}
article.h-entry > header.metadata ul li {
margin-inline-start: 2.5em;
}
article.h-entry .e-content pre {
border: 1px solid gray;
border-radius: 0.5em;
overflow-y: auto;
padding: 0.5em;
}
article.h-entry img.u-photo {
max-width: 80%;
max-height: 90vh;
display: block;
margin: auto;
}
article.h-entry img.u-photo + * {
margin-top: .75rem;
}
article.h-entry > header.metadata span + span::before {
content: " | "
}
li.p-category::before {
content: " #";
}
article.h-entry ul.categories {
gap: .2em;
}
article.h-card img.u-photo {
border-radius: 100%;
float: left;
height: 8rem;
border: 1px solid gray;
margin-right: .75em;
object-fit: cover;
aspect-ratio: 1;
}
.mini-h-card img, #indieauth_page img {
height: 2em;
display: inline-block;
border: 2px solid gray;
border-radius: 100%;
margin-right: 0.5rem;
}
.mini-h-card * {
vertical-align: middle;
}
.mini-h-card a {
text-decoration: none;
vertical-align: baseline;
}
#indieauth_page > #introduction {
border: .125rem solid gray;
border-radius: .75rem;
margin: 1.25rem;
padding: .75rem;
}
/* Rainbow hearts */
/* TODO make toggleable by splitting into separate CSS file */
@counter-style rainbow-hearts {
system: cyclic;
symbols: "โค๏ธ" "๐งก" "๐" "๐" "๐" "๐";
}
body {
counter-reset: like-icons;
}
span.like-icon::before {
counter-increment: like-icons;
content: "" counter(like-icons, rainbow-hearts);
}
span.like-icon-label {
display: none;
}
ul.h-feed {
list-style: none;
}
body > a#skip-to-content {
position: absolute;
width: 1px;
height: 1px;
margin: 0;
overflow: hidden;
clip: rect(1px, 1px, 1px, 1px);
background: white;
padding: 16px;
}
body > a#skip-to-content:focus {
width: auto; height: auto; clip: auto;
z-index: 999;
}
.screen-reader-only:not(:focus):not(:active) {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
figure.llm-quote {
background: #ddd;
border-left: 0.5em solid black;
border-image: repeating-linear-gradient(45deg, #000000, #000000 0.75em, #FFFF00 0.75em, #FFFF00 1.5em) 8;
padding: 0.5em;
padding-left: 0.75em;
margin-left: 3em;
}
figure.llm-quote > figcaption {
font-size: 0.95em;
font-style: italic;
}
@media (prefers-color-scheme: dark) {
figure.llm-quote {
color: #f0f0f0;
background-color: #242424;
}
}