/*
Theme Name: SetupTutorial
Theme URI: https://setuptutorial.com/
Author: SetupTutorial Team
Author URI: https://setuptutorial.com/
Description: A dark, modern standalone WordPress theme for SetupTutorial.com — built for tutorials, free browser-based tools, and AdSense-ready monetization. SaaS/startup design aesthetic with dark-mode default, sticky header, search, breadcrumbs, schema markup, and a hero + tools + posts homepage.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: setuptutorial
Tags: blog, one-column, two-columns, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, translation-ready, block-styles, wide-blocks, dark-mode
*/

/* ==========================================================================
   RESET + ROOT TOKENS
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
    /* Dark theme (default) */
    --st-bg:          #0a0e1a;
    --st-bg-soft:     #111827;
    --st-surface:     #1a1f2e;
    --st-surface-2:   #242938;
    --st-border:      #2d3548;
    --st-border-soft: #1e2433;
    --st-text:        #f1f5f9;
    --st-text-muted:  #94a3b8;
    --st-text-faint:  #64748b;

    --st-primary:       #6366f1;
    --st-primary-hover: #818cf8;
    --st-primary-soft:  rgba(99,102,241,.15);
    --st-accent:        #06b6d4;
    --st-success:       #10b981;
    --st-warning:       #f59e0b;
    --st-danger:        #ef4444;

    --st-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
    --st-gradient-soft: linear-gradient(135deg, rgba(99,102,241,.12) 0%, rgba(6,182,212,.08) 100%);

    --st-shadow-sm: 0 1px 2px rgba(0,0,0,.3);
    --st-shadow-md: 0 4px 12px rgba(0,0,0,.25), 0 1px 3px rgba(0,0,0,.2);
    --st-shadow-lg: 0 20px 40px rgba(0,0,0,.3), 0 8px 16px rgba(0,0,0,.2);
    --st-glow:      0 0 40px rgba(99,102,241,.25);

    --st-radius-sm: 6px;
    --st-radius:    10px;
    --st-radius-lg: 16px;
    --st-radius-xl: 24px;

    --st-container: 1200px;
    --st-container-narrow: 760px;

    --st-font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --st-font-mono: "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

    --st-header-h: 68px;
}

/* Light theme overrides (applied when user toggles) */
html[data-theme="light"] {
    --st-bg:          #ffffff;
    --st-bg-soft:     #f8fafc;
    --st-surface:     #ffffff;
    --st-surface-2:   #f1f5f9;
    --st-border:      #e2e8f0;
    --st-border-soft: #f1f5f9;
    --st-text:        #0f172a;
    --st-text-muted:  #475569;
    --st-text-faint:  #94a3b8;

    --st-primary-soft: rgba(99,102,241,.08);
    --st-shadow-sm: 0 1px 2px rgba(15,23,42,.05);
    --st-shadow-md: 0 4px 12px rgba(15,23,42,.08), 0 1px 3px rgba(15,23,42,.04);
    --st-shadow-lg: 0 20px 40px rgba(15,23,42,.1), 0 8px 16px rgba(15,23,42,.06);
    --st-glow:      0 0 40px rgba(99,102,241,.15);
    --st-gradient-soft: linear-gradient(135deg, rgba(99,102,241,.06) 0%, rgba(6,182,212,.04) 100%);
}

/* ==========================================================================
   BASE
   ========================================================================== */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--st-header-h) + 20px);
}

body {
    margin: 0;
    background: var(--st-bg);
    color: var(--st-text);
    font-family: var(--st-font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color .25s ease, color .25s ease;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }

a { color: var(--st-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--st-primary-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .6em;
    color: var(--st-text);
    letter-spacing: -.02em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

code, pre, kbd {
    font-family: var(--st-font-mono);
    font-size: .92em;
}
code {
    background: var(--st-surface);
    border: 1px solid var(--st-border-soft);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--st-accent);
}
pre {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 18px;
    overflow-x: auto;
    font-size: .9rem;
    line-height: 1.6;
}
pre code {
    background: none; border: none; padding: 0; color: var(--st-text);
}

blockquote {
    border-left: 3px solid var(--st-primary);
    margin: 1.5em 0;
    padding: .2em 0 .2em 1.2em;
    color: var(--st-text-muted);
    font-style: italic;
}

hr {
    border: none;
    border-top: 1px solid var(--st-border);
    margin: 2em 0;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

::selection {
    background: var(--st-primary);
    color: #fff;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 1em;
    padding: 10px 16px;
    background: var(--st-primary);
    color: #fff;
    border-radius: var(--st-radius-sm);
    z-index: 10000;
}
.skip-link:focus { left: 1em; }

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.st-container {
    max-width: var(--st-container);
    margin: 0 auto;
    padding: 0 20px;
}
.st-container--narrow { max-width: var(--st-container-narrow); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */

.st-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--st-border-soft);
    transition: background-color .25s, box-shadow .25s;
}
html[data-theme="light"] .st-header {
    background: rgba(255,255,255,.85);
}
.st-header.is-scrolled { box-shadow: var(--st-shadow-md); }

.st-header__inner {
    height: var(--st-header-h);
    display: flex;
    align-items: center;
    gap: 18px;
}

.st-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--st-text) !important;
    text-decoration: none !important;
    letter-spacing: -.02em;
}
.st-logo__mark {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--st-gradient);
    display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: .95rem;
    box-shadow: var(--st-glow);
}

.st-nav {
    flex: 1;
}
.st-nav ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 4px;
}
.st-nav a {
    display: block;
    padding: 8px 14px;
    color: var(--st-text-muted);
    font-weight: 500;
    font-size: .94rem;
    border-radius: var(--st-radius-sm);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.st-nav a:hover,
.st-nav .current-menu-item > a,
.st-nav .current_page_item > a {
    background: var(--st-surface);
    color: var(--st-text);
}

.st-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.st-icon-btn {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: transparent;
    border: 1px solid var(--st-border-soft);
    border-radius: var(--st-radius-sm);
    cursor: pointer;
    color: var(--st-text-muted);
    transition: all .15s;
}
.st-icon-btn:hover {
    background: var(--st-surface);
    border-color: var(--st-border);
    color: var(--st-text);
}
.st-icon-btn svg { width: 18px; height: 18px; }
.st-icon-btn[data-theme-toggle] .st-icon-sun { display: none; }
html[data-theme="light"] .st-icon-btn[data-theme-toggle] .st-icon-sun { display: block; }
html[data-theme="light"] .st-icon-btn[data-theme-toggle] .st-icon-moon { display: none; }

/* Search panel */
.st-search {
    position: fixed;
    inset: 0;
    background: rgba(10,14,26,.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
}
html[data-theme="light"] .st-search { background: rgba(255,255,255,.75); }
.st-search.is-open { display: flex; }
.st-search__box {
    width: 100%; max-width: 600px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    box-shadow: var(--st-shadow-lg);
    overflow: hidden;
}
.st-search__form {
    display: flex;
    align-items: center;
    padding: 4px 6px 4px 18px;
}
.st-search__form svg { width: 20px; height: 20px; color: var(--st-text-faint); }
.st-search__input {
    flex: 1;
    border: none; background: none; outline: none;
    padding: 18px 14px;
    font-size: 1.05rem;
    color: var(--st-text);
}
.st-search__close {
    background: var(--st-surface-2);
    border: 1px solid var(--st-border);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: .75rem;
    color: var(--st-text-muted);
    cursor: pointer;
}
.st-search__hint {
    padding: 12px 18px;
    border-top: 1px solid var(--st-border-soft);
    color: var(--st-text-faint);
    font-size: .85rem;
}

/* Mobile toggle */
.st-mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--st-border-soft);
    border-radius: var(--st-radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    color: var(--st-text);
}
.st-mobile-toggle span {
    display: block;
    width: 20px; height: 2px;
    background: currentColor;
    margin: 4px 0;
    transition: transform .2s, opacity .2s;
}
.st-mobile-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.st-mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.st-mobile-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */

.st-hero {
    position: relative;
    padding: 80px 20px 60px;
    text-align: center;
    overflow: hidden;
}
.st-hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 800px 400px at 50% 0%, rgba(99,102,241,.18), transparent),
        radial-gradient(ellipse 600px 300px at 20% 80%, rgba(6,182,212,.12), transparent),
        radial-gradient(ellipse 600px 300px at 80% 80%, rgba(139,92,246,.12), transparent);
    pointer-events: none;
    z-index: 0;
}
html[data-theme="light"] .st-hero::before {
    background:
        radial-gradient(ellipse 800px 400px at 50% 0%, rgba(99,102,241,.08), transparent),
        radial-gradient(ellipse 600px 300px at 20% 80%, rgba(6,182,212,.06), transparent);
}
.st-hero__inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }

.st-hero__badge {
    display: inline-flex;
    align-items: center; gap: 8px;
    padding: 6px 14px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 100px;
    font-size: .82rem;
    color: var(--st-text-muted);
    margin-bottom: 20px;
}
.st-hero__badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--st-success);
    box-shadow: 0 0 8px var(--st-success);
}

.st-hero__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 18px;
    line-height: 1.1;
}
.st-hero__title span {
    background: var(--st-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.st-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--st-text-muted);
    margin: 0 auto 28px;
    max-width: 640px;
}

.st-hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.st-btn {
    display: inline-flex;
    align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px;
    background: var(--st-primary);
    color: #fff !important;
    border: 1px solid transparent;
    border-radius: var(--st-radius-sm);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all .15s;
    min-height: 44px;
    line-height: 1;
}
.st-btn:hover { background: var(--st-primary-hover); transform: translateY(-1px); box-shadow: var(--st-shadow-md); }
.st-btn:active { transform: translateY(0); }
.st-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.st-btn--secondary {
    background: var(--st-surface);
    color: var(--st-text) !important;
    border-color: var(--st-border);
}
.st-btn--secondary:hover { background: var(--st-surface-2); border-color: var(--st-primary); }

.st-btn--ghost {
    background: transparent;
    color: var(--st-text) !important;
    border-color: var(--st-border);
}
.st-btn--ghost:hover { background: var(--st-surface); }

.st-btn--lg { padding: 14px 28px; font-size: 1rem; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.st-section { padding: 60px 0; }
.st-section--sm { padding: 40px 0; }

.st-section__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}
.st-section__eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--st-primary);
    margin-bottom: 10px;
}
.st-section__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 10px;
}
.st-section__subtitle {
    color: var(--st-text-muted);
    margin: 0;
    font-size: 1rem;
}

/* ==========================================================================
   TOOLS GRID (homepage + hub)
   ========================================================================== */

.st-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.st-tool-card {
    position: relative;
    padding: 24px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    text-decoration: none !important;
    color: var(--st-text) !important;
    transition: all .2s;
    overflow: hidden;
}
.st-tool-card::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--st-gradient-soft);
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.st-tool-card:hover {
    transform: translateY(-4px);
    border-color: var(--st-primary);
    box-shadow: var(--st-shadow-md);
}
.st-tool-card:hover::before { opacity: 1; }

.st-tool-card__icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    background: var(--st-primary-soft);
    border-radius: var(--st-radius-sm);
    font-size: 1.3rem;
    margin-bottom: 14px;
    position: relative;
}
.st-tool-card h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    position: relative;
}
.st-tool-card p {
    margin: 0 0 12px;
    color: var(--st-text-muted);
    font-size: .9rem;
    position: relative;
}
.st-tool-card__cta {
    display: inline-flex;
    align-items: center; gap: 6px;
    color: var(--st-primary);
    font-weight: 600;
    font-size: .85rem;
    position: relative;
}
.st-tool-card__cta::after {
    content: "→";
    transition: transform .2s;
}
.st-tool-card:hover .st-tool-card__cta::after { transform: translateX(3px); }

/* ==========================================================================
   POSTS GRID / CARDS
   ========================================================================== */

.st-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.st-post-card {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    overflow: hidden;
    transition: all .2s;
    display: flex;
    flex-direction: column;
}
.st-post-card:hover {
    transform: translateY(-3px);
    border-color: var(--st-primary);
    box-shadow: var(--st-shadow-md);
}
.st-post-card__thumb {
    aspect-ratio: 16 / 9;
    background: var(--st-gradient-soft);
    overflow: hidden;
    position: relative;
}
.st-post-card__thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s;
}
.st-post-card:hover .st-post-card__thumb img { transform: scale(1.05); }
.st-post-card__thumb--placeholder {
    display: grid; place-items: center;
    color: var(--st-primary);
    font-size: 2.5rem;
    opacity: .4;
}

.st-post-card__body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.st-post-card__meta {
    display: flex;
    gap: 8px;
    font-size: .78rem;
    color: var(--st-text-faint);
    align-items: center;
}
.st-post-card__cat {
    background: var(--st-primary-soft);
    color: var(--st-primary);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 600;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-decoration: none !important;
}
.st-post-card__cat:hover { background: var(--st-primary); color: #fff; }
.st-post-card__title {
    font-size: 1.15rem;
    margin: 0;
    line-height: 1.35;
}
.st-post-card__title a { color: var(--st-text) !important; text-decoration: none !important; }
.st-post-card__title a:hover { color: var(--st-primary) !important; }
.st-post-card__excerpt {
    color: var(--st-text-muted);
    font-size: .9rem;
    margin: 0;
    flex: 1;
}
.st-post-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    color: var(--st-text-faint);
    margin-top: auto;
}

/* ==========================================================================
   SINGLE POST / PAGE
   ========================================================================== */

.st-article {
    max-width: 760px;
    margin: 40px auto;
    padding: 0 20px;
}

.st-article__header {
    text-align: center;
    margin-bottom: 40px;
}
.st-article__category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--st-primary-soft);
    color: var(--st-primary);
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 16px;
    text-decoration: none !important;
}
.st-article__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin: 0 0 18px;
    line-height: 1.15;
}
.st-article__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    color: var(--st-text-muted);
    font-size: .9rem;
    flex-wrap: wrap;
}
.st-article__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.st-article__avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--st-gradient);
    display: grid; place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
}

.st-article__featured {
    margin: 0 auto 40px;
    border-radius: var(--st-radius-lg);
    overflow: hidden;
    box-shadow: var(--st-shadow-lg);
    max-width: 900px;
}

.st-article__content {
    font-size: 1.05rem;
    line-height: 1.75;
}
.st-article__content > * + * { margin-top: 1.1em; }
.st-article__content h2 {
    margin-top: 2em;
    font-size: 1.6rem;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--st-border-soft);
}
.st-article__content h3 {
    margin-top: 1.6em;
    font-size: 1.25rem;
}
.st-article__content img {
    border-radius: var(--st-radius);
    margin: 1em auto;
}
.st-article__content ul, .st-article__content ol { padding-left: 1.3em; }
.st-article__content li { margin: .4em 0; }
.st-article__content a { text-decoration: underline; text-decoration-color: var(--st-primary-soft); text-underline-offset: 3px; }
.st-article__content a:hover { text-decoration-color: var(--st-primary); }

/* Tags */
.st-article__tags {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--st-border-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.st-article__tag {
    padding: 5px 12px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: 100px;
    font-size: .8rem;
    color: var(--st-text-muted);
    text-decoration: none !important;
}
.st-article__tag:hover { border-color: var(--st-primary); color: var(--st-primary); }

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.st-breadcrumbs {
    padding: 16px 0 0;
    color: var(--st-text-faint);
    font-size: .85rem;
}
.st-breadcrumbs ol {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.st-breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.st-breadcrumbs li + li::before {
    content: "/";
    color: var(--st-text-faint);
    opacity: .6;
}
.st-breadcrumbs a { color: var(--st-text-muted); text-decoration: none; }
.st-breadcrumbs a:hover { color: var(--st-primary); }
.st-breadcrumbs [aria-current="page"] { color: var(--st-text); font-weight: 500; }

/* ==========================================================================
   RELATED POSTS
   ========================================================================== */

.st-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--st-border-soft);
}
.st-related h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   AUTHOR BOX
   ========================================================================== */

.st-author-box {
    margin: 40px 0;
    padding: 24px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    display: flex;
    gap: 18px;
    align-items: flex-start;
}
.st-author-box__avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--st-gradient);
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 1.6rem;
    flex-shrink: 0;
    object-fit: cover;
}
.st-author-box__name { font-weight: 700; margin: 0 0 2px; }
.st-author-box__role { color: var(--st-text-faint); font-size: .85rem; margin: 0 0 8px; }
.st-author-box__bio { color: var(--st-text-muted); font-size: .92rem; margin: 0; line-height: 1.6; }

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.st-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 50px 0;
    flex-wrap: wrap;
}
.st-pagination a,
.st-pagination span {
    min-width: 40px;
    padding: 8px 14px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm);
    color: var(--st-text-muted);
    text-decoration: none !important;
    text-align: center;
    font-size: .9rem;
    font-weight: 500;
    transition: all .15s;
}
.st-pagination a:hover { color: var(--st-text); border-color: var(--st-primary); }
.st-pagination .current {
    background: var(--st-primary);
    color: #fff;
    border-color: var(--st-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.st-footer {
    margin-top: 80px;
    background: var(--st-bg-soft);
    border-top: 1px solid var(--st-border-soft);
    padding: 50px 0 24px;
    color: var(--st-text-muted);
    font-size: .9rem;
}
.st-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
.st-footer__col h4 {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--st-text);
    margin: 0 0 14px;
}
.st-footer__col ul { list-style: none; padding: 0; margin: 0; }
.st-footer__col li { margin: 8px 0; }
.st-footer__col a {
    color: var(--st-text-muted);
    text-decoration: none;
    transition: color .15s;
}
.st-footer__col a:hover { color: var(--st-primary); }
.st-footer__about p { margin: 14px 0; max-width: 320px; font-size: .88rem; line-height: 1.6; }
.st-footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--st-border-soft);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: .82rem;
    color: var(--st-text-faint);
}
.st-footer__bottom a { color: var(--st-text-muted); }

/* ==========================================================================
   SIDEBAR / WIDGETS
   ========================================================================== */

.st-widget {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}
.st-widget h3, .st-widget .widget-title {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 0 0 14px;
    color: var(--st-text);
}
.st-widget ul { list-style: none; padding: 0; margin: 0; }
.st-widget li { padding: 6px 0; border-bottom: 1px solid var(--st-border-soft); }
.st-widget li:last-child { border-bottom: none; }
.st-widget a { color: var(--st-text-muted); text-decoration: none; }
.st-widget a:hover { color: var(--st-primary); }

/* ==========================================================================
   404
   ========================================================================== */

.st-404 {
    text-align: center;
    padding: 100px 20px;
    max-width: 560px;
    margin: 0 auto;
}
.st-404__code {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 800;
    background: var(--st-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin: 0 0 10px;
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */

.st-comments { margin-top: 50px; }
.st-comments h3 { margin-bottom: 20px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment {
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 18px;
    margin-bottom: 14px;
}
.comment-list .children { list-style: none; padding-left: 24px; margin-top: 12px; }
.comment-author { font-weight: 600; }
.comment-meta { font-size: .82rem; color: var(--st-text-faint); margin-bottom: 8px; }
.comment-respond { margin-top: 30px; }
.comment-form label { display: block; margin-bottom: 4px; font-size: .88rem; font-weight: 500; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm);
    color: var(--st-text);
    font-size: 16px;
    margin-bottom: 14px;
}
.comment-form textarea { min-height: 120px; resize: vertical; }

/* ==========================================================================
   NEWSLETTER (optional signup box)
   ========================================================================== */

.st-newsletter {
    margin: 50px auto;
    padding: 36px 30px;
    background: var(--st-gradient-soft);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    text-align: center;
    max-width: 760px;
}
.st-newsletter h3 { font-size: 1.4rem; margin: 0 0 8px; }
.st-newsletter p { color: var(--st-text-muted); margin: 0 0 18px; }
.st-newsletter form {
    display: flex;
    gap: 8px;
    max-width: 440px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.st-newsletter input {
    flex: 1; min-width: 200px;
    padding: 12px 16px;
    background: var(--st-surface);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm);
    color: var(--st-text);
    font-size: 16px;
}

/* ==========================================================================
   ADS
   ========================================================================== */

.st-ad-slot {
    max-width: 760px;
    margin: 24px auto;
    text-align: center;
    min-height: 90px;
}
.st-ad-placeholder {
    border: 2px dashed var(--st-border);
    border-radius: var(--st-radius);
    padding: 30px 20px;
    color: var(--st-text-faint);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    background: var(--st-bg-soft);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 960px) {
    .st-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .st-mobile-toggle { display: block; order: -1; }
    .st-nav {
        position: absolute;
        top: var(--st-header-h); left: 0; right: 0;
        background: var(--st-bg-soft);
        border-bottom: 1px solid var(--st-border);
        display: none;
        padding: 12px;
    }
    .st-nav.is-open { display: block; }
    .st-nav ul { flex-direction: column; gap: 2px; }
    .st-nav a { padding: 12px 14px; }

    .st-hero { padding: 50px 20px 30px; }
    .st-section { padding: 40px 0; }
    .st-footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* WordPress core-required classes */
.alignnone { margin: 0; }
.aligncenter { display: block; margin: 1em auto; }
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--st-text-muted); margin-top: 8px; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
}
.sticky { display: block; }
.gallery-caption, .bypostauthor {}
