@font-face {
    font-family: 'Gilroy';
    src: url('/fonts/Gilroy-Light.woff2') format('woff2'),
        url('/fonts/Gilroy-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/fonts/Gilroy-ExtraBold.woff2') format('woff2'),
        url('/fonts/Gilroy-ExtraBold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/fonts/Gilroy-Regular.woff2') format('woff2'),
        url('/fonts/Gilroy-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Helvetica Neue", "Arial", sans-serif;
    margin: 0;
}

.wrapper {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}



h1 {
    font-family: "Gilroy", sans-serif;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 2.5rem;
}

h2 {
    font-family: "Gilroy", sans-serif;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 2rem;
}

/* Main */

.main {
    font-size: 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    padding-bottom: 0;
}

.bird {
    grid-column: 2;
    grid-row: 1 / 3;
}

@media (max-width: 1100px) {
    .main {
        grid-template-columns: 1fr 1fr;
    }

    .bird {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .main {
        grid-template-columns: 1fr 1fr;
    }

    .main-heading {
        grid-column: 1 / 3;
    }

    .bird {
        grid-row: 2;
    }
}

@media (max-width: 800px) {
    .main {
        grid-template-columns: 2fr 1fr;
    }

    .main-heading {
        grid-column: 1 / 3;
    }

    .bird {
        grid-row: 2;
    }
}

@media (max-width: 750px) {
    .main {
        display: block;
    }

    .bird {
        max-width: 300px;
        display: block;
        margin: 0 auto;
    }
}


@media (max-width: 600px) {
    html {
        font-size: 12px;
    }
}

.main h1 {
    padding-top: 2rem;
    font-size: 4rem;
}

p {
    font-weight: 400;
    font-family: "Garamond", serif;
    margin-bottom: 1.5em;
}

.subhead {
    color: #7e3190;
    font-family: "Gilroy", sans-serif;
    font-weight: 500;
}

.author {
    font-family: "Gilroy", sans-serif;
    margin-top: 5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.author:before {
    content: "";
    width: 6rem;
    height: 1px;
    display: inline-block;
    border-bottom: 1px solid black;
}

.bird {
    align-self: end;
}

/* Examples */

.example-list {
    font-family: "Helvetica Neue", "Arial", sans-serif;
    margin: 0;
    padding: 0;
    list-style: none;
}

.example-list.small {
    font-size: 1rem;
}

.example-list li {
    display: grid;
    grid-template-columns: 0 1fr;
    grid-gap: 3em;
    margin-bottom: 1em;
}

.example-list a {
    display: inline;
}

.example-list li:before {
    content: attr(data-chapter);
    display: block;
    font-weight: bold;
    width: 2.5em;
    text-align: right;
}

.example-view {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 90vh;
}

.example-view iframe {
    width: 100%;
    height: 100%;
}

/* Navbar */

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-weight: 500;
    font-size: 1.5rem;
    text-decoration: none;
    font-family: "Gilroy", sans-serif;
    color: black;
}

.logo:visited {
    color: inherit;
}

.navbar {
    display: flex;
    list-style: none;
    gap: 2em;
    font-size: 1.2rem;
}

.navbar-button {
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    background: white;
    padding: 0.5rem;
}



.navbar-item {
    font-family: "Helvetica Neue", "Arial", sans-serif;
}

.navbar-item.active {
    font-weight: bold;
}

.navbar-button {
    display: none;
}

.navbar-link, .navbar-link:visited {
    text-decoration: none;
    color: inherit;
    padding: 5px 3px;
    transition: text-shadow 0.3s ease;
}

.navbar-link:hover {
    border-bottom: 1px solid black;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.25);
}

@media (max-width: 955px) {
    .navbar {
        display: none;
        position: fixed;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: space-evenly;
        background: white;
        height: 100vh;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    .navbar.active ~ #close {
        display: block;
        position: absolute;
        right: 1rem;
    }

    .navbar.active {
        display: flex;
    }

    #open {
        display: block;
    }
}

/* Article */

.article {
    padding: 5rem 2.5rem;
    font-size: 1.4rem;
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.3;
}

a, a:visited {
    color: #0694f9;
    text-decoration: none;
}

.article-list {
    list-style: none;
    font-family: "Helvetica Neue", "Arial", sans-serif;
    padding: 0;
    margin: 0;
}

.article-date {
    font-weight: 500;
}
.article-date:after {
    content: ":";
}

table {
    border: 1px solid white;
}

thead {
    background-color: black;
    color: white;
}

td, th {
    padding: 0.5rem;
}

ol, ul {
    font-family: "Garamond", serif;
}

/* Buy */

.buy {
    font-family: "Helvetica Neue", "Arial", sans-serif;
    font-size: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.buy-button {
    display: inline-block;
    border-radius: 30px;
    color: black;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    background-color: #0694f9;
    transition: all 0.1s ease;
}

.buy-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

a.buy-button {
    color: white;
}

.buy-button.oreilly {
    background-color: rgb(211, 0, 45);
}

.buy-button.thalia {
    background-color: rgb(0, 160, 75);
}

.buy-button.verynoble {
    background-color: rgb(35, 35, 35);
}

.buy-button.jpc {
    background-color: rgb(0, 160, 75);
}

footer {
    padding: 1rem 2rem;
    color: rgba(30, 30, 30);
    height: 3rem;
}
