/* Reset some basic elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Constants */
:root {
    /* Colors */
    --color-primary: #76453b;
    --color-secondary: #43766C;
    --color-neutral: #F8FAE5;
    --color-accent: #B19470;
    --color-bright: #f5f5f5;
    
    /* Previous colors */
    /* --color-accent: #B19470; */
    /* --color-primary: #001524;
    --color-neutral: #FDE5D4;
    --color-secondary: #72a079; */

    --text-color: var(--color-primary);
    --text-color-alt: var(--color-neutral);

    --background-color: var(--color-neutral);

    --text-background-color: var(--color-bright);



    /* Spacing */
    /* --nav-size: 25vw; */
    --nav-size: max(25vw, 7.5em);
    --font-size: 1.25em;
}

@font-face{
    font-family:d-din;
    font-style:normal; font-weight:400;
    src:local('D-DIN'),
    url(https://fonts.cdnfonts.com/s/23112/D-DIN.woff)  format('woff')
}
@font-face{
    font-family:d-din;
    font-style:italic; font-weight:400;
    src:local('D-DIN'),
    url(https://fonts.cdnfonts.com/s/23112/D-DIN-Italic.woff) format('woff')
}
@font-face{
    font-family:d-din;
    font-style:normal; font-weight:700;
    src:local('D-DIN'),
    url(https://fonts.cdnfonts.com/s/23112/D-DIN-Bold.woff) format('woff')
}

body {
    font-family: 'D-DIN', Verdana, sans-serif;

    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    
    /* Default is 16px */
    /* Effectively zooming in */
    font-size: var(--font-size);
}

@media screen and (max-width: 720px) {
    body {
        font-size: var(--font-size);
    }
}

/* orientation's breakpoint is at square */
@media screen and (orientation: portrait) {
    /* main {
        padding-top: var(--nav-size);
    } */
    :root {
        /* Spacing */
        --nav-size: 2.5em;
    }
}



/* Blog menu styles */
.post-title-row a {
    color: inherit;
    text-decoration: none;
}

/* post list should take full width of the container */
#post-list {
    width: 80%;
    max-width: 48em;
    box-sizing: border-box;
    display: block;
}

.post-list-entry {
    list-style: none;
    background: var(--text-background-color, #fff);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.08);
    border-radius: 0.5em;
    margin: 1em 0;
    padding: 1.25em 1.5em;
    transition: box-shadow 0.2s;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: block;
}
.post-list-entry:hover {
    box-shadow: 8px 12px 8px rgba(0,0,0,0.12);
    cursor: pointer;
}

.post-list-entry .post-title-row a {
    font-size: 1.5em;
    font-weight: bold;
    display: block;
    margin-bottom: 0.25em;
}

.post-list-entry .post-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5em;
}

.post-list-entry .post-meta-tags {
    display: flex;
    flex: 1 1 auto;
    text-align: left;
    min-width: 0;
}

.post-list-entry .post-meta-date {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
    color: #888;
    font-size: 0.95em;
    margin-left: 1em;
    white-space: nowrap;
}

.post-list-entry .post-meta-abstract {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 0.5em;
}

/* Hide post-content when not displaying anything */
.post-content.hidden {
    display: none !important;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
    font-weight: bold;
}