/* Nerd-Pastell Theme 0.1 */

:root {
    --np-ink: #2f2a60;
    --np-muted: #756f9f;
    --np-pink: #ff78ad;
    --np-pink-soft: #ffe3f0;
    --np-purple: #a98be8;
    --np-purple-soft: #eee5ff;
    --np-mint: #6fdccf;
    --np-mint-soft: #dcfbf6;
    --np-peach: #ffd9bd;
    --np-yellow: #ffd166;
    --np-card: rgba(255, 255, 255, 0.82);
    --np-border: #d8c8f3;
    --np-shadow: 0 20px 50px rgba(100, 78, 160, 0.14);
    --np-radius: 24px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--np-ink);
    font-family: "Nunito", system-ui, sans-serif;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 120, 173, 0.18), transparent 26%),
        radial-gradient(circle at 85% 20%, rgba(111, 220, 207, 0.22), transparent 28%),
        linear-gradient(180deg, #fff8fb 0%, #f8f2ff 50%, #fffafb 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.site-shell {
    max-width: 1480px;
    margin: 0 auto;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.55);
    border-inline: 1px solid rgba(216, 200, 243, 0.7);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 94px;
    padding: 18px clamp(24px, 5vw, 72px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 2px solid var(--np-border);
    backdrop-filter: blur(18px);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pixel-mascot {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--np-pink);
    font-family: "Space Mono", monospace;
    font-size: 28px;
    background: var(--np-purple-soft);
    border: 3px solid var(--np-border);
    border-radius: 16px;
    box-shadow: 6px 6px 0 #f7c9e0;
}

.site-brand strong {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.site-brand small {
    display: block;
    margin-top: 6px;
    color: var(--np-muted);
    font-family: "Space Mono", monospace;
    font-size: 0.85rem;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 44px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a {
    position: relative;
    font-size: 0.92rem;
    font-weight: 800;
    text-transform: uppercase;
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after {
    position: absolute;
    left: 50%;
    bottom: -14px;
    content: "♡";
    color: var(--np-pink);
    transform: translateX(-50%);
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--np-ink);
    font-size: 1.6rem;
    background: transparent;
}

.hero {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(320px, 1.15fr);
    min-height: 600px;
    border-bottom: 2px solid var(--np-border);
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 120, 173, 0.18), transparent 25%),
        linear-gradient(90deg, rgba(255,255,255,0.88), rgba(255,227,240,0.72));
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 6vw, 92px);
}

.eyebrow {
    margin: 0 0 20px;
    color: var(--np-mint);
    font-family: "Space Mono", monospace;
    font-weight: 700;
}

.hero h1,
.single-header h1 {
    margin: 0;
    font-family: "Space Mono", monospace;
    font-size: clamp(2.3rem, 5vw, 4.6rem);
    line-height: 1.14;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--np-pink);
}

.hero-text {
    max-width: 560px;
    margin: 28px 0 0;
    color: var(--np-muted);
    font-size: 1.2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 42px;
}

.button,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: 900;
    text-transform: uppercase;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
}

.button-primary,
.newsletter-widget button {
    color: #fff;
    background: var(--np-pink);
    box-shadow: 0 10px 24px rgba(255, 120, 173, 0.28);
}

.button-ghost {
    color: var(--np-purple);
    background: rgba(255,255,255,0.75);
    border-color: var(--np-border);
}

.full {
    width: 100%;
}

.hero-illustration {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 520px;
    padding: 32px;
}

.monitor {
    width: min(520px, 80%);
    padding: 22px;
    color: #f7f2ff;
    font-family: "Space Mono", monospace;
    background: #2f2a60;
    border: 12px solid #bba3ee;
    border-radius: 28px;
    box-shadow: 18px 22px 0 rgba(255, 120, 173, 0.22);
}

.monitor-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.monitor-bar span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--np-pink);
}

.monitor-bar span:nth-child(2) { background: var(--np-yellow); }
.monitor-bar span:nth-child(3) { background: var(--np-mint); }

.monitor pre {
    margin: 0;
    overflow: auto;
    color: #b7fff3;
    font-size: clamp(0.8rem, 1.8vw, 1.1rem);
    line-height: 1.7;
}

.keyboard {
    position: absolute;
    right: 27%;
    bottom: 90px;
    width: 340px;
    height: 80px;
    border-radius: 22px;
    background: repeating-linear-gradient(90deg, #cdb8fb 0 24px, #b99eec 24px 30px);
    transform: perspective(400px) rotateX(18deg);
}

.mug,
.sticky,
.books,
.plant {
    position: absolute;
    font-weight: 900;
}

.mug {
    right: 13%;
    bottom: 130px;
    display: grid;
    place-items: center;
    width: 96px;
    height: 112px;
    color: #fff;
    text-align: center;
    background: var(--np-mint);
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(47,42,96,0.12);
}

.sticky {
    top: 34%;
    right: 30%;
    padding: 18px;
    background: #fff3c8;
    border-radius: 6px;
    transform: rotate(8deg);
}

.books {
    right: 8%;
    bottom: 250px;
    display: flex;
    align-items: end;
    gap: 8px;
}

.books span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 150px;
    color: #fff;
    writing-mode: vertical-rl;
    background: var(--np-purple);
    border-radius: 8px;
}

.books span:nth-child(2) { background: var(--np-pink); }
.books span:nth-child(3) { background: var(--np-mint); }

.plant {
    left: 12%;
    top: 26%;
    font-size: 7rem;
}

.content-grid,
.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 46px;
    padding: 72px clamp(24px, 5vw, 72px);
}

.posts-panel {
    position: relative;
    padding: 48px 34px 34px;
    background: rgba(255,255,255,0.64);
    border: 2px solid var(--np-border);
    border-radius: var(--np-radius);
    box-shadow: var(--np-shadow);
}

.section-tab,
.window-title {
    color: #fff;
    font-family: "Space Mono", monospace;
    font-weight: 700;
    background: linear-gradient(135deg, var(--np-purple), #c7aff8);
}

.section-tab {
    position: absolute;
    left: 34px;
    top: -28px;
    padding: 14px 28px;
    border-radius: 12px 12px 6px 6px;
}

.post-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 36px;
    padding: 28px 0;
    border-bottom: 2px solid #eee3ff;
}

.post-card:last-child {
    border-bottom: 0;
}

.post-thumb img {
    width: 100%;
    aspect-ratio: 1.42;
    object-fit: cover;
    border: 2px solid var(--np-border);
    border-radius: 12px;
}

.post-meta,
.post-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--np-muted);
    font-family: "Space Mono", monospace;
    font-size: 0.85rem;
}

.post-meta a {
    color: var(--np-pink);
    font-weight: 700;
}

.post-content h2 {
    margin: 24px 0 16px;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.post-content p {
    color: var(--np-muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.read-more {
    color: var(--np-mint);
    font-weight: 900;
    text-transform: uppercase;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pastel-window {
    overflow: hidden;
    background: rgba(255,255,255,0.78);
    border: 2px solid var(--np-border);
    border-radius: 18px;
    box-shadow: var(--np-shadow);
}

.pastel-window > *:not(.window-title) {
    margin-inline: 26px;
}

.window-title {
    display: flex;
    justify-content: space-between;
    padding: 14px 22px;
    text-transform: uppercase;
}

.avatar-bubble {
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    margin: 28px auto 20px !important;
    font-size: 4.5rem;
    background: var(--np-pink-soft);
    border-radius: 999px;
}

.pastel-window p {
    color: var(--np-muted);
    line-height: 1.7;
}

.cute-list {
    margin-block: 20px 24px !important;
    padding: 0;
    list-style: none;
}

.cute-list li,
.cute-list .cat-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    color: var(--np-muted);
    border-bottom: 1px solid #f0e8ff;
}

.no-count li {
    justify-content: flex-start;
}

.newsletter-widget form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-bottom: 28px;
}

.newsletter-widget input {
    min-width: 0;
    padding: 14px;
    border: 2px solid var(--np-border);
    border-radius: 10px;
    color: var(--np-ink);
    background: #fff;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 0 clamp(24px, 5vw, 72px) 72px;
    padding: 24px;
    background: rgba(255,255,255,0.72);
    border: 2px solid var(--np-border);
    border-radius: var(--np-radius);
}

.feature-strip div {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    align-items: start;
}

.feature-strip strong,
.feature-strip span {
    grid-column: 2;
}

.feature-strip span {
    color: var(--np-muted);
    font-size: 0.9rem;
}

.site-footer {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 42px clamp(24px, 5vw, 72px);
    color: var(--np-muted);
    background: var(--np-purple-soft);
}

.footer-icons {
    display: flex;
    gap: 18px;
    font-size: 1.2rem;
}

.single-card {
    padding: clamp(28px, 5vw, 64px);
    background: rgba(255,255,255,0.82);
    border: 2px solid var(--np-border);
    border-radius: var(--np-radius);
    box-shadow: var(--np-shadow);
}

.single-thumb {
    margin: 34px 0;
}

.single-thumb img {
    width: 100%;
    border-radius: 18px;
}

.entry-content {
    color: var(--np-ink);
    font-size: 1.1rem;
    line-height: 1.85;
}

.entry-content a {
    color: var(--np-pink);
    font-weight: 800;
}

.entry-content code,
.entry-content pre {
    font-family: "Space Mono", monospace;
    background: var(--np-purple-soft);
    border-radius: 8px;
}

.entry-content code {
    padding: 0.15em 0.35em;
}

.entry-content pre {
    overflow: auto;
    padding: 20px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.pagination-wrap {
    margin-top: 28px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 8px;
}

.page-numbers {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 2px solid var(--np-border);
    border-radius: 10px;
    background: #fff;
}

.page-numbers.current {
    color: #fff;
    background: var(--np-purple);
}

@media (max-width: 980px) {
    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        left: 24px;
        right: 24px;
        top: 86px;
        display: none;
        padding: 18px;
        background: #fff;
        border: 2px solid var(--np-border);
        border-radius: 18px;
        box-shadow: var(--np-shadow);
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav ul {
        display: grid;
        gap: 16px;
    }

    .hero,
    .content-grid,
    .single-layout {
        grid-template-columns: 1fr;
    }

    .hero-illustration {
        min-height: 420px;
    }

    .content-grid,
    .single-layout {
        padding-top: 54px;
    }

    .feature-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 680px) {
    .site-header {
        padding: 14px 18px;
    }

    .site-brand strong {
        font-size: 1.45rem;
    }

    .site-brand small {
        display: none;
    }

    .pixel-mascot {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .hero-copy {
        padding: 36px 24px;
    }

    .hero-illustration {
        display: none;
    }

    .posts-panel {
        padding: 42px 20px 24px;
    }

    .post-card {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .post-meta,
    .post-footer {
        flex-direction: column;
    }

    .newsletter-widget form {
        grid-template-columns: 1fr;
    }

    .feature-strip {
        grid-template-columns: 1fr;
    }

    .site-footer {
        flex-direction: column;
        text-align: center;
    }
}
