/*
Theme Name: What 3D Printer OnePage
Theme URI: https://what3dprinter.com
Author: Ali Jennings
Description: A lightweight one-page starter theme for What 3D Printer, designed to be extended over time.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: w3dp
*/

:root {
    --w3dp-bg: #f3f4f6;
    --w3dp-bg-alt: #ffffff;
    --w3dp-accent: #2563eb; /* main accent blue */
    --w3dp-accent-soft: rgba(37, 99, 235, 0.08);
    --w3dp-text: #111827;
    --w3dp-text-muted: #6b7280;
    --w3dp-border-subtle: rgba(15, 23, 42, 0.08);
    --w3dp-radius-lg: 18px;
    --w3dp-radius-full: 999px;
    --w3dp-shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --w3dp-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Basic reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behaviour: smooth;
}

body {
    margin: 0;
    font-family: var(--w3dp-font-sans);
    background: var(--w3dp-bg);
    color: var(--w3dp-text);
    -webkit-font-smoothing: antialiased;
}
    
    /* Layout */
    .w3dp-page {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    .w3dp-container {
        width: 100%;
        max-width: 1120px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }
    
    @media (min-width: 1200px) {
        .w3dp-container {
            padding: 0 2rem;
        }
    }
    
/* Header / Nav */
.w3dp-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: #ffffff;
    border-bottom: 1px solid var(--w3dp-border-subtle);
}

.w3dp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0.5rem 0.7rem;
    gap: 1.5rem;
}

/* Brand / logo */

.w3dp-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.w3dp-logo-box {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 2px solid #00c8ff;
    box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fbff;
}

.w3dp-logo-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #00c8ff, #007bff);
}

/* Brand text */

.w3dp-brand-text {
    display: flex;
    flex-direction: column;
}

.w3dp-site-title {
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
}

.w3dp-site-title-main {
    background: linear-gradient(90deg, #00c8ff, #ff00c8, #a3ff12);
    -webkit-background-clip: text;
    color: transparent;
}

.w3dp-site-tagline {
    font-size: 0.8rem;
    color: var(--w3dp-text-muted);
}

/* Nav menu */

.w3dp-primary-nav {
    flex: 1;
    display: none; /* mobile */
    justify-content: center;
}

@media (min-width: 768px) {
    .w3dp-primary-nav {
        display: flex;
    }
}

.w3dp-primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    font-size: 0.88rem;
}

.w3dp-primary-nav a {
    color: #111827;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
    padding-bottom: 0.2rem;
    position: relative;
}

.w3dp-primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: width 0.18s ease;
}

.w3dp-primary-nav a:hover::after,
.w3dp-primary-nav .current-menu-item > a::after {
    width: 100%;
}

/* Icons (search + RSS) */

.w3dp-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w3dp-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.w3dp-icon-btn svg {
    width: 18px;
    height: 18px;
    color: #111827;
}

/* Rainbow line under header */

.w3dp-header-gradient {
    height: 3px;
    width: 100%;
    background: linear-gradient(
        90deg,
        #00c8ff,
        #ff00c8,
        #ffb800,
        #b0ff00
    );
}
.w3dp-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w3dp-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.w3dp-icon-btn svg {
    width: 18px;
    height: 18px;
    color: #111827;
}


.w3dp-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.w3dp-header-gradient {
    height: 3px;
    width: 100%;
    background: linear-gradient(
        90deg,
        #00c8ff,
        #ff00c8,
        #ffb800,
        #b0ff00
    );
}

.w3dp-logo-box {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 2px solid #00c8ff;
    box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0fbff;
}

.w3dp-logo-icon {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #00c8ff, #007bff);
}

/* Brand text */
.w3dp-brand-text {
    display: flex;
    flex-direction: column;
}

.w3dp-site-title-main {
    background: linear-gradient(90deg, #00c8ff, #ff00c8, #a3ff12);
    -webkit-background-clip: text;
    color: transparent;
}

.w3dp-site-tagline {
    font-size: 0.8rem;
    color: var(--w3dp-text-muted);
}
    
.w3dp-brand-text {
        display: flex;
        flex-direction: column;
    }
    
    .w3dp-site-title {
        font-size: 1.05rem;
        font-weight: 650;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: #f9fafb;
    }
    
    .w3dp-site-tagline {
        font-size: 0.8rem;
        color: var(--w3dp-text-muted);
    }
    
    /* Nav menu */
.w3dp-primary-nav {
    flex: 1;
    display: none; /* mobile hidden */
    justify-content: center;
}

@media (min-width: 768px) {
    .w3dp-primary-nav {
        display: flex;
    }
}

.w3dp-primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    font-size: 0.88rem;
}

.w3dp-primary-nav a {
    color: #111827;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 500;
    padding-bottom: 0.2rem;
    position: relative;
}

.w3dp-primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.2rem;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: width 0.18s ease;
}

.w3dp-primary-nav a:hover::after,
.w3dp-primary-nav .current-menu-item > a::after {
    width: 100%;
}

    
    .w3dp-primary-nav a:hover {
        color: #e2e8f0;
    }
    
    .w3dp-primary-nav a:hover::after {
        width: 100%;
    }
    
    @media (min-width: 768px) {
        .w3dp-primary-nav {
            display: block;
        }
    }
    
    /* Hero */
    .w3dp-hero {
        padding: 4rem 0 3rem;
    }
    
    @media (min-width: 900px) {
        .w3dp-hero {
            padding: 5rem 0 3.5rem;
        }
    }
    
    .w3dp-hero-card {
        position: relative;
        border-radius: 22px;
        background: #ffffff;
        border: 1px solid var(--w3dp-border-subtle);
        box-shadow: var(--w3dp-shadow-soft);
        padding: 1.4rem 1.5rem;
        overflow: hidden;
        isolation: isolate;
    }
    
    
    .w3dp-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr);
        gap: 2.5rem;
        align-items: center;
    }
    
    @media (min-width: 900px) {
        .w3dp-hero-grid {
            grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
            gap: 3.25rem;
        }
    }
    
    .w3dp-pill {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.25rem 0.7rem 0.25rem 0.4rem;
        border-radius: var(--w3dp-radius-full);
        background: var(--w3dp-accent-soft);
        border: 1px solid rgba(37, 99, 235, 0.45);
        box-shadow: none;
        margin-bottom: 1rem;
    }
    
    .w3dp-pill-dot {
        width: 14px;
        height: 14px;
        border-radius: var(--w3dp-radius-full);
        background: #22c55e;
        box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
    }
    
    .w3dp-pill span {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: #e2fdf9;
    }
    
    .w3dp-hero-title {
        font-size: clamp(2.3rem, 3.6vw, 3rem);
        line-height: 1.08;
        letter-spacing: 0.01em;
        margin: 0 0 0.75rem;
    }
    
    .w3dp-hero-title strong {
        color: var(--w3dp-accent);
        -webkit-background-clip: initial;
        background: none;
    }
    
    .w3dp-hero-lede {
        max-width: 34rem;
        font-size: 1rem;
        line-height: 1.7;
        color: var(--w3dp-text-muted);
        margin-bottom: 1.7rem;
    }
    
    /* CTA row */
    .w3dp-hero-cta-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.9rem;
        align-items: center;
        margin-bottom: 1.3rem;
    }
    
    .w3dp-btn-primary {
        background: var(--w3dp-accent);
        color: #ffffff;
        box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
    }
    
    .w3dp-btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 22px 55px rgba(15, 205, 190, 0.4);
        filter: brightness(1.02);
    }
    
    .w3dp-btn-link {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        padding: 0.45rem 0.1rem;
        border-radius: var(--w3dp-radius-full);
        background: transparent;
        border: none;
        color: var(--w3dp-text-muted);
        font-size: 0.88rem;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.15s ease;
    }
    
    .w3dp-btn-link:hover {
        color: #e2e8f0;
    }
    
    .w3dp-btn-link svg {
        width: 16px;
        height: 16px;
    }
    
    /* Hero meta */
    .w3dp-hero-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-top: 1rem;
    }
    
    .w3dp-meta-pill {
        font-size: 0.8rem;
        color: var(--w3dp-text-muted);
    }
    
    .w3dp-meta-pill strong {
        color: #e2e8f0;
    }
    
    /* Hero visual */
    .w3dp-hero-visual {
        position: relative;
    }
    
    .w3dp-hero-card {
        position: relative;
        border-radius: 24px;
        background: radial-gradient(circle at 0 0, #1a365d, #171923 55%, #020617 100%);
        border: 1px solid rgba(148, 163, 184, 0.26);
        box-shadow: var(--w3dp-shadow-soft);
        padding: 1.4rem 1.5rem;
        overflow: hidden;
        isolation: isolate;
    }
    
    .w3dp-hero-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1rem;
        gap: 1rem;
    }
    
    .w3dp-hero-chip {
        padding: 0.25rem 0.75rem;
        border-radius: var(--w3dp-radius-full);
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        background: rgba(15, 23, 42, 0.8);
        color: #e2e8f0;
        border: 1px solid rgba(148, 163, 184, 0.4);
    }
    
    .w3dp-hero-card-title {
        font-size: 0.9rem;
        color: #e2e8f0;
    }
    
    .w3dp-hero-card-sub {
        font-size: 0.78rem;
        color: var(--w3dp-text-muted);
    }
    
    /* Hero stat grid */
    .w3dp-stat-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.9rem;
        margin-top: 0.9rem;
    }
    
    .w3dp-stat-tile {
        padding: 0.8rem 0.85rem;
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.9);
        border: 1px solid rgba(148, 163, 184, 0.28);
    }
    
    .w3dp-stat-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: #9ca3af;
        margin-bottom: 0.35rem;
    }
    
    .w3dp-stat-value {
        font-size: 1.1rem;
        font-weight: 650;
        color: #e5e7eb;
    }
    
    /* Section shell */
    .w3dp-section {
        padding: 2.6rem 0 0.5rem;
    }
    
    @media (min-width: 900px) {
        .w3dp-section {
            padding: 3rem 0 0.75rem;
        }
    }
    
    .w3dp-about {
        border-radius: 22px;
        background: #ffffff;
        border: 1px solid var(--w3dp-border-subtle);
        padding: 1.6rem 1.6rem 1.7rem;
        box-shadow: var(--w3dp-shadow-soft);
    }
    
    
    .w3dp-section-header {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .w3dp-section-kicker {
        font-size: 0.75rem;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--w3dp-text-muted);
    }
    
    .w3dp-section-title {
        font-size: 1.15rem;
        margin: 0.1rem 0 0.35rem;
    }
    
    .w3dp-section-intro {
        font-size: 0.9rem;
        color: var(--w3dp-text-muted);
        max-width: 30rem;
    }
    
    .w3dp-section-link {
        font-size: 0.82rem;
    }
    
    /* Post cards */
    .w3dp-post-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }
    
    @media (min-width: 720px) {
        .w3dp-post-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }
    
    .w3dp-post-card {
        border-radius: var(--w3dp-radius-lg);
        background: #ffffff;
        border: 1px solid var(--w3dp-border-subtle);
        padding: 1rem 1.05rem 1.1rem;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: 0.55rem;
        transition: box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
    }
    
    .w3dp-post-card:hover {
        border-color: rgba(15, 23, 42, 0.16);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
        transform: translateY(-2px);
    }
    
    .w3dp-post-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: #9ca3af;
    }
    
    .w3dp-post-title {
        font-size: 0.98rem;
        margin: 0;
    }
    
    .w3dp-post-title a {
        color: #e5e7eb;
        text-decoration: none;
    }
    
    .w3dp-post-title a:hover {
        text-decoration: underline;
    }
    
    .w3dp-post-excerpt {
        font-size: 0.86rem;
        color: var(--w3dp-text-muted);
        line-height: 1.6;
        margin: 0;
    }
    
    /* About block */
    .w3dp-about {
        border-radius: 24px;
        background: radial-gradient(circle at 0 0, #1e293b, #020617 55%, #000000 100%);
        border: 1px solid rgba(148, 163, 184, 0.35);
        padding: 1.6rem 1.6rem 1.7rem;
        box-shadow: var(--w3dp-shadow-soft);
        max-width: 44rem;
    }
    
    .w3dp-about-title {
        font-size: 1.05rem;
        margin: 0 0 0.6rem;
    }
    
    .w3dp-about-body {
        font-size: 0.9rem;
        color: var(--w3dp-text-muted);
        line-height: 1.7;
    }
    
    /* Footer */
    .w3dp-footer {
        margin-top: auto;
        border-top: 1px solid var(--w3dp-border-subtle);
        padding: 1.4rem 0 2.2rem;
        font-size: 0.8rem;
        color: var(--w3dp-text-muted);
        background: #ffffff;
    }
    .w3dp-footer-inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.75rem;
    }
    
    .w3dp-footer a {
        color: var(--w3dp-text-muted);
        text-decoration: none;
    }
    
    .w3dp-footer a:hover {
        text-decoration: underline;
    }
    .w3dp-front {
        padding: 3.25rem 0 3rem;
    }

    @media (min-width: 900px) {
        .w3dp-front {
            padding: 3.75rem 0 3.5rem;
        }
    }

    .w3dp-front-header {
        margin-bottom: 1.5rem;
    }

    .w3dp-front-lede {
        max-width: 44rem;
        font-size: 0.98rem;
        line-height: 1.7;
        color: var(--w3dp-text-muted);
    }

    .w3dp-main-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1.8rem;
        align-items: flex-start;
    }

    @media (min-width: 1024px) {
        .w3dp-main-grid {
            grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.1fr);
        }
    }

    .w3dp-main-col {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
    }
    .w3dp-filter-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.55rem;
        margin-bottom: 1.4rem;
    }

    .w3dp-filter-label {
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: var(--w3dp-text-muted);
        margin-right: 0.3rem;
    }

    .w3dp-chip {
        border-radius: var(--w3dp-radius-full);
        border: 1px solid rgba(148, 163, 184, 0.6);
        background: #ffffff;
        padding: 0.32rem 0.9rem;
        font-size: 0.8rem;
        cursor: default;
        color: #374151;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }

    .w3dp-chip.is-active {
        border-color: #22c55e;
        background: rgba(34, 197, 94, 0.08);
    }
    .w3dp-card-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    @media (min-width: 720px) {
        .w3dp-card-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    .w3dp-card {
        background: #ffffff;
        border-radius: 18px;
        border: 1px solid var(--w3dp-border-subtle);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        min-height: 100%;
        box-shadow: var(--w3dp-shadow-soft);
    }

    .w3dp-card-thumb img {
        display: block;
        width: 100%;
        height: auto;
    }

    .w3dp-card-body {
        padding: 0.85rem 0.95rem 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    .w3dp-card-meta {
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: var(--w3dp-text-muted);
    }

    .w3dp-card-tag {
        padding: 0.15rem 0.45rem;
        border-radius: 999px;
        background: var(--w3dp-accent-soft);
        color: var(--w3dp-accent);
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    .w3dp-card-title {
        font-size: 0.98rem;
        margin: 0;
    }

    .w3dp-card-title a {
        color: #111827;
        text-decoration: none;
    }

    .w3dp-card-title a:hover {
        text-decoration: underline;
    }

    .w3dp-card-excerpt {
        font-size: 0.86rem;
        color: var(--w3dp-text-muted);
        margin: 0;
    }
    .w3dp-sidebar {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .w3dp-sidebar-panel {
        background: #ffffff;
        border-radius: 18px;
        border: 1px solid var(--w3dp-border-subtle);
        padding: 1rem 1.1rem 1.1rem;
        box-shadow: var(--w3dp-shadow-soft);
    }

    .w3dp-sidebar-title {
        font-size: 0.95rem;
        margin: 0 0 0.6rem;
    }

    .w3dp-sidebar-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .w3dp-sidebar-item + .w3dp-sidebar-item {
        margin-top: 0.45rem;
    }

    .w3dp-sidebar-link {
        display: block;
        font-size: 0.86rem;
        color: #111827;
        text-decoration: none;
    }

    .w3dp-sidebar-link:hover {
        text-decoration: underline;
    }

    .w3dp-sidebar-meta {
        display: block;
        font-size: 0.75rem;
        color: var(--w3dp-text-muted);
        margin-top: 0.15rem;
    }

    .w3dp-sidebar-copy {
        font-size: 0.86rem;
        color: var(--w3dp-text-muted);
    }

