:root {
    color-scheme: dark;
    --black: #050505;
    --panel: #111111;
    --panel-soft: #181818;
    --line: #3c3c3c;
    --line-light: #5d5d5d;
    --red: #c90000;
    --red-bright: #ee1d24;
    --text: #d8d8d8;
    --muted: #9e9e9e;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--black);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: #000;
    color: var(--text);
    font: 14px/1.55 Arial, Helvetica, sans-serif;
}

a {
    color: #e34b4f;
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--white);
    text-decoration: underline;
}

img {
    max-width: 100%;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100;
    padding: 8px 12px;
    transform: translateY(-160%);
    background: var(--white);
    color: #000;
}

.skip-link:focus {
    transform: none;
}

.site-frame {
    width: min(900px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    border-right: 1px solid #202020;
    border-left: 1px solid #202020;
    background: var(--black);
}

.primary-nav {
    min-height: 38px;
    border-top: 1px solid #3f3f3f;
    border-bottom: 1px solid #4f4f4f;
    background: linear-gradient(#333, #171717);
}

.nav-links {
    display: flex;
    min-height: 37px;
    align-items: stretch;
    justify-content: center;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 0 17px;
    border-right: 1px solid #4b4b4b;
    color: #dedede;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 1px 0 #000;
}

.nav-links a:first-child {
    border-left: 1px solid #4b4b4b;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: #4a0000;
    color: #fff;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    width: 100%;
    min-height: 42px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.site-header {
    display: grid;
    grid-template-columns: minmax(250px, 1.35fr) repeat(2, minmax(175px, 1fr)) minmax(108px, .62fr);
    gap: 12px;
    min-height: 164px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #2e2e2e;
    background: radial-gradient(circle at 12% 50%, #190000 0, #070707 36%, #020202 72%);
}

.brand {
    display: block;
}

.brand img {
    display: block;
    width: min(314px, 100%);
    height: auto;
}

.header-feature {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto 1fr;
    min-width: 0;
    min-height: 130px;
    padding: 0 6px 7px;
    border: 1px solid #343434;
    background: #101010;
    color: #fff;
}

.header-feature > span {
    grid-column: 1 / -1;
    padding: 6px 2px;
    color: var(--red-bright);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.header-feature img {
    width: 70px;
    height: 105px;
    border: 1px solid #8d8d8d;
    object-fit: cover;
}

.header-feature strong {
    align-self: center;
    min-width: 0;
    padding: 6px 0 6px 8px;
    font-size: 12px;
    line-height: 1.35;
}

.header-feature:hover,
.header-feature:focus-visible {
    border-color: #9d0000;
    text-decoration: none;
}

.header-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-photo img {
    width: 83px;
    height: 125px;
}

#content {
    min-height: 520px;
}

.home-cam-links {
    padding: 12px 20px 10px;
    border-bottom: 1px solid #3b3b3b;
    background: #0c0c0c;
    color: #bdbdbd;
    font-size: 13px;
}

.home-cam-links p {
    margin: 0 0 5px;
}

.home-cam-links p:last-child {
    margin-bottom: 0;
}

.home-cam-links a {
    color: var(--red-bright);
    font-weight: 700;
    text-decoration: underline;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 650px) 229px;
    align-items: start;
}

.post-stream,
.article-page {
    min-width: 0;
    padding: 18px 20px 28px;
    border-right: 1px solid #292929;
}

.archive-post {
    padding: 0 0 23px;
    margin: 0 0 24px;
    border-bottom: 1px solid #3b3b3b;
}

.archive-post:last-child {
    margin-bottom: 0;
}

.archive-heading {
    padding-bottom: 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid #4e0000;
}

.archive-heading h1 {
    margin: 0;
    color: var(--red-bright);
    font: 400 28px/1.2 Georgia, 'Times New Roman', serif;
}

.archive-post h2 a {
    color: inherit;
}

.post-pagination {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #3b3b3b;
    font-weight: 700;
}

.archive-post h1,
.archive-post h2,
.section-heading h1,
.simple-page h1 {
    margin: 0 0 5px;
    color: var(--red-bright);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 27px;
    font-weight: 400;
    line-height: 1.2;
}

.archive-post h2 {
    font-size: 27px;
}

.post-meta {
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 11px;
}

.post-content {
    color: #d2d2d2;
}

.post-content::after {
    display: block;
    clear: both;
    content: '';
}

.post-content p {
    margin: 0 0 15px;
}

.post-content br + br {
    display: block;
    margin-top: 14px;
    content: '';
}

.post-content .archive-image {
    display: block;
    width: auto;
    max-width: min(100%, 600px);
    height: auto;
    margin: 14px auto;
    border: 1px solid #4c4c4c;
    background: #111;
}

.article-lead {
    display: block;
    width: min(100%, 618px);
    height: auto;
    margin: 16px auto 20px;
    border: 1px solid #4c4c4c;
}

.legacy-photo-grid {
    padding-top: 20px;
    margin-top: 22px;
    border-top: 1px solid #4e0000;
}

.post-content table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
}

.post-content td {
    width: auto !important;
}

.sidebar {
    min-width: 0;
    padding: 18px 14px 26px;
    background: #0c0c0c;
}

.sidebar section {
    margin: 0 0 22px;
}

.sidebar h2 {
    margin: 0 0 8px;
    padding: 0 0 6px;
    border-bottom: 1px solid #4c0000;
    color: #f0f0f0;
    font: 700 13px/1.25 Arial, Helvetica, sans-serif;
}

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

.sidebar li {
    padding: 6px 0;
    border-bottom: 1px dotted #383838;
    font-size: 12px;
    line-height: 1.35;
}

.sidebar a {
    color: #c5c5c5;
}

.gallery-page,
.simple-page {
    padding: 24px 26px 36px;
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 0 0 13px;
    margin: 0 0 18px;
    border-bottom: 1px solid #4e0000;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.gallery-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.gallery-card {
    display: grid;
    grid-template-rows: 176px auto;
    overflow: hidden;
    border: 1px solid #3c3c3c;
    background: #111;
    color: #fff;
}

.gallery-card img {
    width: 100%;
    height: 176px;
    object-fit: cover;
}

.gallery-card span {
    padding: 10px 11px;
    border-top: 2px solid #920000;
    font-weight: 700;
}

.gallery-card:hover,
.gallery-card:focus-visible {
    border-color: #a40000;
    text-decoration: none;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.photo-grid a {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border: 2px solid #666;
    background: #151515;
}

.photo-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-grid a:hover,
.photo-grid a:focus-visible {
    border-color: var(--red-bright);
}

.boundcon-days {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.boundcon-days section {
    min-height: 230px;
    padding: 18px;
    border: 1px solid #3a3a3a;
    background: #101010;
    text-align: center;
}

.boundcon-days h2 {
    margin: 0 0 16px;
    color: #ddd;
    font: 400 21px/1.2 Georgia, 'Times New Roman', serif;
}

.boundcon-photo img {
    width: 100px;
    height: 151px;
    border: 2px solid #747474;
    object-fit: cover;
}

.simple-page {
    min-height: 420px;
}

.simple-page p {
    max-width: 620px;
    font-size: 16px;
}

.site-footer {
    padding: 20px;
    border-top: 1px solid #4c0000;
    background: #080808;
    color: #888;
    font-size: 11px;
    text-align: center;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-bottom: 12px;
}

.site-footer p {
    margin: 4px 0;
}

@media (max-width: 760px) {
    .site-frame {
        border: 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
    }

    .primary-nav.is-open .nav-links {
        display: flex;
    }

    .nav-links a,
    .nav-links a:first-child {
        min-height: 42px;
        padding: 0 18px;
        border-right: 0;
        border-bottom: 1px solid #3f3f3f;
        border-left: 0;
    }

    .site-header {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        padding: 12px;
    }

    .brand {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .brand img {
        width: 260px;
    }

    .header-feature {
        display: flex;
        min-height: 155px;
        flex-direction: column;
        align-items: center;
        padding: 5px;
        text-align: center;
    }

    .header-feature > span {
        min-height: 38px;
    }

    .header-feature img,
    .header-photo img {
        width: 62px;
        height: 93px;
    }

    .header-feature strong {
        display: none;
    }

    .content-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .post-stream,
    .article-page {
        padding: 18px 16px 24px;
        border-right: 0;
    }

    .sidebar {
        border-top: 1px solid #3d3d3d;
    }

    .gallery-page,
    .simple-page {
        padding: 20px 16px 30px;
    }

    .gallery-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .boundcon-days {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    .archive-post h1,
    .archive-post h2,
    .section-heading h1,
    .simple-page h1 {
        font-size: 24px;
    }

    .site-header {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .header-feature > span {
        font-size: 10px;
    }

    .gallery-cards {
        grid-template-columns: 1fr;
    }

    .gallery-card {
        grid-template-rows: 210px auto;
    }

    .gallery-card img {
        height: 210px;
    }

    .photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
