/**
 * VK Ops Theme - Additional Styles
 * Page-specific and component styles
 *
 * Uses the same tokens as style.css (--navy, --blue, --rule, --gray-*,
 * --font-mono ...). Square corners and hairline rules throughout, to match
 * the rest of the theme.
 *
 * @package VK_Ops_Theme
 */

/* ===================================================================
   SINGLE PROJECT
   =================================================================== */
.project-header {
    padding: 100px 0 48px;
}

.project-header .lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-500);
    max-width: 700px;
}

.project-image {
    margin-bottom: 48px;
}

.project-image img {
    width: 100%;
    border-radius: 0;
}

.project-content__inner {
    max-width: 800px;
    margin: 0 auto;
}

.project-content__inner h2,
.project-content__inner h3 {
    margin-top: 48px;
    margin-bottom: 20px;
}

.project-content__inner p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.project-content__inner ul,
.project-content__inner ol {
    margin-bottom: 20px;
    padding-left: 28px;
}

.project-content__inner li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.project-content__inner ul li {
    list-style-type: disc;
}

.project-content__inner ol li {
    list-style-type: decimal;
}

/* ===================================================================
   PREV / NEXT NAVIGATION
   =================================================================== */
.project-nav__wrapper,
.post-nav__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px solid var(--rule);
    padding-top: 48px;
}

.project-nav__link,
.post-nav__link {
    padding: 24px;
    background-color: transparent;
    border: 1px solid var(--rule);
    border-radius: 0;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.project-nav__link:hover,
.post-nav__link:hover {
    background-color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -22px var(--navy);
}

.project-nav__label,
.post-nav__label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 10px;
}

.project-nav__title,
.post-nav__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.045em;
    color: var(--navy);
}

.project-nav__next,
.post-nav__next {
    text-align: right;
}

/* ===================================================================
   BLOG / POSTS
   =================================================================== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 48px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    border: 1px solid var(--rule);
    border-radius: 0;
    overflow: hidden;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
    background-color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -22px var(--navy);
}

.post-card__image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__content {
    padding: 22px;
}

.post-card__date {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.post-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.post-card__title a {
    color: var(--navy);
}

.post-card__title a:hover {
    color: var(--blue);
}

.post-card__excerpt {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: var(--gray-500);
    margin-bottom: 20px;
}

/* ===================================================================
   SINGLE POST
   =================================================================== */
.post-header {
    padding: 100px 0 48px;
}

.post-header .lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-500);
    max-width: 700px;
}

.post-featured-image {
    margin-bottom: 48px;
}

.post-featured-image img {
    width: 100%;
    border-radius: 0;
}

.post-content__inner {
    max-width: 800px;
    margin: 0 auto;
}

.post-content__inner h2,
.post-content__inner h3 {
    margin-top: 48px;
    margin-bottom: 20px;
}

.post-content__inner p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.post-tags {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.post-tags__label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-right: 4px;
}

.post-tag {
    padding: 8px 10px;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    text-transform: uppercase;
    background-color: transparent;
    border: 1px solid var(--rule);
    border-radius: 0;
    color: var(--gray-500);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.post-tag:hover {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* ===================================================================
   PAGINATION
   =================================================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding-top: 48px;
}

.pagination .page-numbers {
    padding: 8px 12px;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    background-color: transparent;
    border: 1px solid var(--rule);
    border-radius: 0;
    color: var(--gray-500);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* ===================================================================
   404 PAGE
   =================================================================== */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
}

.error-content {
    max-width: 620px;
}

.error-code {
    display: block;
    font-family: var(--font-heading);
    font-size: 8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--blue);
    margin-bottom: 20px;
}

.error-content h1 {
    font-size: 4.3rem;
    line-height: 1;
    margin-bottom: 20px;
}

.error-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-500);
    margin-bottom: 40px;
}

/* ===================================================================
   RESPONSIVE ADJUSTMENTS
   =================================================================== */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-nav__wrapper,
    .post-nav__wrapper {
        grid-template-columns: 1fr;
    }

    .project-nav__next,
    .post-nav__next {
        text-align: left;
    }
}

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

    .error-code {
        font-size: 5rem;
    }

    .error-content h1 {
        font-size: 3rem;
    }

    .project-header,
    .post-header {
        padding: 72px 0 32px;
    }
}


/* ===================================================================
   DESKTOP TEXT SIZING
   These selectors are owned by this file, so their desktop sizes have to
   live here too -- a rule in style.css would be overridden by the base
   rules above, since this stylesheet loads second.
   =================================================================== */
@media (min-width: 769px) {
    .post-card__date,
    .post-tags__label,
    .pagination .page-numbers,
    .post-nav__label,
    .project-nav__label {
        font-size: 0.75rem;
    }

    .post-tag {
        font-size: 0.6875rem;
    }

    .post-card__excerpt {
        font-size: 0.9375rem;
    }

    .post-header .lead,
    .project-header .lead {
        font-size: 1.125rem;
    }
}
