/* CSS document */

html, body, div, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
}

div.container {
    max-width: 60em;
    padding: 1em;
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-gap: 1em;
    margin: 0 auto;
}

img {
    width: 100%;
    display: block;
    margin-top: 1em;
}

figcaption {
    font-family: "owners", sans-serif;
    font-weight: 300;
    font-style: italic;
    letter-spacing: .1em;
    padding: .5em 0em;
    color: #5e503f;
}

article {
    text-decoration: none;
}

nav {
    font-family: "owners", sans-serif;
    font-weight: 300;
    font-style: normal;
    letter-spacing: .1em;
    color: #22333b;
}

nav ul li {
    display: inline;
    margin-right: 1em;
    color: #22333b;
    margin-bottom: 1em;
}

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

ul {
    list-style-type: none;
}

h1 {
    width: 10em;
    margin-bottom: 2em;
}

h2 {
    font-family: "subway-berlin-sc", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 5em;
    text-decoration: none;
    color: #22333b;
    margin-bottom: .5em;
}

h3 {
    font-family: "owners", sans-serif;
    font-weight: 500;
    font-style: normal;
    letter-spacing: .1em;
    color: #5e503f;
}

p {
    text-decoration: none;
    color: #0a0908;
    padding-bottom: 2em;
    font-family: "owners", sans-serif;
    font-weight: 300;
    font-style: normal;
    letter-spacing: .1em;
}

a {
    text-decoration: none;
}

section.mainstory h2 {
    padding-top: .5em;
    font-size: 3em;
}

section.secondarystory h2 {
    padding-top: .5em;
    font-size: 2em;
}

section.tertiarystory h2 {
    border-top: 1em solid #22333b;
    padding-top: .5em;
    font-size: 1em;
}

h2, li a {
    color: #22333b;
}

main.gallery {
    position: relative;
    overflow: hidden;
    padding-bottom: calc(72% + 3em);
}

main.gallery figure {
    margin: 0;
    width: calc(100% - 2em);
    position: absolute;
    opacity: 0;
    transition: opacity 0.5s;
}

main.gallery figcaption {
    font-size: 1.2em;
    font-weight: bold;
    margin: 1em 0;
    color: #5e503f;
}

input:nth-of-type(1):checked ~ main figure:nth-of-type(1),
input:nth-of-type(2):checked ~ main figure:nth-of-type(2),
input:nth-of-type(3):checked ~ main figure:nth-of-type(3),
input:nth-of-type(4):checked ~ main figure:nth-of-type(4){
    opacity: 1;
}

div.gallery input {
    display: none;
}

nav.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: .2em;
}

figure.gallery img{
    width: 50em;
    height: 50em;
    flex: 1 0 40em;
    object-fit: cover;
}

div.gallery input {
    display: none;
}
input[name="item"] {
    display: none;
}

#newsletter-form {
    display: flex;
    flex-direction: column;
    width: 15em;
    gap: 1em;
  }  

div.home-container main, div.container main {
    grid-gap: 1em;
}
  
@media (prefers-color-scheme: dark) {
    h1 {
      background-image: url("logo_2.svg");
      background-repeat: no-repeat;
      background-size: contain;
    }

    h1 img {  
        opacity: 0;  
        }  
    
    body {
        background-color: #22333b;
    }

    p, h2, nav li a {
        color: #eae0da;
    }

    figcaption, main.gallery figcaption {
    color: #C6AC8F;
    }

    aside h2, aside p {
    color: #22333b;
}

    h3 {
    color: #eae0da;
}

}

@media screen and (min-width: 40em) {
    nav ul li {
        margin-right: 1em;
    }


footer {
    background-color: #5e503f;
}

footer p {
    color: #c6ac8f;
    font-family: sans-serif;
    padding: 1em;
}

aside {
    background-color: #c6ac8f;
    padding: 1em;
}

main {
    display:grid;
}

div.home-container, div.container {
    max-width: 80em;
    padding: 1em;
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-gap: 1em;
}

header, footer {
    grid-column: 1/3;
}

div.home-container main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1em;
}

div.home-container aside {
    background: none;
    padding: 0;
    margin-top: 1em;
}

div.container aside {
    margin-top: 1em;
}

section.mainstory {
    grid-column: 2/4;
    grid-row: 1/3;
    display: flex;
}

section.mainstory a {
    flex: 1 0 12em;
    display: flex;
    flex-direction: column;
}

section.mainstory a figure {
    flex: 1 0 12em;
    display: flex;
}

section.mainstory a figure img {
    object-fit: cover;
}

section.mainstory a h2 {
    flex: 0 0 1em;
}

section.mainstory a p {
    flex: 0 0 4em;
}

section.secondarystory {
    display: flex;
}

section.secondarystory a {
    flex: 1 0 12em;
    display: flex;
    flex-direction: column;
}

section.secondarystory a figure {
    flex: 1 0 12em;
    display: flex;
}

section.secondarystory a figure img {
    object-fit: cover;
}

section.secondarystory a h2 {
    flex: 0 0 1em;
}

section.secondarystory a p {
    flex: 0 0 4em;
}

}