/*--- Fonts ---*/

@font-face {
font-family: 'Inter';
src: url('../fonts/intervariable.ttf') format('ttf'), url('../fonts/intervariable.woff2') format('woff2');
font-style: normal;
}

@font-face {
font-family: 'Inter';
src: url('../fonts/intervariable-italic.ttf') format('ttf'), url('../fonts/intervariable-italic.woff2') format('woff2');
font-style: italic;
}

/*--- Variables ---*/

:root {
--black: #0a0a0a;
--black-dim: #0a0a0a77;
--black-dark: #0a0a0a11;
--red: #ff3f3f;
--white: #fff;
--white-dim: #fff7;
--white-dark: #fff1;
--sunrise: linear-gradient(135deg, #ff3f3f 0%, #ff206c 70%, #ff0099 100%);
}

/* #ff3f3f = oklch(0.6588 0.2275 26.1) */

/*--- Foundation ---*/

html,
body {
background: var(--white);
width: 100%;
height: 100%;
padding: 0;
margin: 0;
color: var(--black);
font-family: 'Inter';
font-feature-settings: 'calt', 'dlig', 'cv05';
font-size: 10px;
font-weight: 300;
}

::selection {
background: var(--red);
color: var(--white);
text-shadow: none;
}

::-moz-selection {
background: var(--red);
color: var(--white);
text-shadow: none;
}

::-webkit-scrollbar {
width: 10px;
}

::-webkit-scrollbar-track {
background: var(--white);
}

::-webkit-scrollbar-thumb {
background: var(--red);
}

::-webkit-scrollbar-thumb:hover {
background: var(--black);
}

a,
a:visited {
color: var(--red);
text-decoration: none;
}

a:hover {
color: var(--black);
}

img {
display: block;
padding: 0;
margin: 0;
max-width: 100%;
}

h1, h2, h3, h4, h5, h6, p, ol, ul {
margin: 0;
}

/*--- Font Details ---*/

b {
font-weight: 500;
}

heavy {
font-weight: 700;
}

/*--- Logo ---*/

.logo {
position: fixed;
top: 25px;
left: 25px;
width: 40px;
height: 40px;
padding: 0;
margin: 0;
z-index: 1000;
}

.logo a {
display: block;
background: var(--white);
width: 40px;
height: 40px;
border-radius: 5px;
}

.logo svg#logo {
width: auto;
height: 25px;
margin: 7.5px;
}

.logo svg#logo #logo-m {
fill: url(#logo-m-gradient);
}

.logo svg#logo #logo-fold {
fill: #00000040;
}

.logo a:hover {
background: var(--sunrise);
outline: 2px solid #fff;
}

.logo a:hover #logo #logo-m {
fill: #fff;
fill-rule: evenodd;
}

.logo a:hover #logo #logo-fold {
fill: transparent;
}

/*--- Menu ---*/

#menu-container {
position: fixed;
top: 25px;
right: 25px;
width: 40px;
height: 40px;
z-index: 998;
}

#menu-container #menu-switch {
position: relative;
display: block;
width: 40px;
height: 40px;
z-index: 1;
user-select: none;
}

#menu-container #menu-switch input {
position: absolute;
top: 0;
left: 0;
display: block;
width: 40px;
height: 40px;
padding: 0;
border: 0;
margin: 0;
z-index: 2;
opacity: 0;
cursor: pointer;
transition: 0.1s ease-in-out;
}

#menu-container #menu-switch .menu-icon {
position: relative;
display: block;
background: var(--red);
width: 20px;
height: 2px;
z-index: 1;
transition: 0.1s ease-in-out;
}

#menu-container #menu-switch .menu-back {
position: absolute;
top: 0;
right: 0;
width: 40px;
height: 40px;
}

#menu-container #menu-switch #top {
position: absolute;
top: 16px;
left: 10px;
transform-origin: 0 50%;
}

#menu-container #menu-switch #bottom {
position: absolute;
bottom: 15px;
left: 10px;
transform-origin: 0 50%;
}

#menu-container #menu-switch:hover input ~ .menu-icon {
background: var(--black);
}

#menu-container #menu-switch input:checked ~ .menu-icon {
background: var(--black);
}

#menu-container #menu-switch input:checked ~ #top {
transform: rotate(45deg);
translate: 3px -4px;
}

#menu-container #menu-switch input:checked ~ #bottom {
transform: rotate(-45deg);
translate: 3px 3px;
}

#menu-container #menu-view {
position: fixed;
top: 0;
right: 0;
left: 0;
bottom: 0;
z-index: -1;
display: block;
background: var(--white);
backdrop-filter: blur(10px);
height: auto;
transform: translateX(100vw);
}

#menu-container #menu-switch input:checked ~ #menu-view {
transform: unset;
}

#menu-container #menu-view #menu {
display: flex;
flex-wrap: wrap;
row-gap: 2rem;
width: calc(100% / 3);
padding: calc(100vh / 4) 0;
margin: 0 auto;
overflow-x: scroll;
}

#menu-container #menu-view #menu::-webkit-scrollbar {
display: none;
}

#menu-container #menu-view #menu p {
flex: 100%;
padding: 0;
margin: 0;
color: var(--black);
font-size: 3rem;
font-style: italic;
font-weight: 200;
line-height: 1;
}

#menu-container #menu-view #menu p a,
#menu-container #menu-view #menu p a:visited {
font-weight: 900;
}

/*--- index.html ---*/

.feed-view {
display: flex;
flex-wrap: wrap;
row-gap: 2rem;
width: calc(100% / 3);
padding: calc(100vh / 4) 0;
margin: 0 auto;
}

.feed-view .article {
display: flex;
flex-wrap: wrap;
row-gap: 0.15rem;
width: 100%;
}

.feed-view .article h1.article-title {
width: 100%;
margin: 0;
font-size: 3rem;
font-style: italic;
font-weight: 900;
line-height: 1;
}

.feed-view .article h2.article-date {
font-weight: 500;
width: 100%;
font-size: 1rem;
line-height: 1.5;
}

/*--- list.html ---*/

.tags-view {
display: flex;
flex-wrap: wrap;
row-gap: 2rem;
width: calc(100% / 3);
padding: calc(100vh / 4) 0;
margin: 0 auto;
}

.tags-view h3.tags-title {
width: 100%;
margin: 0;
font-size: 1.5rem;
font-style: italic;
font-weight: 900;
line-height: 1;
}

.tags-view h3.tags-title::before {
content:'Articles tagged as';
display: inline-block;
width: auto;
height: auto;
margin: 0 0.35em 0 0;
font-weight: 300;
}

.tags-view .article {
display: flex;
flex-wrap: wrap;
row-gap: 0.15rem;
width: 100%;
}

.tags-view .article h1.article-title {
width: 100%;
margin: 0;
font-size: 3rem;
font-style: italic;
font-weight: 900;
line-height: 1;
}

.tags-view .article h2.article-date,
.tags-view .article h2.article-count {
font-weight: 500;
width: 100%;
font-size: 1rem;
line-height: 1.5;
}

/*--- single.html ---*/

.article-view {
width: calc(100% / 3);
padding: calc(100vh / 4) 0;
margin: 0 auto;
}

.article-view .article {
display: flex;
flex-wrap: wrap;
row-gap: 1.5rem;
width: 100%;
}

.article-view .article h1.article-title {
width: 100%;
font-size: 3rem;
font-style: italic;
font-weight: 900;
line-height: 1;
opacity: 0.5;
}

.article-view .article .article-body {
display: flex;
flex-wrap: wrap;
row-gap: 1.5rem;
width: 100%;
line-height: 1.5;
}

.article-view .article .article-body h1 {
margin: 0;
font-size: 2.5rem;
font-weight: 500;
}

.article-view .article .article-body hr {
display: block;
width: 100%;
padding: 0;
border: 0;
margin: 0;
}

.article-view .article .article-body hr::before {
content: '\2022';
display: block;
margin: 0;
color: var(--black);
font-size: 3rem;
text-align: center;
opacity: 0.5;
}

.article-view .article .article-body p {
flex: 100%;
font-size: 2rem;
}

.article-view .article .article-body p.caption {
margin: 0 1.5rem -0.5rem 1.5rem;
font-size: 1.25rem;
font-weight: 400;
}

.article-view .article .article-body ol,
.article-view .article .article-body ul {
display: flex;
flex-wrap: wrap;
row-gap: 0.25rem;
flex: 100%;
font-size: 2rem;
}

.article-view .article .article-body li {
flex: 100%;
margin: 0;
}

.article-view .article .article-body li::marker {
color: var(--black-dim);
}

.article-view .article .article-body blockquote {
position: relative;
flex: calc(100% - 2rem);
margin: 0 2rem;
font-size: 2rem;
font-style: italic;
}

.article-view .article .article-body blockquote::before {
content: '\275d';
position: absolute;
display: block;
top: -0.75rem;
left: -3rem;
font-size: 4rem;
font-weight: 900;
opacity: 0.25;
}

.article-view .article .article-body blockquote i {
font-style: normal;
}

.article-view .article .article-body a {
font-style: italic;
font-weight: 700;
}

.article-view .article .article-body img {
border-radius: 1rem;
margin: 0 auto;
}

.article-view .article .article-footer {
display: flex;
flex-wrap: wrap;
row-gap: 1.5rem;
width: 100%;
}

.article-view .article .article-footer .article-tags {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
font-size: 1rem;
font-style: italic;
font-weight: 500;
}

.article-view .article .article-footer .article-date {
font-weight: 500;
width: 100%;
}

/*--- Medium Screen Size ---*/

@media screen and (max-width:1200px) {

#menu-container #menu-view #menu,
.feed-view,
.article-view {
width: calc((100% / 3) * 2);
}

}

/*--- Small Screen Size ---*/

@media screen and (max-width:800px) {

.logo {
top: 5px;
left: 5px;
}

#menu-container {
top: 5px;
right: 5px;
}

#menu-container #menu-view {
width: 100%;
margin: 0;
outline: 0 !important;
}

#menu-container #menu-view #menu {
width: calc(100% - 120px);
padding: 100px 0;
}

#menu-container #menu-view #menu p {
font-size: 2.5rem;
}

.feed-view,
.tags-view,
.article-view {
width: calc(100% - 120px);
padding: 100px 0;
}

.feed-view .article h1.article-title,
.tags-view .article h1.article-title {
font-size: 2.5rem;
}

.article-view .article h1.article-title {
font-size: 2.5rem;
}

.article-view .article .article-body p,
.article-view .article .article-body blockquote {
font-size: 1.5rem;
}

.article-view .article .article-body blockquote::before {
top: -0.5rem;
left: -2.25rem;
font-size: 3rem;
}

.article-view .article .article-body ol,
.article-view .article .article-body ul {
padding: 0 0 0 1.25rem;
font-size: 1.5rem;
}

.article-view .article .article-body blockquote {
flex: calc(100% - 2em);
margin: 0.5rem 1rem 0 1rem;
}

.article-view .article .article-body pre {
font-size: 1.25rem;
}

.article-view .article .article-body img {
border-radius: 0.5rem;
margin: 2rem auto 1rem auto;
}

}

/*--- Dark Mode ---*/

@media (prefers-color-scheme: dark) {
:root {
--black: #fff;
--black-dim: #fff7;
--black-dark: #fff1;
--white: #0a0a0a;
--white-dim: #0a0a0a77;
--white-dark: #0a0a0a11;
}

/* Dark Mode reverses black and white */

}