:root {
    --primary-color: #D32F2F;
    /* Red inspired by Japanese shrines */
    --text-color: #333;
    --bg-color: #fdfaf5;
    /* Warm off-white, paper-like */
    --nav-bg: #fff;
    --border-color: #e0e0e0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Navbar */
header {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    color: #000;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

/* Container */
main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    min-height: 80vh;
}

/* Footer */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

/* Mobile */
@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 2rem;
    border-bottom: 4px solid var(--primary-color);
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(2px);
}

.hero h1 {
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-family: 'Cinzel', serif;
    /* Optional: elegant font */
}

/* Categories Nav */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: -1rem 0 2rem;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.category-link {
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.category-link:hover {
    background: #b71c1c;
    text-decoration: none;
}

/* Compact List */
.yokai-list-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.yokai-item-compact {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.yokai-item-compact:hover {
    border-color: var(--primary-color);
    background: #fff5f5;
    transform: translateX(2px);
}

.yokai-item-compact a {
    color: var(--text-color);
    font-weight: 500;
    width: 100%;
    display: block;
}

.yokai-item-compact a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Article Styles */
.yokai-article {
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.yokai-header h1 {
    font-size: 3rem;
    margin: 0 0 2rem;
    color: #000;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.yokai-featured-image {
    float: right;
    width: 45%;
    margin: 0 0 2rem 2.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.yokai-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.yokai-featured-image:hover img {
    transform: scale(1.05);
}

.content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.content h2 {
    margin-top: 2rem;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

/* Clearfix */
.yokai-article::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .yokai-article {
        padding: 1.5rem;
    }

    .yokai-header h1 {
        font-size: 2.2rem;
    }

    .yokai-featured-image {
        float: none;
        width: 100%;
        margin: 0 0 2rem 0;
    }
}

/* Utilities */
.intro {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.yokai-grid {
    /* Retaining grid for homepage recent items, maybe smaller? */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}