/*
Theme Name: Artist Portfolio
Author: Your Name
Description: A REFINED BRUTALIST portfolio theme for artists Version: 2.4.2 License: GNU General Public License v2 or later License URI: http: //www.gnu.org/licenses/gpl-2.0.html
Text Domain: artist-portfolio

/* ==========================================================================
   1. Variables & Reset
   ========================================================================== */
:root {
    /* Colors */
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-accent: #555555;
    --color-border: #e0e0e0;
    --color-border-hover: #000000;

    /* Typography */
    --font-heading: 'Archivo', sans-serif;
    --font-body: 'Archivo', sans-serif;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;

    /* Layout */
    --border-width: 1px;
    --container-width: 1400px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 350;
    /* Balanced weight for readability */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.03em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   2. Layout & Grid
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==========================================================================
   4. Typography
   ========================================================================== */

/* Archive Page Titles (DIARY, NEWS, COMICS, WORKS) */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
    padding: 10px 0;
    /* Slimmer header */
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: var(--border-width) solid var(--color-border);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.05em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    margin: 0;
    padding: 0;
}

.main-navigation li {
    display: block;
    /* Ensure list items behave */
}

.main-navigation a {
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    position: relative;
    display: block;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-text);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Lang Switcher */
.lang-switcher {
    font-size: 0.75rem;
    font-family: 'Space Mono', monospace;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.lang-switcher a {
    color: #999;
    font-weight: 400;
    transition: color 0.2s;
}

.lang-switcher a.active {
    color: var(--color-text);
    font-weight: 700;
}

.lang-switcher a:hover {
    color: var(--color-text);
}

/* Header Icons */
.header-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Mobile Menu Toggle (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
    display: block;
}

/* Hamburger Animation (X when open) */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay - Partial Screen (Slide from Right) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    /* Start off-screen */
    width: 40%;
    max-width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding-top: 80px;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden by default to prevent scroll */
}

.mobile-menu-overlay.active {
    right: 0;
    /* Slide in */
    display: block;
    /* Show when active */
}

/* Backdrop overlay - lighter */
.mobile-menu-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease;
    z-index: -1;
}

.mobile-menu-overlay.active::before {
    left: 0;
}

.mobile-navigation ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.mobile-navigation a {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
}

/* Prevent body scroll when menu open */
body.menu-open {
    overflow: hidden;
}

/* ==========================================================================
   3a. Desktop/Tablet Responsive Header (min-width: 769px)
   ========================================================================== */
@media (min-width: 769px) {

    /* Hide hamburger menu on desktop/tablet */
    .mobile-menu-toggle {
        display: none !important;
    }

    /* Ensure desktop navigation is visible */
    .main-navigation {
        display: block !important;
    }

    /* Flexible header container */
    .site-header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: clamp(10px, 2vw, 20px) clamp(15px, 3vw, 40px);
        gap: clamp(15px, 3vw, 40px);
    }

    /* Flexible navigation spacing */
    .main-navigation ul {
        gap: clamp(12px, 2vw, 30px);
        white-space: nowrap;
    }

    /* Responsive font sizing for navigation */
    .main-navigation a {
        font-size: clamp(0.75rem, 1.2vw, 0.9rem);
        letter-spacing: clamp(0.02em, 0.3vw, 0.08em);
    }

    /* Flexible header right spacing */
    .header-right {
        gap: clamp(15px, 2.5vw, 35px);
    }

    /* Language switcher responsive sizing */
    .lang-switcher {
        font-size: clamp(0.7rem, 1vw, 0.85rem);
        padding: clamp(4px, 0.5vw, 8px) clamp(8px, 1vw, 12px);
    }

    /* Site title base */
    .site-title {
        white-space: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Mobile */
    @media (max-width: 924px) {
        .site-title {
            font-size: 1.0rem !important;
        }
    }

    /* Desktop/Tablet */
    @media (min-width: 926px) {
        .site-title {
            font-size: 1.8rem !important;
        }
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
}

/* Mobile Menu Overlay - Partial Screen (Slide from Right) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    /* Start off-screen */
    width: 40%;
    max-width: 295px;
    /* Increased from 280px for iPhone SE */
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding-top: 80px;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden by default to prevent scroll */
}

.mobile-menu-overlay.active {
    right: 0;
    /* Slide in */
    display: block;
    /* Show when active */
}

/* Backdrop overlay - lighter */
.mobile-menu-overlay::before {
    content: '';
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease;
    z-index: -1;
}

.mobile-menu-overlay.active::before {
    left: 0;
}

.mobile-navigation ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.mobile-navigation a {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
}

/* Prevent body scroll when menu open */
body.menu-open {
    overflow: hidden;
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
}

/* ==========================================================================
   3b. Mobile Responsive Header (@media max-width: 925px)
   ========================================================================== */
@media (max-width: 925px) {

    /* Mobile Font Sizes */
    body {
        font-size: 13.5px !important;
    }

    /* Main Visual - 3:2 Aspect Ratio (Container-based) */
    .main-visual {
        width: 100%;
        aspect-ratio: 3 / 2;
        overflow: hidden;
        position: relative;
    }

    .mv-carousel,
    .mv-slide {
        width: 100%;
        height: 100%;
        /* Match parent 3:2 ratio */
    }

    .mv-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Fill frame while maintaining ratio */
        object-position: center;
        /* Center the image */
    }

    .site-title {
        font-size: 14.5px !important;
    }

    /* CRITICAL: Force single row layout - NO WRAPPING */
    .site-header .container {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        padding: 8px 10px !important;
        gap: 6px !important;
        /* Reduced from 8px */
        min-height: 40px !important;
    }

    /* Left group: Title + Icons */
    .header-left-combined {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        /* Reduced from 6px */
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }

    .site-title {
        /* font-size set above */
        white-space: nowrap !important;
        flex-shrink: 1 !important;
        min-width: 0 !important;
    }

    /* Icons container - smaller icons */
    .header-icons {
        display: flex !important;
        gap: 3px !important;
        /* Reduced from 4px */
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    .header-sns-link {
        flex-shrink: 0 !important;
        padding: 2px !important;
        /* Reduced from 3px */
    }

    .header-sns-link svg {
        width: 16px !important;
        /* Reduced from 20px */
        height: 16px !important;
        display: block !important;
    }

    /* Right group: Language + Hamburger with Web Pet space */
    .header-right-combined {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        /* Increased to create Web Pet space */
        flex-shrink: 0 !important;
        margin-left: auto !important;
        /* Push to right */
    }

    /* Language switcher */
    .lang-switcher {
        font-size: 0.6rem !important;
        /* Slightly larger for readability */
        padding: 3px 6px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        font-weight: 600 !important;
    }

    /* Desktop navigation - HIDDEN */
    .main-navigation {
        display: none !important;
    }

    /* Hamburger menu button */
    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0 !important;
        width: 30px !important;
        height: 24px !important;
    }

    /* Other Images - 16:9 Ratio (Wider) */
    .featured-image,
    .hero-image,
    .post-thumbnail img,
    .wp-post-image {
        aspect-ratio: 16 / 9 !important;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* NEWS Thumbnail - Smaller Size */
    .news-thumbnail-home img {
        width: 60px !important;
        height: 60px !important;
        object-fit: cover;
    }

    /* NEWS Title - Tighter Line Height */
    .news-title-home {
        line-height: 1.2 !important;
    }

    /* DIARY Title - 14pt */
    .diary-title {
        font-size: 14pt !important;
    }

    /* DIARY Body Text - 13pt */
    .home-diary-body,
    .diary-body {
        font-size: 13pt !important;
    }

    /* NEWS Section - Compact Scrollable Layout (Mobile Only) */
    .news-list-container {
        max-height: 200px;
        /* Height for ~2 items */
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 5px;
    }

    .news-list-container::-webkit-scrollbar {
        width: 6px;
    }

    .news-list-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }

    .news-list-container::-webkit-scrollbar-track {
        background: #f0f0f0;
    }

    /* NEWS Section - Tighter Line Height */
    .news-section .post-title,
    .news-section .entry-title,
    .news-item h3,
    .news-item .post-title {
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
}

/* ==========================================================================
   4. Front Page (Compact Layout)
   ========================================================================== */
.home .site-main {
    /* No padding for main container on home */
}

.main-visual {
    height: 45vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.mv-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.mv-slide {
    width: 100%;
    height: 100%;
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    overflow: hidden;
}

.mv-slide.active {
    display: block;
    opacity: 1;
    z-index: 1;
}

.mv-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.mv-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    animation: pan-vertical var(--anim-duration, 10s) ease-in-out infinite;
}

@keyframes pan-vertical {
    0% {
        object-position: center top;
    }

    50% {
        object-position: center bottom;
    }

    100% {
        object-position: center top;
    }
}

/* Utility to disable animation via Media Settings */
.mv-slide.no-anim img {
    animation: none !important;
    object-position: center center !important;
    /* Center static images */
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    height: 40vh;
    overflow: hidden;
}

.home-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-text);
    padding-bottom: 5px;
}

/* Compact News List */
.news-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.news-item-simple {
    display: flex;
    border-bottom: var(--border-width) solid var(--color-border);
    padding: 10px 0;
    align-items: baseline;
}

.news-date {
    font-weight: 600;
    color: #666;
    width: 100px;
    font-size: 0.85rem;
}

.news-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
}

/* Compact Diary List */
.diary-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
}

.diary-item-simple {
    margin-bottom: var(--spacing-sm);
}

.diary-item-simple a {
    display: block;
    padding: 10px;
    background: #f5f5f5;
    transition: background 0.2s;
}

.diary-item-simple a:hover {
    background: #e0e0e0;
}

.diary-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.diary-excerpt {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* Mobile Override for Front Page Grid */
@media (max-width: 925px) {
    .home-grid {
        display: block;
        height: auto;
        overflow: visible;
        padding-bottom: 0;
    }

    .home-section {
        margin-bottom: 40px;
        height: auto;
    }

    /* Fix for News Text Overflow */
    .news-link-home {
        flex-wrap: wrap;
        /* Allow date to wrap if needed */
    }

    .news-title-home {
        min-width: 0;
        /* Critical for flex child wrapping */
        word-break: break-all;
        white-space: normal;
        flex: 1;
        /* Take remaining space */
    }
}

/* ==========================================================================
   5. Archives & Pages
   ========================================================================== */
.page-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin: var(--spacing-lg) 0;
    text-transform: uppercase;
}

/* Filter Tabs */
.works-filter {
    margin-bottom: var(--spacing-lg);
}

.filter-list {
    display: flex;
    gap: var(--spacing-md);
}

.filter-list a {
    font-weight: 600;
    color: #888;
}

.filter-list a.active,
.filter-list a:hover {
    color: var(--color-text);
    border-bottom: 2px solid var(--color-text);
}

/* Grid Layouts */
.portfolio-grid,
.yarn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.portfolio-item-image,
.yarn-image {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: var(--spacing-xs);
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.comic-thumbnail {
    width: 100%;
    height: auto;
    /* Allow natural height */
    aspect-ratio: auto;
    /* Override default if needed */
    object-fit: contain;
    /* Show full image */
    margin-bottom: var(--spacing-xs);
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.portfolio-item:hover .portfolio-item-image,
.comic-item:hover .comic-thumbnail {
    filter: grayscale(0%);
}

/* Mobile Active State for Comics */
.portfolio-item.is-active .portfolio-item-image,
.comic-item.is-active .comic-thumbnail {
    filter: grayscale(0%) !important;
}

.portfolio-item-title,
.comic-title,
.yarn-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ==========================================================================
   6. Single Pages
   ========================================================================== */
.entry-header {
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.entry-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.entry-content {
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
    border-top: var(--border-width) solid var(--color-border);
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-lg);
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* ==========================================================================
   8. Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .home-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .main-visual {
        height: 30vh;
    }

    .section-title,
    .page-title {
        font-size: 2rem;
    }

    .header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: var(--spacing-xs);
    }

    .main-navigation ul {
        gap: var(--spacing-sm);
    }

    /* Mobile Works Grid - 2 Column */
    .works-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    /* Ensure first item (if requested) is color */
    .works-archive .portfolio-item.is-active .portfolio-item-image {
        filter: grayscale(0%) !important;
    }
}

/* Branding Wrapper (Title + SNS) */
/* Branding Wrapper (Title + SNS) */
.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    /* Prevent wrapping */
}

/* Ensure site-title doesn't force full width */
.site-branding .site-title {
    margin: 0;
    line-height: 1;
    /* Match line-height to prevent vertical expansion */
}

.header-sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.header-sns-link:hover {
    opacity: 1;
    color: var(--color-accent);
}

.header-sns-link svg {
    width: 20px;
    height: 20px;
}

/* Works Filter */
.works-filter {
    margin-bottom: 40px;
    text-align: center;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.filter-list a {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: #888;
    letter-spacing: 0.05em;
    position: relative;
}

.filter-list a.active,
.filter-list a:hover {
    color: var(--color-text);
}

.filter-list a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-text);
}

/* Work Item Meta */
.portfolio-meta-category {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   9. Diary (Posts)
   ========================================================================== */
.diary-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

.diary-sidebar {
    position: sticky;
    top: 100px;
}

/* Accordion */
.year-accordion {
    list-style: none;
    padding: 0;
    margin: 0;
}

.year-accordion>li {
    margin-bottom: 10px;
}

.year-trigger {
    cursor: pointer;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.year-trigger::after {
    content: '+';
    font-size: 1rem;
    color: #888;
}

.year-trigger.active::after {
    content: '-';
}

.month-list {
    display: none;
    list-style: none;
    padding-left: 15px;
    margin-top: 10px;
}

.month-list.active {
    display: block;
}

.month-list li a {
    display: block;
    padding: 5px 0;
    color: #666;
    font-size: 0.95rem;
}

.month-list li a:hover {
    color: var(--color-accent);
}

/* Diary Content */
.diary-month-title {
    font-size: 1.2rem;
    /* Reduced further from 1.4rem */
    margin-bottom: 30px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
    letter-spacing: 0.1em;
    font-weight: 400;
}

.diary-article {
    margin-bottom: 80px;
    max-width: 800px;
    /* Limit line length for readability */
}

.diary-header {
    margin-bottom: 25px;
    /* Clear separation from body */
    border-left: none;
    /* Removed border as requested */
    padding-left: 0;
    padding-bottom: 0;
}

.diary-entry-title {
    font-size: 1.4rem;
    font-weight: 400;
    margin: 5px 0 0 0;
    line-height: 1.3;
}

.diary-date {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #666;
    display: block;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.diary-body {
    font-size: 1.05rem;
    /* Slightly larger base size */
    line-height: 1.9;
    /* More breathing room */
    color: #333;
    /* Softer contrast than pure black */
}

.diary-body p {
    margin-bottom: 2em;
    /* Clear paragraph separation */
    text-indent: 1em;
    /* Indent first line of paragraphs */
}

/* Hyperlinks in Diary Body */
.diary-body a,
.entry-content a:not(.read-more) {
    color: var(--color-accent) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.diary-body a:hover,
.entry-content a:not(.read-more):hover {
    color: #000 !important;
    text-decoration-thickness: 2px;
    background-color: rgba(0, 0, 0, 0.05);
    /* Subtle highlight on hover */
}

/* Scrollable Diary on Home */
.diary-list-container {
    padding-right: 0;
}

.home-diary-body {
    max-height: 25vh;
    overflow-y: auto !important;
    padding-right: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.home-diary-body p {
    margin-bottom: 4px;
}

.home-diary-body p:last-child {
    margin-bottom: 0;
}

.home-diary-body::-webkit-scrollbar {
    width: 6px;
}

.home-diary-body::-webkit-scrollbar-thumb {
    background-color: #333;
    border-radius: 3px;
}

.diary-home-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.diary-home-item:last-child {
    border-bottom: none;
}

/* Full width divider for Diary section */
.home-diary-section {
    border-bottom: 1px solid #000;
    padding-bottom: 40px;
    margin-bottom: 60px;
}

/* ==========================================================================
   PROFILE Page Styles
   ========================================================================== */
.profile-bio,
.profile-contact,
.collapsible-content {
    font-weight: 350;
}

@media (max-width: 768px) {
    .diary-container {
        grid-template-columns: 1fr;
    }

    .diary-sidebar {
        position: static;
        margin-bottom: 40px;
    }
}

/* ===================================
   PROFILE PAGE STYLES (Refined Brutalism)
   =================================== */

.profile-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.profile-page .entry-header {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.profile-page .entry-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

.profile-photo {
    text-align: center;
    margin: 40px 0 60px;
}

.profile-image {
    max-width: 250px;
    width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.profile-image:hover {
    filter: grayscale(0%);
}

.profile-bio {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 60px;
    color: #1a1a1a;
}

.profile-bio h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 50px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.profile-bio h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    margin-top: 30px;
    margin-bottom: 15px;
}

.profile-bio p {
    margin-bottom: 1.2em;
}

.profile-contact {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    padding: 30px;
    margin-bottom: 60px;
    text-align: center;
}

.profile-contact h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 20px 0;
    border: none;
    padding: 0;
}

.profile-contact p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 300;
}

.profile-contact a {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: 1px solid #e0e0e0;
    transition: border-color 0.2s ease;
}

.profile-contact a:hover {
    border-bottom-color: var(--color-text);
}

/* Collapsible Sections */
.profile-collapsible-sections {
    margin-top: 40px;
}

.collapsible-section {
    border-bottom: 1px solid #e0e0e0;
}

.collapsible-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    transition: opacity 0.2s ease;
}

.collapsible-toggle:hover {
    opacity: 0.6;
}

.toggle-title {
    text-align: left;
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
}

.collapsible-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 0.9rem;
    line-height: 1.7;
    font-weight: 300;
}

.collapsible-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 30px 0;
}

.collapsible-content ul li {
    margin-bottom: 10px;
    padding-left: 1.2em;
    position: relative;
}

.collapsible-content ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #999;
}

@media (max-width: 768px) {
    .profile-page {
        padding: 40px 15px;
    }

    .profile-page .entry-title {
        font-size: 1.5rem;
    }

    .profile-image {
        max-width: 180px;
    }

    .profile-bio {
        font-size: 0.9rem;
    }

    .profile-bio h2 {
        font-size: 1.2rem;
    }

    .collapsible-toggle {
        font-size: 1rem;
        padding: 15px 0;
    }

    .profile-section-bio {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .profile-visuals,
    .profile-text {
        width: 100% !important;
    }
}

/* ===================================
   PROFILE Layout Refactor
   =================================== */
/* Profile Slider Controls */
.profile-slider-wrapper {
    position: relative;
    width: 55%;
    /* Increased from 40% */
}

/* Ensure internals fit */
.profile-visuals {
    width: 100%;
    /* Fill wrapper */
}

/* Nav Buttons */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
    transition: background 0.3s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.8);
}

.slider-nav.prev {
    left: 10px;
}

.slider-nav.next {
    right: 10px;
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: #555;
}

/* Update Mobile to reset wrapper width */
@media (max-width: 768px) {
    .profile-slider-wrapper {
        width: 100%;
    }
}

.profile-section {
    margin-bottom: 80px;
}

.profile-section-bio {
    display: flex;
    gap: 5%;
    align-items: flex-start;
}

.profile-visuals {
    width: 100%;
    /* Fill wrapper (was 40% before wrapper) */
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    overflow-x: auto;
    /* Horizontal scroll */
    scroll-snap-type: x mandatory;
    gap: 0;
    /* Stacked side by side */
    align-self: flex-start;
    /* Prevent stretching */

    /* Hide scrollbar for cleaner look */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.profile-visuals::-webkit-scrollbar {
    display: none;
}

.profile-image-item {
    min-width: 100%;
    /* Take full width of column */
    scroll-snap-align: start;
}

.profile-image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.profile-text {
    width: 40%;
    /* Decreased from 60% */
    padding-top: 10px;
}

.artist-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.artist-title {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

/* ===================================
   Homepage NEWS Section
   =================================== */
.news-list-home {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item-home {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.news-link-home {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--color-text);
    transition: opacity 0.2s ease;
}

.news-link-home:hover {
    opacity: 0.7;
}

.news-date-home {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    min-width: 80px;
    font-weight: 300;
}

.news-thumbnail-home {
    flex-shrink: 0;
}

.news-thumbnail-home img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.news-link-home:hover .news-thumbnail-home img {
    filter: grayscale(0%);
}

.news-title-home {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    margin: 0;
    flex: 1;
}

@media (max-width: 768px) {
    .news-link-home {
        flex-wrap: wrap;
    }

    .news-date-home {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ==========================================================================
   PROFILE Page Font Weight Override - MUST BE LAST
   ========================================================================== */
body,
.profile-bio p,
.profile-article,
.profile-contact p,
.collapsible-content p {
    font-family: 'Archivo', sans-serif !important;
    font-weight: 350 !important;
}

/* Paragraph Spacing for WORKS, BIO, NEWS, COMICS (Enter key) */
.single-work-container .entry-content p,
.single-work-container .entry-content>div,
body.single-portfolio .entry-content p,
body.single-portfolio .entry-content>div,
.single-news-container .entry-content p,
.single-news-container .entry-content>div,
.single-comic-container .entry-content p,
.single-comic-container .entry-content>div,
.profile-bio-content p,
.profile-bio-content>div,
.profile-contact p,
.profile-contact>div,
.collapsible-content p,
.collapsible-content>div {
    margin-bottom: 15px !important;
    margin-top: 0 !important;
}

/* Ensure headings have spacing in content areas */
.single-work-container .entry-content h2,
.single-work-container .entry-content h3,
.single-work-container .entry-content h4,
.single-work-container .entry-content h5,
.single-work-container .entry-content h6,
body.single-portfolio .entry-content h2,
body.single-portfolio .entry-content h3,
body.single-portfolio .entry-content h4,
body.single-portfolio .entry-content h5,
body.single-portfolio .entry-content h6 {
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    line-height: 1.4;
}

/* Remove top margin for the very first heading if it exists */
.single-work-container .entry-content>h2:first-child,
.single-work-container .entry-content>h3:first-child,
body.single-portfolio .entry-content>h2:first-child,
body.single-portfolio .entry-content>h3:first-child {
    margin-top: 0 !important;
}

/* Ensure empty paragraphs (line breaks) are visible */
.single-work-container .entry-content p:empty,
body.single-portfolio .entry-content p:empty {
    min-height: 15px;
    /* Matches paragraph margin */
}

/* Fix for Anchor Jump Offset (Sticky Header overlap) */
html {
    scroll-padding-top: 160px;
}