@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Work+Sans&display=swap');

:root {
    --accent-color: rgb(217, 31, 42);
}

:target {
    outline: none;
}

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 300;
    line-height: 2;
    color: #333;
    margin: 0;
}

main {
    padding: 2rem;
}

body main {
    max-width: 540px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--accent-color);
    font-family: 'Bebas Neue', sans-serif;
}

h1 {
    font-size: 7rem;
    font-weight: 400;
    line-height: 80%;
    margin-bottom: 3rem;
}

h2 {
    font-size: 2rem;
    font-weight: 300;
    line-height: 80%;
    margin-bottom: 1rem;
}

.hero {
    margin-bottom: 6rem;
}

p {
    margin-top: none;
    line-height: 1.8rem;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

th, td {
    border: 1px solid #eee;
    padding: 0.75rem;
    text-align: left;
}

.headerless-table thead {
    display: none;
}

header {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

header a {
    text-decoration: none;
}

.header-link {
    text-decoration: none;
    color: inherit;
}

.header-link:hover {
    text-decoration: none;
}

a {
    color: inherit;
    text-decoration: underline;
}

.contents {
    display: grid;
    border-bottom: 1px solid #eee;
    padding-bottom: 3rem;
    margin-bottom: 1rem;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Switch to 3 columns on larger screens */
@media (min-width: 520px) {
    .contents {
        grid-template-columns: repeat(3, 1fr);
    }
}

.column {
    list-style: none;
}

.column h2 {
    font-size: 1.4rem;
}

.column h2 a {
    color: inherit;
    text-decoration: none;
}

.column h2 a:hover {
    text-decoration: underline;
}

.column ul {
    list-style: none;
    padding: 0;
}

.column ul li a {
    text-decoration: none;
}

.column ul li a:hover {
    text-decoration: underline;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.pagination a {
    text-decoration: none;
}

.pagination a:hover {
    text-decoration: underline;
}

/* Style the bottom pagination nav differently */
main > .pagination:last-of-type {
    border-top: 1px solid #eee;
    border-bottom: none;
    padding-top: 1rem;
    margin-bottom: 0;
}
