/* yeneko's Den common style */

html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}

:target {
    scroll-margin-top: 30px;
}

body {
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
}

img {
    display: block;
}

h1, h2, h3, h4 {
    margin: 10px 0;
}

h5, h6 {
    margin: 5px 0;
}

/* 
  common 
*/

.container {
    display: flow-root;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation. Home and security retain their fixed positioning. */
#navbar {
    position: fixed;
    top: 0;
    z-index: 1;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.16);
}

.den-nav {
    color: var(--light);
    background: var(--dark);
    font: 200 16px/1.4 'Ubuntu Sans', sans-serif;
}
.den-nav .container {
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(1180px, 100%);
    min-height: 56px;
    padding: 0 36px;
}
.den-nav a {
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
}
.den-nav a:hover, .den-nav a[aria-current] {
    color: var(--accent-bright);
}
.den-nav a:last-child {
    margin-left: auto;
}
.den-home {
    gap: 9px;
    white-space: nowrap;
}
.den-home img {
    border-radius: 50%;
}
.nav-short {
    display: none;
}
@media (max-width: 650px) {
    .den-nav .container {
        gap: 20px;
        padding-inline: 20px;
        font-size: 15px;
    }
    .den-home span, .nav-label {
        display: none;
    }
    .nav-short {
        display: inline;
    }
}
@media print {
    .den-nav {
        display: none;
    }
}

/* header and footer */

header p {
    font-style: italic;
}

.den-footer {
    margin-top: 48px;
    border-top: 1px solid rgb(57, 55, 53);
    background: var(--dark);
    color: var(--light-dim);
    font: 200 0.9rem/1.6 'Ubuntu Sans', sans-serif;
}

.den-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 32px;
    width: min(1180px, 100%);
    padding: 28px 36px 32px;
}

.den-footer p {
    margin: 0;
}

.den-footer a {
    text-decoration: none;
}
.den-footer-license {
    white-space: nowrap;
}
.den-footer a:hover {
    color: var(--accent-bright);
    text-decoration: underline;
}

.den-footer-wordmark {
    margin-left: auto;
    color: var(--light-bright);
    font: 200 1.75rem/1.3 'Ubuntu Sans', sans-serif;
    letter-spacing: 0.015em;
    white-space: nowrap;
}

.wordmark-muted {
    color: rgb(140, 135, 128);
}
.wordmark-dot {
    color: var(--accent);
}

@media screen and (max-width: 650px) {
    .den-footer-inner {
        padding: 24px 20px;
        align-items: flex-start;
        flex-direction: column;
    }
    .den-footer-wordmark {
        margin-left: 0;
        font-size: 1.5rem;
    }
}

/* article content */

.article-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: justify;
}

.article-content > div {
    padding-left: 30px;
    border-left: 1px solid rgb(139, 82, 61);
}
.article-content > div div,
.article-content details {
    padding-left: 30px;
    padding-right: 30px;
}
.article-content details[open] {
    padding-bottom: 10px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    padding-top: 0.5lh;
}

/*
  colors
*/

:root {
    --accent: rgb(248, 108, 58);
    --accent-bright: rgb(255, 148, 110);
    --dark: rgb(32, 32, 32);
    --light: rgb(216, 216, 216);
    --light-legacy: rgb(224, 224, 224);
    --light-dim: rgb(200, 200, 200);
    --light-bright: rgb(240, 240, 240);
}

html, body {
    color: var(--light);
    background-color: var(--dark);
}


h1, h2, h3, h4, h5, h6 {
    color: var(--light-bright);
}

.theme-invert {
    color: var(--dark);
    background-color: var(--light-legacy);
}

.theme-invert h1 {
    color: var(--dark);
}

/*
  fonts
*/

@font-face {
    font-family: 'Ubuntu Sans';
    font-weight: 100;
    font-style: normal;
    font-stretch: normal;
    src: url(../ubuntu-fonts/UbuntuSans-Thin-latin.woff2);
}

@font-face {
    font-family: 'Ubuntu Sans';
    font-weight: 200;
    font-style: normal;
    font-stretch: normal;
    src: url(../ubuntu-fonts/UbuntuSans-ExtraLight-latin.woff2);
}

@font-face {
    font-family: 'Ubuntu Sans';
    font-weight: 200;
    font-style: italic;
    font-stretch: normal;
    src: url(../ubuntu-fonts/UbuntuSans-ExtraLightItalic-latin.woff2);
}

@font-face {
    font-family: 'Ubuntu Sans Mono';
    font-weight: 300;
    font-style: normal;
    font-stretch: normal;
    src: url(../ubuntu-fonts/UbuntuSansMono-Light-latin.woff2);
}

html, body {
    font-weight: 400;
    font-size: medium;
    font-family: 'Mikatz', serif;
    line-height: 1.5;
}

code, kbd, pre, samp {
    font-size: medium;
    font-family: 'Ubuntu Sans Mono', monospace;
}

b, strong {
    font-weight: 600;
}

h1, h2, h3, h4, h5, h6, header {
    font-family: 'Ubuntu Sans', sans-serif;
}

h1 {
    font-size: 3.0rem;
    font-weight: 100;
}

h2 {
    font-size: 2.25rem;
    font-weight: 100;
}

h3 {
    font-size: 1.5rem;
    font-weight: 200;
}

h4, header {
    font-size: 1.375rem;
    font-weight: 200;
}

h5 {
    font-size: 1.25rem;
    font-weight: 200;
}

h6 {
    font-size: 1.125rem;
    font-weight: 200;
}
