/* 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-medium";
    src: url("../fonts/as-medium.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 {
    --b: #333;
    --h: #555;
    --g: #888;
    --l: #369;
    --a: #00f;
    --w: #fff;
}

* {
    box-sizing: border-box;
}
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font: 1.6rem/2 as-regular, sans-serif;
    -webkit-font-smoothing: antialiased;
    padding: 1rem;
    background: var(--w);
    color: var(--b);
}

h1,
h2,
h3,
h4 {
    font-family: as-bold;
    letter-spacing: 0.1rem;
    line-height: 1;
    margin: 0 0 0;
    color: var(--h);
    opacity: 0.8;
}
* + h2,
* + h3,
* + h4 {
    margin: 1.6rem 0 0;
}
h1 + h2,
h2 + h3,
h3 + h4 {
    margin: 0;
}
h2.years + h3 {
    margin-top: 1rem;
}
b,
strong {
    font-family: as-medium;
}
i,
em {
    font-family: as-regular-italic;
}

.wrap {
    max-width: 880px;
    margin: 0 auto;
}
.pad {
    padding: 2rem 0;
}

header div.pad {
    padding: 1rem 0 2rem;
}
footer div.pad {
    padding: 2rem 0 1rem;
}

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

a,
a:visited {
    color: var(--l);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 0.5px;
    text-underline-offset: 5px;
}
a:hover,
a:active {
    color: var(--a);
    text-decoration-style: solid;
}
.site-title a,
.site-title a:visited {
    color: var(--h);
    text-decoration: none;
}
.recipe-title a {
    text-decoration: none;
}
.recipe-title a:hover {
    text-decoration: underline;
}

.recipe p,
.recipe ol li {
    hyphens: auto;
}

sup {
    padding-left: 6px;
    font-weight: 600;
}

img {
    max-width: 100%;
    height: auto;
    border: 1px solid #f2f2f2;
}

blockquote {
    border-left: 3px solid var(--l);
    padding: 0.1rem 1rem;
    margin: 1rem 0;
}
pre,
ul,
ol,
table {
    margin: 1rem 0 0;
    padding: 0 1rem;
}
ol {
    padding-left: 2rem;
}
pre {
    white-space: pre-wrap;
}
code {
    font-size: 0.92rem;
}
.g,
pre,
.meta {
    color: var(--g);
}
ol li {
    margin-bottom: 1.2rem;
}

.related-pages,
.recipes,
.cats {
    list-style-type: none;
    padding-left: 0;
    margin-top: 1rem;
}

.recent-list,
.recipe-list,
.search-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}
.recent-item,
.recipe-item,
.search-item {
    flex: 100%;
    padding-bottom: 10px;
}

.folder,
.folder-home {
    width: 20px;
    height: auto;
    margin: 0 10px -5px 0;
    border: 0;
}
.folder-home {
    margin-left: -10px;
}
.cat {
    font-size: 90%;
    color: var(--g);
}

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

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

footer p,
.meta {
    font-size: 90%;
}
.meta {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px dashed var(--g);
}

/* desktop + */
@media only screen and (min-width: 768px) {
    body {
        font-size: 1.65rem;
        padding: 1rem;
    }
    header div.pad {
        padding: 2rem 0;
    }
    footer div.pad {
        padding: 2rem 0;
    }
    hr.half {
        width: 50%;
    }
    .txt,
    ol {
        width: 85%;
    }
    nav {
        width: 200px;
        margin-top: -20px;
        float: right;
        text-align: right;
    }
    .recent-item,
    .recipe-item,
    .search-item {
        flex: 40%;
        padding-bottom: 20px;
    }
    h1,
    h2,
    h3,
    h4 {
        line-height: normal;
    }
}
