/*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;}

body {
    background-color: var(--white);
    font-family: "acumin-pro";
    font-weight: 400;
    font-style: normal;
    color: var(--almost-black);
}

:root {
    --blue: rgb(0 , 80, 255);
    --light-blue: rgb(40 , 120, 255);
    --white: rgb(255, 255, 255);
    --almost-white: rgb(240, 240, 240);
    --almost-black: rgb(24, 24, 24);
    --gray-black: rgb(36, 36, 36);
}

a {
    text-decoration: none;
}

* {
    transition: all .4s ease;
}

img {
    width: 100%;
    display: block;
    border-radius: .2em;
}

div.container, div.home-container {
    max-width: 40em;
    margin: auto;
    background-color: var(--white);
}

header h1 {
    transition: .2s ease;
}

h1 img {
    width: 6em;
}

h1 img:hover {
    transform: scale(1.08);
}

h1 img:active {
    transform: scale(.92);
}

header {
    display: flex;
    justify-content: space-between;
    background-color: var(--white);
    letter-spacing: -.04em;
    padding: 1rem;
    margin-bottom: 3rem;
    align-items: stretch;
    border-bottom: solid 1px var(--almost-black);
}

header nav ul {
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    list-style: none;
}

header nav ul li a:hover {
    color: var(--white);
    background-color: var(--blue);
    border-radius: .2em;
    padding: 0 .4em .1em;
    /* letter-spacing: .02em; */
}

header nav ul li a {
    font-weight: 500;
    font-size: 1.2em;
    color: var(--almost-black);
    transition: .2s ease;
}

h2 {
    color: rgb(24, 24, 24);
    letter-spacing: -.04em;
    text-wrap: balance;
}

section.mainstory h2, .gallery h2 {
    font-weight: 700;
    font-size: 2.4em;
    margin: .8rem 0;
    line-height: 1em;
}

section {
    margin: 1rem 1rem 3rem;
    background-color: rgb(255, 255, 255);
}

section.tertiary {
    margin: 2rem 1rem;
}

section.secondary h2, section.secondary-main h2 {
    font-weight: 700;
    font-size: 1.6em;
    margin: .8rem 0;
    line-height: 1em;
}

section.tertiary h2 {
    font-weight: 700;
    margin: 0 0 .6rem;
    font-size: 1.4em;
    line-height: 1em;
}

aside section.tertiary {
    margin-bottom: 1rem;
}

p {
    font-weight: 400;
    font-size: .9em;
    line-height: 1.4em;
    color: rgb(80, 80, 80);
    padding-bottom: 1rem;
}

p.caption {
    font-style: italic;
    font-size: .8em;
    font-weight: 300;
    margin: .2em 0 0;
    color: rgb(120, 120, 120);
    text-wrap: balance;
}

footer {
    background-color: rgb(0, 80, 255);
    color: rgb(255, 255, 255);
    padding: .6rem 1rem;
    font-size: .9em;
    margin-top: 3rem;
}

section a figure {
    overflow: hidden;
    border-radius: .2em;
}

section a figure img {
    width: 100%;
    transition: .6s;
}
  
section a:hover img {
    transform: scale(1.04);
    filter: brightness(1.1);
}

section figure.main:hover img {
    transform: none;
}

section a h2, section a p {
    transition: .1s ease;
}

section:hover a h2 {
    color: rgb(0, 80, 255);
}

section:hover a p {
    color: rgb(24, 24, 24);
}

.gallery {
    position: relative;
    margin: 2rem 1rem;
}

input {
    display: none;
}

.photos {
    display: none;
}

.photos figcaption {
    margin-top: 0.2rem;
    font-weight: 700;
    font-size: 1.6rem;
}

#photo1:checked ~ figure:nth-of-type(1),
#photo2:checked ~ figure:nth-of-type(2),
#photo3:checked ~ figure:nth-of-type(3),
#photo4:checked ~ figure:nth-of-type(4),
#photo5:checked ~ figure:nth-of-type(5),
#photo6:checked ~ figure:nth-of-type(6),
#photo7:checked ~ figure:nth-of-type(7),
#photo8:checked ~ figure:nth-of-type(8) {
    display: block;
}

.galbuttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .4em;
    margin: 3rem 0 4rem;
}

.galbuttons img {
    height: 4em;
    object-fit: cover;
    border-radius: .2rem;
}

.gallery figure.photos img {
    border-radius: .2em;
}

.galbuttons label {
    /* overflow: hidden; */
    border-radius: .2em;
}

.galbuttons label img {
    transition: .1s ease;
}

.galbuttons label:hover img {
    cursor: pointer;
    transform: scale(1.14);
    filter: brightness(1.1);
}

.gallery h2 {
    letter-spacing: -.04em;
    margin: 0 0 1rem;
}

.newsletter {
    padding-top: 0;
}

.newsletter-link {
    margin: .2rem 0 0 1rem;
    padding: 0;
}

.newsletter-link h1 {
    color: rgb(24, 24, 24);
    letter-spacing: -.04rem;
    font-weight: 400;
    font-size: 1.2em;
    transition: .1s ease;
}

.newsletter-link h1:hover {
    color: rgb(0, 80, 255);
}

form {
    margin: 0 1rem;
    padding: 0;
    border-radius: .2rem;
}

form h2 {
    font-weight: 700;
    margin-top: 4rem;
    margin-bottom: 1rem;
    font-size: 1.4em;
    line-height: 1em;
}

form h1 {
    font-weight: 700;
    font-size: 2em;
    margin: 2rem 0;
    line-height: 1em;
    color: rgb(24, 24, 24);
    letter-spacing: -.04em;
}

form section {
    margin: 0;
}

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

form li {
    margin: .8rem 0;
}

form label {
    font-weight: 400;
    color: rgb(24, 24, 24);
}

.info li {
    display: grid;
    grid-template-columns: 1fr 5fr;
}

.info input[type="text"],
.info input[type="email"] {
    padding: 0.2rem .3rem .3rem;
    border-radius: 0.2rem;
    font-size: 1rem;
}

form input[type="checkbox"] {
    margin-right: .4rem;
}

input[type="text"],
input[type="email"],
input[type="checkbox"] {
    border: 1px solid rgb(120, 120, 120);
    background: rgb(255, 255, 255);
    display: inline-block;
}

section.letters ul li input[type="checkbox"] {
	transform: scale(1.2);
	cursor: pointer;
}

.letters label {
    margin: 0;
}

.button {
    margin: 4rem 0;
}

.button button {
    background-color: rgb(0, 80, 255);
    color: rgb(255, 255, 255);
    padding: 0.6rem .8rem;
    font-size: 1rem;
    border: none;
    border-radius: 0.2rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.button button:hover {
    /* transform: scale(1.04); */
    background-color: rgb(40, 120, 255);
}

.button button:active {
    transform: scale(0.96);
    background-color: rgb(0, 80, 255);
}

.moose {
    display: none;
}

article {
    border-bottom: solid 1px rgb(24, 24, 24);
    margin-bottom: 4rem;
}

article .mainstory {
    margin-bottom: 0;
}

footer.form {
    margin-top: 17em;
}

@media screen and (prefers-color-scheme: dark) {

    body {
        background-color: var(--gray-black);
        color: var(--white);
    }

    header h1 {  
        background-image: url("trident-white.svg");  
        background-repeat: no-repeat;  
        background-size: contain;  
    } 

    header h1 img {
        opacity: 0;
    }

    header h1:hover {
        transform: scale(1.08);
    }

    header h1:active {
        transform: scale(0.92);
    }

    div.container, div.home-container,
    section,
    header {
        background-color: var(--gray-black);
    }

    header {
        border-bottom: solid 1px var(--almost-white);
    }

    header nav ul li a:hover {
        color: var(--almost-white);
        background-color: var(--blue);
    }

    header nav ul li a,
    h2,
    form h1,
    form h2,
    .newsletter-link h1,
    section:hover a p,
    section:hover a h2,
    form label {
        color: var(--almost-white);
    }

    p {
        color: rgb(180, 180, 180);
    }

    p.caption {
        color: rgb(160, 160, 160);
    }

    footer {
        background-color: var(--blue);
        color: var(--white);
    }

    form {
        background-color: var(--gray-black);
    }

    input[type="text"],
    input[type="email"],
    input[type="checkbox"] {
        border: 1px solid rgb(100, 100, 100);
        background: var(--gray-black);
        color: var(--almost-white);
    }

    article {
        border-bottom: solid 1px rgb(240, 240, 240);
    }

    .button button {
        background-color: var(--blue);
        color: var(--white);
    }

    .button button:hover {
        background-color: var(--light-blue);
    }

    .button button:active {
        background-color: var(--blue);
    }

}

@media screen and (min-width: 36em) {
	
    div.container, div.home-container {
        max-width: 36em;
        margin: auto;
    }

    header {
        margin: 1rem 1rem 3rem;
        padding: 0 0 1rem;
    }

    footer {
        margin: 3rem 1rem 0;
        border-top-left-radius: .2em;
        border-top-right-radius: .2em;
    }

    article {
        border-bottom: none;
    }

    .main-bottom {
        border-bottom: solid 1px rgb(240, 240, 240);
    }

    div.gallery-container {
        margin: auto;
        max-width: 36em;
    }

}

@media screen and (min-width: 66em) {

    body {
        margin: 0 1rem;
    }

    header {
        margin-bottom: 1rem;
        align-items: end;
    }

    .home-container footer {
        margin-top: 2rem;
    }

    header nav ul li a {
        margin-right: 1.4rem;
    }

    header nav ul {
        display: flex;
        justify-content: space-between;
    }

    section {
        margin: 1em;
    }

    aside section {
        margin: 0;
    }

    .home-container aside .tertiary {
        margin: 0 0 2rem;        
    }

    div.container aside section {
        margin-bottom: 3rem;
    }

    div.container aside {
        padding-left: 0;
    }

    main {
        padding-top: 1em;
    }

    aside {
        padding: 2rem 1rem;
    }

    .container aside {
        padding-right: 1em;
    }
	
    div.home-container {
        max-width: 88em;
        display: grid;
        grid-template-columns: 3fr 1fr;
    }

    div.gallery-container {
        margin: auto;
        max-width: 55em;
    }

    div.container {
        max-width: 55em;
        display: grid;
        grid-template-columns: 2fr 1fr;
    }

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

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

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

    article section.mainstory {
        grid-column: 1/4;
        grid-row: 1/3;
        display: flex;
        flex: 1 0 12em;
        flex-direction: column;
        padding: 1em 1em 0 0;
    }

    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.secondary {
        display: flex;
    }

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

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

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

    .galbuttons {
        display: grid;
        grid-template-columns: repeat(8, auto);
        gap: 0.4em;
    }

    .galbuttons img {
        height: 5em;
    }

    form h1 {
        font-size: 2.4em;
    }

    .moose {
        display: block;
    }

    .newsletter {
        margin-right: 1rem;
    }

    footer.form {
        margin-top: 15.65em;
    }

}
