/* =========================================================================
   Schorsch.app — Journal / Scrapbook theme
   Theme tokens are injected from Theme::get(...). See public/partials/theme_vars.php
   ========================================================================= */

:root {
    --bg:        #faf2e0;
    --surface:   #f4ead0;
    --text:      #2a2622;
    --muted:     #7a6f5f;
    --accent:    #3f5a3a;
    --accent-alt:#c66b3d;
    --card-green:var(--accent);
    --card-orange:var(--accent-alt);
    --radius:    14px;
    --font-head: 'Caveat', 'Pacifico', cursive;
    --font-body: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;

    --shadow-soft: 0 6px 24px rgba(56, 38, 22, 0.08);
    --shadow-tape: 0 4px 14px rgba(0, 0, 0, 0.10);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { background: #ffffff; }
body { background: transparent; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: transparent;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* -------------------------------------------------------------------------
   Page decorations: plants, trees, stamps — fixed-positioned SVG layer
   ------------------------------------------------------------------------- */
.page-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    color: var(--muted);
    mix-blend-mode: multiply;
}
.decor {
    position: absolute;
    opacity: .32;
    transition: opacity .25s ease;
}
body.is-dark .page-decor {
    color: var(--accent);
    opacity: .55;
    mix-blend-mode: screen;
}
body.decor-off .page-decor { display: none; }

/* Bottom-left plant cluster */
.decor--plant-bl {
    left: -28px;
    bottom: -20px;
    width: 200px;
    height: 360px;
    transform: rotate(-3deg);
    color: var(--muted);
}

/* Bottom-right round stamp */
.decor--stamp-br {
    right: 24px;
    bottom: 60px;
    width: 180px;
    height: 180px;
    color: var(--accent-alt);
    transform: rotate(8deg);
    opacity: .42;
}
body.is-dark .decor--stamp-br { color: var(--accent-alt); opacity: .55; }

/* Mid-right pine trio */
.decor--trees-r {
    right: 18px;
    top: 38%;
    width: 96px;
    height: 160px;
    color: var(--accent);
    transform: rotate(-4deg);
    opacity: .35;
}

/* Mid-left leaf sprig */
.decor--leaf-l {
    left: 12px;
    top: 28%;
    width: 80px;
    height: 160px;
    color: var(--muted);
    transform: rotate(6deg);
    opacity: .28;
}

@media (max-width: 1024px) {
    .decor--stamp-br { width: 130px; height: 130px; right: 12px; bottom: 40px; }
    .decor--trees-r  { width: 70px;  height: 120px; right: 8px;  top: 40%; }
    .decor--leaf-l   { width: 60px;  height: 120px; left: 6px;   top: 30%; }
    .decor--plant-bl { width: 140px; height: 260px; left: -22px; bottom: -16px; }
}
@media (max-width: 640px) {
    .decor--trees-r, .decor--leaf-l { display: none; }
    .decor--stamp-br { width: 96px;  height: 96px;  right: 8px; bottom: 24px; opacity: .25; }
    .decor--plant-bl { width: 110px; height: 200px; left: -18px; bottom: -10px; opacity: .22; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Make sure content sits above the decor layer */
.container, .site-footer { position: relative; z-index: 1; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    margin: 0 0 .4em;
    letter-spacing: .2px;
    color: var(--text);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* -------------------------------------------------------------------------
   Site header
   ------------------------------------------------------------------------- */
.site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 40;
    background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0));
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, color .25s ease, backdrop-filter .25s ease;
    color: #f7efd9;
}
.site-header.is-scrolled {
    position: fixed;
    background: rgba(250, 242, 224, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(120, 90, 50, 0.10);
    color: var(--text);
}
.site-header .inner {
    display: flex; align-items: center; gap: 24px;
    padding: 14px 28px;
    max-width: 1300px; margin: 0 auto;
}
.brand {
    font-family: var(--font-head);
    font-size: 28px;
    font-weight: 700;
    color: inherit;
    letter-spacing: .3px;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.site-header.is-scrolled .brand { text-shadow: none; }
.brand .dot { color: var(--accent-alt); }
.brand-logo {
    max-height: 44px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    /* If the logo is a wordmark on a transparent background, the
       default drop-shadow is enough; remove the text-shadow in that
       case so the image doesn't get a halo. */
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.18));
}
.site-header.is-scrolled .brand-logo { filter: none; }

.nav { display: flex; gap: 26px; margin-left: 28px; flex-wrap: wrap; }
.nav a {
    font-family: var(--font-body);
    font-size: 14px;
    color: inherit;
    opacity: .85;
    padding: 6px 2px;
    position: relative;
    transition: opacity .2s;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.site-header.is-scrolled .nav a { text-shadow: none; }
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0; right: 0;
    height: 2px; background: currentColor;
    border-radius: 2px;
}

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.theme-toggle {
    display: inline-flex; gap: 6px; align-items: center;
    background: transparent; border: none; cursor: pointer;
    color: inherit; opacity: .85;
}
.theme-toggle:hover { opacity: 1; }

.search-trigger, .nav-toggle {
    background: transparent; border: none; cursor: pointer;
    color: inherit; opacity: .85; padding: 4px;
}
.search-trigger:hover, .nav-toggle:hover { opacity: 1; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #f7f1e1;
    border: none;
    font: 500 14px/1 var(--font-body);
    cursor: pointer;
    transition: transform .15s, box-shadow .2s, background .2s;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn--ghost {
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
}
.btn--accent-alt { background: var(--accent-alt); }
.btn--lg { padding: 13px 26px; font-size: 15px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 620px;
    margin-top: 0;
    padding-top: 80px;
    overflow: hidden;
    /* The hero image fills the hero edge-to-edge on any width:
       - `background-size: cover` scales the image to cover the entire
         container (cropping if needed) — this prevents tiling on very
         wide viewports where the source image is narrower than 100%.
       - `background-position: center center` keeps the focal point centered.
       - `background-repeat: no-repeat` is belt-and-suspenders: even if the
         rendered size ever slipped below the container, no tile would show.
       The radial-gradient is a dark fallback shown only during loading or
       for browsers that don't support multiple background layers. */
    background:
        var(--hero-img, none) center center / cover no-repeat;
    background-color: #2a2622;
    color: #f7efd9;
}
.hero .container {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 110px;
}

.hero-card {
    background: #f3e8ce;
    color: var(--text);
    padding: 44px 44px 40px;
    max-width: 500px;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transform: rotate(-1deg);
}
.hero-card::before {
    content: '';
    position: absolute;
    top: -16px; left: 32%;
    width: 110px; height: 26px;
    background: rgba(255, 245, 200, .55);
    border: 1px dashed rgba(120, 90, 50, .25);
    transform: rotate(-4deg);
    box-shadow: var(--shadow-tape);
}
.hero-card .leaf-deco {
    position: absolute;
    left: -28px; bottom: 18px;
    width: 70px; opacity: .55;
}
.hero-card .kicker {
    font-family: var(--font-head);
    font-size: 36px;
    line-height: 1; color: var(--text);
    margin-bottom: 4px;
}
.hero-card .title {
    font-family: var(--font-head);
    font-size: 76px;
    line-height: 1; color: var(--accent-alt);
    margin: 0 0 18px;
    font-style: italic;
    text-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.hero-card p { margin: 0 0 22px; color: var(--muted); font-size: 15px; line-height: 1.55; }

.hero-location {
    position: absolute;
    right: 6%;
    bottom: 14%;
    background: #f3e8ce;
    color: var(--text);
    padding: 18px 22px 16px;
    border-radius: 3px;
    box-shadow: var(--shadow-soft);
    max-width: 260px;
    font-size: 13px;
    transform: rotate(2deg);
    background-image: var(--paper-grain);
}
.hero-location::before {
    content: ''; position: absolute;
    top: -14px; left: 28%;
    width: 80px; height: 22px;
    background: rgba(255, 245, 200, .55);
    border: 1px dashed rgba(120, 90, 50, .25);
    transform: rotate(3deg);
}
.hero-location .pin { color: var(--accent-alt); margin-right: 4px; }
.hero-location .place { font-weight: 600; color: var(--text); display: block; margin-bottom: 4px; }

/* -------------------------------------------------------------------------
   Section header
   ------------------------------------------------------------------------- */
.section { padding: 70px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--accent); color: #f7efd9; }
.section-title {
    font-family: var(--font-head);
    font-size: 30px;
    margin: 0 0 28px;
    display: inline-block;
    border-bottom: 2px solid var(--accent-alt);
    padding-bottom: 4px;
}

/* -------------------------------------------------------------------------
   Featured + grid (homepage middle row)
   ------------------------------------------------------------------------- */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 22px;
    align-items: stretch;
}
.feature-card {
    background: var(--card-green);
    color: #f7efd9;
    padding: 26px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 360px;
    position: relative;
    background-image: var(--paper-grain);
    transform: rotate(-0.5deg);
}
.feature-card .kicker {
    font-family: var(--font-head);
    font-size: 22px; opacity: .9;
    border-bottom: 1px solid rgba(255,255,255,.25);
    padding-bottom: 8px; margin-bottom: 14px;
}
.feature-card h3 {
    font-family: var(--font-head);
    color: #f7efd9;
    font-size: 42px;
    line-height: 1.05;
    margin: 0 0 16px;
}
.feature-card p { color: rgba(247,239,217,.85); font-size: 13px; }
.feature-card .read-link {
    margin-top: 16px;
    color: #f7efd9;
    font-size: 13px;
    display: inline-flex; gap: 6px; align-items: center;
}

.feature-photo {
    background: #efe6d2;
    padding: 14px 14px 38px;
    box-shadow: var(--shadow-soft);
    transform: rotate(1deg);
    position: relative;
    border-radius: 2px;
}
.feature-photo img { width: 100%; height: 240px; object-fit: cover; border-radius: 1px; }
.feature-photo .stamp {
    position: absolute;
    top: 18px; right: 18px;
    width: 78px; height: 78px;
    border: 1px solid rgba(0,0,0,.6);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head);
    font-size: 13px;
    text-align: center;
    color: rgba(0,0,0,.65);
    line-height: 1.1;
    background: rgba(255, 245, 200, .4);
    transform: rotate(-8deg);
}

.notes-card {
    background: var(--surface);
    padding: 22px;
    border-radius: 4px;
    box-shadow: var(--shadow-soft);
    transform: rotate(-0.5deg);
}
.notes-card .label {
    font-family: var(--font-head);
    font-size: 24px;
    color: var(--text);
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    padding-bottom: 6px;
}
.note-row {
    display: grid;
    grid-template-columns: 48px 1fr 20px;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    align-items: center;
}
.note-row:last-child { border-bottom: none; }
.note-row .icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(63,90,58,.08);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    font-size: 20px;
}
.note-row strong { display: block; font-family: var(--font-body); font-size: 13px; }
.note-row small { color: var(--muted); font-size: 12px; }
.note-row .arrow { color: var(--muted); }

.quick-note {
    background: var(--card-orange);
    color: #f7efd9;
    padding: 26px;
    border-radius: 4px;
    min-height: 360px;
    display: flex; flex-direction: column; justify-content: space-between;
    transform: rotate(0.7deg);
    background-image: var(--paper-grain);
}
.quick-note .label {
    font-family: var(--font-head);
    font-size: 22px;
    border-bottom: 1px solid rgba(255,255,255,.25);
    padding-bottom: 8px;
}
.quick-note p { font-family: var(--font-head); font-size: 28px; line-height: 1.25; margin: 14px 0; }
.quick-note .treeline { opacity: .55; font-size: 56px; text-align: right; }

/* -------------------------------------------------------------------------
   Recent articles
   ------------------------------------------------------------------------- */
.section-header {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 22px;
}
.section-header h2 {
    font-family: var(--font-head);
    font-size: 30px;
    margin: 0;
}
.section-header a { color: var(--text); font-size: 13px; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.post-card {
    background: var(--surface);
    border-radius: 4px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 160px 1fr;
    box-shadow: var(--shadow-soft);
    transition: transform .2s;
}
.post-card:hover { transform: translateY(-2px); }
.post-card .img {
    background: #ddd center/cover no-repeat;
    min-height: 160px;
    position: relative;
}
.post-card .img .cat {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(63,90,58,.9);
    color: #f7efd9;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.post-card .body { padding: 14px 16px; }
.post-card h3 {
    font-family: var(--font-body);
    font-size: 17px; font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.3;
}
.post-card p { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.post-card .meta { color: var(--muted); font-size: 11px; display: flex; gap: 10px; }

/* -------------------------------------------------------------------------
   Snapshots strip
   ------------------------------------------------------------------------- */
.snapshots {
    background: none;
    padding: 50px 0;
}
.snapshots h2 {
    font-family: var(--font-head);
    font-size: 28px;
    margin: 0 0 22px;
}
.snap-strip {
    display: none;     /* legacy, kept so cached CSS doesn't 404 */
}
.snap {
    display: none;
}

/* Polaroid-style snapshots: 5 images on a single row, equal size,
   slight random tilt, white border, hover straightens a touch. */
.polaroids {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-end;
    gap: clamp(10px, 1.6vw, 28px);
    padding: 36px 12px 16px;
    overflow-x: auto;     /* fallback on very narrow viewports */
    scrollbar-width: thin;
}
.polaroid {
    --tilt: -5deg;
    flex: 1 1 0;
    min-width: 0;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    background: #fdfdf8;
    padding: 14px 14px 42px;
    transform: rotate(var(--tilt));
    transform-origin: center;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    text-decoration: none;
    cursor: pointer;
    position: relative;
}
.polaroid:hover {
    transform: rotate(0deg) scale(1.06) translateY(-4px);
    z-index: 2;
}
.polaroid-photo {
    display: block;
    aspect-ratio: 1 / 1;
    width: 100%;
    background: #ddd center/cover no-repeat;
    transition: opacity .25s ease;
}
.polaroid-cap {
    display: block;
    height: 38px;
    margin-top: 10px;
    padding: 0 4px;
    font-family: 'Caveat', cursive;
    font-size: 19px;
    line-height: 1.15;
    color: #2a2622;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: opacity .25s ease;
}
.polaroid.is-swapping .polaroid-cap,
.polaroid.is-swapping .polaroid-photo { opacity: 0.4; }
body.is-dark .polaroid {
    background: #f4ecd8;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .55), 0 2px 3px rgba(0, 0, 0, .35);
}
@media (max-width: 720px) {
    .polaroids { gap: 8px; padding: 18px 4px 8px; justify-content: flex-start; }
    .polaroid { flex: 0 0 150px; padding: 8px 8px 26px; }
    .polaroid-cap { font-size: 14px; height: 28px; margin-top: 6px; }
    /* On small screens, undo the tilt — stacked tilted photos get messy. */
    .polaroid { transform: none; }
}
.snap-instagram {
    text-align: right;
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--text);
    line-height: 1.2;
}
.snap-instagram a { color: var(--accent-alt); }

/* -------------------------------------------------------------------------
   Single post page
   ------------------------------------------------------------------------- */

/* Featured image — sits flush at the top of the article, above the
   title strip. Always full-width, capped at 250px so it acts like a
   slim banner rather than a giant hero. object-fit cover keeps tall
   portraits from overflowing on mobile. */
.post-hero-img {
    margin: 0;
    width: 100%;
    height: clamp(180px, 28vw, 250px);
    overflow: hidden;
    background: linear-gradient(135deg, #4b3520, #1a1411);
}
.post-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.post-hero {
    position: relative;
    min-height: 180px;
    background: linear-gradient(180deg, rgba(20,18,16,.35), rgba(20,18,16,.55)),
                var(--post-hero-img, linear-gradient(135deg, #4b3520, #1a1411)) center/cover no-repeat;
    color: #f7efd9;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 44px 24px;
}
/* When the featured image is shown above, the title strip uses a flat
   background so the two halves feel like one header. */
.post-hero-img + .post-hero {
    background: var(--brand-deep, #2a2622);
}
.post-hero h1 {
    font-family: var(--font-head);
    color: #f7efd9;
    font-size: 64px;
    max-width: 800px;
    line-height: 1;
    margin: 0 auto 14px;
}
.post-hero .meta { font-size: 13px; opacity: .85; }

.post-content {
    max-width: 720px;
    margin: 60px auto;
    padding: 0 24px;
    font-size: 17px;
    line-height: 1.8;
}
.post-layout-with-note .post-content {
    margin: 60px 0;
    padding: 0;
    max-width: 720px;
}

/* Inline gallery — auto-built from runs of 2+ adjacent <figure>s in the
   post body. Sits inside .post-content (max 720px) so the columns are
   a bit smaller than the bottom .post-gallery block. */
.post-content .inline-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin: 24px 0;
}
.inline-gallery-tile {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    background: #f6efe1;
    transition: transform .15s ease, box-shadow .15s ease;
}
.inline-gallery-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }
body.is-dark .inline-gallery-tile { background: #2a2622; }
.inline-gallery-tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 640px) {
    .post-content .inline-gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

/* -------------------------------------------------------------------------
   Post location minimap (rendered when a post has lat/lng set)
   ------------------------------------------------------------------------- */
.post-layout-with-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 48px;
    align-items: start;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.post-main-col { min-width: 0; }
.post-sticky-note {
    position: sticky;
    top: 86px;
    background: #fff8d6;
    background-image: linear-gradient(180deg, #fff8d6 0%, #ffe89c 100%);
    color: #2a2622;
    width: 290px;
    padding: 26px 22px 22px 22px;
    border-radius: 4px 14px 14px 4px;
    box-shadow:
        0 1px 0 rgba(0, 0, 0, .06),
        0 8px 20px rgba(0, 0, 0, .08),
        0 1px 0 rgba(0, 0, 0, .02);
    transform: rotate(.6deg);
    transition: transform .25s ease;
    font-family: 'Caveat', 'Patrick Hand', var(--font-body, system-ui);
    align-self: start;
}
.post-sticky-note::before {
    content: '';
    position: absolute;
    top: -28px;
    left: 18px;
    width: 72px;
    height: 72px;
    background:
        radial-gradient(circle at 32% 30%, #ff7474 0%, #d22 35%, #a00 75%, #5a0000 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 -8px 14px rgba(0,0,0,.3),
        inset 0 3px 0 rgba(255,255,255,.32),
        inset 0 -2px 0 rgba(0,0,0,.22),
        0 8px 14px rgba(0,0,0,.25),
        0 0 0 2px rgba(0,0,0,.05);
}
.post-sticky-note::after {
    /* pin prick in the middle of the head */
    content: '';
    position: absolute;
    top: -2px;
    left: 48px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff8d6;
    box-shadow:
        inset 0 1px 2px rgba(0,0,0,.4),
        0 0 0 1px rgba(0,0,0,.08);
}
.post-sticky-note:hover { transform: rotate(0deg) translateY(-2px); }

.post-sticky-note-pin {
    position: absolute;
    top: -22px;
    left: 28px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 3;
    cursor: pointer;
}
.post-sticky-note-pin .pin-dot {
    display: none;
}
.post-sticky-note-pin .pin-label {
    display: block;
    color: #fff8d6;
    background: transparent;
    font-family: var(--font-ui, system-ui);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-shadow:
        0 1px 0 rgba(0,0,0,.4),
        0 2px 4px rgba(0,0,0,.2);
    margin-top: -2px;
}

.post-sticky-note-body { padding-top: 6px; }
.post-sticky-note-heading { margin-bottom: 6px; }
.post-sticky-note-type {
    display: inline-block;
    background: #2a2622;
    color: #fff8d6;
    padding: 3px 9px;
    border-radius: 999px;
    font-family: var(--font-ui, system-ui);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.post-sticky-note-title {
    font-family: var(--font-head);
    font-size: 22px;
    line-height: 1.1;
    margin: 4px 0 8px;
    color: #2a2622;
}
.post-sticky-note-address {
    font-family: var(--font-ui, system-ui);
    font-size: 13px;
    line-height: 1.45;
    color: #5a4632;
    margin: 0 0 12px;
}
.post-sticky-note-coords {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: 'Courier New', ui-monospace, monospace;
    font-size: 12px;
    background: rgba(42, 38, 34, .08);
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    color: #2a2622;
}
.post-sticky-note-coords span { display: block; }
.post-sticky-note-cta {
    display: inline-block;
    background: #2a2622;
    color: #fff8d6;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-ui, system-ui);
    font-size: 13px;
    font-weight: 600;
}
.post-sticky-note-cta:hover { background: #b12; }

@media (max-width: 980px) {
    .post-layout-with-note { grid-template-columns: 1fr; gap: 0; }
    .post-sticky-note {
        position: relative;
        top: auto;
        width: auto;
        margin: 24px auto;
        max-width: 320px;
        transform: none;
    }
}

.post-location {
    margin: 60px auto;
    padding: 0 24px;
    max-width: 1100px;
}
.post-location-title {
    font-family: var(--font-head);
    font-size: 32px;
    color: var(--brand-deep, #2a2622);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px dashed rgba(120, 90, 50, .22);
}
body.is-dark .post-location-title { color: var(--text); border-bottom-color: rgba(255,255,255,.12); }
.post-location-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}
.post-location-map {
    height: 400px;
    border-radius: 8px;
    background: linear-gradient(135deg, #d4e6c8 0%, #a8c9a0 100%);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.post-location-info { font-size: 15px; line-height: 1.6; }
.post-location-info .badge {
    display: inline-block;
    background: var(--accent);
    color: #f7efd9;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.post-location-type { margin: 0 0 14px; }
.post-location-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 6px;
    align-items: baseline;
    margin: 0 0 8px;
    color: var(--text);
}
.post-location-row .ico { font-size: 16px; text-align: center; }
.post-location-row a { color: var(--accent); }
.post-location-amenities { margin-top: 18px; }
.post-location-amenities h3,
.post-location-notes h3 {
    font-family: var(--font-head);
    font-size: 22px;
    color: var(--brand-deep, #2a2622);
    margin: 0 0 8px;
}
body.is-dark .post-location-amenities h3,
body.is-dark .post-location-notes h3 { color: var(--text); }
.post-location-amenities ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 8px;
}
.post-location-amenities li {
    background: rgba(63,90,58,.10);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
}
.post-location-notes { margin-top: 18px; }
.post-location-notes p { margin: 0; color: var(--text); }
@media (max-width: 768px) {
    .post-location-grid { grid-template-columns: 1fr; }
    .post-location-map  { height: 280px; }
}
.leaflet-container { font-family: inherit; }

/* -------------------------------------------------------------------------
   Post gallery (auto-built from <img> in the body) + lightbox
   ------------------------------------------------------------------------- */
.post-gallery {
    margin: 40px auto 60px;
    padding: 0 24px;
    max-width: 1100px;
}
.post-gallery-title {
    font-family: var(--font-head);
    font-size: 36px;
    color: var(--brand-deep, #2a2622);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px dashed rgba(120, 90, 50, .22);
}
body.is-dark .post-gallery-title { color: var(--text); border-bottom-color: rgba(255,255,255,.12); }

.post-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.post-gallery-tile {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: #f6efe1;
    position: relative;
    transition: transform .15s ease;
}
.post-gallery-tile:hover { transform: translateY(-2px); }
body.is-dark .post-gallery-tile { background: #2a2622; }
.post-gallery-tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox overlay */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(20, 18, 16, .92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 40px;
    cursor: zoom-out;
}
.lightbox.is-open { display: flex; animation: fade-in .15s ease; }
.lightbox-img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    cursor: default;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    width: 48px; height: 48px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px;  top: 50%; transform: translateY(-50%); font-size: 38px; }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); font-size: 38px; }
.lightbox-counter {
    position: absolute;
    bottom: 18px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,.75);
    font-size: 13px;
    font-family: 'IBM Plex Mono', monospace;
}

@media (max-width: 640px) {
    .post-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
    .lightbox { padding: 14px; }
    .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 26px; }
}
.post-content h2 { font-family: var(--font-head); font-size: 36px; margin-top: 1.4em; }
.post-content p, .post-content ul, .post-content ol { margin: 0 0 1em; }
.post-content img { border-radius: 4px; box-shadow: var(--shadow-soft); margin: 20px 0; }
.post-content blockquote {
    border-left: 3px solid var(--accent-alt);
    margin: 1.2em 0;
    padding: 6px 18px;
    color: var(--muted);
    font-style: italic;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.site-footer {
    background: #2a2622;
    color: #d8cdb4;
    padding: 60px 0 30px;
}
.site-footer .row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}
.site-footer h4 {
    font-family: var(--font-head);
    color: #f7efd9;
    font-size: 22px;
    margin: 0 0 12px;
}
.site-footer a { color: #d8cdb4; opacity: .8; }
.site-footer a:hover { opacity: 1; color: var(--accent-alt); }
.site-footer .bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 18px;
    margin-top: 36px;
    display: flex; justify-content: space-between;
    font-size: 12px;
    opacity: .7;
}

/* -------------------------------------------------------------------------
   Search overlay
   ------------------------------------------------------------------------- */
.search-overlay {
    position: fixed; inset: 0;
    background: rgba(20,18,16,.55);
    display: none;
    align-items: flex-start;
    justify-content: center;
    z-index: 100;
    padding-top: 14vh;
}
.search-overlay.is-open { display: flex; }
.search-overlay .panel {
    background: var(--bg);
    width: min(620px, 92vw);
    padding: 26px;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
    transform: rotate(-0.5deg);
}
.search-overlay input {
    width: 100%; padding: 14px 16px;
    border: 1px solid rgba(120,90,50,.25);
    border-radius: 4px;
    background: #fff;
    font: 15px var(--font-body);
    color: var(--text);
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .feature-row { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .snap-strip { grid-template-columns: repeat(3, 1fr); }
    .snap-instagram { grid-column: 1 / -1; text-align: left; }
    .site-footer .row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .nav { display: none; }
    .nav.is-open { display: flex; flex-direction: column; gap: 14px; padding: 14px 0; }
    .hero .container { padding-top: 30px; padding-bottom: 40px; }
    .hero-card .title { font-size: 44px; }
    .hero-card .kicker { font-size: 26px; }
    .hero-location { position: static; margin-top: 22px; transform: rotate(0); max-width: none; }
    .cards-grid { grid-template-columns: 1fr; }
    .snap-strip { grid-template-columns: repeat(2, 1fr); }
    .site-footer .row { grid-template-columns: 1fr; }
    .feature-card h3, .post-hero h1 { font-size: 36px; }
}

/* -------------------------------------------------------------------------
   Dark mode (toggle from header)
   ------------------------------------------------------------------------- */
body.is-dark {
    --bg: #1c1a17;
    --surface: #25221e;
    --text: #ede2c8;
    --muted: #978a73;
    --accent: #7ea672;
    --accent-alt: #e08a55;
    background-image: radial-gradient(circle at 30% 40%, rgba(255,255,255,.02) 0 1px, transparent 1.5px);
}
body.is-dark .hero-card,
body.is-dark .hero-location,
body.is-dark .feature-photo,
body.is-dark .notes-card,
body.is-dark .post-card,
body.is-dark .quick-note,
body.is-dark .feature-card {
    background-color: #2a2622;
    color: #ede2c8;
}
body.is-dark .hero-card p,
body.is-dark .note-row small,
body.is-dark .post-card p,
body.is-dark .post-card .meta { color: #978a73; }
/* Header in dark mode: only goes opaque after scrolling off the hero */
body.is-dark .site-header { background: transparent; }
body.is-dark .site-header.is-scrolled { background: rgba(28,26,23,.86); }

/* -------------------------------------------------------------------------
   Hamburger drawer + generic menu styles
   ------------------------------------------------------------------------- */
.menu { list-style: none; margin: 0; padding: 0; }
.menu li { list-style: none; }
.menu--inline   { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.menu--inline .menu-item > a { display: inline-flex; align-items: center; gap: 6px; }
.menu--drawer   { display: flex; flex-direction: column; gap: 4px; }
.menu--footer   { display: flex; flex-direction: column; gap: 4px; }
.menu--sub      { padding-left: 18px; border-left: 2px solid rgba(120,90,50,.18); margin-top: 4px; }
.menu-item      { position: relative; list-style: none; }
.menu-item > a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px;
    color: inherit; text-decoration: none;
    transition: background .15s ease;
}
.menu--inline .menu-item > a { padding: 6px 10px; }
.menu-item > a:hover { background: rgba(120,90,50,.08); }
.menu-item.has-children > a { font-weight: 500; }
.menu-icon { display: inline-block; min-width: 18px; text-align: center; }
.menu-caret { margin-left: auto; opacity: .55; transition: transform .2s; }
.menu-item.has-children.is-open > a .menu-caret { transform: rotate(180deg); }
.menu-item.has-children:not(.is-open) > .menu--sub { display: none; }

/* Drawer (slide-in panel triggered by the hamburger button) */
.nav-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    left: auto; width: min(360px, 100vw);
    z-index: 200; pointer-events: none;
    display: block;
    height: 100vh; height: 100dvh;
}
.nav-drawer-scrim {
    position: fixed; inset: 0;
    background: rgba(20, 18, 16, .55);
    opacity: 0; transition: opacity .25s ease;
    border: 0; padding: 0; cursor: pointer;
    z-index: 1;
}
.nav-drawer-inner {
    position: relative;
    width: 100%; max-width: 360px;
    height: 100vh; height: 100dvh;
    background: var(--bg);
    color: var(--text);
    padding: 24px 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
    box-shadow: -8px 0 24px rgba(0, 0, 0, .15);
    z-index: 2;
}
.nav-drawer.is-open { pointer-events: auto; }
.nav-drawer.is-open .nav-drawer-inner  { transform: translateX(0); }
.nav-drawer.is-open .nav-drawer-scrim { opacity: 1; pointer-events: auto; }
.nav-drawer-title {
    font-family: var(--font-head); font-size: 30px; margin: 0 0 16px;
    color: var(--brand-deep, #2a2622);
}
.nav-drawer-close {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px;
    background: transparent; border: 0;
    font-size: 28px; line-height: 1; cursor: pointer; color: inherit;
}
.nav-drawer-close:hover { color: var(--accent-alt, #c66b3d); }
.nav-drawer-list { margin-top: 10px; }
body.nav-open { overflow: hidden; }
body.is-dark .quick-note { color: #ede2c8; }