:root {
    --wt-bg: #f4f2ee;
    --wt-surface: #ffffff;
    --wt-surface-soft: #fff8ec;
    --wt-surface-alt: #f4ead6;
    --wt-border: #eadfc7;
    --wt-text: #2f3440;
    --wt-text-soft: #6b7280;
    --wt-heading: #1d2430;
    --wt-accent: #e2a22a;
    --wt-accent-dark: #c9870f;
    --wt-link: #2d4773;
    --wt-link-hover: #1d2430;
    --wt-shadow: 0 18px 40px rgba(29, 36, 48, 0.08);
    --wt-radius-lg: 28px;
    --wt-radius-md: 20px;
    --wt-radius-sm: 14px;
    --wt-shell: min(1240px, calc(100vw - 32px));
}

html {
    scroll-behavior: smooth;
}

body.wt-theme-redesign {
    background: var(--wt-bg);
    color: var(--wt-text);
}

body.wt-theme-redesign,
body.wt-theme-redesign button,
body.wt-theme-redesign input,
body.wt-theme-redesign select,
body.wt-theme-redesign textarea {
    font-family: "Inter", "Segoe UI", sans-serif;
}

body.wt-theme-redesign h1,
body.wt-theme-redesign h2,
body.wt-theme-redesign h3,
body.wt-theme-redesign h4,
body.wt-theme-redesign .entry-title,
body.wt-theme-redesign .site-title {
    color: var(--wt-heading);
    font-family: "Georgia", "Times New Roman", serif;
    line-height: 1.12;
}

body.wt-theme-redesign .site-content {
    background: linear-gradient(180deg, #f4f2ee 0%, #faf9f6 100%);
}

body.wt-theme-redesign .ast-site-header,
body.wt-theme-redesign .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    transition: box-shadow 0.25s ease;
}

body.wt-theme-redesign.wt-header-scrolled .ast-site-header,
body.wt-theme-redesign.wt-header-scrolled .site-header {
    box-shadow: 0 8px 26px rgba(29, 36, 48, 0.08);
}

body.wt-theme-redesign .main-header-menu > .menu-item > a,
body.wt-theme-redesign .ast-builder-menu-1 .menu-item > .menu-link {
    font-weight: 600;
}

body.wt-theme-redesign a {
    color: var(--wt-link);
}

body.wt-theme-redesign a:hover,
body.wt-theme-redesign a:focus {
    color: var(--wt-link-hover);
}

.wt-shell {
    width: var(--wt-shell);
    margin: 0 auto;
}

.wt-section {
    padding: 36px 0 10px;
}

.wt-section-soft {
    padding: 18px 0 12px;
}

.wt-section-featured {
    padding-top: 8px;
}

.wt-section-categories {
    padding-top: 20px;
}

.wt-section-featured .wt-post-card-featured {
    margin-top: 0;
}

.wt-hero {
    padding: 36px 0 28px;
}

.wt-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    gap: 28px;
    align-items: stretch;
}

.wt-hero-copy,
.wt-hero-panel {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 162, 42, 0.16);
    border-radius: var(--wt-radius-lg);
    box-shadow: var(--wt-shadow);
}

.wt-hero-copy {
    padding: 38px;
}

.wt-hero-panel {
    padding: 22px;
    background: linear-gradient(180deg, #fffaf0 0%, #f7efdc 100%);
}

.wt-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    margin: 0 0 16px;
}

.wt-hero-text,
.wt-section-text,
.wt-listing-text,
.wt-post-card-excerpt {
    color: var(--wt-text-soft);
    font-size: 1.02rem;
    line-height: 1.72;
}

.wt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.wt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wt-button:hover,
.wt-button:focus {
    transform: translateY(-1px);
}

.wt-button-primary {
    background: var(--wt-accent);
    color: #ffffff;
}

.wt-button-primary:hover,
.wt-button-primary:focus {
    background: var(--wt-accent-dark);
    color: #ffffff;
}

.wt-button-secondary {
    background: transparent;
    border-color: rgba(226, 162, 42, 0.3);
    color: var(--wt-heading);
}

.wt-button-secondary:hover,
.wt-button-secondary:focus {
    background: rgba(226, 162, 42, 0.08);
    color: var(--wt-heading);
}

.wt-hero-panel-card {
    background: rgba(255, 255, 255, 0.72);
    border-radius: var(--wt-radius-md);
    padding: 24px;
    border: 1px solid rgba(226, 162, 42, 0.14);
}

.wt-hero-panel-card h2 {
    margin: 8px 0 10px;
    font-size: 1.8rem;
}

.wt-mini-label,
.wt-section-eyebrow,
.wt-category-card-topline {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--wt-accent-dark);
    margin: 0 0 6px;
}

.wt-hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.wt-hero-stat {
    background: rgba(255, 255, 255, 0.78);
    border-radius: var(--wt-radius-md);
    padding: 20px;
    border: 1px solid rgba(226, 162, 42, 0.14);
}

.wt-hero-stat strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    color: var(--wt-heading);
}

.wt-hero-stat span {
    display: block;
    margin-top: 6px;
    color: var(--wt-text-soft);
}

.wt-section-header {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.wt-section-title,
.wt-listing-title {
    font-size: clamp(1.9rem, 3vw, 3rem);
    margin: 0;
}

.wt-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.wt-category-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 220px;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(255,248,236,0.96) 100%);
    border: 1px solid rgba(226, 162, 42, 0.14);
    border-radius: var(--wt-radius-md);
    box-shadow: var(--wt-shadow);
    text-decoration: none;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.wt-category-card:hover,
.wt-category-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(29, 36, 48, 0.12);
}

.wt-category-card-title {
    color: var(--wt-heading);
    font-size: 1.4rem;
    line-height: 1.2;
}

.wt-category-card-count,
.wt-category-card-latest {
    color: var(--wt-text-soft);
    line-height: 1.55;
}

.wt-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.wt-post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--wt-surface);
    border: 1px solid rgba(226, 162, 42, 0.14);
    border-radius: var(--wt-radius-md);
    box-shadow: var(--wt-shadow);
}

.wt-post-card-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.wt-post-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f3e5c4 0%, #ead09c 100%);
    overflow: hidden;
}

.wt-post-card-featured .wt-post-card-media {
    aspect-ratio: auto;
    min-height: 100%;
}

.wt-post-card-media img,
.wt-post-card-media .attachment-large,
.wt-post-card-media .attachment-medium_large {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.wt-post-card:hover .wt-post-card-media img,
.wt-post-card:focus-within .wt-post-card-media img {
    transform: scale(1.03);
}

.wt-post-card-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    background: linear-gradient(135deg, #f3e5c4 0%, #ead09c 100%);
}

.wt-post-card-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
}

.wt-post-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.wt-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--wt-surface-soft);
    border: 1px solid var(--wt-border);
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
}

.wt-date {
    color: var(--wt-text-soft);
    font-size: 0.92rem;
}

.wt-post-card-title {
    margin: 0;
    font-size: 1.5rem;
}

.wt-post-card-featured .wt-post-card-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.wt-post-card-title a {
    color: var(--wt-heading);
    text-decoration: none;
}

.wt-text-link {
    font-weight: 700;
    text-decoration: none;
    color: var(--wt-link);
}

.wt-text-link:hover,
.wt-text-link:focus {
    color: var(--wt-link-hover);
}

.wt-search-cta {
    padding: 16px 0 52px;
}

.wt-search-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 22px;
    padding: 28px;
    border-radius: var(--wt-radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, #fff8ec 100%);
    border: 1px solid rgba(226, 162, 42, 0.14);
    box-shadow: var(--wt-shadow);
}

.wt-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.wt-search-field {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--wt-border);
    background: #fff;
}

.wt-search-field:focus {
    outline: none;
    border-color: var(--wt-accent);
    box-shadow: 0 0 0 4px rgba(226, 162, 42, 0.12);
}

.wt-listing-hero {
    padding: 30px 0 6px;
}

.wt-listing-hero-inner {
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 162, 42, 0.14);
    border-radius: var(--wt-radius-lg);
    box-shadow: var(--wt-shadow);
}

.wt-pagination-wrap {
    margin-top: 24px;
}

body.wt-theme-redesign .navigation.pagination,
body.wt-theme-redesign .ast-pagination {
    display: flex;
    justify-content: center;
}

body.wt-theme-redesign .nav-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(226, 162, 42, 0.14);
    border-radius: 999px;
}

body.wt-theme-redesign .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--wt-heading);
}

body.wt-theme-redesign .page-numbers.current,
body.wt-theme-redesign .page-numbers:hover,
body.wt-theme-redesign .page-numbers:focus {
    background: var(--wt-accent);
    color: #ffffff;
}

body.single-post.wt-theme-redesign .entry-header,
body.single-post.wt-theme-redesign .ast-article-single {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 162, 42, 0.12);
    border-radius: 24px;
}

@media (max-width: 1200px) {
    .wt-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .wt-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 921px) {
    .wt-hero-grid,
    .wt-post-card-featured,
    .wt-search-cta-inner,
    .wt-search-form,
    .wt-category-grid,
    .wt-post-grid {
        grid-template-columns: 1fr;
    }

    .wt-hero-copy,
    .wt-hero-panel,
    .wt-listing-hero-inner,
    .wt-search-cta-inner {
        padding: 24px;
    }
}

@media (max-width: 544px) {
    .wt-shell {
        width: min(1240px, calc(100vw - 20px));
    }

    .wt-hero h1 {
        font-size: clamp(2.1rem, 9vw, 3rem);
    }

    .wt-section-title,
    .wt-listing-title,
    .wt-post-card-title,
    .wt-post-card-featured .wt-post-card-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .wt-post-card-content,
    .wt-category-card,
    .wt-hero-copy,
    .wt-hero-panel,
    .wt-search-cta-inner,
    .wt-listing-hero-inner {
        padding: 20px;
    }
}
