/* ============================================
   Blog Global Styles - Warm Magazine Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&family=Noto+Serif+KR:wght@400;600;700&display=swap');

:root {
    --bg: #FDFAF6;
    --bg-card: #FFFFFF;
    --text: #2C2C2C;
    --text-light: #6B6B6B;
    --text-muted: #9E9E9E;
    --border: #EDE8E1;
    --accent-gold: #B8860B;
    --accent-gold-dark: #8A6109;
    --accent-gold-light: #F5E6C8;
    --accent-green: #5B7F6E;
    --accent-green-light: #E8F0EB;
    --accent-blue: #3A6B8C;
    --accent-blue-light: #E0EDF5;
    --accent-slate: #5A6978;
    --accent-slate-light: #E8ECF0;
    --accent-rose: #A0616A;
    --accent-rose-light: #F5E5E7;
    --accent-purple: #7B6B8A;
    --accent-purple-light: #EDE8F0;
    --accent-brown: #8B7355;
    --accent-brown-light: #F0EAE0;
    --accent-teal: #4A8B7F;
    --accent-teal-light: #E0F0EC;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(184,134,11,0.10);
    --radius: 12px;
    --radius-sm: 8px;
    --nav-height: 60px;
    --max-width: 1200px;
    --content-width: 800px;
    --space-4: 1rem;
}

/* ============================================
   Dark Mode
   ============================================ */

[data-theme="dark"] {
    --bg: #1C1A17;
    --bg-card: #262320;
    --text: #EDE6DA;
    --text-light: #B8AFA0;
    --text-muted: #8A8070;
    --border: #3A352E;
    --accent-gold: #D4A017;
    --accent-gold-dark: #B8860B;
    --accent-gold-light: rgba(212,160,23,0.16);
    --accent-green: #7FA890;
    --accent-green-light: rgba(127,168,144,0.16);
    --accent-blue: #6FA8D0;
    --accent-blue-light: rgba(111,168,208,0.16);
    --accent-slate: #96A2AE;
    --accent-slate-light: rgba(150,162,174,0.16);
    --accent-rose: #C6949B;
    --accent-rose-light: rgba(198,148,155,0.16);
    --accent-purple: #AB9BBC;
    --accent-purple-light: rgba(171,155,188,0.16);
    --accent-brown: #BBA07E;
    --accent-brown-light: rgba(187,160,126,0.16);
    --accent-teal: #7FBDAF;
    --accent-teal-light: rgba(127,189,175,0.16);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-hover: 0 8px 24px rgba(212,160,23,0.18);
    --hover-tint: rgba(0,0,0,0.03);
}

[data-theme="dark"] {
    --hover-tint: rgba(255,255,255,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

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

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 250, 246, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
}

[data-theme="dark"] .nav {
    background: rgba(28, 26, 23, 0.88);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--text);
    background: var(--hover-tint);
}

.nav-link.active {
    color: var(--accent-gold);
}

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

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 180px;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    color: var(--text-light);
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: var(--accent-gold-light);
    color: var(--accent-gold);
}

.nav-dropdown-item .count {
    float: right;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    padding: 0.25rem;
}

/* Search in nav */
.nav-search {
    position: relative;
}

.nav-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 0.45rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.nav-search-btn:hover {
    color: var(--text);
    background: var(--hover-tint);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 0.45rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    line-height: 1;
}

.theme-toggle:hover {
    color: var(--text);
    background: var(--hover-tint);
}

/* Search overlay */
.search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.search-overlay.active { display: flex; align-items: flex-start; justify-content: center; padding-top: 15vh; }

.search-box {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 600px;
    padding: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    background: var(--bg);
}

.search-input:focus {
    border-color: var(--accent-gold);
}

.search-results {
    max-height: 50vh;
    overflow-y: auto;
    margin-top: 1rem;
}

.search-result-item {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.search-result-item:hover {
    background: var(--accent-gold-light);
}

.search-result-item .sr-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.search-result-item .sr-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.search-result-item .sr-snippet {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    line-height: 1.5;
}

.search-result-item .sr-snippet mark {
    background: var(--accent-gold-light);
    color: inherit;
    padding: 0 1px;
    border-radius: 2px;
}

.sr-loading {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Hero Section (Magazine Home)
   ============================================ */

.hero {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.25rem;
    min-height: 380px;
}

.hero-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--accent-gold-light);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-main .hero-img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.hero-main .hero-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    padding: 2.5rem 2rem 2rem;
    color: #fff;
}

.hero-main .hero-cat {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.hero-main .hero-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.hero-main .hero-date {
    font-size: 0.82rem;
    opacity: 0.75;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.hero-side-card {
    flex: 1;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--accent-green-light);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-side-card .hero-img {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.hero-side-card .hero-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    padding: 1.25rem 1rem 1rem;
    color: #fff;
}

.hero-side-card .hero-cat {
    font-size: 0.72rem;
    font-weight: 500;
    opacity: 0.85;
    margin-bottom: 0.3rem;
}

.hero-side-card .hero-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
}

.hero-no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif KR', serif;
    font-size: 3rem;
    opacity: 0.15;
}

/* ============================================
   Section (Category Shelf)
   ============================================ */

.section {
    max-width: var(--max-width);
    margin: 0 auto 2.5rem;
    padding: 0 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.section-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title .hanja {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 600;
}

.section-more {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.section-more:hover {
    color: var(--accent-gold);
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

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

.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: var(--accent-gold-light);
}

.card-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Serif KR', serif;
    font-size: 2.5rem;
    opacity: 0.12;
}

.card-body {
    padding: 1rem 1.1rem 1.15rem;
}

.card-cat {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-preview {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Category Page - Masonry Grid
   ============================================ */

.page-header {
    max-width: var(--max-width);
    margin: 2.5rem auto 2rem;
    padding: 0 2rem;
}

.page-header h1 {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.page-header .page-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.breadcrumb {
    max-width: var(--max-width);
    margin: 1.5rem auto 0;
    padding: 0 2rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-gold); }
.breadcrumb .sep { margin: 0 0.4rem; }

/* Sub-category chips */
.sub-cats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.sub-cat-chip {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-light);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.sub-cat-chip:hover, .sub-cat-chip.active {
    border-color: var(--accent-gold);
    background: var(--accent-gold-light);
    color: var(--accent-gold);
}

/* Masonry */
.masonry {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem 3rem;
    columns: 3;
    column-gap: 1.25rem;
}

.masonry .card {
    break-inside: avoid;
    margin-bottom: 1.25rem;
}

.masonry .card-img {
    aspect-ratio: auto;
}

/* List view */
.list-view {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.list-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.list-item:hover {
    background: rgba(184,134,11,0.02);
}

.list-item-img {
    width: 160px;
    min-width: 160px;
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--accent-gold-light);
}

.list-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-item-cat {
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.list-item-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.list-item-preview {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.list-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================
   Archive - Timeline
   ============================================ */

.timeline {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 2rem 3rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-year {
    position: relative;
    padding-left: 3.5rem;
    margin-bottom: 2rem;
}

.timeline-year-label {
    position: absolute;
    left: -0.6rem;
    top: 0;
    width: 3.2rem;
    text-align: center;
    font-family: 'Noto Serif KR', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: var(--bg);
    padding: 0.25rem 0;
    z-index: 1;
}

.timeline-year-label::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-gold);
}

.timeline-posts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.timeline-post {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.timeline-post:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-sm);
}

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

.timeline-post .tp-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    min-width: 5.5rem;
    flex-shrink: 0;
}

.timeline-post .tp-title {
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timeline-post .tp-cat {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Year stats bar */
.timeline-year-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.timeline-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--accent-gold);
    opacity: 0.4;
    transition: width 0.5s;
}

.timeline-year-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============================================
   Pagination / Load More
   ============================================ */

.load-more-wrap {
    text-align: center;
    padding: 2rem 0;
}

.load-more-btn {
    padding: 0.7rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.load-more-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   Random Post Button
   ============================================ */

.random-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #fff;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.random-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Post Nav (injected into every post page)
   ============================================ */

.post-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(253, 250, 246, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 1.5rem;
    font-family: 'Noto Sans KR', sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

[data-theme="dark"] .post-nav {
    background: rgba(28, 26, 23, 0.88);
}

.post-nav a {
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.post-nav a:hover { opacity: 0.7; }

.post-nav-home {
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    color: var(--accent-gold) !important;
    font-size: 1rem !important;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-nav-home-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    min-width: 0;
}

.post-nav-adjacent {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    overflow: hidden;
}

.post-nav-adjacent .post-nav-title {
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-nav-cat {
    font-size: 0.78rem;
    padding: 0.2rem 0.65rem;
    border-radius: 12px;
    flex-shrink: 0;
    white-space: nowrap;
}

.post-nav-theme {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.2rem;
    color: var(--text-light);
    line-height: 1;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .post-nav { padding: 0.5rem 1rem; gap: 0.5rem; }
    .post-nav-links { gap: 0.75rem; }
    .post-nav-adjacent .post-nav-title { display: none; }
}

.post-footer {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

.post-footer-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.post-footer .list-item {
    border-bottom: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.post-footer .list-item:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-sm);
}

.post-footer .list-item-img {
    width: 100px;
    min-width: 100px;
    border-radius: var(--radius-sm);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.footer-stats {
    margin-bottom: 0.5rem;
}

/* ============================================
   Category Colors
   ============================================ */

.cat-star { color: var(--accent-gold); }
.cat-star-bg { background: var(--accent-gold-light); color: var(--accent-gold); }
.cat-think { color: var(--accent-green); }
.cat-think-bg { background: var(--accent-green-light); color: var(--accent-green); }
.cat-travel { color: var(--accent-blue); }
.cat-travel-bg { background: var(--accent-blue-light); color: var(--accent-blue); }
.cat-tech { color: var(--accent-slate); }
.cat-tech-bg { background: var(--accent-slate-light); color: var(--accent-slate); }
.cat-love { color: var(--accent-rose); }
.cat-love-bg { background: var(--accent-rose-light); color: var(--accent-rose); }
.cat-wisdom { color: var(--accent-purple); }
.cat-wisdom-bg { background: var(--accent-purple-light); color: var(--accent-purple); }
.cat-comm { color: var(--accent-teal); }
.cat-comm-bg { background: var(--accent-teal-light); color: var(--accent-teal); }
.cat-etc { color: var(--accent-brown); }
.cat-etc-bg { background: var(--accent-brown-light); color: var(--accent-brown); }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .masonry { columns: 2; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }
    .nav-toggle { display: block; }
    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .hero-main { min-height: 250px; }
    .hero-side { flex-direction: row; }
    .hero-side-card { min-height: 160px; }

    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .masonry { columns: 2; }

    .list-item-img { width: 100px; min-width: 100px; }

    .section, .page-header, .breadcrumb, .timeline, .list-view, .masonry, .hero {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .timeline::before { left: 1rem; }
    .timeline-year { padding-left: 2.5rem; }
    .timeline-year-label { left: -0.6rem; font-size: 0.95rem; width: 2.4rem; }
    .timeline-post .tp-cat { display: none; }
}

@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
    .masonry { columns: 1; }
    .hero-side { flex-direction: column; }
    .hero-side-card { min-height: 140px; }
    .hero-main .hero-title { font-size: 1.3rem; }
}
