/* Walking Art - styles */
:root {
    --primary: #6a3e8b;
    --primary-dark: #522e6e;
    --accent: #1a1a1a;
    --text: #333;
    --text-light: #666;
    --bg: #faf8fb;
    --bg-white: #fff;
    --border: #e8e3ec;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
    --max-width: 1100px;
    --radius: 6px;
    --shadow-sm: 0 1px 3px rgba(26, 26, 26, .06);
    --shadow: 0 4px 14px rgba(26, 26, 26, .08);
    --shadow-lg: 0 10px 30px rgba(26, 26, 26, .12);
    --transition: .25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-primary);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--accent); line-height: 1.25; margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: #fff; padding: 10px 18px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* HEADER */
.site-header {
    background: var(--bg-white);
    border-bottom: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
}
.header-mid { padding: 18px 0; }
.header-mid-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
    display: flex; align-items: center; gap: 16px; color: var(--accent);
}
.brand:hover { color: var(--primary); }
.brand-logo { width: 65px; height: 65px; object-fit: contain; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; }
.brand-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.05;
    color: var(--primary);
}
.brand-tagline {
    font-size: .82rem; color: var(--text-light); margin-top: 2px;
    letter-spacing: .02em;
}

.mobile-menu-toggle {
    display: none; background: none; border: 0; padding: 8px;
    cursor: pointer; flex-direction: column; gap: 5px;
}
.mobile-menu-toggle span {
    width: 26px; height: 3px; background: var(--accent);
    border-radius: 2px; transition: var(--transition);
}
.mobile-menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.header-nav { background: var(--accent); }
.main-nav {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-wrap: wrap;
}
.main-nav a {
    display: block;
    padding: 14px 18px;
    color: #fff;
    font-weight: 500;
    font-size: .94rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.main-nav a:hover {
    color: #fff;
    background: var(--primary);
    border-bottom-color: var(--primary);
}

/* MAIN */
.site-main { min-height: 60vh; }
.site-content { padding: 36px 0 50px; }

.content-flex {
    display: flex; gap: 36px; align-items: flex-start;
}
.content-area { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* BREADCRUMB */
.breadcrumb {
    font-size: .88rem; color: var(--text-light);
    margin-bottom: 22px; padding: 10px 0;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }

/* HERO */
.hero-full {
    background: linear-gradient(135deg, #f6f1f9 0%, #fff 100%);
    border-bottom: 1px solid var(--border);
    padding: 30px 20px;
}
.hero-card {
    display: flex; gap: 30px; max-width: var(--max-width); margin: 0 auto;
    background: var(--bg-white); border-radius: 8px; overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition);
    color: var(--text);
}
.hero-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: var(--text); }
.hero-image { flex: 0 0 50%; max-height: 380px; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-body { flex: 1; padding: 36px; display: flex; flex-direction: column; justify-content: center; }
.hero-cat {
    display: inline-block; background: var(--primary); color: #fff;
    font-size: .72rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .05em; align-self: flex-start;
    margin-bottom: 14px;
}
.hero-title { font-size: 2rem; margin: 0 0 14px; }
.hero-excerpt { color: var(--text-light); margin: 0 0 18px; font-size: 1.02rem; }
.hero-cta { color: var(--primary); font-weight: 600; }

/* SECTIONS */
.section { margin-bottom: 50px; }
.section-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 8px; flex-wrap: wrap; gap: 12px;
}
.section-title {
    font-size: 1.6rem; margin: 0 0 .3em;
    padding-bottom: 10px; border-bottom: 2px solid var(--primary);
    display: inline-block;
}
.section-desc { color: var(--text-light); margin: 0 0 22px; }
.section-more { font-size: .9rem; font-weight: 600; }

/* GRID */
.post-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.grid-card {
    background: var(--bg-white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition);
    border: 1px solid var(--border);
}
.grid-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.grid-card a { color: var(--text); display: block; height: 100%; }
.grid-card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg); }
.grid-card-img img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease;
}
.grid-card:hover .grid-card-img img { transform: scale(1.04); }
.grid-card-body { padding: 14px 16px 18px; }
.grid-card-cat {
    display: inline-block; font-size: .68rem; font-weight: 600;
    color: var(--primary); text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: 6px;
}
.grid-card-title {
    font-size: 1.02rem; margin: 0; font-weight: 600;
    font-family: var(--font-primary); color: var(--accent);
    line-height: 1.35;
}
.grid-card:hover .grid-card-title { color: var(--primary); }

/* POST CARD list */
.post-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 30px; }
.post-card {
    display: flex; gap: 22px;
    background: var(--bg-white); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    overflow: hidden; transition: var(--transition);
}
.post-card:hover { box-shadow: var(--shadow); }
.post-card-img {
    flex: 0 0 240px; max-height: 200px; overflow: hidden;
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { flex: 1; padding: 20px 24px; min-width: 0; }
.post-card-title { font-size: 1.3rem; margin: 0 0 .4em; font-family: var(--font-heading); }
.post-card-title a { color: var(--accent); }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { color: var(--text-light); margin: 0 0 12px; }
.post-card-more { font-weight: 600; font-size: .92rem; }

/* CATEGORY HEADER */
.cat-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; padding: 36px 30px; border-radius: 8px;
    margin-bottom: 30px;
}
.cat-title { color: #fff; margin: 0 0 .3em; font-size: 2rem; }
.cat-desc { margin: 0; opacity: .92; font-size: 1.02rem; }

/* SINGLE POST */
.post-single {
    background: var(--bg-white); border-radius: 8px; padding: 36px 40px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--border);
    margin-bottom: 36px;
}
.post-header { margin-bottom: 22px; }
.post-cat {
    display: inline-block; background: var(--primary); color: #fff;
    font-size: .72rem; font-weight: 600; padding: 5px 12px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px;
}
.post-title { font-size: 2.1rem; margin: 0; }
.post-featured {
    margin: 0 -40px 28px; max-height: 480px; overflow: hidden;
}
.post-featured img { width: 100%; max-height: 480px; object-fit: cover; }

.entry-content { font-size: 1.04rem; line-height: 1.8; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content h2 {
    font-size: 1.55rem; margin-top: 1.6em; padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}
.entry-content h3 { font-size: 1.2rem; margin-top: 1.4em; color: var(--primary-dark); }
.entry-content img {
    margin: 1.4em auto; border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption {
    font-size: .88rem; color: var(--text-light); text-align: center;
    margin-top: .5em; font-style: italic;
}
.entry-content blockquote {
    border-left: 4px solid var(--primary); padding: 12px 22px;
    margin: 1.4em 0; background: var(--bg);
    color: var(--text-light); font-style: italic;
}
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin: 0 0 1.1em; }
.entry-content li { margin-bottom: .4em; }
.entry-content a { text-decoration: underline; }
.entry-content table {
    width: 100%; border-collapse: collapse; margin: 1.4em 0;
}
.entry-content th, .entry-content td {
    border: 1px solid var(--border); padding: 10px 14px; text-align: left;
}
.entry-content th { background: var(--bg); font-weight: 600; }

.related { margin-top: 40px; }

/* SIDEBAR */
.widget {
    background: var(--bg-white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.widget-title {
    font-size: 1.1rem; margin: 0 0 14px;
    padding-bottom: 10px; border-bottom: 2px solid var(--primary);
    color: var(--accent);
}
.widget-list { list-style: none; margin: 0; padding: 0; }
.widget-list li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.widget-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.widget-list a {
    display: flex; gap: 10px; align-items: center; color: var(--text);
    font-size: .92rem; line-height: 1.4;
}
.widget-list a:hover { color: var(--primary); }
.widget-list img {
    width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex-shrink: 0;
}
.cats-list a { display: flex; justify-content: space-between; }
.cats-list .count { color: var(--text-light); font-size: .85rem; }

/* PAGINATION */
.pagination {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
    margin-top: 30px;
}
.page-link {
    display: inline-block; padding: 8px 14px; border: 1px solid var(--border);
    border-radius: var(--radius); background: var(--bg-white);
    color: var(--text); font-weight: 500;
}
.page-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-link.is-current {
    background: var(--primary); color: #fff; border-color: var(--primary);
    cursor: default;
}

/* 404 */
.error-404 {
    text-align: center; padding: 60px 20px;
    background: var(--bg-white); border-radius: 8px; border: 1px solid var(--border);
}
.error-404 h1 { font-size: 5rem; color: var(--primary); margin: 0; }
.error-lead { font-size: 1.2rem; margin: 0 0 1em; color: var(--text-light); }
.error-cats { list-style: none; padding: 0; margin: 1.5em 0 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.error-cats a {
    display: inline-block; padding: 8px 16px; border: 1px solid var(--primary);
    border-radius: 999px; color: var(--primary); font-weight: 500;
}
.error-cats a:hover { background: var(--primary); color: #fff; }
.empty { text-align: center; color: var(--text-light); padding: 30px 0; }

/* FOOTER */
.site-footer {
    background: var(--accent); color: #ccc; padding: 40px 0 24px;
    margin-top: 50px;
}
.footer-inner { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-title {
    font-family: var(--font-heading); font-size: 1.5rem; color: #fff; font-weight: 700;
}
.footer-tagline { font-size: .9rem; color: #aaa; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.footer-nav a { color: #ccc; font-size: .92rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy {
    border-top: 1px solid #333; padding-top: 18px; font-size: .85rem;
    color: #888; width: 100%;
}

/* BACK TO TOP */
.back-to-top {
    position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px;
    border-radius: 50%; border: 0; background: var(--primary); color: #fff;
    font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: var(--transition); z-index: 50;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--primary-dark); }

/* RESPONSIVE */
@media (max-width: 900px) {
    .content-flex { flex-direction: column; }
    .sidebar { width: 100%; }
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .hero-card { flex-direction: column; }
    .hero-image { flex: 0 0 auto; max-height: 280px; }
    .hero-body { padding: 24px; }
    .hero-title { font-size: 1.6rem; }
    .post-featured { margin: 0 -20px 24px; }
    .post-single { padding: 26px 22px; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .header-nav { display: none; }
    .header-nav.is-open,
    #mainNav.is-open { display: block; }
    .main-nav { flex-direction: column; }
    .main-nav a { padding: 12px 20px; border-bottom: 1px solid #2a2a2a; }
    .post-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .post-card { flex-direction: column; }
    .post-card-img { flex: 0 0 auto; max-height: 200px; }
    .brand-logo { width: 50px; height: 50px; }
    .brand-title { font-size: 1.45rem; }
    .brand-tagline { font-size: .76rem; }
    h1, .post-title { font-size: 1.7rem; }
    .cat-title { font-size: 1.55rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .post-grid { grid-template-columns: 1fr; }
    .brand { gap: 10px; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-title { font-size: 1.25rem; }
    .brand-tagline { display: none; }
    .hero-body { padding: 18px; }
    .hero-title { font-size: 1.3rem; }
    .post-single { padding: 20px 16px; }
    .post-featured { margin: 0 -16px 20px; }
    .site-content { padding: 20px 0 30px; }
    .section-title { font-size: 1.3rem; }
    .pagination { font-size: .9rem; }
    .page-link { padding: 6px 10px; }
}
