

.console-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 320px; 
    gap: 1.125rem;
    width: 98%;
    max-width: 1800px;
    margin: 0 auto;
    align-items: start;
    position: relative;
}

.console-left,
.console-right {
    position: sticky;
    top: calc(var(--nav-h) + 1rem);
    height: calc(100vh - var(--nav-h) - 2rem);
    min-width: 0;
}

.console-middle {
    position: relative; 
    z-index: 10;
    min-width: 0;
}

/* side consoles */
.console-left .scalloped-frame,
.console-right .scalloped-frame {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 3px;
}
.console-left .scalloped-frame::before,
.console-left .scalloped-frame::after,
.console-right .scalloped-frame::before,
.console-right .scalloped-frame::after {
    display: none;
}

.console-middle .scalloped-frame {
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    overflow: visible;
}
.console-middle .scalloped-frame::before,
.console-middle .scalloped-frame::after { 
    display: none; 
}

/* =========================================
   SCROLLBARS
   ========================================= */

.console-scroll-wrapper,
.changelog-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}
.console-scroll-wrapper::-webkit-scrollbar,
.changelog-scroll::-webkit-scrollbar { width: 6px; }
.console-scroll-wrapper::-webkit-scrollbar-track,
.changelog-scroll::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); }
.console-scroll-wrapper::-webkit-scrollbar-thumb,
.changelog-scroll::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 4px;
}

/* =========================================
   SCROLL CONTAINERS
   ========================================= */

.console-scroll-wrapper {
    height: 100%;
    padding: 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.middle-scroll-wrapper {
    width: 100%;
    overflow: visible; 
}

.middle-content-padding {
    padding: 3.75rem 1.875rem 0;
}

/* flex:1 + min-height:0 so the list fills the leftover space and only the list
   scrolls, not the whole console. took me way too long lmao */
/* thoughts column */
.console-left .console-scroll-wrapper {
    overflow: hidden;
}
.thoughts-list-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

.console-more {
    flex-shrink: 0;
    display: block;
    margin-top: 0.75rem;
    padding: 0.45rem 0;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-nav);
    text-align: center;
    text-decoration: none;
    color: var(--accent);
    transition: color 0.2s ease, background-color 0.2s ease;
}
@media (hover: hover) {
	.console-more:hover {
	    color: var(--text-heading);
	    background: rgba(var(--accent-rgb), 0.06);
	    text-shadow: none;
	}
}
.console-more:focus-visible {
    color: var(--text-heading);
    background: rgba(var(--accent-rgb), 0.06);
    text-shadow: none;
}

.changelog-scroll {
    flex: 1;
    min-height: 0;
    padding-right: 0.375rem;
}

/* =========================================
   WIDGETS & TYPOGRAPHY
   ========================================= */

/* section heads */
.console-header {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-heading);
    border-top: 3px double var(--border-color);
    border-bottom: 3px double var(--border-color);
    padding: 0.3rem 0 0.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    flex-shrink: 0;
    position: relative;
}

/* thoughts list, old newspaper look, not sure it works tbh (・_・;) */
.thought-item {
    display: flex;
    flex-direction: column;
    padding: 0.7rem 0 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    text-shadow: none;
}
.thought-item:last-child {
    border-bottom: none;
}

.thought-date {
    order: 1;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-variant: small-caps;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.thought-title {
    order: 2;
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--text-heading);
    margin: 0.1rem 0 0.3rem;
    transition: color 0.2s ease;
}

.thought-snippet {
    order: 3;
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-accent);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

@media (hover: hover) {
	.thought-item:hover .thought-title {
	    color: var(--accent);
	}
}
.thought-item:focus-visible .thought-title {
    color: var(--accent);
}

.link-stack { display: flex; flex-direction: column; margin-bottom: 1.5rem; }

.console-btn {
    display: flex; 
    align-items: center; 
    gap: 0.6rem;
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-nav);
    transition: color 0.2s ease, background-color 0.2s ease;
}

@media (hover: hover) {
	.console-btn:hover {
	    color: var(--accent);
	    background: rgba(var(--accent-rgb), 0.06);
	    text-shadow: none;
	}
}
.console-btn svg { width: 0.75rem; height: 0.75rem; opacity: 0.7; }
@media (hover: hover) {
	.console-btn:hover svg { opacity: 1; }
}
.log-entry {
    display: block;
    margin-bottom: 0.45rem;
    font-family: var(--font-mono), monospace;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.log-date {
    color: var(--accent);
    margin-right: 0.3rem;
    font-variant-numeric: lining-nums tabular-nums;
}
.log-text {
    color: var(--text-accent);
}
.log-heading {
    font-family: var(--font-mono), monospace;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--accent);
    margin: 1.1rem 0 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(var(--accent-rgb), 0.3);
    overflow-wrap: anywhere;
}
.log-heading:first-child { margin-top: 0; }

/* =========================================
   CONTENT SECTIONS & MEDIA
   ========================================= */

.hero-section { text-align: center; padding: 0.375rem 0 0.75rem; }

.prologue-content {
    font-size: 1.0125rem;
    color: var(--text-accent);
    text-align: justify;
    line-height: 1.8;
    margin: 0 auto 0.75rem; 
    padding: 0 3rem; 
    max-width: 90%;
}

/* same drop cap as essays */
.drop-cap {
    font-family: var(--font-display);
    float: left;
    font-size: 3.9em;
    line-height: 0.8;
    margin: 0.05em 0.09em 0 0;
    color: var(--accent);
    text-transform: uppercase;
}

.scroll-hint-wrapper {
    display: flex;
    justify-content: center;
    margin: 0.375rem 0 1.125rem;
}

.scroll-arrow-anim {
    width: 40px;
    height: auto;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.125rem; 
    width: 100%;
}

.section-title-wrapper { text-align: center; }
.section-title-wrapper h2 { font-family: var(--font-display); }

.carousel-nav-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

@media (hover: hover) {
	.carousel-nav-btn:hover { transform: scale(1.1); }
}
.nav-icon-img { width: 100%; height: 100%; object-fit: contain; filter: var(--filter-img); }

.carousel-wrapper {
    width: 100%;
    overflow: hidden; 
    margin-bottom: 1.5rem; 
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

#carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.75rem 2.25rem;
    align-items: center;
    scroll-snap-type: x mandatory;
}
#carousel-track::-webkit-scrollbar { display: none; }
#carousel-track .lore-card { flex: 0 0 260px; height: 400px; scroll-snap-align: center; max-width: none; margin: 0; }

/* last carousel card */
.carousel-more-card {
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}
#carousel-track .carousel-more-card { flex: 0 0 260px; }
.more-diamond {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border: 3px double rgba(var(--card-border-rgb), 0.6);
    transform: rotate(45deg);
    transition: border-color 0.3s ease;
}
.carousel-more-card:focus-visible .more-diamond {
    border-color: var(--accent);
}
@media (hover: hover) {
	.carousel-more-card:hover .more-diamond {
	    border-color: var(--accent);
	}
}
.more-diamond-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    max-width: 7.25rem;
}
.carousel-more-label {
    font-family: var(--font-nav);
    color: var(--accent);
}
.carousel-more-sub {
    font-size: 0.78rem;
    font-style: italic;
    line-height: 1.3;
    color: var(--text-muted);
}

.section-separator {
    width: 60%;
    margin: 3rem auto;
}

#dynamic-sections { padding-top: 0; }

.zigzag-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-bottom: 1.5rem;
}

.zigzag-row:last-child { margin-bottom: 0; }
.zigzag-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.zigzag-reverse { flex-direction: row-reverse; }

.zig-zag-media {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    background: rgba(var(--bg-primary-rgb), 0.45);
}

/* 16:9 in every browser */
.zig-zag-media::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}
.zig-zag-media iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.yt-lite {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.zig-zag-media .yt-lite img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.yt-lite::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -1rem 0 0 -0.6rem;
    border-style: solid;
    border-width: 1rem 0 1rem 1.6rem;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
.zig-zag-media img {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
    object-fit: contain;
    display: block;
    border: none;
}

.zigzag-text-left, .zigzag-text-right { text-align: left; }
.zigzag-text-left h2, .zigzag-text-right h2 { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: 0.75rem; }

/* home sections */
.zigzag-row > .zigzag-col:first-child { padding-right: 1.5rem; }
.zigzag-row > .zigzag-col:last-child {
    align-items: flex-start;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border-color);
}
.zigzag-reverse > .zigzag-col:first-child { padding-right: 0; padding-left: 1.5rem; }
.zigzag-reverse > .zigzag-col:last-child {
    padding-left: 0;
    padding-right: 1.5rem;
    border-left: none;
    border-right: 1px solid var(--border-color);
}
.zig-zag-media.is-bare {
    border: none;
    background: transparent;
}
.zig-zag-media.is-bare img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    .zigzag-row,
    .zigzag-reverse {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    .zigzag-row > .zigzag-col:first-child,
    .zigzag-row > .zigzag-col:last-child,
    .zigzag-reverse > .zigzag-col:first-child,
    .zigzag-reverse > .zigzag-col:last-child {
        width: 100%;
        padding: 0;
        border: none;
    }
    .zigzag-text-left,
    .zigzag-text-right { text-align: left; }
}

/* =========================================
   SCREEN SIZES
   ========================================= */

@media (max-width: 1400px) {
    .console-layout {
        grid-template-columns: 260px 1fr 260px;
        gap: 0.75rem;
    }
}

@media (max-width: 1100px) {

    
    /* tablet */
    .console-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        width: 100%;
        padding: 0.75rem 1rem 0;
        gap: 1.25rem;
    }

    .console-middle,
    .console-left,
    .console-right {
        width: 100%;
        max-width: none;
        margin: 0;
        position: static;
        height: auto;
    }

    .console-middle { order: 1; grid-column: 1 / -1; }
    .console-left   { order: 2; }
    .console-right  { order: 3; }

    .console-middle .scalloped-frame {
        background: transparent;
        box-shadow: none;
        border: none;
        border-radius: 0;
        overflow: visible;
    }
    .console-layout .scalloped-frame::before,
    .console-layout .scalloped-frame::after { 
        display: none; 
    }
    
    .console-layout .console-scroll-wrapper {
        padding: 1.125rem;
        overflow-y: visible;
        height: auto; 
    }
    
    /* stacked below main column (・ω・)ノ */
    .thoughts-list-container {
        -webkit-mask-image: none;
        mask-image: none;
    }
    .changelog-scroll {
        max-height: 340px;
        overflow-y: auto;
    }

    .middle-content-padding { padding: 1.5rem 0.75rem 0; }
    .prologue-content { padding: 0; max-width: 100%; }

    
    #carousel-track {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    #carousel-track .lore-card { max-width: 85vw; flex: 0 0 280px; }
}

@media (max-width: 768px) {
    .console-layout { grid-template-columns: minmax(0, 1fr); }
}

/* cinzel sizing */
.console-more { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: none; }
.carousel-more-label { font-size: 0.95rem; letter-spacing: 0.12em; }
.thought-title { font-size: 0.9rem; line-height: 1.3; letter-spacing: 0.02em; }
.console-btn { font-size: 0.8rem; letter-spacing: 0.05em; }

.home-links-grid {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}
.masthead-links {
    position: absolute;
    top: 50%;
    right: 1.5%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.6vw;
    width: 14vw;
    max-width: 250px;
    transform: translateY(-50%);
}
.masthead-links .link-tile {
    border-color: rgba(255, 255, 255, 0.25);
}

/* home section button */
.zigzag-col .proximity-button {
    align-self: center;
    margin-top: 1.25rem;
}
.zigzag-col p {
    margin-bottom: 0;
}
