:root {
    --col-bg: #fefefe;
    --col-bg-code: #ffffee;
    --col-bg-nav: #fff1c4;
    --col-bg-text: #444444;
    --col-border-line: #cccccc;
    --col-link: #000000;
    --col-site-h1: #000000;
    --col-site-h2: #666666;
    --col-text: #444444;
    --col-title-h1: #000000;
    --col-title-h2: var(--col-title-h1)
}

@font-face {
    font-display: swap;
    font-family: 'Original Surfer';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/original-surfer-v25-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Noto Sans Regular';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/noto-sans-v42-latin-regular.woff2') format('woff2');
}

/*@font-face {*/
/*    font-display: swap;*/
/*    font-family: 'Noto Sans Italic';*/
/*    font-style: italic;*/
/*    font-weight: 400;*/
/*    src: url('/fonts/noto-sans-v42-latin-italic.woff2') format('woff2');*/
/*}*/

/*@font-face {*/
/*    font-display: swap;*/
/*    font-family: 'Noto Sans Bold';*/
/*    font-style: normal;*/
/*    font-weight: 600;*/
/*    src: url('/fonts/noto-sans-v42-latin-600.woff2') format('woff2');*/
/*}*/

@font-face {
    font-display: swap;
    font-family: 'Noto Sans Mono Regular';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/noto-sans-mono-v37-latin-regular.woff2') format('woff2');
}

@font-face {
    font-display: swap;
    font-family: 'Noto Sans Mono Bold';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/noto-sans-mono-v37-latin-600.woff2') format('woff2');
}

html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    color: var(--col-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body {
    background-color: var(--col-bg);
    color: var(--col-text);
    font-family: "Noto Sans Regular", sans-serif;
    font-optical-sizing: auto;
    font-size: medium;
    font-style: normal;
    font-variation-settings: "wdth" 100;
    font-weight: 400;
}

#grid {
    display: grid;
    grid-template-columns: 1fr 700px 1fr;
    width: 100vw;
}

#grid .grid-item {
    display: flex;
}

#grid .main-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

nav#nav-upper {
    background-position: right 100px;
    background-repeat: no-repeat;
    background-size: 20%;
    padding: 0.5rem 0 1rem 0;
    text-align: left;
}

nav#nav-upper h1 {
    color: var(--col-site-h1);
    font-family: "Original Surfer", sans-serif;
    font-optical-sizing: auto;
    font-size: 6.5rem;
    font-style: normal;
    font-weight: 400;
    margin-bottom: 0;
    text-align: center;
}

nav#nav-upper h2 {
    color: var(--col-site-h2);
    font-size: 1.2rem;
    font-style: italic;
    font-weight: normal;
    text-align: center;
}

nav#nav-upper ul {
    text-align: right;
}

nav#nav-upper ul li {
    color: var(--col-text);
    display: inline-block;
    font-size: 0.8rem;
    margin-left: 10px;
}

nav#nav-upper ul li a {
    text-decoration: none;
}

nav#nav-upper ul li a:hover {
    text-decoration: underline;
}

nav#nav-tags {
    background: #000000;
    border-radius: 10px;
    color: #ffffff;
    display: inline-block;
    margin-bottom: 1rem;
    padding: 2rem 0;
    text-align: center;
    width: 100%;
}

nav#nav-tags ul li {
    background-color: #444444;
    border-radius: 3px;
    color: #dddddd;
    cursor: pointer;
    display: inline-block;
    font-size: 0.7rem;
    font-weight: bold;
    margin: 0 0.2rem;
    padding: 5px 10px;
}

nav#nav-tags ul li.selected {
    background-color: #ffffff;
    color: #000000;
    display: inline-block;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 5px 10px;
}

nav#nav-article {
    background: #000000;
    border-radius: 10px;
    color: #ffffff;
    display: inline-block;
    margin-bottom: 1rem;
    padding: 2rem 0;
    text-align: center;
    width: 100%;
}

nav#nav-article h1 {
    font-size: 1.3rem;
}

main {
    border-bottom: 1px dashed var(--col-border-line);
    border-top: 1px dashed var(--col-border-line);
}

main div#list-or-articles {
    padding: 2rem;
}

div#article-rev {
    text-align: right;
    font-size: 0.8rem;
    color: #aaa;
    padding: 0.3rem 0.3rem 0.3rem 0;
    margin: 0;
}


main article.post-preview {
    margin: 0 auto 1rem auto;
}

main article.post-preview h2 {
    font-size: 1.2rem;
}

main article.post-preview time {
    color: #aaaaaa;
    font-size: 0.9rem;
}

main article.post-preview:last-child {
    margin-bottom: 0;
}

article.post-content {
    padding: 1rem 0 0 0;
}

article.post-content ul {
    margin: 0 0 1rem 2rem;
}

article.post-content ul li {
    font-size: 0.9rem;
    line-height: 1.5rem;
    margin-bottom: 0.4rem;
}

article.post-content h2 {
    cursor: pointer;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

article.post-content h2::after {
    color: #aaaaaa;
    content: " ¶";
    font-weight: normal;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

article.post-content h2:hover::after {
    opacity: 1;
}

article.post-content h3 + ul li {
    margin: 0;
}

article.post-content p {
    font-size: 0.9rem;
    line-height: 1.5rem;
    margin-bottom: 1rem;
}

article.post-content a {
    text-decoration: underline dotted #000000;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

article.post-content a:hover {
    border-bottom: none;
    text-decoration: underline;
}

article.post-content a:target {
    scroll-margin-top: 2rem;
}

article.post-content p b {
    color: #000000;
}
article.post-content p strong {
    color: #000000;
}

article.post-content p em {
    color: #000000;
    font-style: italic;
}

article.post-content div.nav-bottom-links {
    border-top: 1px dashed var(--col-border-line);
    padding: 1rem;
    text-align: center;
}
article.post-content div.nav-bottom-links a.link-prev {
    float: left;
}
article.post-content div.nav-bottom-links a.link-next {
    float: right;
}
article.post-content div.nav-bottom-links a.link-index {
    text-align: center;
}

article.post-content code {
    background-color: #eeeeee;
    border-radius: 5px;
    font-family: "Noto Sans Mono Regular", monospace;
    font-size: 0.8rem;
    padding: 0.1rem 0.5rem;
}

article.post-content pre {
    background: #ffffee;
    border: 1px solid #dddddd;
    border-radius: 10px;
    color: #000000;
    display: inline-block;
    font-family: 'Noto Sans Mono Regular', monospace;
    font-size: 0.9rem;
    line-height: 1.1rem;
    margin: 0 0 1rem 0;
    outline: none;
    overflow: hidden;
    padding: 0.5rem 1rem;
    white-space: pre;
    width: 100%;
}

article.post-content pre code {
    background-color: inherit;
    padding: 0;
}

article.post-content pre code.language-bash {
}

article.post-content pre code.language-golang {
}

article.post-content blockquote {
    border: 4px solid #eeeeee;
    border-radius: 10px;
    color: #888888;
    font-size: 0.9rem;
    line-height: 1.1rem;
    margin: 1rem;
    padding: 1rem 2rem;
}

article.post-content blockquote > p {
    font-size: inherit;
    font-style: italic;
    line-height: 1.2rem;
    margin: 0;
    padding: 0;
}

article.post-content aside {
    border-left: 4px solid #eeeeee;
    color: #888888;
    float: right;
    font-size: 0.8rem;
    font-style: italic;
    line-height: 1rem;
    margin-right: -28rem;
    padding-left: 1rem;
    width: 400px;
}

article.post-content aside > p {
    font-size: inherit;
    line-height: 1.1rem;
    margin: 0;
    padding: 0;
}

article.post-content p sup,
article.post-content ul li sup {
    all: unset;
}

article.post-content p sup a,
article.post-content ul li sup a {
    text-decoration: none;
    color: #000;
    font-family: "Noto Sans Mono Regular", monospace;
    font-weight: bold;
}

article.post-content p sup::before,
article.post-content ul li sup::before {
    content: "(";
}

article.post-content p sup::after,
article.post-content ul li sup::after {
    content: ")";
}

article.post-content div.footnotes {
    border-top: 1px dashed var(--col-border-line);
    color: #888888;
    padding: 1rem 0 0 2rem;
}

article.post-content div.footnotes hr {
    display: none;
}

article.post-content div.footnotes ol {
    margin-bottom: 1rem;
}

article.post-content div.footnotes ol li {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}


footer {
    color: var(--col-text);
    font-size: 0.9rem;
    justify-content: center;
    margin: 1rem auto;
    text-align: center;
}
