:root {
    --gap: 24px;
    --content-gap: 20px;
    --nav-width: 1024px;
    --main-width: 720px;
    --header-height: 60px;
    --footer-height: 60px;
    --radius: 8px;
    --theme: rgb(255, 255, 255);
    --entry: rgb(255, 255, 255);
    --primary: rgb(30, 30, 30);
    --secondary: rgb(108, 108, 108);
    --tertiary: rgb(214, 214, 214);
    --content: rgb(31, 31, 31);
    --hljs-bg: rgb(28, 29, 33);
    --code-bg: rgb(245, 245, 245);
    --border: rgb(238, 238, 238);
}
@font-face {
    font-family: 'PT Sans Narrow';
    src: url('/fonts/PTSansNarrow-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

*,
::after,
::before {
    box-sizing: border-box;
}
html {
    -webkit-tap-highlight-color: transparent;
    overflow-y: scroll;
}
html {
    font-family: sans-serif;
    line-height: 1.15;
    text-size-adjust: 100%;
}
.list {
    background: var(--code-bg);
}
a,
button,
body,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
}
body {
    font-family: 'PT Sans Narrow', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    word-break: break-word;
    background: var(--theme);
    letter-spacing: 1.5px;
}
body,
figure,
ul {
    margin: 0px;
}
body {
    margin: 0px;
}
article,
aside,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
table {
    display: block;
}
article,
aside,
footer,
header,
nav,
section,
figcaption,
figure,
main {
    display: block;
}
.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: calc(var(--nav-width) + var(--gap) * 2);
    margin-inline: auto;
    line-height: var(--header-height);
}
.logo,
#menu {
    display: flex;
    margin: auto var(--gap);
}
.logo {
    flex-wrap: inherit;
}
a {
    text-decoration: none;
}
.nav a {
    display: block;
}
.logo a {
    font-size: 24px;
    font-weight: 700;
}
a {
    background: transparent;
}
a:active,
a:hover {
    outline-width: 0px;
}
.lang-switch li,
.lang-switch ul,
.logo-switches {
    display: inline-flex;
    margin: auto 4px;
}
.logo-switches {
    flex-wrap: inherit;
}
button,
input,
textarea {
    padding: 0px;
    font: inherit;
    background: 0px 0px;
    border: 0px;
}
.top-link:focus,
#theme-toggle:focus {
    outline: 0px;
}
button#theme-toggle {
    font-size: 26px;
    margin: auto 4px;
}
button,
input,
optgroup,
select,
textarea {
    font-family: sans-serif;
    font-size: 100%;
    line-height: 1.15;
    margin: 0px;
}
button,
input {
    overflow: visible;
}
button,
select {
    text-transform: none;
}
svg:not(:root) {
    overflow: hidden;
}
body:not(.dark) #sun {
    display: none;
}
ul {
    padding: 0px;
}
#menu {
    list-style: none;
    word-break: keep-all;
    overflow-x: auto;
    white-space: nowrap;
}
#menu a {
    font-size: 16px;
}
#menu li + li {
    margin-inline-start: var(--gap);
}
.main {
    position: relative;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    max-width: calc(var(--main-width) + var(--gap) * 2);
    margin: auto;
    padding: var(--gap);
}
.buttons,
.main .profile {
    display: flex;
    justify-content: center;
}
.main .profile {
    align-items: center;
    min-height: calc(100vh - var(--header-height) - var(--footer-height) - (var(--gap) * 2));
    text-align: center;
}
img {
    display: block;
    max-width: 100%;
}
.profile img {
    display: inline-table;
    border-radius: 50%;
}
img {
    border-style: none;
    vertical-align: middle;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0px;
    margin-bottom: 0px;
}
.profile .profile_inner h1 {
    padding: 12px 0px;
}
h1 {
    font-size: 2em;
}
.social-icons {
    padding: 12px 0px;
}
.social-icons a:not(:last-of-type) {
    margin-inline-end: 12px;
}
.social-icons a svg {
    height: 26px;
    width: 26px;
}
.footer,
.top-link {
    font-size: 12px;
    color: var(--secondary);
}
.footer {
    max-width: calc(var(--main-width) + var(--gap) * 2);
    margin: auto;
    padding: calc((var(--footer-height) - var(--gap)) / 2) var(--gap);
    text-align: center;
    line-height: 24px;
}
.footer span {
    margin-inline: 1px;
}
.footer a {
    color: inherit;
    border-bottom: 1px solid var(--secondary);
}
.footer a:hover {
    border-bottom: 1px solid var(--primary);
}
.footer a:hover,
.top-link:hover {
    color: var(--primary);
}
.footer span:last-child {
    white-space: nowrap;
}
.top-link {
    visibility: hidden;
    position: fixed;
    bottom: 60px;
    right: 30px;
    z-index: 99;
    background: var(--tertiary);
    width: 42px;
    height: 42px;
    padding: 12px;
    border-radius: 64px;
    transition: visibility 0.5s ease 0s, opacity 0.8s linear 0s;
}
.top-link,
.top-link svg {
    filter: drop-shadow(0 0 0 var(--theme));
}
@media screen and (max-width: 768px) {
    :root {
        --gap: 14px;
    }
}
@media screen and (max-width: 768px) {
    .profile img {
        transform: scale(0.85);
    }
}
@media screen and (max-width: 768px) {
    .footer {
        padding: calc((var(--footer-height) - var(--gap) - 10px) / 2) var(--gap);
    }
}
@media screen and (max-width: 900px) {
    .list .top-link {
        transform: translateY(-5rem);
    }
}
@media (prefers-reduced-motion) {
    .terms-tags a:active,
    .button:active,
    .post-entry:active,
    .top-link,
    #searchResults .focus,
    #searchResults li:active {
        transform: none;
    }
}
