:root {
    --cream: #fbf5e6;
    --cream-deep: #f3e7c9;
    --paper: #fffdf7;
    --gold: #c39a3f;
    --gold-deep: #96702a;
    --green: #2f6b4f;
    --green-soft: #7fa78c;
    --water: #7ec8d8;
    --water-deep: #2f7f92;
    --sky: #dff1f5;
    --ink: #22342d;
    --muted: #667a70;
    --line: rgba(47, 107, 79, 0.18);
    --shadow: 0 18px 45px rgba(47, 107, 79, 0.12);
    --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
    --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% -10%, rgba(195, 154, 63, 0.22), transparent 38%),
        radial-gradient(circle at 88% 4%, rgba(126, 200, 216, 0.32), transparent 34%),
        radial-gradient(circle at 50% 110%, rgba(47, 107, 79, 0.14), transparent 42%),
        var(--cream);
    font: 17px/1.7 var(--sans);
    text-rendering: optimizeLegibility;
}

::selection {
    color: var(--paper);
    background: var(--green);
}

a {
    color: var(--green);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
    color: var(--gold-deep);
}

.wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.site-header {
    padding: 1.35rem 0 0;
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--green);
    font: 600 1.18rem/1.2 var(--serif);
    letter-spacing: 0.01em;
    text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
    color: var(--gold-deep);
}

.brand-mark {
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 auto;
}

#nav-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.25rem;
}

.nav-link {
    position: relative;
    padding: 0.25rem 0;
    color: var(--muted);
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.15rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), var(--water));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
    color: var(--green);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
    transform: scaleX(1);
}

main {
    padding: clamp(2.2rem, 6vw, 5rem) 0 4rem;
}

.hero {
    position: relative;
    display: grid;
    gap: 1.5rem;
    padding: clamp(1.6rem, 4vw, 3.2rem);
    border: 1px solid var(--line);
    border-radius: 2rem 2rem 2rem 0.6rem;
    background:
        linear-gradient(135deg, rgba(255, 253, 247, 0.94), rgba(223, 241, 245, 0.72)),
        var(--paper);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -5rem;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(126, 200, 216, 0.45), transparent 68%);
    pointer-events: none;
}

.eyebrow {
    margin: 0;
    color: var(--gold-deep);
    font: 600 0.8rem/1.3 var(--sans);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 {
    max-width: 20ch;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 4.6rem);
}

h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(1.55rem, 3.4vw, 2.3rem);
}

h3 {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
}

.lead {
    max-width: 62ch;
    margin: 0;
    color: #3b5148;
    font-size: clamp(1.05rem, 2.2vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.4rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.85rem;
    padding: 0.65rem 1.3rem;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--green);
    color: var(--paper);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
.btn:focus-visible {
    background: #24543d;
    color: var(--paper);
    box-shadow: 0 10px 25px rgba(47, 107, 79, 0.22);
    transform: translateY(-1px);
}

.btn.ghost {
    border-color: var(--line);
    background: rgba(255, 253, 247, 0.7);
    color: var(--green);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
    background: var(--paper);
    color: var(--gold-deep);
}

.section {
    margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 0.8rem 2rem;
    margin-bottom: 1.4rem;
}

.section-head p {
    max-width: 58ch;
    margin: 0;
    color: var(--muted);
}

.cards {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 1.4rem 1.4rem 1.4rem 0.35rem;
    background: rgba(255, 253, 247, 0.8);
}

.card p:last-child {
    margin-bottom: 0;
}

.card .kicker {
    margin: 0 0 0.35rem;
    color: var(--gold-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-intro {
    max-width: 70ch;
}

.page-intro p {
    color: var(--muted);
}

.gallery {
    columns: 4 220px;
    column-gap: 1rem;
    margin-top: 2rem;
}

.shot {
    display: block;
    width: 100%;
    margin: 0 0 1rem;
    padding: 0;
    font: inherit;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(47, 107, 79, 0.12);
    border-radius: 1.1rem;
    background: var(--paper);
    box-shadow: 0 8px 22px rgba(47, 107, 79, 0.08);
    break-inside: avoid;
    overflow: hidden;
    text-align: left;
    cursor: zoom-in;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.shot:hover,
.shot:focus-visible {
    box-shadow: 0 16px 34px rgba(47, 107, 79, 0.16);
    transform: translateY(-2px);
}

.shot:focus-visible {
    outline: 3px solid var(--water);
    outline-offset: 3px;
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--sky);
}

.shot-body {
    display: block;
    padding: 0.75rem 0.85rem 0.85rem;
}

.shot-copy {
    display: block;
    color: var(--ink);
    font-size: 0.93rem;
    line-height: 1.5;
}

.shot-date {
    display: block;
    margin-top: 0.4rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.55rem;
}

.tag {
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    background: var(--cream-deep);
    color: var(--gold-deep);
    font-size: 0.72rem;
    letter-spacing: 0.02em;
}

.empty {
    margin-top: 2rem;
    padding: 2rem;
    border: 1px dashed var(--green-soft);
    border-radius: 1.2rem;
    background: rgba(255, 253, 247, 0.6);
    color: var(--muted);
    text-align: center;
}

dialog.lightbox {
    width: min(70rem, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    padding: 0;
    border: 0;
    border-radius: 1.3rem;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 30px 80px rgba(15, 40, 32, 0.35);
}

dialog.lightbox::backdrop {
    background: rgba(20, 40, 33, 0.55);
    backdrop-filter: blur(3px);
}

.lightbox-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 1fr);
    max-height: calc(100vh - 2rem);
}

.lightbox-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #16211d;
    min-height: 18rem;
}

.lightbox-image img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 2rem);
    object-fit: contain;
}

.lightbox-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem;
    overflow-y: auto;
}

.lightbox-body h2 {
    margin: 0;
    font-size: 1.5rem;
}

.lightbox-copy {
    margin: 0;
    white-space: pre-wrap;
}

.lightbox-close {
    align-self: start;
    width: 2.4rem;
    height: 2.4rem;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--cream);
    color: var(--green);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.blog-list {
    display: grid;
    gap: 1.4rem;
    max-width: 78ch;
    margin-top: 2rem;
}

.post {
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--line);
}

.post:last-child {
    border-bottom: 0;
}

.post-meta {
    margin: 0 0 0.3rem;
    color: var(--gold-deep);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.post h2 {
    margin-bottom: 0.5rem;
}

.post p {
    margin-top: 0;
}

.ponder {
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--water);
    border-radius: 0 0.8rem 0.8rem 0;
    background: rgba(223, 241, 245, 0.5);
    color: #35544c;
    font-family: var(--serif);
    font-size: 1.08rem;
}

.site-footer {
    padding: 2rem 0 2.5rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.7rem 2rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 820px) {
    .lightbox-inner {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .lightbox-image {
        min-height: 0;
    }

    .lightbox-image img {
        max-height: 62vh;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 16px;
    }

    .wrap {
        width: min(100% - 1.6rem, 1120px);
    }

    .site-header .wrap {
        align-items: flex-start;
    }

    #nav-container {
        gap: 0.25rem 0.9rem;
    }

    .hero {
        border-radius: 1.3rem 1.3rem 1.3rem 0.4rem;
    }

    .gallery {
        columns: 2 150px;
        column-gap: 0.7rem;
    }

    .shot {
        margin-bottom: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
