/*
Theme Name: BlankSlate Child
Template: blankslate
*/

/* Color Palette */
:root {
    --color-bg-white: #ffffff;
    --color-text-black: #000000;
    --color-text-dark-gray: #434343;
    --color-text-light-gray: rgba(0, 0, 0, 0.4);

    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    background-color: var(--color-bg-white);
    color: var(--color-text-dark-gray);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover, a.active {
    color: var(--color-text-black);
}

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

/* Typography styles matching design.md */
h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--color-text-black);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

h2.title {
    font-family: var(--font-heading);
    font-size: 15px; /* Modified to match design.md thumbnails .title */
    font-weight: 400;
    color: var(--color-text-black);
    margin-bottom: 0.3rem;
}

/* Layout - .l-container */
.l-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    padding: 3rem 2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* Navigation */
details {
    margin-bottom: 1.5rem;
}

details > summary {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-black);
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    user-select: none;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

details > summary::-webkit-details-marker {
    display: none;
}

.page-link {
    list-style: none;
    padding-left: 1rem;
}

.page-link li {
    margin-bottom: 0.5rem;
}

.page-link a {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-dark-gray);
}

.page-link a:hover,
.page-link a.active {
    color: var(--color-text-black);
    font-weight: 400;
}

/* Main Content */
.content {
    padding: 3rem 4rem 3rem 2rem;
    position: relative;
}

/* View Hiding Utility */
.view-hidden {
    display: none !important;
}

/* Home Slideshow */
.home-slideshow {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 6rem); /* Adjusting for wrapper padding */
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-slideshow .slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: grayscale(100%);
    pointer-events: none;
}

.home-slideshow .slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Thumbnails Gallery */
.thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem 2rem;
}

.thumb_item {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.thumb_item:hover {
    opacity: 0.8;
}

.thumb_image {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    margin-bottom: 1rem;
    transition: filter 0.4s ease;
}

.entry-thumbnail {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

/* Article Body (single.php / page.php / single-website.php) */
.entry-title + .tags {
    margin-bottom: 2rem;
}

.entry-content {
/*     max-width: 700px; */
	max-width: 100%;
}

.entry-content > * {
    margin-bottom: 1.5rem;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content p {
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--color-text-black);
    line-height: 1.4;
    margin-top: 2.5rem;
}

.entry-content h2 { font-size: 1.6rem; border-bottom: 1px solid #000;}
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content h5,
.entry-content h6 { font-size: 1rem; }

.entry-content a {
    text-decoration: underline;
}

.entry-content strong {
    color: var(--color-text-black);
    font-weight: 800;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.5rem;
}

.entry-content ul {
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.entry-content li > ul,
.entry-content li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.entry-content blockquote {
    border-left: 2px solid var(--color-text-black);
    padding-left: 1.5rem;
    color: var(--color-text-dark-gray);
    font-style: italic;
}

.entry-content img {
    width: 100%;
	filter: drop-shadow(2px 4px 6px #ddd);
}

.entry-content figcaption {
    font-size: 0.8rem;
    color: var(--color-text-light-gray);
    margin-top: 0.5rem;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    text-align: left;
}

.entry-content th {
    color: var(--color-text-black);
    font-weight: 800;
    background-color: rgba(0, 0, 0, 0.03);
}

.entry-content hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.entry-content .is-layout-flex{
	margin-top: 50px;
	gap: 30px;
}

.entry-content .wp-block-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.entry-content .wp-block-button__link {
    display: inline-block;
    padding: 0.9em 1.8em;
    background-color: var(--color-text-black);
    color: var(--color-bg-white);
    font-size: 15px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: 1px solid var(--color-text-black);
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.entry-content .wp-block-button__link:hover {
    background-color: var(--color-bg-white);
    color: var(--color-text-black);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    color: var(--color-text-black);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--color-text-black);
    color: var(--color-bg-white);
}

.tags {
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text-light-gray);
}

/* Fullscreen Media View */
.media-view {
    position: fixed;
    top: 0;
    left: 280px; /* Offset by sidebar */
    right: 0;
    bottom: 0;
    background-color: var(--color-bg-white);
    padding: 3rem 4rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.media-view.hidden {
    opacity: 0;
    pointer-events: none;
}

.hotlink {
    position: absolute;
    top: 3rem;
    right: 4rem;
}

.hotlink a {
    font-size: 15px;
    color: var(--color-text-black);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.media-container {
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-zoom {
    max-height: 75vh;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.gallery_image_caption {
    font-size: 0.7rem;
    color: var(--color-text-dark-gray);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
/* Responsive */
.no-scroll {
    overflow: hidden !important;
}

/* Site Footer Base */
.site-footer {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-size: 0.8rem;
    color: var(--color-text-dark-gray);
    letter-spacing: 0.05em;
    z-index: 50;
    pointer-events: none; /* allow clicks to pass through if overlapping gallery */
}

/* Mobile Header Base (Hidden on Desktop) */
.mobile-header {
    display: none;
}
.mobile-site-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-text-black);
    margin: 0;
    letter-spacing: -0.02em;
}

/* Hamburger Menu Base (Hidden on Desktop) */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 30px;
    height: 20px;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-black);
    position: absolute;
    transition: all 0.3s ease;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

.sidebar-overlay {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        top: 1.3rem; /* visually centered with 4rem header */
        right: 1.5rem;
    }
    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 4rem;
        background-color: var(--color-bg-white);
        z-index: 150;
        align-items: center;
        padding: 0 1.5rem;
    }
    .l-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        height: 100dvh;
        background-color: var(--color-bg-white);
        z-index: 101;
        transition: left 0.3s ease;
        padding: 5rem 2rem 2rem;
        overflow-y: auto;
    }
    .sidebar.open {
        left: 0;
    }
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: rgba(255,255,255,0.8);
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
    h1 {
        font-size: 1.8rem;
    }
    .content {
        padding: 5rem 1.5rem 3rem; /* Account for 4rem header */
    }
    .home-slideshow {
        min-height: calc(100vh - 4rem);
        min-height: calc(100dvh - 4rem);
    }
    .home-slideshow .slide {
        /* Center on the actual browser viewport, independent of header/content padding */
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .site-footer {
        bottom: 1rem;
        right: 1.5rem;
    }
    .media-view {
        left: 0;
        padding: 2rem;
    }
    .hotlink {
        top: 1.5rem;
        right: 1.5rem;
    }
}