html,
body {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    overflow-x: clip;
}

body {
    max-width: 100%;
    overflow-x: clip;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
}


/* ------------------------------------------------------------------
   Header / hero
   ------------------------------------------------------------------ */

.site-header {
    position: relative;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
}

.site-header-image {
    position: fixed;
    inset: 0;
    background-image: url("/wp-content/uploads/2017/01/cropped-DSCN1508-resized-1.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -2;
}

.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.14);
}


/* Interior posts/pages use a compact version of the same hero. */

.site-header-interior {
    height: 360px;
    min-height: 360px;
}

.site-header-interior .site-header-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
}

.site-header-interior .site-branding {
    bottom: 34px;
}


/* ------------------------------------------------------------------
   Site branding
   ------------------------------------------------------------------ */

.site-branding {
    position: absolute;
    left: 24%;
    bottom: 36px;
    z-index: 2;
    color: #fff;
}

.site-branding a {
    color: #fff;
    text-decoration: none;
}

.site-branding a:visited,
.site-branding a:hover,
.site-branding a:active {
    color: #fff;
    text-decoration: none;
}

.site-branding h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.site-branding p {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.4;
}


/* ------------------------------------------------------------------
   Homepage scroll indicator
   ------------------------------------------------------------------ */

.scroll-indicator {
    position: absolute;
    right: 22%;
    bottom: 34px;
    z-index: 2;
    color: #fff;
    font-size: 30px;
    font-weight: 300;
}

.site-header-interior .scroll-indicator {
    display: none;
}


/* ------------------------------------------------------------------
   Main page structure
   ------------------------------------------------------------------ */

.content-band {
    position: relative;
    z-index: 3;
    width: 100%;
    background: #fff;
}

.site-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 54px;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 72px 28px 120px;
}

.content-column,
.sidebar,
.post {
    min-width: 0;
}

.section-heading,
.sidebar-section h3 {
    margin: 0 0 28px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}


/* ------------------------------------------------------------------
   Posts
   ------------------------------------------------------------------ */

.post + .post {
    margin-top: 7em;
}

.post-date {
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #666;
}


/* Generated title of the post itself. */

.post-title {
    margin: 0 0 24px;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 400;
    overflow-wrap: anywhere;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:visited,
.post-title a:hover,
.post-title a:active {
    color: inherit;
}


/* Headings inside the article body. */

.post h2:not(.post-title) {
    margin: 1.75em 0 0.75em;
    font-size: 23px;
    line-height: 1.25;
    font-weight: 400;
}

.post h3 {
    margin: 1.75em 0 0.75em;
}

.post h4 {
    margin: 1.75em 0 0.75em;
}


/* Paragraphs */

.post p,
.sidebar-section p,
.sidebar-section li {
    font-size: 14px;
    line-height: 1.55;
}

.post p {
    margin: 0 0 22px;
}

.post,
.post p,
.post li,
.post figcaption,
.sidebar {
    overflow-wrap: break-word;
}

.post table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.post th,
.post td {
    overflow-wrap: anywhere;
    word-break: normal;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #ddd;
    font-size: 14px;
}

.pagination a,
.pagination-current {
    display: inline-block;
    padding: 4px 7px;
}

.pagination-current {
    font-weight: 700;
}

.pagination-prev {
    margin-right: auto;
}

.pagination-next {
    margin-left: auto;
}


/* ------------------------------------------------------------------
   Post media
   ------------------------------------------------------------------ */

.post img,
.post video {
    display: block;
    width: 100%;
    max-width: 525px;
    height: auto;
    margin: 1.5em 0;
    float: none;
}

.post figure,
.post .wp-caption {
    display: block;
    width: 100%;
    max-width: 525px;
    margin: 1.5em 0;
    float: none;
}

.post figure img,
.post .wp-caption img {
    margin: 0;
}

.post figcaption,
.post .wp-caption figcaption {
    margin-top: 0.5em;
}


/* ------------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------------ */

.sidebar {
    position: sticky;
    top: 28px;
    align-self: start;
}

.sidebar-section {
    margin-bottom: 54px;
}

.sidebar-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-section li {
    padding: 9px 0;
    border-bottom: 1px solid #ddd;
}

.posting-calendar table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: center;
}

.posting-calendar caption {
    margin-bottom: 10px;
    font-weight: 600;
}

.posting-calendar th,
.posting-calendar td {
    padding: 4px 2px;
}

.posting-calendar a {
    font-weight: 700;
    text-decoration: none;
}

.posting-calendar a:hover {
    text-decoration: underline;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 13px;
}

.calendar-navigation a {
    text-decoration: none;
}

.calendar-navigation a:hover {
    text-decoration: underline;
}


/* ------------------------------------------------------------------
   Site footer
   ------------------------------------------------------------------ */

.site-footer {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 24px 28px;
    border-top: 1px solid #ddd;
    background: #fff;
    color: #666;
    text-align: center;
    font-size: 12px;
}

.site-footer p {
    margin: 0;
}


/* ------------------------------------------------------------------
   Contact page
   ------------------------------------------------------------------ */

#contact-email {
    overflow-wrap: anywhere;
}

#copy-email {
    margin-left: 8px;
    padding: 4px 9px;
    border: 1px solid #bbb;
    border-radius: 3px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

#copy-email:hover {
    background: #f3f3f3;
}

#copy-email:focus {
    outline: 2px solid #777;
    outline-offset: 2px;
}

#copy-status {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}


/* ------------------------------------------------------------------
   Tablet / mobile
   ------------------------------------------------------------------ */

@media (max-width: 900px) {

    /*
     * Do not retain the desktop fixed-background behavior on narrow
     * screens. Keep the same image, but make it part of the header.
     */
    .site-header {
        height: 100svh;
        min-height: 0;
    }

    .site-header-image {
        position: absolute;
        inset: 0;
        background-position: center center;
    }

    .site-header-interior {
        height: 260px;
        min-height: 260px;
    }

    .site-branding {
        left: 24px;
        right: 24px;
        bottom: 28px;
    }

    .site-branding h1 {
        font-size: 28px;
        letter-spacing: 1.2px;
    }

    .site-branding p {
        font-size: 13px;
    }

    .scroll-indicator {
        right: 24px;
        bottom: 28px;
    }

    .site-content {
        display: block;
        width: 100%;
        max-width: none;
        padding: 48px 24px 80px;
    }

    .content-column {
        width: 100%;
        min-width: 0;
    }

    .post {
        width: 100%;
        min-width: 0;
    }

    .post img,
    .post video,
    .post figure,
    .post .wp-caption {
        width: 100%;
        max-width: 100%;
    }

    .sidebar {
        position: static;
        align-self: auto;
        width: 100%;
        min-width: 0;
        margin-top: 72px;
    }

    .posting-calendar {
        max-width: 360px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 10px;
    }

    .pagination-prev,
    .pagination-next {
        margin-left: 0;
        margin-right: 0;
    }
}


/* ------------------------------------------------------------------
   Phone
   ------------------------------------------------------------------ */

@media (max-width: 520px) {

    .site-header-interior {
        height: 220px;
        min-height: 220px;
    }

    .site-branding {
        left: 18px;
        right: 18px;
        bottom: 22px;
    }

    .site-branding h1 {
        font-size: 24px;
        line-height: 1.15;
        letter-spacing: 1px;
    }

    .site-branding p {
        font-size: 12px;
    }

    .scroll-indicator {
        right: 18px;
        bottom: 22px;
        font-size: 24px;
    }

    .site-content {
        padding: 38px 18px 64px;
    }

    .section-heading,
    .sidebar-section h3 {
        margin-bottom: 22px;
    }

    .post-title,
    .post h2:not(.post-title) {
        font-size: 21px;
    }

    .post p,
    .sidebar-section p,
    .sidebar-section li {
        font-size: 15px;
        line-height: 1.55;
    }

    .post + .post {
        margin-top: 6em;
    }

    .post table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .post th,
    .post td {
        white-space: normal;
    }

    .pagination {
        font-size: 13px;
        gap: 6px;
    }

    .pagination a,
    .pagination-current {
        padding: 5px 6px;
    }

    #copy-email {
        margin-left: 6px;
    }
}
