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

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --gap: 10px;
    --header-height: 64px;
    --color-bg: #fafafa;
    --color-surface: #fff;
    --color-text: #222;
    --color-heading: #111;
    --color-meta: #888;
    --color-accent: #b8864e;
    --color-border: #e8e8e8;
    --color-header-gradient: rgba(250,250,250,0.9);
    --color-header-gradient-end: rgba(250,250,250,0);
    --card-shadow: 0 1px 4px rgba(0,0,0,0.06);
    --card-hover-shadow: 0 16px 48px rgba(0,0,0,0.15);
    --scrollbar-track: #fafafa;
    --scrollbar-thumb: #ccc;
    --scrollbar-thumb-hover: #aaa;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --color-bg: #0a0a0a;
        --color-surface: #151515;
        --color-text: #e8e8e8;
        --color-heading: #fff;
        --color-meta: #777;
        --color-accent: #d4a574;
        --color-border: #222;
        --color-header-gradient: rgba(10,10,10,0.9);
        --color-header-gradient-end: rgba(10,10,10,0);
        --card-shadow: none;
        --card-hover-shadow: 0 16px 48px rgba(0,0,0,0.4);
        --scrollbar-track: #0a0a0a;
        --scrollbar-thumb: #333;
        --scrollbar-thumb-hover: #555;
    }
}

[data-theme="dark"] {
    --color-bg: #0a0a0a;
    --color-surface: #151515;
    --color-text: #e8e8e8;
    --color-heading: #fff;
    --color-meta: #777;
    --color-accent: #d4a574;
    --color-border: #222;
    --color-header-gradient: rgba(10,10,10,0.9);
    --color-header-gradient-end: rgba(10,10,10,0);
    --card-shadow: none;
    --card-hover-shadow: 0 16px 48px rgba(0,0,0,0.4);
    --scrollbar-track: #0a0a0a;
    --scrollbar-thumb: #333;
    --scrollbar-thumb-hover: #555;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s, color 0.3s;
    padding-top: 0;
    margin-top: 0;
}

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

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(to bottom, var(--color-header-gradient) 0%, var(--color-header-gradient-end) 100%);
    pointer-events: none;
    transition: background 0.3s, box-shadow 0.3s;
    padding-top: env(safe-area-inset-top);
}

.site-header.scrolled {
    background: var(--color-bg);
    box-shadow: 0 1px 0 var(--color-border);
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-heading);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
}

.site-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-meta);
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-nav a:hover { color: var(--color-heading); opacity: 1; }

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-meta);
    transition: color 0.2s, border-color 0.2s;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--color-heading);
    border-color: var(--color-meta);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }

[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: inline; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* Tag Filters */
.tag-filters {
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 20px) 16px 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.tag-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-btn {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 6px 16px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-meta);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    flex-shrink: 0;
}

.tag-btn:hover {
    color: var(--color-heading);
    border-color: var(--color-meta);
}

.tag-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.tag-btn.parent-active {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.tag-toggle {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    cursor: pointer;
    font-size: 0.5rem;
    color: var(--color-meta);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.tag-toggle:hover {
    color: var(--color-heading);
    border-color: var(--color-meta);
}

.tag-toggle[aria-expanded="true"] {
    transform: rotate(180deg);
}

.tag-submenu-portal {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 16px 4px;
}

.tag-submenu {
    display: none;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 0 4px;
}

.tag-submenu.open {
    display: flex;
}

.tag-btn--child {
    font-size: 0.72rem;
    padding: 4px 12px;
    border-style: dashed;
}

.tag-btn--child.active {
    border-style: solid;
}

/* Masonry Grid */
.masonry {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4px 10px 10px;

    /* Masonry.js gère le layout */



}

@media (max-width: 900px) { .masonry .card, .masonry .grid-sizer { width: calc(50% - 5px); } }
@media (max-width: 500px) { .masonry .card, .masonry .grid-sizer { width: 100%; } }
@media (max-width: 768px) {
    .tag-filters {
        padding-top: calc(var(--header-height) + 12px);
        flex-wrap: wrap;
    }
    .masonry {
        padding-top: 4px;
    }
}

/* Masonry.js sizing */
.grid-sizer, .card {
    width: calc(33.333% - 7px);
}

/* Cards with hover overlay */
.card {
    margin-bottom: var(--gap);
    border-radius: 6px;
    overflow: hidden;
    break-inside: avoid;
    position: relative;
    cursor: pointer;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-hover-shadow);
}

.card a {
    display: block;
    position: relative;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s;
}

.card:hover img {
    transform: scale(1.1);
    filter: brightness(0.65);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 6px;
}

.card-overlay-meta {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-overlay-meta span::before {
    content: " · ";
}

/* Pagination */
.pagination {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 var(--gap);
    display: flex;
    justify-content: center;
    gap: 20px;
    font-weight: 600;
    color: var(--color-meta);
}

.pagination a {
    color: var(--color-accent);
    transition: opacity 0.2s;
}

.pagination a:hover { opacity: 0.8; }

/* Single Post */
.single-post {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.post-header {
    text-align: center;
    margin-bottom: 32px;
}

.post-header h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--color-heading);
}

.post-meta {
    color: var(--color-meta);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.post-feature-image {
    margin-bottom: 32px;
    border-radius: 8px;
    overflow: hidden;
}

.post-feature-image img {
    width: 100%;
    height: auto;
}

/* Ghost Content */
.gh-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
}

.gh-content > * + * { margin-top: 1.5em; }
.gh-content h2 { font-family: var(--font-heading); font-size: 1.6em; margin-top: 2em; color: var(--color-heading); }
.gh-content h3 { font-family: var(--font-heading); font-size: 1.3em; margin-top: 1.5em; color: var(--color-heading); }
.gh-content a { color: var(--color-accent); text-decoration: underline; }
.gh-content img { border-radius: 6px; }

.gh-canvas {
    --main: min(720px, 100% - 40px);
    --wide: minmax(0, calc((900px - 720px) / 2));
    --full: minmax(20px, 1fr);

    grid-template-columns:
        [full-start] var(--full)
        [wide-start] var(--wide)
        [main-start] var(--main) [main-end]
        var(--wide) [wide-end]
        var(--full) [full-end];
}

.gh-canvas > * { grid-column: main; }
.kg-width-wide { grid-column: wide; }
.kg-width-full { grid-column: full; }
.kg-width-full img { width: 100%; }

/* Ghost Cards */
.kg-card { margin-top: 1.5em; }
.kg-image-card img { margin: 0 auto; cursor: pointer; }
.kg-gallery-container { display: flex; flex-direction: column; width: 100%; }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; }
.kg-gallery-image { flex: 1 1 0%; margin: 0 4px 8px; }
.kg-gallery-image:first-of-type { margin-left: 0; }
.kg-gallery-image:last-of-type { margin-right: 0; }
.kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; cursor: pointer; }
.kg-bookmark-container { display: flex; border: 1px solid var(--color-border); border-radius: 6px; overflow: hidden; text-decoration: none; color: var(--color-text); }
.kg-bookmark-content { flex-grow: 1; padding: 20px; }
.kg-bookmark-title { font-weight: 700; font-size: 1rem; color: var(--color-heading); }
.kg-bookmark-description { margin-top: 8px; font-size: 0.85rem; color: var(--color-meta); }
.kg-bookmark-thumbnail { flex-shrink: 0; width: 200px; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.kg-embed-card { display: flex; flex-direction: column; align-items: center; width: 100%; }
.kg-toggle-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 6px; padding: 20px; }
.kg-callout-card { border-radius: 6px; padding: 20px; display: flex; align-items: flex-start; }
.kg-callout-emoji { margin-right: 12px; font-size: 1.2em; }
.kg-btn { display: inline-block; padding: 10px 24px; background: var(--color-accent); color: #fff; border-radius: 6px; font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-meta);
    font-size: 0.8rem;
    border-top: 1px solid var(--color-border);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

@media (max-width: 600px) {
    .post-header h1 { font-size: 2rem; }
    .single-post { padding-top: calc(var(--header-height) + 20px); }
    .site-nav a { font-size: 0.75rem; }
    .header-inner { padding: 0 16px; }
    .card-overlay h2 { font-size: 1rem; }
    .card-overlay { padding: 14px; }
}

/* ── Map Page ── */
.page-carte .site-footer {
    display: none;
}

/* ── Map lightbox ── */
.map-lb {
    position: fixed;
    inset: 0;
    z-index: 1002;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
}
.map-lb-close,
.map-lb-prev,
.map-lb-next {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    z-index: 1;
    transition: color 0.2s;
}
.map-lb-close:hover,
.map-lb-prev:hover,
.map-lb-next:hover { color: #fff; }
.map-lb-close { top: 16px; right: 20px; font-size: 1.4rem; }
.map-lb-prev  { left: 16px;  top: 50%; transform: translateY(-50%); font-size: 3rem; }
.map-lb-next  { right: 16px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.map-lb-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(90vw, 900px);
    max-height: 90vh;
    gap: 14px;
}
.map-lb-img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
}
.map-lb-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.map-lb-exif {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.map-lb-exif .exif-item {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.55);
}
.map-lb-exif .exif-item::before { opacity: 0.6; }
.map-lb-exif a.exif-item { color: rgba(255,255,255,0.55); text-decoration: none; }
.map-lb-exif a.exif-item:hover { color: rgba(255,255,255,0.9); text-decoration: underline; }
.map-lb-bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.map-lb-title {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}
.map-lb-link {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.map-lb-link:hover { color: rgba(255,255,255,0.85); text-decoration: underline; }

.map-wrap {
    width: 100%;
}

#map {
    width: 100%;
    height: calc(100vh - var(--header-height));
}

/* Photo pin markers */
.photo-pin {
    cursor: pointer;
}

.photo-pin-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    background-size: cover;
    background-position: center;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}

.photo-pin:hover .photo-pin-inner {
    transform: scale(1.18);
    box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}

/* Cluster markers */
.photo-cluster {
    background: none !important;
    border: none !important;
}

.cluster-count {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

.photo-cluster:hover .cluster-count {
    transform: scale(1.1);
}

/* Map popup */
.map-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.map-popup .leaflet-popup-content {
    margin: 0;
    width: 200px !important;
}

.map-popup .leaflet-popup-tip-container {
    margin-top: -1px;
}

.map-popup-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.map-popup-img {
    width: 200px;
    height: 140px;
    background-size: cover;
    background-position: center;
}

.map-popup-title {
    padding: 10px 12px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-heading);
    background: var(--color-surface);
    line-height: 1.3;
}

.map-popup-link:hover .map-popup-title {
    color: var(--color-accent);
}

/* Leaflet attribution styling */
.leaflet-control-attribution {
    font-size: 0.65rem !important;
    background: rgba(255,255,255,0.7) !important;
}

[data-theme="dark"] .leaflet-control-attribution {
    background: rgba(0,0,0,0.5) !important;
    color: #aaa !important;
}

[data-theme="dark"] .leaflet-control-zoom a {
    background: #222;
    color: #eee;
    border-color: #444;
}

[data-theme="dark"] .leaflet-control-zoom a:hover {
    background: #333;
}

/* ── Lightbox ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lb-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    cursor: zoom-out;
}

.lb-content {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1400px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lb-img {
    max-width: 100%;
    max-height: calc(90vh - 64px);
    object-fit: contain;
    border-radius: 4px;
    display: block;
    transition: opacity 0.2s;
}

.lb-caption {
    width: 100%;
    padding: 12px 4px 0;
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.lb-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.lb-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    flex-shrink: 0;
}

.lb-link {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--color-accent);
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.lb-link:hover { opacity: 0.75; }

.lb-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2;
    background: rgba(255,255,255,0.1);
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lb-close:hover { background: rgba(255,255,255,0.2); }

.lb-exif {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 14px;
    padding: 6px 4px 0;
    width: 100%;
}

.lb-exif .exif-item {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
}

.lb-exif .exif-item::before {
    opacity: 0.6;
}

.lb-prev, .lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.08);
    border: none;
    color: rgba(255,255,255,0.8);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 16px 14px;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.lb-prev:hover, .lb-next:hover {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

@media (max-width: 600px) {
    .lb-prev { left: 6px; padding: 10px 10px; font-size: 1.8rem; }
    .lb-next { right: 6px; padding: 10px 10px; font-size: 1.8rem; }
    .lb-caption { flex-wrap: wrap; }
    .lb-link { margin-left: 0; }
}

/* ── Post : ajustements layout photo ── */
.post-header {
    text-align: left;
    margin-bottom: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.08));
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    text-transform: none;
    letter-spacing: 0;
}

.post-meta-sep { opacity: 0.35; }

.post-tag {
    color: var(--color-meta);
    text-decoration: none;
}

.post-tag:hover { color: var(--color-accent); }

/* ── EXIF bar ── */
.exif-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border, rgba(0,0,0,0.08));
    margin-bottom: 28px;
}

.exif-item {
    font-size: 0.78rem;
    color: var(--color-meta);
    white-space: nowrap;
}

.exif-item::before {
    margin-right: 5px;
    opacity: 0.5;
}

a.exif-item {
    color: inherit;
    text-decoration: none;
}
a.exif-item:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}


.exif-location::before { content: '📍'; font-size: 0.75rem; }
.exif-camera::before  { content: '📷'; font-size: 0.75rem; }
.exif-lens::before    { content: '◎'; }
.exif-focal::before   { content: '⌀'; }
.exif-aperture::before { content: ''; margin-right: 0; }
.exif-shutter::before { content: '⏱'; }
.exif-iso::before     { content: ''; margin-right: 0; }

/* ── Journal ── */
.journal-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 40px) 24px 60px;
}

.journal-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--color-border, rgba(128,128,128,0.2));
    padding-bottom: 24px;
}

.journal-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

.journal-order-toggle {
    background: none;
    border: 1px solid var(--color-border, rgba(128,128,128,0.4));
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 6px 14px;
    letter-spacing: 0.02em;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.journal-order-toggle:hover {
    opacity: 1;
    border-color: currentColor;
}

.journal-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.journal-entry {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 20px;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-border, rgba(128,128,128,0.15));
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s;
}

.journal-entry:hover {
    opacity: 0.7;
}

.journal-entry-text {
    min-width: 0;
}

.journal-entry-thumb {
    width: 160px;
    height: 110px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    flex-shrink: 0;
}

.journal-date {
    display: block;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.journal-entry-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.journal-excerpt {
    font-size: 0.95rem;
    opacity: 0.65;
    margin: 0;
    line-height: 1.6;
}

.journal-loading,
.journal-empty,
.journal-error {
    opacity: 0.5;
    font-size: 0.95rem;
    padding: 20px 0;
}

@media (max-width: 600px) {
    .journal-wrap { padding: calc(var(--header-height) + 20px) 16px 40px; }
    .journal-entry { grid-template-columns: 1fr 100px; gap: 14px; }
    .journal-entry-thumb { width: 100px; height: 70px; }
    .journal-entry-title { font-size: 1.1rem; }
}

/* About */
.about-wrap {
    padding: calc(var(--header-height) + 40px) 24px 60px;
    max-width: 680px;
    margin: 0 auto;
}
.about-content p {
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 1.2em;
    opacity: 0.9;
}
.about-content h2 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 2em 0 0.6em;
    letter-spacing: 0.01em;
}
.about-content a { text-decoration: underline; }
.about-collab { margin-top: 2.5em; opacity: 0.6; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.about-collab-logo { width: 16px; height: 16px; border-radius: 3px; }
@media (max-width: 600px) {
    .about-wrap { padding: calc(var(--header-height) + 20px) 16px 40px; }
}

/* 404 */
.error-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
    text-align: center;
}
.error-img {
    width: 504px;
    height: 504px;
    object-fit: cover;
    object-position: 45% 40%;
    border-radius: 50%;
    margin-bottom: 32px;
}
@media (max-width: 600px) {
    .error-img { width: 300px; height: 300px; }
}
.error-code {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 12px;
    opacity: 0.15;
}
.error-msg {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.7;
    margin-bottom: 28px;
}
.error-home {
    font-size: 0.9rem;
    opacity: 0.5;
    text-decoration: underline;
}
.error-home:hover { opacity: 1; }
