/*
Theme Name: ShameFree
Theme URI: https://shamefree.art
Author: ShameFree & AI Coding Agent
Description: A minimal, Japanese-inspired black and white magazine theme with realistic glass effects. Sophisticated Dark aesthetic.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shamefree
Tags: black-and-white, minimal, magazine, grid-layout, two-columns, block-styles, glassmorphism
*/

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&family=Space+Grotesk:wght@300;400;700&display=swap');

:root {
    --black: #000000;
    --white: #ffffff;
    --gray-bg: #f9f9f9;
    --border-color: #000000;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-display: 'Space Grotesk', sans-serif;
}

/* --- Resets --- */
* { box-sizing: border-box; }
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover { opacity: 0.5; }

img { max-width: 100%; height: auto; }

/* --- Layout --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

.architect-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    min-height: 100vh;
}

.col-main { grid-column: span 8; border-right: 1px solid var(--black); padding-right: 48px; }
.col-side { grid-column: span 4; padding: 48px; background-color: var(--gray-bg); }

@media (max-width: 1024px) {
    .col-main, .col-side { grid-column: span 12; border-right: none; padding: 32px 0; }
}

/* --- Layout Utilities --- */
.grid { display: grid; }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.col-span-12 { grid-column: span 12 / span 12; }

.gap-px { gap: 1px; }
.gap-8 { gap: 2rem; }
.bg-black { background-color: var(--black); }
.bg-white { background-color: var(--white); }

.pt-32 { padding-top: 8rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }

@media screen and (max-width: 768px) {
    .pt-32 { padding-top: 5rem; }
    .py-32 { padding: 4rem 0; }
}
.p-12 { padding: 3rem; }
@media screen and (max-width: 768px) {
    .p-12 { padding: 1.5rem; }
}
.pb-8 { padding-bottom: 2rem; }
.pb-4 { padding-bottom: 1rem; }

.mb-16 { margin-bottom: 4rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }

.architect-border { border: 1px solid var(--black); }
.architect-border-t { border-top: 1px solid var(--black); }
.architect-border-b { border-bottom: 1px solid var(--black); }
.architect-border-r { border-right: 1px solid var(--black); }

.flex { display: flex; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 2rem; }

.text-8xl { font-size: 6rem; }
.text-4xl { font-size: 2.25rem; }
.text-3xl { font-size: 1.875rem; }
.text-\[8rem\] { font-size: 8rem; }
.text-\[10rem\] { font-size: 10rem; }

@media screen and (max-width: 768px) {
    .text-8xl { font-size: 3rem; }
    .text-4xl { font-size: 1.75rem; }
    .text-3xl { font-size: 1.5rem; }
    .text-\[8rem\] { font-size: 3rem; }
    .text-\[10rem\] { font-size: 3.5rem; }
}

.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.leading-none { line-height: 1; }
.opacity-20 { opacity: 0.2; }
.opacity-40 { opacity: 0.4; }

.max-w-full { max-width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.min-h-screen { min-height: 100vh; }

.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.w-full { width: 100%; }
.h-full { height: 100%; }

.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:text-white\/40 { color: rgba(255, 255, 255, 0.4); }
.group:hover .group-hover\:translate-x-2 { transform: translateX(0.5rem); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }

/* --- Header Components --- */
.custom-logo-link {
    display: flex;
    align-items: center;
    max-height: 48px;
    overflow: hidden;
}

.custom-logo {
    display: block;
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

.site-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 4px 16px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.site-branding {
    flex-shrink: 1;
    min-width: 0;
}

.site-branding-container {
    display: flex;
    align-items: center;
    gap: 32px;
}

@media screen and (max-width: 768px) {
    .site-branding-container {
        gap: 12px;
    }
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media screen and (max-width: 768px) {
    .site-header-actions {
        gap: 16px;
    }
    .search-label {
        display: none;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--black);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar-top { transform: translateY(4px) rotate(45deg); }
.mobile-menu-toggle.active .bar-bottom { transform: translateY(-4px) rotate(-45deg); }

@media screen and (max-width: 1024px) {
    .main-navigation { display: none; }
    .mobile-menu-toggle { display: flex; }
}

/* Mobile Dropdown */
.mobile-dropdown {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    z-index: 9998;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.mobile-dropdown.active {
    transform: translateY(0);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    z-index: 10002;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 10vh 0;
    display: block;
    overflow-y: auto;
}

.search-overlay.active {
    transform: translateY(0);
}

.search-overlay-content {
    width: 100%;
    max-width: 1100px;
    padding: 24px;
    position: relative;
    margin: 0 auto;
}

.search-close {
    position: absolute;
    top: -40px;
    right: 24px;
    background: #000000;
    color: #ffffff;
    border: none;
    cursor: pointer;
    z-index: 10003;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.search-close:hover {
    background: #333333;
    transform: scale(0.95);
}

@media screen and (max-width: 768px) {
    .search-overlay {
        align-items: flex-start;
        padding-top: 80px;
    }
    .search-close {
        top: -30px;
        right: 16px;
        padding: 8px;
    }
}

/* Live Search Results Modern UI */
#shamefree-live-results {
    /* Existing shamefree results */
}

#searchwp-live-search-results-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.live-search-results {
    margin-top: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.live-search-results.active {
    opacity: 1;
    transform: translateY(0);
}

.live-results-header {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    opacity: 0.3;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 12px;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 100%;
}

.live-result-card {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px 0;
    text-decoration: none;
    color: var(--black);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: background 0.3s ease, padding 0.3s ease;
}

.live-result-card:hover {
    padding-left: 16px;
    background: rgba(0,0,0,0.01);
}

.lr-thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lr-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lr-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
}

.lr-content {
    flex-grow: 1;
}

.lr-cat {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.4;
    margin-bottom: 4px;
}

.lr-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.1;
}

.lr-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.live-result-card:hover .lr-arrow {
    opacity: 1;
    transform: translateX(0);
}

.search-loading, .no-results-message {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-style: italic;
    opacity: 0.1;
    margin-top: 40px;
}

/* Hide Native Search Cancel Button */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance:none;
    display: none !important;
}

/* Architect Posts Grid */
.architect-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

@media screen and (max-width: 1024px) {
    .architect-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .architect-posts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.architect-card {
    display: flex;
    flex-direction: column;
}

.card-thumb {
    aspect-ratio: 4/5;
    background: #f0f0f0;
    border: 1px solid var(--black);
    overflow: hidden;
    margin-bottom: 24px;
}

.card-thumb img,
.featured-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.architect-card:hover .card-thumb img,
.architect-card:hover .featured-video {
    transform: scale(1.05);
}

.card-meta {
    font-family: var(--font-sans);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0.4;
    margin-bottom: 12px;
    font-weight: 600;
}

.card-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-style: normal;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.card-title a {
    text-decoration: none;
    color: var(--black);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.02);
}

.search-overlay-content {
    width: 100%;
}

.mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.mobile-navigation li {
    margin-bottom: 24px;
}

.mobile-navigation a {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 1;
    overflow-wrap: break-word;
}

.mt-12 { margin-top: 3rem; }
.pt-8 { padding-top: 2rem; }
.border-t { border-top: 1px solid var(--black); }
.border-black\/10 { border-color: rgba(0,0,0,0.1); }
.no-scroll { overflow: hidden; }

.header-search-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.search-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-sans);
    margin-right: 8px;
    opacity: 0.4;
    font-style: italic;
}

.header-search-toggle svg {
    display: block;
    transition: transform 0.3s ease;
}

.header-search-toggle:hover svg {
    transform: scale(1.1);
}

/* --- Custom Minimalist Video Player --- */
.custom-video-wrapper {
    position: relative;
    width: 100%;
    margin: 32px 0;
    background: #000;
    border: 1px solid var(--black);
    overflow: hidden;
    cursor: pointer;
}

.custom-video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Hide native controls */
.custom-video-wrapper video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-enclosure {
    display:none !important;
}

.video-overlay-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.big-play-icon {
    background: white;
    color: black;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.big-play-icon svg {
    display: block;
}

.big-play-icon .big-icon-play {
    margin-left: 4px;
}

/* State changes */
.paused .big-play-icon {
    opacity: 1;
    transform: scale(1);
}

.state-changed .big-play-icon {
    animation: iconFlash 0.6s ease-out forwards;
}

@keyframes iconFlash {
    0% { opacity: 0; transform: scale(0.8); }
    30% { opacity: 0.9; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.3); }
}

@media screen and (max-width: 768px) {
    .big-play-icon {
        width: 60px;
        height: 60px;
    }
    
    .custom-video-wrapper:not(.paused) .big-play-icon {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .mini-side-btn {
        display: none; /* Mobile uses middle touch only */
    }

    .custom-video-wrapper {
        margin: 20px 0;
    }
}
.entry-title {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin: 0 0 48px 0;
}

.entry-title a {
    color: var(--black);
    text-decoration: none;
}

/* --- Minimalist Suppressions (No share, no clutter) --- */
.sd-sharing-enabled, .jetpack-sharing, .sharedaddy, .social-share, .entry-footer, .comments-area {
    display: none !important;
}

/* --- Header --- */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--black);
    z-index: 9999;
    transition: top 0.3s ease;
}

@media screen and (max-width: 768px) {
    .site-header {
        height: 64px;
    }
}

.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.custom-logo-link {
    display: flex;
    align-items: center;
    max-height: 48px;
}

.custom-logo {
    display: block;
    max-height: 48px;
    width: auto;
    object-fit: contain;
}

@media screen and (max-width: 768px) {
    .custom-logo {
        max-height: 32px;
    }
}

/* --- Search Components --- */
.search-form {
    border-bottom: 4px solid var(--black);
    width: 100%;
    position: relative;
}

.search-field {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    padding: 24px 80px 24px 0; /* Space for icon */
    outline: none;
    line-height: normal;
}

@media screen and (max-width: 768px) {
    .search-field {
        font-size: 2rem;
        padding: 16px 48px 16px 0;
    }
}

.search-field::placeholder {
    opacity: 0.1;
}

.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .entry-title { font-size: 3.5rem; }
}

.entry-meta {
    position: relative;
    z-index: 11;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.single-post-layout .entry-meta {
    margin-top: 16px;
    margin-bottom: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--black);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meta-sep {
    margin: 0 16px;
    opacity: 0.3;
}

.entry-content {
    font-size: 21px;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .entry-content {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    .entry-content {
        font-size: 16px;
    }
}

/* Ensure images in content are well-behaved */
.entry-content img {
    margin: 32px 0;
    border-style: solid;
    border-color: var(--black);
    display: block;
    width: 100%;
    height: auto;
}

@media screen and (max-width: 768px) {
    .entry-content img {
        margin: 20px 0;
    }
}

.read-more-link {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--black);
    padding-bottom: 4px;
    margin-top: 24px;
}

/* --- Glass Effects --- */
.glass-architect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

/* --- Sidebar --- */
.widget-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--black);
    padding-bottom: 8px;
    margin-bottom: 32px;
}

/* --- Footer --- */
.site-footer {
    height: 96px;
    border-top: 1px solid var(--black);
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.footer-credits {
    opacity: 0.4;
    max-width: 60%;
}

.footer-volume {
    font-weight: 700;
}

.single-post-layout {
    width: 100%;
    margin: 0;
}

.meta-category a {
    display: inline-block;
    background: #000000 !important;
    color: var(--white);
    padding: 8px 16px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    opacity: 1 !important;
    transition: none !important;
    transform: none !important;
}

.meta-category a:hover,
.meta-category a:active {
    opacity: 1;
    transform: none !important;
}


.single-post-layout .entry-header {
    padding-top: clamp(60px, 12vh, 120px);
    padding-bottom: clamp(60px, 12vh, 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: -28px; /* Compensate for site-content-padding (100-72) */
}

@media screen and (max-width: 768px) {
    .single-post-layout .entry-header {
        margin-top: -16px; /* Compensate for mobile site-content-padding (80-64) */
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

.single-post-layout .entry-title {
    font-size: clamp(2rem, 10vw, 8.5rem);
    line-height: 0.85;
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: -0.04em;
    overflow-wrap: break-word;
}

@media screen and (max-width: 768px) {
    .single-post-layout .entry-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center !important;
        gap: 16px;
    }
    .single-post-layout .entry-title {
        font-size: clamp(1.75rem, 12vw, 3.5rem);
    }
}

.single-post-layout .post-thumbnail {
    width: 100%;
    margin: 0 0 32px 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--black);
    position: relative;
}

.single-post-layout .post-thumbnail img,
.single-post-layout .post-thumbnail .featured-video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    transform: scale(1.01);
}

.single-post-layout .entry-content {
    width: 100%;
    margin: 0;
    font-family: var(--font-sans);
    line-height: 1.6;
}

.single-post-layout .entry-content p,
.single-post-layout .entry-content img,
.single-post-layout .entry-content figure {
    width: 100%;
    max-width: 100%;
}

.single-post-layout .entry-content p {
    font-size: 1em;
    margin-bottom: 24px;
    color: rgba(0, 0, 0, 0.9);
}

.single-post-layout .entry-content a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-underline-offset 0.2s ease, opacity 0.2s ease;
}

.single-post-layout .entry-content a:hover {
    text-underline-offset: 1px;
    opacity: 0.7;
}

/* --- Styled Lists --- */
.entry-content ol,
.entry-content ul {
    list-style: none;
    padding: 0;
    margin: 32px 0;
    counter-reset: architect-counter;
}

.entry-content ol li,
.entry-content ul li {
    position: relative;
    padding: 24px 24px 24px 80px;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1em;
    line-height: 1.5;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.entry-content ol li::before {
    counter-increment: architect-counter;
    content: counter(architect-counter);
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.notice-box {
    margin: 48px 0;
    padding: 32px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.notice-box-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 16px;
}

.notice-box p {
    margin: 0 !important;
    font-size: 1em !important;
}

.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--black);
    border-radius: 50%;
}

.entry-content ol li:has(a):hover,
.entry-content ul li:has(a):hover {
    border-color: var(--black);
    background: rgba(0, 0, 0, 0.04);
}

/* --- Styled Blockquotes --- */
.entry-content blockquote {
    margin: 48px 0;
    padding: 40px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    position: relative;
}

.entry-content blockquote p {
    font-family: var(--font-sans);
    font-size: 1em;
    line-height: 1.5;
    margin: 0;
    color: var(--black);
}

.entry-content blockquote cite {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--font-display);
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-style: normal;
    text-transform: uppercase;
    line-height: 1.1;
}

.entry-content h1 { font-size: clamp(2.375rem, 6vw, 3.125rem); }
.entry-content h2 { font-size: clamp(1.975rem, 5vw, 2.625rem); }
.entry-content h3 { font-size: clamp(1.625rem, 4vw, 2.125rem); }
.entry-content h4 { font-size: clamp(1.375rem, 3vw, 1.875rem); }
.entry-content h5 { font-size: clamp(1.225rem, 2.5vw, 1.475rem); }
.entry-content h6 { font-size: 1.225rem; }

/* --- Next Post Suggestion --- */
.next-post-suggestion {
    display: grid;
    grid-template-columns: 140px 1fr 80px;
    align-items: stretch;
    gap: 0;
    padding: 0;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--black);
    margin-top: 140px;
    margin-bottom: 100px;
    width: 100%;
    overflow: hidden;
    min-height: 140px;
}

.next-post-suggestion:hover {
    border-color: rgba(0,0,0,0.3);
}

.next-post-thumb {
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--black);
    background: #f9f9f9;
}

.next-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 100%;
    min-height: 100%;
}

.next-post-content {
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.next-post-info {
    display: flex;
    flex-direction: column;
}

.next-post-label {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4em;
    opacity: 0.3;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.next-post-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    font-style: normal;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.next-post-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    border-left: 1px solid rgba(0,0,0,0.05);
}

@media screen and (max-width: 768px) {
    .next-post-suggestion {
        grid-template-columns: 80px 1fr 60px;
        margin-top: 60px;
        margin-bottom: 40px;
        min-height: 80px;
    }
    .next-post-thumb {
        width: 80px;
    }
    .next-post-content {
        padding: 16px 20px;
    }
    .next-post-title {
        font-size: 1.1rem;
        line-height: 1.2;
    }
}

@media screen and (max-width: 480px) {
    .next-post-suggestion {
        grid-template-columns: 1fr 50px;
        min-height: auto;
    }
    .next-post-thumb {
        display: none;
    }
    .next-post-content {
        padding: 20px 16px;
    }
}

.next-post-suggestion:hover .next-post-arrow {
    transform: translateX(8px);
}

@media screen and (max-width: 768px) {
    .next-post-suggestion {
        grid-template-columns: 100px 1fr;
        max-width: 100%;
    }
    
    .next-post-thumb {
        width: 100px;
        height: 100px;
    }
    
    .next-post-content {
        padding: 0 20px;
    }
    
    .next-post-title {
        font-size: 1.25rem;
    }
    
    .next-post-arrow {
        display: none;
    }
}

.home-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 48px;
}

.home-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-post-card .card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-post-card .post-thumbnail {
    margin: 0 0 8px 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--black);
    position: relative;
    display: block;
}

.home-post-card .post-thumbnail img,
.home-post-card .post-thumbnail .featured-video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
    transform: scale(1.01);
}

.home-post-card .entry-meta {
    margin: auto 0 0 0;
    padding-top: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-top: none;
    display: block;
    width: 100%;
}

.home-post-card .card-header {
    margin-bottom: 12px;
}

.home-post-card .card-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 4px 0 0 0;
    line-height: 1.1;
    font-weight: 500;
    overflow-wrap: break-word;
}

.home-post-card .card-title a {
    text-decoration: none;
    color: inherit;
}

.home-post-card .card-excerpt-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.card-excerpt-link:hover {
    opacity: 0.8;
}

.card-excerpt {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.6;
    opacity: 0.8;
}

/* --- Featured Top Section --- */
.home-featured-section {
    padding-top: 80px;
    margin-bottom: 120px;
}

@media screen and (max-width: 768px) {
    .home-featured-section {
        padding-top: 0;
    }
}

.featured-post-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.featured-media {
    width: 100%;
}

.featured-media .post-thumbnail {
    border: 1px solid var(--black);
    overflow: hidden;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
}

.featured-media .post-thumbnail img,
.featured-media .post-thumbnail .featured-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
}

.card-header {
    position: relative;
    z-index: 10;
}

.featured-post-card .big-title {
    position: relative;
    z-index: 5;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 5.5rem) !important;
    font-style: normal !important;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.9;
    margin-top: 16px;
    margin-bottom: 24px;
    overflow-wrap: break-word;
}

.featured-post-card .card-excerpt p {
    font-size: 18px;
    line-height: 1.5;
    margin: 24px 0 32px 0;
    color: rgba(0,0,0,0.7);
}

/* --- Middle Grid Section --- */
.home-middle-grid-section {
    margin-bottom: 120px;
    padding-top: 80px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.section-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4em;
    opacity: 0.3;
    margin-bottom: 48px;
    text-transform: uppercase;
}

/* --- Bottom Layout --- */
.home-bottom-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 120px;
    margin-top: 120px;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 80px;
}

.mini-post-card {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    align-items: flex-start;
}

.mini-thumb {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border: 1px solid var(--black);
    overflow: hidden;
}

.mini-thumb img,
.mini-thumb .featured-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
}

.mini-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin: 8px 0 0 0;
    line-height: 1.2;
}

.mini-title a {
    text-decoration: none;
    color: inherit;
}

.sticky-sidebar-content {
    position: sticky;
    top: 100px;
}

.sidebar-entry {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.sidebar-title a {
    text-decoration: none;
    color: inherit;
}

.btn-architect {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 16px 32px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-architect:hover {
    transform: translateY(-2px);
}

@media screen and (max-width: 768px) {
    .featured-post-card .big-title {
        font-size: clamp(1.75rem, 10vw, 3.5rem) !important;
    }
}

@media screen and (max-width: 1100px) {
    .featured-post-card {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .featured-media .post-thumbnail {
        aspect-ratio: auto;
    }
    .featured-media .post-thumbnail img,
    .featured-media .post-thumbnail .featured-video {
        height: auto;
    }
    .home-bottom-layout {
        grid-template-columns: 1fr;
        gap: 80px;
    }
    .bottom-sidebar {
        display: none;
    }
}

@media screen and (max-width: 1024px) {
    .home-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .featured-media .post-thumbnail {
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }
    .featured-media .post-thumbnail img,
    .featured-media .post-thumbnail .featured-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .home-posts-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }
    .home-post-card .card-title {
        font-size: clamp(1.25rem, 8vw, 1.75rem);
    }
}

/* --- Image Preview Lightbox (Single Posts Only) --- */
@media screen and (min-width: 1024px) {
    .image-preview-close {
        display: none !important;
    }

    .image-preview-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 10000;
        display: none;
        align-items: center;
        justify-content: center;
        cursor: none;
        opacity: 0;
        transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .image-preview-overlay.active {
        display: flex;
        opacity: 1;
    }

    .image-preview-overlay img {
        max-width: 90%;
        max-height: 85%;
        object-fit: contain;
        transform: scale(0.95) translateY(10px);
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: 0 40px 100px rgba(0,0,0,0.1);
        border: 1px solid var(--black);
        background: white;
    }

    .image-preview-overlay.active img {
        transform: scale(1) translateY(0);
    }

    .image-preview-close:hover svg {
        stroke: white;
    }

    .image-preview-close svg {
        width: 20px;
        height: 20px;
        stroke: black;
        transition: stroke 0.3s ease;
    }

    body.preview-open {
        overflow: hidden;
    }

    .single-post .entry-content img {
        cursor: none;
    }

    .custom-preview-cursor {
        position: fixed;
        width: 24px;
        height: 24px;
        background: white;
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10002;
        display: none;
        transform: translate(-50%, -50%);
        transition: transform 0.1s ease, background 0.3s ease, border 0.3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .custom-preview-cursor.black {
        background: black;
        border-color: black;
    }
}

.site-content-padding {
    padding-top: 100px;
    padding-bottom: 96px;
}

@media screen and (max-width: 768px) {
    .site-content-padding {
        padding-top: 80px;
        padding-bottom: 48px;
    }
}
