/*
Theme Name:  Dark Vibes
Theme URI:   https://github.com/chrismccoy/darkvibes
Author:      Chris McCoy
Author URI:  https://github.com/chrismccoy
Description: A dark, terminal blog theme.
Version:     1.0.0
Text Domain: darkvibes
*/

:root {
    --color-surface: #09090b;
    --color-panel:   #18181b;
    --color-subtle:  #27272a;
    --color-muted:   #71717a;
    --color-accent:  #a1a1aa;
    --color-bright:  #fafafa;
    --color-pop:     #22d3ee;
    --color-warm:    #f472b6;
}

::selection {
    background: #22d3ee;
    color: #09090b;
}

.focus-mono:focus {
    outline: none;
    box-shadow: 0 0 0 2px #22d3ee;
}

a:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 2px;
    border-radius: 4px;
}

body {
    -webkit-font-smoothing: antialiased;
}

.scanline {
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 1px,
        rgba(255, 255, 255, 0.015) 1px,
        rgba(255, 255, 255, 0.015) 2px
    );
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-sticky {
    position: sticky;
    top: 60px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.prose-code pre {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #27272a #18181b;
}

.prose-code pre::-webkit-scrollbar {
    height: 6px;
}

.prose-code pre::-webkit-scrollbar-track {
    background: #18181b;
}

.prose-code pre::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 3px;
}

html.lightbox-open {
    overflow: hidden;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 6px;
    border: 1px solid #27272a;
}

#cancel-comment-reply-link {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.15s;
}

#cancel-comment-reply-link:hover {
    color: var(--color-warm);
}

.alignleft  { float: left;  margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left:  1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }

.sr-only,
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.rounded-sharp {
    border-radius: 6px;
}

input[type="checkbox"] {
    accent-color: #22d3ee;
}

.darkvibes-pagination .page-numbers {
    display: none;
}
