/* ==========================================================================
   Base — Reset, CSS Variables, Typography
   ========================================================================== */

/* Variables — Unified light theme */
:root {
    --vc-bg-body: #ffffff;
    --vc-bg-section: #fafafa;
    --vc-bg-card: #ffffff;
    --vc-bg-input: #f0f0f2;
    --vc-primary: #000000;
    --vc-secondary: #f5f5f7;
    --vc-accent: #BD0028;
    --vc-accent-hover: #9a0020;
    --vc-accent-glow: rgba(189, 0, 40, 0.15);
    --vc-white: #000000;
    --vc-always-white: #ffffff;
    --vc-text-primary: #32373C;
    --vc-text-secondary: #6b6b80;
    --vc-light-gray: #f0f0f2;
    --vc-medium-gray: #6b6b80;
    --vc-dark-gray: #000000;
    --vc-border: rgba(0, 0, 0, 0.1);
    --vc-border-light: rgba(0, 0, 0, 0.06);
    --vc-border-dark: rgba(0, 0, 0, 0.15);
    --vc-success: #16a34a;
    --vc-warning: #ca8a04;

    --vc-font-family: 'Audiowide', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --vc-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --vc-font-size-xs: 0.75rem;
    --vc-font-size-sm: 0.875rem;
    --vc-font-size-base: 1rem;
    --vc-font-size-lg: 1.125rem;
    --vc-font-size-xl: 1.25rem;
    --vc-font-size-2xl: 1.75rem;
    --vc-font-size-3xl: 2.25rem;

    --vc-container-width: 1200px;
    --vc-container-wide: 1400px;
    --vc-container-padding: 1rem;

    --vc-radius: 8px;
    --vc-radius-sm: 4px;
    --vc-radius-lg: 12px;

    --vc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --vc-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --vc-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    --vc-transition: 0.2s ease;
    --vc-header-height: 70px;
    --vc-top-bar-height: 36px;
}

/* Age Verification Popup */
.avwp-av {
    background: var(--vc-bg-card) !important;
    color: var(--vc-text-primary) !important;
    border: 1px solid var(--vc-border) !important;
    border-radius: var(--vc-radius-lg) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15) !important;
}
.avwp-av h2 {
    color: var(--vc-white) !important;
}
.avwp-av p {
    color: var(--vc-text-secondary) !important;
}
.avwp-av p strong {
    color: var(--vc-accent) !important;
}
.avwp-av button.yes {
    background: var(--vc-accent) !important;
    border-radius: var(--vc-radius) !important;
    font-size: 1rem !important;
    padding: 10px 16px !important;
}
.avwp-av button.yes:hover {
    background: var(--vc-accent-hover) !important;
}
.avwp-av button.no {
    background: var(--vc-bg-section) !important;
    border: 1px solid var(--vc-border) !important;
    border-radius: var(--vc-radius) !important;
    font-size: 1rem !important;
    padding: 10px 16px !important;
}
.avwp-av button.no:hover {
    background: var(--vc-bg-input) !important;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--vc-font-body);
    font-size: var(--vc-font-size-base);
    line-height: 1.6;
    color: var(--vc-text-primary);
    background-color: var(--vc-bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--vc-accent);
    text-decoration: none;
    transition: color var(--vc-transition);
}

a:hover {
    color: var(--vc-accent-hover);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--vc-font-family);
    font-weight: 400;
    line-height: 1.3;
    color: var(--vc-white);
}

h1 { font-size: var(--vc-font-size-3xl); }
h2 { font-size: var(--vc-font-size-2xl); }
h3 { font-size: var(--vc-font-size-xl); }
h4 { font-size: var(--vc-font-size-lg); }

p {
    margin-bottom: 1rem;
}

/* Container */
.vc-container {
    width: 100%;
    max-width: var(--vc-container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--vc-container-padding);
    padding-right: var(--vc-container-padding);
}

/* Main content area */
.vc-main {
    min-height: 50vh;
    padding: 1rem 0 0;
    background: var(--vc-bg-body);
}

/* Homepage has no top padding (hero is flush with header) */
.home .vc-main {
    padding-top: 0;
}

/* Screen reader text */
.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;
}

.screen-reader-text:focus {
    background-color: var(--vc-bg-card);
    clip: auto !important;
    clip-path: none;
    color: var(--vc-text-primary);
    display: block;
    font-size: var(--vc-font-size-sm);
    font-weight: 600;
    height: auto;
    left: 5px;
    padding: 15px 23px 14px;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Skip link */
.skip-link:focus {
    background: var(--vc-accent);
    color: var(--vc-always-white);
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
}

/* Section titles */
.vc-section {
    padding: 2rem 0;
}

.vc-section__title {
    font-size: var(--vc-font-size-2xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--vc-white);
}

.vc-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.vc-section__header .vc-section__title {
    text-align: left;
    margin-bottom: 0;
}

.vc-section__link {
    font-size: var(--vc-font-size-sm);
    font-weight: 600;
    color: var(--vc-accent);
    white-space: nowrap;
}

/* Page header */
.vc-page-header {
    margin-bottom: 2rem;
}

.vc-page-title {
    font-size: var(--vc-font-size-3xl);
    font-weight: 700;
    color: var(--vc-white);
}

/* Entry content */
.entry-content {
    line-height: 1.75;
    color: var(--vc-text-primary);
}

.entry-content p {
    margin-bottom: 1.25rem;
    color: var(--vc-text-primary);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--vc-white);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    list-style: disc;
    color: var(--vc-text-primary);
}

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

.entry-content img {
    border-radius: var(--vc-radius);
    margin: 1.5rem 0;
}

.entry-content blockquote {
    border-left: 4px solid var(--vc-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--vc-bg-card);
    border-radius: 0 var(--vc-radius) var(--vc-radius) 0;
    color: var(--vc-text-secondary);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--vc-border);
    text-align: left;
    color: var(--vc-text-primary);
}

.entry-content th {
    background: var(--vc-bg-card);
    font-weight: 600;
    color: var(--vc-white);
}

/* Pagination */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius-sm);
    font-size: var(--vc-font-size-sm);
    color: var(--vc-text-primary);
    background: var(--vc-bg-card);
    transition: all var(--vc-transition);
}

.nav-links a:hover {
    border-color: var(--vc-accent);
    color: var(--vc-accent);
}

.nav-links .current {
    background: var(--vc-accent);
    border-color: var(--vc-accent);
    color: var(--vc-always-white);
}

/* 404 */
.vc-404 {
    text-align: center;
    padding: 4rem 0;
}

.vc-404__title {
    font-size: 6rem;
    font-weight: 800;
    color: var(--vc-accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.vc-404__subtitle {
    font-size: var(--vc-font-size-2xl);
    margin-bottom: 1rem;
    color: var(--vc-white);
}

.vc-404__text {
    color: var(--vc-text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.vc-404__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Posts Grid */
.vc-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .vc-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .vc-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.vc-post-card {
    background: var(--vc-bg-card);
    border: 1px solid var(--vc-border);
    border-radius: var(--vc-radius);
    overflow: hidden;
    transition: box-shadow var(--vc-transition);
}

.vc-post-card:hover {
    box-shadow: var(--vc-shadow);
}

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

.vc-post-card__content {
    padding: 1.25rem;
}

.vc-post-card__title {
    font-size: var(--vc-font-size-lg);
    margin-bottom: 0.5rem;
}

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

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

.vc-post-card__meta {
    font-size: var(--vc-font-size-xs);
    color: var(--vc-text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.vc-post-card__type {
    background: var(--vc-bg-section);
    padding: 0.125rem 0.5rem;
    border-radius: var(--vc-radius-sm);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--vc-text-secondary);
}

.vc-post-card__excerpt {
    font-size: var(--vc-font-size-sm);
    color: var(--vc-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.vc-post-card__read-more {
    font-size: var(--vc-font-size-sm);
    font-weight: 600;
    color: var(--vc-accent);
}

/* Responsive */
@media (min-width: 768px) {
    :root {
        --vc-container-padding: 1.5rem;
    }

    .vc-section {
        padding: 2rem 0;
    }
}

@media (min-width: 1024px) {
    :root {
        --vc-container-padding: 2rem;
    }
}

/* Prevent horizontal scroll on all viewports */
html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

#page,
.vc-site,
.vc-site-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* Mobile polish */
@media (max-width: 767px) {
    /* Smaller page titles */
    .vc-page-title {
        font-size: var(--vc-font-size-2xl);
    }

    /* 404 page — responsive */
    .vc-404__title {
        font-size: 4rem;
    }

    .vc-404__actions {
        flex-direction: column;
        align-items: center;
    }

    .vc-404__actions .vc-btn {
        width: 100%;
        min-height: 44px;
    }

    /* Breadcrumb — smaller on mobile */
    .vc-breadcrumb {
        padding: 0.75rem 0;
        font-size: var(--vc-font-size-xs);
    }
}
