:root {
    --bg: #f4efe6;
    --bg-deep: #ebe3d4;
    --ink: #1c1915;
    --muted: #6b6358;
    --accent: #0f5c4c;
    --accent-soft: #d7ebe4;
    --line: rgba(28, 25, 21, 0.12);
    --card: rgba(255, 252, 247, 0.82);
    --shadow: 0 18px 50px rgba(28, 25, 21, 0.08);
    --radius: 18px;
    --font: "DM Sans", sans-serif;
    --display: "Instrument Serif", Georgia, serif;
    --header-bg: rgba(244, 239, 230, 0.8);
    --glow-1: rgba(15, 92, 76, 0.18);
    --glow-2: rgba(180, 120, 60, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    line-height: 1.6;
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, var(--glow-1), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, var(--glow-2), transparent 50%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.container {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    background: var(--header-bg);
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.brand {
    text-decoration: none;
    color: inherit;
    display: grid;
    gap: 0.15rem;
}

.brand-name {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1;
}

.brand-tagline {
    color: var(--muted);
    font-size: 0.9rem;
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    opacity: 0.8;
}

.nav a:hover { opacity: 1; color: var(--accent); }

.site-main { padding: 2.5rem 0 4rem; }
.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem 0 2.5rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.footer-copy { margin: 0; }

.footer-powered {
    opacity: 0.75;
    white-space: nowrap;
}

.footer-legal {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.footer-legal a {
    color: var(--muted);
    text-decoration: none;
}

.footer-legal a:hover { color: var(--accent); }

.footer-legal-sep { opacity: 0.5; }

.hero {
    padding: 2rem 0 1rem;
    animation: rise 0.7s ease both;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.lede { color: var(--muted); font-size: 1.1rem; max-width: 40rem; }

.prose h1, .prose h2, .section h1, .section h2 {
    font-family: var(--display);
    font-weight: 400;
    line-height: 1.15;
}

.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 1rem; }
.prose img { max-width: 100%; height: auto; border-radius: 12px; }

.section { margin-top: 3rem; animation: rise 0.8s ease both; }

.post-list, .album-grid, .gallery-grid {
    display: grid;
    gap: 1.25rem;
}

.post-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.album-grid, .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.post-card, .album-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover, .album-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.post-card h2, .post-card h3, .album-card h2 {
    font-family: var(--display);
    margin: 0 0 0.5rem;
    font-weight: 400;
}

.post-card a { color: inherit; text-decoration: none; }
.post-card time, .album-card span { color: var(--muted); font-size: 0.9rem; }

.album-card img, .album-placeholder, .gallery-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 0.75rem;
    background: var(--accent-soft);
}

.gallery-grid figure { margin: 0; }
.gallery-grid figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.4rem; }

.gallery-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    border-radius: 12px;
    overflow: hidden;
}
.gallery-trigger img {
    margin-bottom: 0;
    transition: transform 0.3s ease;
}
.gallery-trigger:hover img { transform: scale(1.03); }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}
.lightbox-figure {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(1100px, 100%);
    max-height: 90vh;
    text-align: center;
    animation: lbIn 0.25s ease;
}
.lightbox-figure img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.lightbox-figure figcaption {
    color: #ddd;
    margin-top: 0.75rem;
    font-size: 0.95rem;
}
.lightbox-close,
.lightbox-nav {
    position: absolute;
    z-index: 2;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox-close { top: 1rem; right: 1rem; font-size: 1.8rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
body.lightbox-open { overflow: hidden; }

@keyframes lbIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 700px) {
    .lightbox-prev { left: 0.35rem; }
    .lightbox-next { right: 0.35rem; }
}

.flash {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}
.flash-success { background: #e4f5ea; color: #14532d; }
.flash-error { background: #fde8e8; color: #7f1d1d; }

.meta { color: var(--muted); }

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
    .brand-name { font-size: 1.7rem; }
}
