/* yeneko's Den common style */

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

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

body {
    min-width: 400px;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

a {
    display: inline flow-root;
    color: inherit;
}

img {
    display: block;
}

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

h5, h6 {
    margin: 5px 0;
}

/* 
  common 
*/

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

/* responsive */

.column {
    display: inline flow-root;
    vertical-align: middle;
    width: 33%;
}
@media screen and (max-width: 600px) {
    .column {
        display: block flow-root;
        width: 100%;
    }
}

/* navbar */

#navbar {
    position: fixed;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 44px;
    line-height: 44px;
    overflow: visible;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}

.navbutton {
    float: left;
    padding: 0 15px;
    text-decoration: none;
}

#navbutton-home {
    height: 48px;
    margin: -2px 10px 0 15px;
    padding: 0 3px 0 0;
    border-radius: 50%;
}
#navbutton-home > img {
    height: 48px;
}

#navbutton-about {
    float: right;
}

/* header and footer */

header p {
    font-style: italic;
}

#footer {
    padding-top: 60px;
    padding-bottom: 70px;
    text-align: center;
}

/* 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 {
    padding-left: 30px;
    padding-right: 30px;
}

.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(224, 224, 224);
    --light-dim: rgb(200, 200, 200);
    --light-bright: rgb(244, 244, 244);
}

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

footer {
    color: var(--light-dim);
}

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

.text-accent {
    color: var(--accent-bright);
}

.navbutton:hover {
    color: var(--accent);
    background-color: var(--light-bright);
}

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

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

/*
  fonts
*/

@font-face {
    font-family: 'Mikatz';
    font-weight: 300;
    font-style: normal;
    font-stretch: normal;
    src: url(../mikatz-fonts/MikatzLight.woff2);
}

@font-face {
    font-family: 'Mikatz';
    font-weight: 300;
    font-style: italic;
    font-stretch: normal;
    src: url(../mikatz-fonts/MikatzLightItalic.woff2);
}

@font-face {
    font-family: 'Mikatz';
    font-weight: 600;
    font-style: normal;
    font-stretch: normal;
    src: url(../mikatz-fonts/MikatzSemiBold.woff2);
}

@font-face {
    font-family: 'Mikatz';
    font-weight: 600;
    font-style: italic;
    font-stretch: normal;
    src: url(../mikatz-fonts/MikatzSemiBoldItalic.woff2);
}

@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: 300;
    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, #navbar {
    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, #navbar {
    font-size: 1.125rem;
    font-weight: 200;
}
