:root {
    --background-color: rgb(250, 248, 246);
    --primary: #2E2E2E;
    --primary-type: "Newsreader", Times New Roman, serif;
    --primary-type-weight: 500;
    --secondary-type: 'Datatype', monospace;
    --secondary-type-weight: 300;
    --secondary-letter-spacing: .01rem;
}

body {
    font-family: var(--primary-type);
    color: var(--primary);
    background-color: var(--background-color);
    position: relative;
    max-width: 1200px;
    margin: 2em auto;
    font-size: 1.3em;
}

.main {
    max-width: 75vw;
    margin: 2em auto;
}

/* Basic Styles */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: var(--primary-type-weight);
    line-height: 1.25;
}

a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px; 
}

a:hover {
    text-decoration-style: solid;
}

p {
    line-height: 1.75;
}

li {
    list-style-type: none;
}

ul, ol {
    padding: 0;
    list-style-position: inside;
}

hr {
    border: none;
    border-top: 1px dashed var(--primary);
}

nav {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

table {
    border: 1px dashed var(--primary);
    width: 100%;
    font-size: .75em;
    text-align: center;
    border-collapse: collapse; 
}

th, td {
    border: 1px dashed var(--primary);
    padding: .25em;
}

.link-button {
    text-decoration: none;
}

button,
.link-button {
    height: auto;
    font-family: var(--secondary-type);
    font-weight: var(--secondary-type-weight);
    letter-spacing: var(--secondary-letter-spacing);
    color: var(--primary);
    font-size: 1.25rem;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
    padding: .5rem .7rem;
    background-color: transparent;
}

button span,
.link-button span {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
}

button:hover span,
.link-button:hover span {
    text-decoration-style: solid;
}

button:hover,
.link-button:hover {
    background: rgba(80,80,80,0.1);
    cursor: pointer;
}

button::before,
.link-button::before {
    content: "[ ";
}

button::after,
.link-button::after {
    content: " ]";
}

/* Styles */

.logo {
    width: 7rem;
    padding: .5rem .7rem;
}

.dialog-header {
    border-bottom: 1px dashed var(--primary);
    text-align: center;
    padding-top: 21px;
    padding-bottom: 20px;
}

.dialog-header button {
    position: absolute;
    right: 10px;
    top: 10px;
}

.dialog {
    font-family: var(--secondary-type);
    font-weight: var(--secondary-type-weight);
    letter-spacing: var(--secondary-letter-spacing);
}

.dialog-header,
.dialog-body {
    padding-left: 50px;
    padding-right: 50px;
}

.dialog-body {
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: .75em;
}

.dialog h2 {
    font-weight: var(--secondary-type-weight);
    font-size: 16px;
    margin: 0;
}

.dialog-backdrop {
  display: none;
  background-image: url('../img/modal-bg__low-res.jpg');
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
  position: fixed;
  overflow-y: auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.description {
    font-family: var(--secondary-type);
    font-weight: var(--secondary-type-weight);
    letter-spacing: var(--secondary-letter-spacing);
    font-size: 20px;
}

.index {
    border-top: 1px dashed var(--primary);
    /*padding: 5px 30px;*/
}

.index article {
    display: flex;
    gap: 25px;
    padding: 25px 0;
    align-items: center;
    border-bottom: 1px dashed var(--primary);
}

.index .meta {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
}

.index .thumbnail {
    max-width: 8em;
}

.index .thumbnail img {
    width: 100%;
}

.index .tags {
    width: 100%;
    padding-top: 15px;
}

.publish-date {
    font-family: var(--secondary-type);
    font-weight: var(--secondary-type-weight);
    letter-spacing: var(--secondary-letter-spacing);
}

.article-description {
    font-family: var(--secondary-type);
    font-weight: var(--secondary-type-weight);
    letter-spacing: var(--secondary-letter-spacing);
    font-size: .75em;
    line-height: 1.5;
}

.article-img-caption {
    font-size: .75em;
    font-style: italic;
    margin-top: .5em;
}

.index .meta .article-name a {
    font-size: 28px;
    text-decoration: none;
}

.index .meta .article-name a:hover {
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 1px; 

}

/* Tags component styling only */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    align-self: center;
    min-width: 4em;
}

.tag {
    font-family: var(--secondary-type);
    font-weight: var(--secondary-type-weight);
    letter-spacing: var(--secondary-letter-spacing);
    border: 1px solid silver;
    padding: .5rem;
    /*text-transform: uppercase;*/
    font-size: .75em;
}

.site-disclaimer {
    display: flex;   
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    font-size: .75em;
    line-height: 1.25;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    border-top: 1px dashed var(--primary);
    margin: 0;
    padding: .5em 1em;
    background-color: var(--background-color);
    font-family: var(--secondary-type);
    font-weight: var(--secondary-type-weight);
    letter-spacing: var(--secondary-letter-spacing);
}

/* Post Page Styles */

.article {
    text-align: center;
    max-width: 640px;
    margin: auto;
}

.article .meta {
    margin: 1.5em 1.25em;
}

.article .meta .publish-date {
    display: block;
    padding-top: 10px;
    font-size: .75em;
}

.article .tags {
    border-top: var(--primary) dashed 1px;
    border-bottom: var(--primary) dashed 1px;
    padding: 20px 0;
}

.article img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.article .content {
    text-align: left;
}

.footnote-ref {
    line-height: 0;
}

.footnotes {
    padding: 20px 0;
    font-size: .75em;
    text-align: left;
}

.footnotes li {
    list-style-type: decimal;
}

.footnotes-sep {
    margin: 0;
}

.footnote-item {
    margin: 1em 0;
}

.footnote-item p {
    display: inline;
}

/* Helper Classes */
.hidden {
    display: none;
}

[role="dialog"] {
    width: 475px;
    box-sizing: border-box;
    padding: 0;
    background-color: var(--background-color);
    border: 1px dashed var(--primary);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(
      -50%, -50%
    );
}

.dialog-backdrop.active {
  display: block;
}

.no-scroll {
  overflow-y: auto !important;
}

/* this is added to the body when a dialog is open */
.has-dialog {
  overflow: hidden;
}

/* Mobile Styles */
@media screen and (max-width: 980px) {
    /*main {
        max-width: 70vw;
    }*/

    figure {
        margin: 1em;
    }

    .index article {
        flex-direction: column;
        align-items: self-start;
        gap: 15px;
    }

    .article .meta {
        margin: 1.5em 0;
    }

    .site-disclaimer {
        padding: .75em;
    }

    [role="dialog"] {
        width: 90%;
    }

    .dialog-body {
        padding-left: 30px;
        padding-right: 30px;
        font-size: 14px;
    }

    .logo {
        width: 5.5rem;
    }
}