/* || GENERAL STYLES - mobile first */
@font-face {
    font-family: "as-regular";
    src: url("../fonts/as-regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "as-regular-italic";
    src: url("../fonts/as-regular-italic.woff2") format("woff2");
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "as-bold";
    src: url("../fonts/as-bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

:root {
    /* body */
    --b: #222;
    /* header & nav links */
    --h: #555;
    /* grey */
    --g: #888;
    /* accent */
    --a: #049;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font: 1.7rem/1.65 as-regular; /* 17px */
    padding: 0.1rem 1.7rem;
    color: var(--b);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: as-bold;
    margin: 0 0 0;
    color: var(--h);
}

h1 {
    font-size: 5rem;
    letter-spacing: 0.01rem;
}

h2,
h3,
h4 {
    line-height: 1.2;
}

* + h2,
* + h3,
* + h4 {
    margin: 2.4rem 0 0;
}

h1 + h2,
h2 + h3,
h3 + h4 {
    margin-top: 2.4rem;
}

p + p,
p + ul,
p + ol,
p + blockquote {
    margin-top: 2.4rem;
}

b,
strong {
    font-family: as-bold;
    opacity: 0.8;
}
i,
em,
oblique {
    font-family: as-regular-italic;
}

.wrap {
    max-width: 56rem;
    margin: 0 auto;
}

.pad {
    padding: 3.4rem 0;
}

header {
    border-bottom: 1px dashed var(--g);
}
header.pad {
    padding-top: 1.7rem;
}

footer {
    border-top: 1px dashed var(--g);
}

a,
a:visited {
    color: var(--a);
    text-decoration: underline solid 1px;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration: none;
}

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

h1 a,
h2 a,
h3 a,
h4 a {
    color: var(--h) !important;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 3px;
    border: 0;
}

blockquote {
    border-left: 4px solid var(--h);
    padding-left: 2rem;
    margin-left: 2rem;
    font-style: italic;
}

h2 + ul,
h3 + ul,
h4 + ul,
h2 + ol,
h3 + ol,
h4 + ol {
    margin-top: 1rem;
}

h1 a,
h1 a:visited,
h1 a:hover,
.flip a {
    text-decoration: none;
    border: 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-flex;
    margin-right: 3.4rem;
}

nav ul li a {
    text-decoration: none;
    border-bottom: 3px solid #fff;
}

nav ul li.selected a {
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-decoration-color: var(--h);
    text-underline-offset: 6px;
}

.years {
    list-style-type: none;
    padding-left: 0;
    overflow-x: hidden;
    margin-top: 1.7rem;
}

.years li {
    margin: 0 0 0.34rem;
}

.years li:before {
    float: left;
    width: 0;
    white-space: nowrap;
    content: ". . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . "
        ". . . . . . . . . . . . . . . . . . . . ";
    color: var(--g);
}

.years a:first-child {
    padding-right: 1rem;
    background: #fff;
}
.years a + span {
    float: right;
    padding-left: 1rem;
    background: #fff;
}

.years span {
    font-size: 1.5rem !important;
    color: var(--h);
}

.years li a {
    text-decoration: none;
}
.years li a:hover {
    text-decoration: underline solid 1px;
}

lh {
    font-weight: 600;
    display: block;
    margin: 0.85rem 0;
}

hr {
    border: 0;
    border-top: 1px dashed var(--g);
    margin: 5rem 0;
}

hr.sm {
    margin: 3.4rem 0;
}

.not-home {
    opacity: 0.6;
}

.post h1 {
    font-size: 3.2rem;
    border-bottom: 1px dashed var(--g);
    padding-bottom: 3.4rem;
}

.post p {
    text-align: justify;
    text-justify: inter-word;
}

.post p:not(.posted):not(.post-footer):not(.post-nav) {
    text-indent: 2rem;
}

aside,
.hide {
    display: none;
}

.posted,
.post-footer,
.post-nav {
    font-size: 1.45rem;
    margin-top: 3.2rem;
    padding: 0;
}

.post-footer,
.post-nav {
    color: var(--h);
    margin: 0;
}

.post-nav {
    text-align: right !important;
}

article.search-item {
    margin-bottom: 0.85rem;
}

.search-input,
input,
textarea {
    line-height: 1.8;
    padding: 0.34rem;
    min-width: 16rem;
}

.search-input {
    min-width: 22rem;
    margin: 1.7rem 0;
    border: 1px solid var(--g);
    border-radius: 3px;
}

.cats a + a,
.tags a + a {
    margin-left: 5px;
}

form label {
    font-size: 90%;
    padding: 0.34rem;
}

::placeholder {
    font-family: as-regular;
}

footer p {
    margin-top: 0;
}

.flip {
    font-size: 5rem;
    letter-spacing: 0.01rem;
    margin: 0;
    transform: scale(1, -1);
}

.mid {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.dt {
    display: none;
}

pre {
    white-space: pre-wrap;
}

code {
    font-family: ui-monospace, monospace;
    font-size: 1.4rem;
    padding: 0.3rem;
}

pre,
code {
    background: #eee;
}

pre > code {
    display: inline-block;
    background: none;
    padding: 10px;
}

/* || DESKTOP + */
@media only screen and (min-width: 768px) {
    .mob {
        display: none;
    }

    .dt {
        display: inline;
    }

    .dt a {
        cursor: pointer;
    }

    body {
        padding: 0 1.7rem;
    }

    header div.pad,
    footer div.pad {
        padding: 3.4rem 0;
    }

    .wide {
        max-width: 800px;
        margin-left: -100px;
    }

    aside {
        display: block;
        padding: 2.7rem;
        max-width: 50%;
        float: left;
        margin: -1.7rem 1.7rem -1.7rem -4.8rem;
        font-size: 120%;
        font-weight: bold;
        color: var(--a);
        opacity: 0.8;
    }

    .post p:nth-of-type(2) {
        font-size: 2rem;
        max-width: 700px;
        margin: 0 -26px;
        line-height: 1.55;
        hyphens: auto;
        text-align: left;
        color: #000;
    }

    /* post content only */
    .post p:not(.posted):not(.post-footer):not(.post-nav) {
        text-indent: 0;
    }
}
