* {
    box-sizing: border-box;
}

:root {
    --bg: #f3efe6;
    --paper: #faf7ef;
    --text: #26231f;
    --muted: #81786b;
    --line: #ded6c8;
    --photo-bg: #111;
    --max: 1120px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.65;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

/* HEADER */

.site-header {
    max-width: var(--max);
    margin: 0 auto;
    padding: 30px 28px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    text-decoration: none;
    min-width: 0;
}

.brand-logo {
    width: 68px;
    height: 68px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-name {
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    letter-spacing: 0.12em;
    font-size: clamp(1.1rem, 3vw, 1.75rem);
    white-space: nowrap;
}

.nav-toggle {
    width: 72px;
    height: 62px;
    border: 1px solid var(--line);
    background: rgba(250, 247, 239, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.nav-toggle span {
    display: block;
    width: 34px;
    height: 2px;
    background: var(--text);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.95rem;
}

.main-nav a {
    color: var(--text);
    text-decoration: none;
    opacity: 0.78;
}

.main-nav a:hover {
    opacity: 1;
}

/* COMMON */

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 58px 28px;
}

.section h1 {
    margin: 0 0 34px;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.section h2 {
    margin: 0 0 26px;
    font-size: clamp(1.7rem, 4.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.section h3 {
    margin: 0 0 12px;
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.15;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(120px, 0.38fr) 1fr;
    gap: 28px;
    align-items: baseline;
    margin-bottom: 42px;
}

.section-kicker,
.post-meta {
    margin: 0 0 10px;
    color: var(--muted);
    font-family: "Courier New", Courier, monospace;
    letter-spacing: 0.14em;
    font-size: 0.95rem;
}

.section-head h1,
.section-head h2 {
    margin: 0;
}

.muted {
    color: var(--muted);
}

.pagination {
    margin-top: 54px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: "Courier New", Courier, monospace;
}

.pagination a {
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

/* HERO */

.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 50px 28px 66px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.hero--text-only {
    display: block;
}

.hero-photo {
    margin: 0 0 40px;
    background: var(--photo-bg);
    padding: 6px;
}

.hero-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.hero-kicker {
    margin: 0 0 24px;
    color: var(--muted);
    font-family: "Courier New", Courier, monospace;
    letter-spacing: 0.12em;
    opacity: 0.65;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.hero-title {
    margin: 0;
    max-width: 780px;
    font-size: clamp(2rem, 9vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero-text {
    margin: 18px 0 0;
    max-width: 680px;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    line-height: 1.6;
    color: #3d3831;
}

.hero-signature {
    margin: 30px 0 0;
    font-family: "Courier New", Courier, monospace;
    color: var(--muted);
    letter-spacing: 0.12em;
    font-size: 1.1rem;
}

/* SNAPSHOTS */

.latest-snapshots .snapshot-grid,
.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px;
}

.snapshot-card {
    min-width: 0;
}

.snapshot-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.snapshot-photo {
    margin: 0 0 22px;
    padding: 8px;
    background: var(--photo-bg);
    overflow: hidden;
    position: relative;
}

.snapshot-photo:empty {
    display: none;
}

.snapshot-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--photo-bg);
    transition: transform 0.25s ease;
}

.snapshot-link:hover .snapshot-photo img {
    transform: scale(1.03);
}

.snapshot-body h3,
.snapshot-body h2,
.snapshot-card h2 {
    margin: 0 0 12px;
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.snapshot-body p,
.snapshot-card p {
    margin: 0;
    color: #3d3831;
}

.snapshot-detail-photo {
    margin: 32px 0;
    padding: 8px;
    background: var(--photo-bg);
}

.snapshot-detail-photo img {
    width: 100%;
    display: block;
    max-height: 82vh;
    object-fit: contain;
    background: var(--photo-bg);
}

.snapshot-link-mark {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: rgba(243, 239, 230, 0.92);
    color: var(--text);
    border: 1px solid var(--line);
    font-family: "Courier New", Courier, monospace;
    font-size: 1.05rem;
    line-height: 1;
}

.snapshot-title-mark {
    display: inline-block;
    margin-left: 8px;
    color: var(--muted);
    font-family: "Courier New", Courier, monospace;
    font-size: 0.75em;
    vertical-align: 0.08em;
}

.snapshot-card--linked .snapshot-link:hover h2,
.snapshot-card--linked .snapshot-link:hover h3 {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

/* BLOG */

.blog-page .blog-series-strip {
    margin-bottom: 86px;
    padding-bottom: 64px;
    border-bottom: 1px solid var(--line);
}

.blog-posts {
    margin-top: 0;
}

.blog-series-strip > h2,
.blog-posts > h2 {
    margin-bottom: 34px;
}

.post-list {
    display: grid;
    gap: 34px;
}

.post-card {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: 28px;
    align-items: start;
    border-top: 1px solid var(--line);
    padding-top: 34px;
    padding-bottom: 34px;
}

.post-card:last-child {
    padding-bottom: 0;
}

.post-card > h2,
.post-card > h3 {
    margin-top: 0;
}

.post-card a,
.post-detail a {
    text-decoration: none;
}

.post-photo,
.post-cover {
    display: block;
    background: var(--photo-bg);
    padding: 8px;
    margin: 0 0 22px;
}

.post-photo img,
.post-cover img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.post-body h3,
.post-card h2,
.post-card h3 {
    margin: 0 0 16px;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.post-body p,
.post-card p {
    margin: 0;
    color: #3d3831;
    max-width: 780px;
}

.post-lead {
    font-size: clamp(1.15rem, 3vw, 1.5rem);
    color: #5d554b;
    max-width: 820px;
}

.post-content {
    max-width: 820px;
    white-space: normal;
}

.post-cover {
    margin: 32px 0;
}

/* BLOG SERIES */

.series-list,
.series-grid {
    display: grid;
    gap: 28px;
}

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

.series-card {
    min-width: 0;
    border: 1px solid var(--line);
    background: rgba(250, 247, 239, 0.45);
    padding: 26px;
}

.series-card:hover {
    background: rgba(250, 247, 239, 0.75);
}

.series-card a,
.series-detail a {
    display: block;
    text-decoration: none;
}

.series-photo,
.series-cover {
    display: block;
    background: var(--photo-bg);
    padding: 8px;
    margin: 0 0 22px;
}

.series-photo img,
.series-cover img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.series-body h2,
.series-body h3,
.series-card h2,
.series-card h3 {
    margin: 0 0 16px;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.series-body p,
.series-card p {
    margin: 0 0 18px;
    color: #3d3831;
}

.series-body .post-meta {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.series-cover {
    margin: 32px 0;
}

/* GALLERIES */

.galleries-page,
.gallery-detail {
    max-width: var(--max);
}

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

.gallery-card {
    min-width: 0;
}

.gallery-card a,
.gallery-detail a {
    text-decoration: none;
}

.gallery-cover,
.gallery-hero {
    display: block;
    background: var(--photo-bg);
    padding: 8px;
    margin: 0 0 22px;
}

.gallery-cover img,
.gallery-hero img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-body h2,
.gallery-card h2 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.gallery-body p,
.gallery-card p {
    margin: 0;
    color: #3d3831;
}

.gallery-hero {
    margin: 32px 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 42px;
}

.photo-tile {
    display: block;
    margin: 0;
    background: var(--photo-bg);
    padding: 6px;
}

.photo-tile a {
    display: block;
}

.photo-tile img {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.photo-tile figcaption {
    color: #f3efe6;
    font-size: 0.9rem;
    padding: 8px 4px 2px;
}

/* ABOUT */

.about-page {
    max-width: 900px;
}

.about-photo {
    margin: 32px 0;
    background: var(--photo-bg);
    padding: 8px;
}

.about-photo img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.about-content {
    max-width: 820px;
    white-space: normal;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    line-height: 1.75;
}

/* FOOTER */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 44px 28px 56px;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    gap: 28px;
    align-items: center;
    color: var(--muted);
}

.footer-logo-link {
    display: block;
    flex: 0 0 auto;
    text-decoration: none;
}

.footer-rb {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.footer-copy {
    min-width: 0;
}

.footer-title {
    margin: 0 0 8px;
    font-family: "Courier New", Courier, monospace;
    color: var(--text);
    letter-spacing: 0.18em;
    font-size: 1.05rem;
}

.footer-text {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

/* RESPONSIVE */

@media (max-width: 980px) {
    .series-grid,
    .gallery-grid,
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .site-header {
        padding: 30px 22px 26px;
        position: relative;
    }

    .brand {
        gap: 18px;
    }

    .brand-logo {
        width: 76px;
        height: 76px;
    }

    .brand-name {
        letter-spacing: 0.1em;
        font-size: clamp(1.05rem, 4.4vw, 1.6rem);
    }

    .nav-toggle {
        display: flex;
        flex: 0 0 auto;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 22px;
        left: 22px;
        z-index: 20;
        background: var(--paper);
        border: 1px solid var(--line);
        padding: 22px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    }

    .main-nav.is-open {
        display: flex;
    }

    .hero {
        display: block;
        padding: 48px 22px 64px;
    }

    .hero-photo {
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.8rem);
        line-height: 1.08;
    }

    .section {
        padding: 58px 22px;
    }

    .section-head {
        display: block;
    }

    .section-kicker {
        margin-bottom: 10px;
    }

    .latest-snapshots .snapshot-grid,
    .snapshot-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .blog-page .blog-series-strip {
        margin-bottom: 70px;
        padding-bottom: 54px;
    }

    .series-card {
        padding: 24px 20px;
    }

    .post-card {
        padding-top: 34px;
        padding-bottom: 36px;
    }

    .site-footer {
        padding: 38px 22px 48px;
    }

    .footer-inner {
        gap: 22px;
        align-items: center;
    }

    .footer-rb {
        width: 64px;
        height: 64px;
    }

    .footer-title {
        letter-spacing: 0.14em;
        font-size: 0.95rem;
    }

    .footer-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 560px) {
    .series-grid,
    .gallery-grid,
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .post-list,
    .series-list,
    .series-grid,
    .gallery-grid {
        gap: 38px;
    }
}

@media (max-width: 460px) {
    body {
        font-size: 17px;
    }

    .brand-logo {
        width: 64px;
        height: 64px;
    }

    .brand-name {
        letter-spacing: 0.08em;
    }

    .nav-toggle {
        width: 64px;
        height: 58px;
    }

    .hero-title {
        font-size: clamp(2rem, 9.5vw, 3.2rem);
        line-height: 1.1;
    }

    .hero-kicker {
        letter-spacing: 0.12em;
    }
}
