/* =============================================================================
   With Elli — Earthy Design System
   ============================================================================= */

/* --- Design Tokens --- */
:root {
    /* Accent palette (same in both themes) */
    --clay:    #C66E52;
    --sienna:  #B55E44;
    --ochre:   #E9B63B;
    --sand:    #ECD5BC;
    --moss:    #758A93;
    --fern:    #8A9DA6;
    --lichen:  #A8B8BF;
    --stone:   #758A93;
    --rust:    #C66E52;
    --amber:   #E9B63B;

    /* Light theme (default) */
    --bg:     #ECD5BC;
    --bg2:    #E2C9AD;
    --card:   #F5E8D8;
    --card2:  #ECDBCA;
    --border: rgba(117, 138, 147, 0.25);
    --text:   #2A2520;
    --text2:  #4A3F38;
    --muted:  #6A7578;
    --soft:   #A8B0A8;

    /* Three-color blend: slate → clay → amber */
    --triblend: linear-gradient(90deg, #758A93 0%, #C66E52 55%, #E9B63B 100%);

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Lato', system-ui, sans-serif;
    --font-ui:      'Lato', system-ui, sans-serif;

    /* Layout */
    --site-width:    1200px;
    --home-width:    820px;
    --reading-width: 740px;
    --radius:        3px;
    --header-h:      64px;
}

[data-theme="dark"] {
    --bg:     #222831;
    --bg2:    #1B2029;
    --card:   #393E46;
    --card2:  #2E333C;
    --border: rgba(148, 137, 121, 0.25);
    --text:   #DFD0B8;
    --text2:  #C4B59E;
    --muted:  #948979;
    --soft:   #5A5148;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #1B2029 0%, #393E46 25%, #2E2B32 50%, #3A342E 75%, #222831 100%) fixed;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 19px;
    line-height: 1.85;
    color: var(--text);
    background: linear-gradient(135deg, #758A93 0%, #C66E52 55%, #E9B63B 100%) fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.25s, color 0.25s;
}

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; display: block; }
main { flex: 1; }

/* --- Utilities --- */
.section-inner {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--bg);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #758A93 0%, #C66E52 55%, #E9B63B 100%) 1;
    height: var(--header-h);
    transition: background 0.25s;
}

.header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: 5px;
    font-weight: 300;
    color: #2A2520;
    text-decoration: none;
    flex-shrink: 0;
    opacity: 1;
}

.site-logo:hover { opacity: 0.8; }
.logo-dot { color: #2A2520; }
/* hide hex and text span — keep logo as plain "WITH·ELLI" text */
.logo-hex { display: none; }
.logo-text { letter-spacing: 5px; font-weight: 300; }

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
}

.hamburger-menu span { display: block; width: 22px; height: 2px; background: #2A2520; border-radius: 1px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.nav-links a {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #2A2520;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: color 0.2s, background 0.2s;
    opacity: 1;
}

.nav-links a:hover,
.nav-links a.active { color: #2A2520; background: rgba(0,0,0,0.12); }

.nav-contact-btn {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.9) !important;
    color: #C66E52 !important;
    padding: 7px 16px !important;
    border-radius: var(--radius) !important;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-left: 4px;
}

.nav-contact-btn:hover { opacity: 0.85 !important; }

/* --- Guides dropdown --- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-btn {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #2A2520;
    padding: 6px 12px;
    border-radius: var(--radius);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s, background 0.2s;
}

.nav-dropdown-btn:hover,
.nav-dropdown-btn[aria-expanded="true"] {
    color: #2A2520;
    background: rgba(0,0,0,0.12);
}

.nav-dd-arrow {
    font-size: 9px;
    transition: transform 0.2s;
    display: inline-block;
}

.nav-dropdown-btn[aria-expanded="true"] .nav-dd-arrow { transform: rotate(180deg); }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding-top: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    z-index: 300;
    overflow: hidden;
}

/* Desktop: hover opens the dropdown */
.nav-dropdown:hover .nav-dropdown-menu { display: flex; }
.nav-dropdown:hover .nav-dropdown-btn { color: #2A2520; background: rgba(0,0,0,0.12); }
.nav-dropdown:hover .nav-dd-arrow { transform: rotate(180deg); }

/* Mobile tap / keyboard: .open class opens it */
.nav-dropdown-menu.open { display: flex; }

.nav-dropdown-menu a {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 11px 18px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:last-child { border-bottom: none; }

.nav-dropdown-menu a:hover {
    background: rgba(198, 110, 82, 0.1);
    color: var(--clay);
}

.theme-toggle {
    background: none;
    border: 1px solid rgba(42,37,32,0.35);
    border-radius: 20px;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 13px;
    color: #2A2520;
    transition: border-color 0.2s, color 0.2s;
    line-height: 1;
    flex-shrink: 0;
}

.theme-toggle:hover { border-color: #2A2520; color: #2A2520; }
.icon-moon { display: none; }

/* --- Language switcher (dropdown) --- */
.lang-dropdown {
    position: relative;
    flex-shrink: 0;
    margin-right: 4px;
}

.lang-current {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #2A2520;
    background: none;
    border: 1px solid rgba(42,37,32,0.35);
    border-radius: 20px;
    padding: 4px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.lang-current:hover {
    background: rgba(0,0,0,0.1);
}

.lang-dd-arrow {
    font-size: 8px;
    transition: transform 0.2s;
    display: inline-block;
}

.lang-dropdown-menu.open + .lang-dd-arrow,
.lang-dropdown-menu.open ~ .lang-dd-arrow { transform: rotate(180deg); }

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 150px;
    padding-top: 6px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    z-index: 300;
    overflow: hidden;
}

/* Desktop: hover opens language dropdown */
.lang-dropdown:hover .lang-dropdown-menu { display: flex; }
.lang-dropdown:hover .lang-dd-arrow { transform: rotate(180deg); }

/* Mobile tap / keyboard */
.lang-dropdown-menu.open { display: flex; }

.lang-dropdown-menu a {
    font-family: var(--font-ui);
    font-size: 13px;
    letter-spacing: 0.5px;
    color: var(--muted);
    padding: 10px 16px;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s, color 0.15s;
}

.lang-dropdown-menu a:last-child { border-bottom: none; }

.lang-dropdown-menu a:hover {
    background: rgba(198, 110, 82, 0.1);
    color: var(--clay);
}
[data-theme="dark"] .icon-sun  { display: none; }
[data-theme="dark"] .icon-moon { display: inline; }

/* Dark theme: restore header to dark bg with original text colours */
[data-theme="dark"] .site-header {
    background: var(--bg);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #758A93 0%, #C66E52 55%, #E9B63B 100%) 1;
}
[data-theme="dark"] .site-logo { color: var(--text); }
[data-theme="dark"] .logo-dot { color: var(--ochre); }
[data-theme="dark"] .hamburger-menu span { background: var(--text); }
[data-theme="dark"] .nav-links a { color: rgba(255,255,255,0.85); }
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active { color: #fff; background: rgba(255,255,255,0.15); }
[data-theme="dark"] .nav-dropdown-btn { color: rgba(255,255,255,0.85); }
[data-theme="dark"] .nav-dropdown-btn:hover,
[data-theme="dark"] .nav-dropdown-btn[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,0.15); }
[data-theme="dark"] .nav-dropdown:hover .nav-dropdown-btn { color: #fff; background: rgba(255,255,255,0.15); }
[data-theme="dark"] .nav-contact-btn { background: var(--clay) !important; color: var(--card) !important; }
[data-theme="dark"] .theme-toggle { border-color: var(--border); color: var(--muted); }
[data-theme="dark"] .theme-toggle:hover { border-color: var(--clay); color: var(--clay); }
[data-theme="dark"] .lang-current { color: var(--clay); border-color: var(--clay); }
[data-theme="dark"] .lang-current:hover { background: rgba(198,110,82,0.1); }

/* Dark theme: mobile nav, related posts, pagination */
[data-theme="dark"] .nav-links { background: var(--bg); border-bottom-color: var(--border); }
[data-theme="dark"] .related-posts { border-top-color: var(--border); }
[data-theme="dark"] .related-title { color: var(--text2); }
[data-theme="dark"] .related-card { background: var(--card); border-color: var(--border); }
[data-theme="dark"] .pagination .page-item .page-link { color: var(--muted); border-color: var(--border); background: none; }
[data-theme="dark"] .pagination .page-item .page-link:hover { color: var(--clay); border-color: var(--clay); background: none; }
[data-theme="dark"] .pagination .page-item.active .page-link { background: var(--clay); color: #FFF8F0; border-color: var(--clay); }

/* Dark theme: restore gradient-text overrides */
[data-theme="dark"] .home-sec-head h2 { color: var(--text); }
[data-theme="dark"] .home-sec-more { color: var(--ochre); }
[data-theme="dark"] .home-sec-more:hover { color: var(--ochre); opacity: 0.75; }
[data-theme="dark"] .cat-section-title h2 { color: var(--text); }
[data-theme="dark"] .see-all { color: var(--ochre); }
[data-theme="dark"] .see-all:hover { color: var(--ochre); opacity: 0.75; }
[data-theme="dark"] .filter-btn { color: var(--muted); border-color: var(--border); background: none; }
[data-theme="dark"] .filter-btn:hover { border-color: var(--cat-color, var(--clay)); color: var(--cat-color, var(--clay)); background: none; }
[data-theme="dark"] .filter-btn.active { background: var(--cat-color, var(--clay)); color: #FFF8F0; border-color: var(--cat-color, var(--clay)); }
[data-theme="dark"] .list-header { border-bottom-color: var(--border); }
[data-theme="dark"] .cat-section { border-top-color: var(--border); }
[data-theme="dark"] .post-single-inner { box-shadow: none; }

/* Dark theme: restore hero text colours */
[data-theme="dark"] .hero-eyebrow { color: var(--ochre); }
[data-theme="dark"] .hero-title { color: var(--clay); }
[data-theme="dark"] .hero-title em { color: var(--clay); }
[data-theme="dark"] .hero-sub { color: var(--muted); }

/* Dark theme: restore footer to dark */
[data-theme="dark"] .site-footer { background: #1A1D1F; }
[data-theme="dark"] .footer-logo { color: #ECD5BC; }
[data-theme="dark"] .footer-tagline { color: #8A9498; }
[data-theme="dark"] .footer-social-link { color: #C9B59E; border-color: rgba(117,138,147,0.25); }
[data-theme="dark"] .footer-social-link:hover { color: #ECD5BC; border-color: rgba(236,213,188,0.4); }
[data-theme="dark"] .footer-col-heading { color: var(--clay); border-bottom-color: rgba(198,110,82,0.2); }
[data-theme="dark"] .footer-link { color: #C9B59E; }
[data-theme="dark"] .footer-link:hover { color: #ECD5BC; }
[data-theme="dark"] .footer-bottom { color: #8A9498; border-top-color: rgba(198,110,82,0.15); }

/* --- Color Stripe --- */
.color-stripe { display: flex; height: 4px; width: 100%; }
.color-stripe span { flex: 1; }

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--clay);
    color: var(--card);
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    opacity: 1;
}

.btn-primary:hover { background: var(--ochre); color: var(--text); opacity: 1; }

.btn-secondary, .btn-ghost {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: var(--fern);
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid var(--fern);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    opacity: 1;
}

.btn-secondary:hover, .btn-ghost:hover { background: var(--fern); color: #FFF8F0; opacity: 1; }

.home-hero .btn-secondary, .home-hero .btn-ghost { color: #ECD5BC; border-color: rgba(236,213,188,0.7); }
.home-hero .btn-secondary:hover, .home-hero .btn-ghost:hover { background: rgba(236,213,188,0.2); color: #fff; border-color: #ECD5BC; }

/* ============================================================
   HOMEPAGE
   ============================================================ */

.home-site {
    max-width: var(--home-width);
    margin: 0 auto;
    padding: 0 24px 64px;
}

/* --- Hero --- */
.home-hero {
    text-align: center;
    padding: 72px 40px 56px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #758A93 0%, #C66E52 55%, #E9B63B 100%) 1;
}

.hero-eyebrow {
    font-size: 12px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: #ECD5BC;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 68px;
    font-weight: 300;
    line-height: 1.1;
    color: #ECD5BC;
    margin-bottom: 20px;
}

.hero-title em { color: #fff; font-style: italic; }

.hero-sub {
    font-size: 19px;
    color: rgba(236,213,188,0.85);
    line-height: 1.85;
    max-width: 480px;
    margin: 0 auto 32px;
    font-weight: 300;
}

.hero-stripe {
    display: block;
    height: 3px;
    width: 180px;
    margin: 0 auto 32px;
    border-radius: 2px;
    background: var(--triblend);
}

.hero-stripe span { display: none; }

.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* --- Navigation Cards --- */
.home-nav-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
}

.hnc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: inherit;
    opacity: 1;
    transition: transform 0.2s, border-color 0.2s;
}

.hnc:hover { transform: translateY(-3px); border-color: var(--clay); opacity: 1; }

.hnc-icon { font-size: 22px; transition: transform 0.2s; }
.hnc:hover .hnc-icon { transform: scale(1.1); }

.hnc-title {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 400;
    color: var(--text);
}

.hnc-desc {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
}

.hnc-arrow {
    font-size: 15px;
    color: var(--soft);
    margin-top: 4px;
    transition: color 0.2s;
}

.hnc:hover .hnc-arrow { color: var(--clay); }

.home-nav-cards--3 { grid-template-columns: repeat(3, 1fr); }
.home-nav-cards--4 { grid-template-columns: repeat(4, 1fr); }
.home-nav-cards--2 {
    grid-template-columns: repeat(2, 1fr);
    position: relative;
    border-top: 2px solid transparent;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #758A93 0%, #C66E52 55%, #E9B63B 100%) 1;
    padding: 36px 0;
}

.hnc--session { border-color: var(--moss); }
.hnc--session:hover { border-color: var(--fern); }
.hnc--session .hnc-arrow { color: var(--moss); }
.hnc--session:hover .hnc-arrow { color: var(--fern); }
.hnc--session .hnc-title { color: var(--text2); }
.hnc--session .hnc-desc { color: var(--soft); }

/* --- Section header --- */
.home-sec-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 36px 0 20px;
}

.home-sec-head h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #fff;
    white-space: nowrap;
}

.home-sec-line { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #758A93 0%, #C66E52 55%, #E9B63B 100%); opacity: 0.35; }
.home-sec-head--grad .home-sec-line {
    height: 3px;
    border-radius: 2px;
    background: var(--triblend);
    max-width: 220px;
    opacity: 1;
}

.home-sec-more {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 1px;
    white-space: nowrap;
    opacity: 1;
}

.home-sec-more:hover { color: #fff; opacity: 1; }

/* --- Post rows --- */
.home-posts {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.hpr {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--card);
    padding: 20px 22px;
    transition: background 0.18s;
    color: inherit;
    opacity: 1;
}

.hpr:hover { background: linear-gradient(90deg, rgba(117,138,147,0.12) 0%, var(--card2) 38%); opacity: 1; }

.hpr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hpr-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hpr-cat {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hpr-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text);
    line-height: 1.35;
    font-weight: 400;
}

.hpr-date {
    font-size: 13px;
    color: var(--soft);
}

.hpr-arr {
    font-size: 13px;
    color: var(--soft);
    opacity: 0;
    transition: opacity 0.18s;
    flex-shrink: 0;
}

.hpr:hover .hpr-arr { opacity: 1; }

/* --- About + Sessions two-col --- */
.home-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 36px 0 0;
}

.htc-box {
    background:
        linear-gradient(90deg, #758A93 0%, #C66E52 55%, #E9B63B 100%) top / 100% 3px no-repeat,
        var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.htc-icon { font-size: 20px; }

.htc-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 300;
    color: var(--text);
    line-height: 1.2;
}

.htc-title em { color: var(--clay); font-style: italic; }

.htc-text {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.85;
    font-weight: 300;
}

.htc-link {
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: color 0.2s;
    opacity: 1;
}

.htc-link--clay { color: var(--moss); }
.htc-link--clay:hover { color: var(--fern); opacity: 1; }
.htc-link--moss { color: var(--fern); }
.htc-link--moss:hover { color: var(--moss); opacity: 1; }

.htc-sess { display: flex; flex-direction: column; gap: 8px; }

.htc-sess-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 300;
}

.htc-sess-bar {
    width: 2px;
    height: 28px;
    border-radius: 1px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================================
   INNER PAGES (list, single, tags, pages)
   ============================================================ */

/* List / archive page */
.list-page { padding-bottom: 64px; }

.list-header {
    background: var(--bg2);
    padding: 56px 24px 48px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
}

.list-header-inner {
    max-width: var(--site-width);
    margin: 0 auto;
}

.list-header-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 12px;
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.list-header h1 {
    max-width: var(--site-width);
    margin: 0 auto;
    font-family: var(--font-heading);
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 300;
    color: var(--text);
}

.list-desc {
    max-width: var(--site-width);
    margin: 12px auto 0;
    font-size: 18px;
    color: var(--muted);
    font-weight: 300;
}

.list-header-stripe { height: 4px; width: 100%; }

.list-page .category-filter { padding: 36px 0 24px; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 8px;
}

/* Post cards (list/tag pages) */
.writing-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

.writing-card a {
    display: flex;
    flex-direction: column;
    flex: 1;
    color: inherit;
    opacity: 1;
}

.writing-card:hover { transform: translateY(-3px); border-color: var(--accent, var(--clay)); }
.writing-card:hover a { opacity: 1; }

.card-accent-bar { display: none; }

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.card-image--empty {
    background: linear-gradient(135deg, var(--card2) 0%, var(--card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.writing-card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.card-meta time {
    font-size: 13px;
    color: var(--muted);
}

.card-tag { font-size: 12px; letter-spacing: 0.5px; opacity: 0.9; }

.card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.3;
    color: var(--text);
    font-weight: 400;
}

.card-snippet {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* list page card grid reset */
.posts-grid .writing-card { grid-column: auto; grid-row: auto; }

/* Category filter */
.category-filter { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.28); }
.filter-btn.active { background: rgba(255,255,255,0.9); color: var(--cat-color, var(--clay)); border-color: transparent; }

/* Category sections */
.cat-section { padding: 48px 0; border-top: 1px solid rgba(255,255,255,0.2); }

.cat-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.cat-section-title { display: flex; align-items: center; gap: 12px; }

.cat-stripe { display: block; width: 4px; height: 28px; border-radius: 2px; flex-shrink: 0; }

.cat-section-title h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 300;
    color: #fff;
}

.cat-posts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cat-posts-row .writing-card { grid-column: auto !important; grid-row: auto !important; }

.see-all {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.5px;
    opacity: 1;
}

.see-all:hover { color: #fff; opacity: 1; }

/* ==========================================================================
   SINGLE POST — Clean, spacious, easy to read
   ========================================================================== */
.post-single { padding: 0 0 80px; }

.post-single-inner {
    max-width: var(--reading-width);
    margin: 0 auto;
    padding: 48px 40px 64px;
    background: var(--card);
    border-radius: 8px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

/* --- Header --- */
.post-header { margin-bottom: 36px; }

.post-category-badge {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--cat, var(--clay));
    color: var(--cat, var(--clay));
    margin-bottom: 16px;
}

.post-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 300;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
}

.post-dot { opacity: 0.4; }

/* --- Post body --- */
.post-body {
    font-size: 19px;
    line-height: 1.85;
    color: var(--text);
    font-weight: 300;
}

.post-body p { margin-bottom: 20px; }
.post-body p:empty { display: none; }
.post-body a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }

/* Headings — clear any Blogger floats before headings */
.post-body h2,
.post-body h3 {
    clear: both;
}

.post-body h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 300;
    color: var(--text);
    margin: 48px 0 16px;
    line-height: 1.25;
}

.post-body h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 300;
    color: var(--text2);
    margin: 36px 0 12px;
    line-height: 1.3;
}

.post-body h4 {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--muted);
    margin: 28px 0 10px;
}

/* Dividers — clean line with breathing room */
.post-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
    clear: both;
}

/* Lists */
.post-body ul, .post-body ol {
    margin: 20px 0;
    padding-left: 24px;
    clear: both;
}

.post-body li {
    margin-bottom: 8px;
    line-height: 1.75;
}

/* Blockquote */
.post-body blockquote {
    border-left: 3px solid var(--clay);
    margin: 32px 0;
    padding: 16px 24px;
    background: var(--card);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--text2);
    clear: both;
}

.post-body blockquote p { margin-bottom: 0; }

/* ===== BLOGGER HTML CLEANUP =====
   Override ALL inline styles from Blogger's messy HTML.
   This fixes floating images, tiny sizes, broken separators,
   and random <br> tags across every post. */

/* Kill Blogger separator wrappers — make them clean image blocks */
.post-body .separator {
    clear: both !important;
    float: none !important;
    text-align: center !important;
    margin: 32px 0 !important;
    display: block !important;
}

/* Kill float/margin on separator links */
.post-body .separator a,
.post-body .separator > a {
    float: none !important;
    clear: none !important;
    margin: 0 auto !important;
    display: block !important;
    text-decoration: none;
}

/* ALL post images — override Blogger's tiny width/height attributes */
.post-body img {
    float: none !important;
    clear: none !important;
    display: block !important;
    margin: 28px auto !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    border-radius: 8px;
    border: none !important;
}

/* Images inside separators — no extra margin (parent has it) */
.post-body .separator img {
    margin: 0 auto !important;
}

/* Images inside headings (Blogger sometimes nests img in h2) */
.post-body h2 .separator,
.post-body h2 a[imageanchor],
.post-body h3 .separator,
.post-body h3 a[imageanchor] {
    float: none !important;
    display: block !important;
    margin: 0 0 16px 0 !important;
}

/* Fix: linked images inside paragraphs */
.post-body p > a > img,
.post-body p > .separator {
    float: none !important;
}

/* Reduce excessive <br> tags that Blogger injects */
.post-body br + br { display: none; }

/* Remove &nbsp; space paragraphs */
.post-body p:has(> br:only-child) { display: none; margin: 0; }

/* --- Tags at bottom --- */
.post-tags-bottom {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.post-tag-pill {
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--cat, var(--clay));
    color: var(--cat, var(--clay));
    transition: background 0.15s;
}

.post-tag-pill:hover { background: rgba(198, 110, 82, 0.1); }

/* --- Footer --- */
.post-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.post-sign-off {
    font-family: var(--font-heading);
    font-size: 26px;
    font-style: italic;
    color: var(--clay);
    margin-bottom: 28px;
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.post-nav a {
    font-size: 14px;
    color: var(--text2);
    transition: color 0.15s;
}

.post-nav a:hover { color: var(--moss); }

/* --- Share buttons --- */
.post-share {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.post-share-label {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}

.post-share-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.share-btn {
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--muted);
    text-decoration: none;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.share-btn:hover {
    color: var(--clay);
    border-color: var(--clay);
    background: rgba(198, 110, 82, 0.1);
}
.post-nav-next { margin-left: auto; }

/* Static pages */
.page-single { padding: 0 0 80px; }
.page-single .post-single-inner { max-width: var(--reading-width); margin: 0 auto; padding: 48px 24px 64px; }
.page-header { margin-bottom: 8px; }

/* Footer */
.site-footer {
    margin-top: auto;
    background: #ECD5BC;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #758A93 0%, #C66E52 55%, #E9B63B 100%) 1;
    padding: 48px 24px 0;
}

.footer-inner {
    max-width: var(--site-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 0.6fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 18px;
    letter-spacing: 4px;
    font-weight: 400;
    color: var(--text);
}

.footer-tagline {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text2);
    margin-top: 2px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.footer-social-link {
    font-size: 13px;
    color: var(--text);
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.2s;
}

.footer-social-link:hover { color: var(--clay); border-color: var(--clay); }

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-heading {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(198, 110, 82, 0.2);
}

.footer-link {
    font-size: 15px;
    color: var(--text);
    transition: color 0.2s;
    opacity: 1;
    line-height: 1.4;
}

.footer-link:hover { color: var(--clay); opacity: 1; }

.footer-kvk {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 6px;
    cursor: default;
}

.footer-links-row { display: none; }

.footer-bottom {
    max-width: var(--site-width);
    margin: 0 auto;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text2);
    text-align: center;
}

@media (max-width: 700px) {
    .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand { grid-column: 1 / -1; }
}

/* --- Accordion (Healing & Growth page) --- */
.resource-intro {
    font-size: 17px;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.accordion { display: flex; flex-direction: column; gap: 8px; }

.acc-item {
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--card);
}

.acc-item[open] { border-color: var(--clay); }

.acc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    color: var(--text);
    user-select: none;
    transition: background 0.2s;
    gap: 12px;
}

.acc-header::-webkit-details-marker { display: none; }

.acc-header::after {
    content: '+';
    font-family: var(--font-body);
    font-size: 20px;
    font-weight: 300;
    color: var(--clay);
    flex-shrink: 0;
    transition: transform 0.25s;
    line-height: 1;
}

.acc-item[open] .acc-header { background: rgba(198, 110, 82, 0.08); }
.acc-item[open] .acc-header::after { content: '−'; }

.acc-body {
    padding: 4px 22px 24px;
    border-top: 1px solid var(--border);
}

.acc-body p { margin-bottom: 16px; font-size: 17px; line-height: 1.85; font-weight: 300; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-body strong { font-weight: 400; }
.acc-body a { color: var(--moss); text-decoration: underline; text-underline-offset: 3px; }

.resource-footer {
    margin-top: 40px;
    font-size: 14px;
    color: var(--muted);
    font-weight: 300;
}

.resource-sign-off {
    margin-top: 8px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-style: italic;
    color: var(--soft);
}

/* --- Contact Form --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 32px 0;
}

.contact-form label {
    font-size: 14px;
    font-weight: 400;
    color: var(--text2);
    margin-top: 8px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 300;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: 2px solid var(--clay);
    outline-offset: 1px;
    border-color: var(--clay);
    box-shadow: 0 0 0 3px rgba(198, 110, 82, 0.12);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--soft);
}

.contact-form select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A6A48' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.contact-form select:invalid {
    color: var(--soft);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form button[type="submit"] {
    align-self: flex-start;
    padding: 12px 28px;
    background: var(--clay);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button[type="submit"]:hover {
    background: var(--sienna);
}

/* --- Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    font-size: 12px;
}

.pagination .page-item .page-link {
    padding: 8px 16px;
    border: 1px solid rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.85);
    border-radius: var(--radius);
    display: block;
    transition: border-color 0.2s, color 0.2s;
}

.pagination .page-item .page-link:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.15); }
.pagination .page-item.active .page-link { background: rgba(255,255,255,0.9); color: var(--clay); border-color: transparent; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 860px) {
    .home-nav-cards--4 { grid-template-columns: repeat(2, 1fr); }
    .posts-grid { grid-template-columns: 1fr 1fr; }
    .cat-posts-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .home-nav-cards { grid-template-columns: 1fr; }
    .home-nav-cards--2 { grid-template-columns: 1fr; }
    .home-two-col { grid-template-columns: 1fr; }
    .hero-title { font-size: 44px; }
    .home-hero { padding: 48px 20px 40px; }
    .posts-grid { grid-template-columns: 1fr; }
    .cat-posts-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #758A93 0%, #C66E52 55%, #E9B63B 100%);
        padding: 16px 24px;
        gap: 4px;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        z-index: 199;
    }
    .nav-links.open { display: flex; }
    .hamburger-menu { display: flex; }
    .header-inner { gap: 16px; }

    /* Dropdown inline on mobile — no absolute positioning */
    .nav-dropdown { width: 100%; }
    .nav-dropdown-btn { width: 100%; justify-content: space-between; }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--border);
        border-radius: 0;
        background: transparent;
        margin: 4px 0 4px 12px;
        min-width: 0;
    }
    /* On mobile, always toggle via .open — disable hover */
    .nav-dropdown:hover .nav-dropdown-menu { display: none; }
    .nav-dropdown-menu.open { display: flex; }
    .nav-dropdown-menu a { border-bottom: none; padding: 8px 14px; }

    /* Post mobile adjustments */
    .post-single-inner { padding: 28px 16px 48px; }
    .post-title { font-size: 28px; }
    .post-body { font-size: 17px; }
    .post-body h2 { font-size: 26px; }
    .post-body h3 { font-size: 20px; }
    .post-nav { flex-direction: column; gap: 12px; }
    .related-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   Empowered Voices page
   ============================================================================= */

.ev-page {
    max-width: var(--reading-width);
    margin: 0 auto;
    padding: 0 24px 64px;
}

/* Hero */
.ev-hero {
    text-align: center;
    padding: 48px 0 36px;
}
.ev-eyebrow {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--clay);
    margin-bottom: 12px;
}
.ev-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 52px);
    font-weight: 300;
    color: var(--text);
    margin: 0 0 12px;
    line-height: 1.1;
}
.ev-title em { font-style: italic; color: var(--clay); }
.ev-tagline {
    font-family: var(--font-heading);
    font-size: 20px;
    font-style: italic;
    font-weight: 300;
    color: var(--text2);
    margin: 0 0 20px;
}
.ev-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--muted);
}

/* Sections */
.ev-section {
    margin: 36px 0;
}
.ev-section-label {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}
.ev-section p,
.ev-opening p,
.ev-why p,
.ev-how p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin: 0 0 16px;
    font-weight: 300;
}

/* Topic cards */
.ev-topics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ev-topic-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 22px;
    border-top: 3px solid var(--clay);
}
.ev-topic-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 8px;
}
.ev-topic-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text2);
    margin: 0;
    font-weight: 300;
}

/* FAQ */
.ev-faq {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ev-faq-item {
    padding: 16px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 6px;
    border-left: 3px solid var(--fern);
}
.ev-faq-q {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    color: var(--text);
    margin: 0 0 6px;
}
.ev-faq-a {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text2);
    margin: 0;
    font-weight: 300;
}

/* Divider */
.ev-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 36px 0;
}

/* CTA */
.ev-cta {
    text-align: center;
    padding: 40px 32px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.ev-cta-heading {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 300;
    color: var(--text);
    margin: 0 0 12px;
}
.ev-cta-sub {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text2);
    margin: 0 0 24px;
    font-weight: 300;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.ev-email-btn {
    display: inline-block;
    padding: 13px 32px;
    background: var(--clay);
    color: #fff;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 16px;
}
.ev-email-btn:hover { background: var(--sienna); color: #fff; }
.ev-cta-note {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

@media (max-width: 600px) {
    .ev-topics { grid-template-columns: 1fr; }
    .ev-cta { padding: 28px 20px; }
}

/* --- Skip to content (accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    background: var(--clay);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    text-decoration: none;
    transition: top 0.15s;
}

.skip-link:focus {
    top: 8px;
}

/* --- Focus-visible styles (accessibility) --- */
a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.filter-btn:focus-visible,
.nav-contact-btn:focus-visible,
.lang-btn:focus-visible,
.theme-toggle:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--clay);
    outline-offset: 2px;
}

/* --- Back to top button --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--clay);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--sienna);
}

/* --- Breadcrumb --- */
.breadcrumb {
    max-width: var(--reading-width);
    margin: 16px auto 0;
    padding: 0 24px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--clay); }

.breadcrumb-sep {
    margin: 0 6px;
    opacity: 0.5;
}

.breadcrumb-current {
    color: var(--text2);
}

/* --- Reading time --- */
.post-reading-time {
    font-size: 14px;
    color: var(--muted);
    padding: 2px 10px;
    border-left: 1px solid var(--border);
    margin-left: 4px;
}

/* --- Related posts --- */
.related-posts {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.25);
}

.related-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.related-card:hover {
    border-color: var(--clay);
    background: var(--card);
}

.related-cat {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.related-card-title {
    font-size: 16px;
    color: var(--text);
    font-weight: 400;
    line-height: 1.4;
}

.related-date {
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 600px) {
    .related-grid { grid-template-columns: 1fr; }
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 18px; }
}

/* --- Photo Collage --- */
.collage-section {
    position: relative;
    padding: 48px 24px 64px;
}

.collage-section .home-sec-head {
    position: relative;
    z-index: 2;
}

.collage-grain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.collage-canvas {
    position: relative;
    max-width: var(--home-width);
    margin: 0 auto;
    height: 540px;
}

.collage-tile {
    position: absolute;
    left: var(--x, 0);
    top: var(--y, 0);
    width: 180px;
    padding: 7px 7px 30px;
    background: #ECD5BC;
    box-shadow: 3px 5px 16px rgba(61, 78, 84, 0.38),
                0 1px 4px rgba(61, 78, 84, 0.18);
    transform: rotate(var(--rot, 0deg));
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.38s ease,
                z-index 0s;
    cursor: pointer;
    text-decoration: none;
    z-index: 1;
    display: block;
}

.collage-tile[data-accent="gold"]   { border-top: 3px solid #E9B63B; }
.collage-tile[data-accent="sienna"] { border-top: 3px solid #C66E52; }
.collage-tile[data-accent="none"]   { border-top: 3px solid transparent; }

.collage-tile img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
}

.collage-caption {
    display: block;
    text-align: center;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.68rem;
    color: #4A3F38;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.collage-tile:hover {
    transform: rotate(0deg) scale(1.1) translateY(-8px);
    box-shadow: 6px 10px 28px rgba(61, 78, 84, 0.5),
                0 2px 8px rgba(61, 78, 84, 0.25);
    z-index: 999;
    opacity: 1;
}

/* Mobile: stack as scrollable row */
@media (max-width: 768px) {
    .collage-canvas {
        height: auto;
        display: flex;
        gap: 18px;
        overflow-x: auto;
        overflow-y: visible;
        padding: 20px 8px 32px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .collage-tile {
        position: relative;
        left: auto;
        top: auto;
        flex: 0 0 150px;
        width: 150px;
        transform: rotate(var(--rot, 0deg));
        scroll-snap-align: center;
    }

    .collage-tile:hover {
        transform: rotate(0deg) scale(1.05) translateY(-4px);
    }
}

/* Tablet: smaller tiles, reduce canvas */
@media (min-width: 769px) and (max-width: 1024px) {
    .collage-canvas { height: 480px; }
    .collage-tile { width: 150px; }
}

/* --- 404 Error Page --- */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 24px;
}

.error-inner {
    text-align: center;
    max-width: 480px;
}

.error-code {
    font-family: var(--font-heading);
    font-size: 120px;
    font-weight: 300;
    color: var(--clay);
    line-height: 1;
    margin-bottom: 16px;
}

.error-stripe {
    display: flex;
    height: 4px;
    width: 100%;
    margin-bottom: 24px;
}

.error-stripe span { flex: 1; }

.error-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 12px;
}

.error-text {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* --- Cookie consent banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #1A1D1F;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #758A93 0%, #C66E52 55%, #E9B63B 100%) 1;
    padding: 20px 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}

.cookie-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-banner-inner p {
    flex: 1;
    min-width: 240px;
    font-size: 14px;
    line-height: 1.6;
    color: #ECD5BC;
    margin: 0;
}

.cookie-banner-inner a {
    color: var(--clay);
    text-decoration: underline;
}

.cookie-banner-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cookie-btn:hover {
    opacity: 0.85;
}

.cookie-btn--accept {
    background: var(--clay);
    color: #fff;
}

.cookie-btn--decline {
    background: transparent;
    color: #ECD5BC;
    border: 1px solid rgba(236, 213, 188, 0.3);
}

@media (max-width: 600px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner-btns {
        justify-content: center;
    }
}
