* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: #111;
    background: #fff;
    line-height: 1.6;
}

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

.container {
    width: min(1100px, calc(100% - 48px));
    margin: 0 auto;
}


/* Navbar */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #eee;
    backdrop-filter: blur(10px);
}

.nav-inner {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: #666;
    font-size: 14px;
}

nav a:hover {
    color: #111;
}


/* Hero */

.hero {
    min-height: 680px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid #eee;
}

.eyebrow,
.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: #777;
}

.hero h1 {
    margin-top: 20px;

    font-size: clamp(48px, 8vw, 88px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.subtitle {
    margin-top: 28px;

    max-width: 600px;

    font-size: 22px;
    color: #666;
}

.hero-buttons {
    display: flex;
    gap: 12px;

    margin-top: 40px;
}

.button {
    padding: 12px 20px;

    border: 1px solid #111;

    font-size: 14px;

    transition: all 0.2s ease;
}

.button.primary {
    background: #111;
    color: #fff;
}

.button.primary:hover {
    background: #333;
}

.button.secondary:hover {
    background: #f5f5f5;
}


/* Sections */

.section {
    padding: 120px 0;
}

.section-gray {
    background: #f7f7f7;
}

.section h2 {
    margin-top: 16px;

    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-description {
    max-width: 650px;

    margin-top: 24px;

    color: #666;
    font-size: 17px;
}


/* Topics */

.topics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 1px;

    margin-top: 70px;

    background: #ddd;
    border: 1px solid #ddd;
}

.topic {
    padding: 32px;

    background: #fff;
}

.topic span {
    font-size: 12px;
    color: #999;
}

.topic h3 {
    margin-top: 30px;

    font-size: 22px;
}

.topic p {
    margin-top: 12px;

    color: #666;
    font-size: 14px;
}


/* Projects */

.projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-top: 60px;
}

.project-card {
    min-height: 300px;

    padding: 32px;

    background: #fff;
    border: 1px solid #ddd;

    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
}

.project-number {
    font-size: 12px;
    color: #999;
}

.project-card h3 {
    margin-top: 50px;

    font-size: 24px;
}

.project-card p:not(.project-number) {
    margin-top: 12px;

    color: #666;
    font-size: 14px;
}

.tag {
    display: inline-block;

    margin-top: 30px;
    padding: 4px 10px;

    border: 1px solid #ddd;

    font-size: 12px;
    color: #666;
}


/* Notes */

.note-list {
    margin-top: 50px;

    border-top: 1px solid #ddd;
}

.note {
    display: flex;
    justify-content: space-between;

    padding: 22px 0;

    border-bottom: 1px solid #ddd;

    font-size: 16px;
}

.note span:last-child {
    color: #999;
    font-size: 13px;
}


/* Footer */

footer {
    border-top: 1px solid #eee;
}

.footer-inner {
    min-height: 100px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #999;
    font-size: 13px;
}


/* Mobile */

@media (max-width: 700px) {

    .container {
        width: min(100% - 32px, 1100px);
    }

    nav {
        gap: 16px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        min-height: 600px;
    }

    .subtitle {
        font-size: 18px;
    }

    .section {
        padding: 80px 0;
    }

    .section h2 {
        font-size: 34px;
    }

    .topics,
    .projects {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }
}
/* =========================
   Blog
   ========================= */

.article-container {
    max-width: 760px;
    margin: 80px auto;
    padding: 0 24px;
}

.article-header {
    margin-bottom: 60px;
}

.article-header h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 12px;
}

.article-date {
    color: #888;
    font-size: 14px;
}

.article-content {
    font-size: 17px;
    line-height: 2;
    color: #333;
}

.article-content p {
    margin: 0 0 30px;
}

.article-content em {
    font-family: Georgia, serif;
}

.article-content hr {
    margin: 60px 0;
    border: none;
    border-top: 1px solid #ddd;
}

.article-ending {
    margin-top: 50px !important;
    font-size: 22px;
}

.article-signature {
    color: #888;
    font-size: 14px;
}

.back-link {
    display: inline-block;
    margin-top: 50px;
    color: #555;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.site-footer {
    max-width: 760px;
    margin: 100px auto 40px;
    padding: 0 24px;
    color: #999;
    font-size: 13px;
}

/* =========================
   Blog
   ========================= */

.blog-container {
    max-width: 760px;
    margin: 80px auto;
    padding: 0 24px;
}

.blog-header {
    margin-bottom: 70px;
}

.blog-header h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-header p {
    color: #888;
    font-size: 15px;
}

.post-list {
    border-top: 1px solid #ddd;
}

.post-item {
    border-bottom: 1px solid #ddd;
}

.post-item a {
    display: block;
    padding: 32px 0;
    color: inherit;
    text-decoration: none;
}

.post-item h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 500;
}

.post-date {
    margin: 0 0 16px;
    color: #999;
    font-size: 13px;
}

.post-excerpt {
    margin: 0;
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

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

/* =========================
   Gallery (homepage)
   ========================= */

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 12px;

    margin-top: 60px;
}

.gallery-preview img {
    display: block;

    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;

    transition: opacity 0.2s ease;
}

.gallery-preview:hover img {
    opacity: 0.85;
}

.gallery-preview img:hover {
    opacity: 1;
}

.gallery-more {
    display: inline-block;

    margin-top: 40px;
}

/* =========================
   Gallery (page)
   ========================= */

.gallery-container {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 24px;
}

.gallery-header {
    margin-bottom: 60px;
}

.gallery-header h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 10px;
}

.gallery-header p {
    color: #888;
    font-size: 15px;
}

.masonry {
    columns: 3;
    column-gap: 16px;
}

.masonry figure {
    margin: 0 0 16px;

    break-inside: avoid;
}

.masonry img {
    display: block;

    width: 100%;

    cursor: zoom-in;

    transition: opacity 0.2s ease;
}

.masonry img:hover {
    opacity: 0.85;
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.92);
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;

    object-fit: contain;
}

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    z-index: 201;

    padding: 12px 20px;

    background: none;
    border: none;

    color: #fff;
    font-size: 44px;
    line-height: 1;

    cursor: pointer;
    user-select: none;
}

.lb-close {
    top: 12px;
    right: 16px;

    font-size: 36px;
}

.lb-prev {
    left: 8px;
    top: 50%;

    transform: translateY(-50%);
}

.lb-next {
    right: 8px;
    top: 50%;

    transform: translateY(-50%);
}

.lb-orig {
    position: absolute;
    top: 28px;
    right: 76px;
    z-index: 201;

    color: #bbb;
    font-size: 14px;
}

.lb-orig:hover {
    color: #fff;
}

.lb-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;

    color: #999;
    font-size: 13px;

    transform: translateX(-50%);
}

@media (max-width: 900px) {

    .masonry {
        columns: 2;
    }

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

@media (max-width: 600px) {

    .masonry {
        columns: 1;
    }

    .gallery-container {
        margin: 48px auto;
    }

    .lb-prev,
    .lb-next {
        font-size: 32px;

        padding: 8px 12px;
    }
}

/* Hangzhou photo journal */
.home-gallery { background: #f1f2ec; }
.home-gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 48px; }
.home-gallery-heading h2 { font-family: Georgia, "Songti SC", "STSong", serif; font-weight: 500; }
.home-gallery-heading > p { color: #737a6e; font-size: 14px; line-height: 1.9; }
.gallery-feature { display: block; }
.gallery-feature-image { position: relative; overflow: hidden; background: #dce2df; }
.gallery-feature-image img { display: block; width: 100%; height: clamp(330px, 49vw, 580px); object-fit: cover; transition: transform .7s ease; }
.gallery-feature:hover img { transform: scale(1.025); }
.gallery-feature-number { position: absolute; left: 24px; bottom: 20px; color: white; font-size: 11px; letter-spacing: .15em; }
.gallery-feature-caption { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding: 25px 0; border-bottom: 1px solid #bec6ba; }
.gallery-feature-kicker, .gallery-feature-link { color: #727c70; font-size: 10px; letter-spacing: .15em; }
.gallery-feature-caption h3 { margin-top: 8px; font-family: Georgia, "Songti SC", "STSong", serif; font-size: 30px; font-weight: 500; }
.gallery-feature-caption h3 span { margin-left: 10px; font-size: 17px; font-style: italic; color: #7b8478; }
.gallery-feature-link { display: flex; align-items: center; gap: 28px; }
.gallery-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #a6b1a4; border-radius: 50%; color: #303e35; font-size: 19px; transition: background .2s, color .2s; }
.gallery-feature:hover .gallery-arrow { background: #344c3e; color: white; }
.hangzhou-page { background: #f6f6f0; color: #26382f; }
.hangzhou-page .navbar { background: rgba(246, 246, 240, .94); border-color: #e0e5dc; }
.hangzhou-page nav a[aria-current] { color: #26382f; }
.logo-dot { color: #829887; }
.gallery-shell { width: min(1200px, calc(100% - 80px)); margin-left: auto; margin-right: auto; }
.gallery-intro { padding-top: 48px; }
.gallery-intro-top { display: flex; justify-content: space-between; color: #78867a; font-size: 10px; font-weight: 600; letter-spacing: .16em; }
.gallery-intro-top a:hover { color: #26382f; }
.gallery-title-row { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 76px 0 38px; }
.gallery-kicker { color: #7d8c7d; font-size: 10px; font-weight: 600; letter-spacing: .2em; }
.gallery-title-row h1 { margin-top: 12px; font-family: Georgia, "Songti SC", "STSong", serif; font-size: clamp(64px, 9vw, 116px); font-weight: 400; line-height: 1; letter-spacing: .04em; }
.gallery-title-row h1 span { display: inline-block; margin-left: 25px; color: #91a095; font-size: clamp(25px, 3.5vw, 46px); font-style: italic; letter-spacing: -.03em; }
.gallery-intro-copy { padding-bottom: 6px; color: #758376; font-family: "Songti SC", "STSong", serif; font-size: 15px; line-height: 2; }
.gallery-cover { height: clamp(350px, 49vw, 590px); position: relative; overflow: hidden; background: #d9e0dc; }
.gallery-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery-cover span { position: absolute; left: 25px; bottom: 22px; color: white; font-size: 10px; letter-spacing: .16em; text-shadow: 0 1px 8px #243c39; }
.gallery-meta { display: flex; justify-content: space-between; gap: 15px; padding: 17px 0; border-bottom: 1px solid #ccd4ca; color: #829083; font-size: 10px; letter-spacing: .14em; }
.gallery-collection { padding-top: 130px; }
.collection-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 50px; }
.collection-heading h2 { margin-top: 14px; font-family: Georgia, "Songti SC", "STSong", serif; font-size: clamp(30px, 4vw, 44px); font-weight: 400; }
.collection-heading h2 span { color: #9daf9c; }
.collection-heading > p { color: #89968a; font-size: 13px; line-height: 1.9; }
.photo-grid { columns: 3; column-gap: 28px; }
.photo-card { break-inside: avoid; margin: 0 0 42px; }
.photo-button { display: block; position: relative; width: 100%; padding: 0; overflow: hidden; border: 0; background: #dce3dc; cursor: zoom-in; text-align: left; }
.photo-button img { display: block; width: 100%; height: auto; transition: transform .6s ease; }
.photo-button:hover img { transform: scale(1.035); }
.photo-overlay { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: end; padding: 18px; background: linear-gradient(transparent 60%, rgba(23, 42, 32, .38)); color: #fff; font-size: 10px; letter-spacing: .13em; opacity: 0; transition: opacity .25s; }
.photo-button:hover .photo-overlay, .photo-button:focus-visible .photo-overlay { opacity: 1; }
.photo-card figcaption { display: flex; justify-content: space-between; padding-top: 10px; color: #94a095; font-size: 9px; letter-spacing: .13em; }
.gallery-ending { padding: 90px 0 105px; text-align: center; }
.gallery-ending > span { color: #9ba99b; font-size: 10px; letter-spacing: .18em; }
.gallery-ending p { margin: 17px 0 25px; font-family: "Songti SC", "STSong", serif; font-size: 24px; }
.gallery-ending a { color: #6e8171; font-size: 13px; border-bottom: 1px solid #a8b7a8; padding-bottom: 5px; }
.gallery-footer { min-height: 95px; display: flex; justify-content: space-between; align-items: center; color: #99a699; font-size: 10px; letter-spacing: .12em; border-top: 1px solid #d8dfd6; }
.hangzhou-page .lightbox { background: rgba(18, 27, 23, .97); }
.hangzhou-page .lightbox img { max-width: 80vw; max-height: 78vh; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 20px 32px; color: #a5b3a8; font-size: 10px; letter-spacing: .14em; }
.lb-top > div { display: flex; align-items: center; gap: 22px; }
.hangzhou-page .lb-orig, .hangzhou-page .lb-close { position: static; }
.hangzhou-page .lb-orig { color: #d2dad3; font-size: 12px; letter-spacing: 0; }
.hangzhou-page .lb-close { padding: 0; font-size: 35px; }
.hangzhou-page .lb-prev, .hangzhou-page .lb-next { color: #d2dad3; font-weight: 200; }
.hangzhou-page .lb-counter { color: #b0bcb1; letter-spacing: .16em; }
.photo-button:focus-visible, .gallery-feature:focus-visible, .lightbox button:focus-visible, .lightbox a:focus-visible { outline: 3px solid #9cab85; outline-offset: 3px; }
@media (max-width: 700px) {
    .home-gallery-heading, .gallery-title-row, .collection-heading { align-items: start; flex-direction: column; }
    .home-gallery-heading { gap: 20px; margin-bottom: 30px; }
    .gallery-feature-image img { height: 340px; }
    .gallery-feature-caption { align-items: center; }
    .gallery-feature-link > span:first-child { display: none; }
    .gallery-shell { width: calc(100% - 32px); }
    .gallery-intro { padding-top: 30px; }
    .gallery-title-row { gap: 22px; padding: 58px 0 30px; }
    .gallery-title-row h1 span { margin-left: 12px; }
    .gallery-cover { height: 390px; }
    .gallery-meta { font-size: 8px; letter-spacing: .08em; }
    .gallery-collection { padding-top: 80px; }
    .collection-heading { gap: 18px; margin-bottom: 35px; }
    .photo-grid { columns: 2; column-gap: 12px; }
    .photo-card { margin-bottom: 25px; }
    .photo-card figcaption { font-size: 8px; letter-spacing: .05em; }
    .gallery-ending { padding: 60px 0 75px; }
    .lb-top { padding: 18px 16px; }
    .lb-top > span { font-size: 8px; }
    .hangzhou-page .lightbox img { max-width: 86vw; max-height: 75vh; }
    .hangzhou-page .lb-prev { left: 0; }
    .hangzhou-page .lb-next { right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .gallery-feature-image img, .photo-button img, .photo-overlay { transition: none; }
}

/* Cinematic photo journals */
.home-gallery { background: #1c211f; color: #f2eee5; }
.home-gallery .section-label, .home-gallery-heading > p { color: #a9b0a7; }
.home-gallery-heading { margin-bottom: 55px; }
.home-gallery-heading h2 { font-size: clamp(34px, 4vw, 49px); letter-spacing: .02em; }
.gallery-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.gallery-feature-image { background: #353b36; }
.gallery-feature-image::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(13,18,16,.28), transparent 45%, rgba(13,18,16,.6)); }
.gallery-feature-image img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-feature-number { top: 22px; bottom: auto; z-index: 1; color: #eeeae1; font-size: 10px; }
.feature-image-title { position: absolute; z-index: 1; left: 24px; bottom: 15px; color: white; font-family: Georgia, serif; font-size: clamp(32px, 4.5vw, 60px); font-style: italic; letter-spacing: -.04em; }
.gallery-feature-caption { border-color: #59615a; align-items: center; padding: 22px 0 25px; }
.gallery-feature-kicker { color: #a6afa4; }
.gallery-feature-caption h3 { color: #eeeae1; font-size: 25px; }
.gallery-feature-caption h3 span { color: #a9b0a7; font-size: 15px; }
.gallery-arrow { border-color: #79877a; color: #ece8df; flex: none; }
.gallery-feature:hover .gallery-arrow { background: #e4d3b6; border-color: #e4d3b6; color: #1c211f; }
.hangzhou-page { background: #171c1b; color: #f0ece2; }
.hangzhou-page .navbar { background: rgba(23,28,27,.95); border-color: #343b37; }
.hangzhou-page nav a { color: #adb5ad; }
.hangzhou-page nav a:hover, .hangzhou-page nav a[aria-current] { color: #f0ece2; }
.hangzhou-page .logo-dot { color: #cfad7f; }
.gallery-intro-top, .gallery-kicker { color: #bfad91; }
.gallery-intro-top a:hover { color: #f0ece2; }
.gallery-title-row h1 { font-size: clamp(52px, 8vw, 100px); }
.gallery-title-row h1 span { color: #c3ac8c; }
.gallery-intro-copy { color: #b8beb4; }
.gallery-cover { background: #323b36; }
.gallery-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 68%, rgba(11,17,14,.5)); pointer-events: none; }
.gallery-cover span { z-index: 1; }
.gallery-meta { border-color: #4a524a; color: #aeb5a9; }
.collection-heading h2 span { color: #c5a87e; }
.collection-heading > p { color: #aeb5a9; }
.photo-button { background: #323b36; }
.photo-card figcaption { color: #aab3a7; }
.gallery-ending > span { color: #b4a88f; }
.gallery-ending a { color: #d4c3a5; border-color: #8d826f; }
.gallery-footer { border-color: #414942; color: #abb3a8; }
@media (max-width: 700px) {
    .gallery-feature-grid { grid-template-columns: 1fr; gap: 42px; }
    .gallery-feature-image img { height: auto; aspect-ratio: 4 / 3; }
    .feature-image-title { font-size: 42px; }
    .gallery-title-row h1 { font-size: clamp(46px, 12vw, 64px); }
    .gallery-title-row h1 span { display: block; margin: 12px 0 0; font-size: 30px; }
}
