﻿:root {
    --bg: #f6f7fb;
    --panel: #ffffff;
    --text: #0f172a;
    --muted: #55627a;
    --line: rgba(15, 23, 42, 0.10);
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow2: 0 8px 20px rgba(15, 23, 42, 0.06);
    --radius: 18px;
    --radius2: 14px;
    --accent: #4f46e5; /* indigo */
    --accent2: #06b6d4; /* cyan */
    --accentSoft: rgba(79, 70, 229, 0.10);
    --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;

}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--sans);
    color: var(--text);
    background: radial-gradient(900px 600px at 15% -10%, rgba(79,70,229,.10), transparent 60%), radial-gradient(900px 600px at 110% 10%, rgba(6,182,212,.10), transparent 55%), var(--bg);
}

/* Layout */
.shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 18px 60px;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 18px;
}

@media (max-width: 980px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 18px;
    align-self: start;
    display: grid;
    gap: 14px;
}

/* Cards */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow2);
    padding: 18px;
}

.profile {
    padding: 18px;
}

.divider {
    height: 1px;
    background: var(--line);
    margin: 14px 0;
}

.avatar {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background-image: url("/img/avatar.png");
    background-size: cover;
    background-position: center 20%;
    background-repeat: no-repeat;
    box-shadow: var(--shadow);
}

.profile__meta {
    margin-top: 12px;
}

.kicker {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--muted);
}

.title {
    margin: 8px 0 6px;
    font-size: 22px;
    letter-spacing: -0.02em;
}

.subtitle {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.chip {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.9);
    color: rgba(15,23,42,.85);
}

/* Nav */
.nav {
    display: grid;
    gap: 8px;
}

.nav__link {
    text-decoration: none;
    color: rgba(15,23,42,.88);
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: rgba(255,255,255,.5);
}

    .nav__link:hover {
        border-color: var(--line);
        background: rgba(79,70,229,.06);
    }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: rgba(15,23,42,.90);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow2);
    }

.btn--primary {
    border: none;
    background: linear-gradient(135deg, rgba(79,70,229,.95), rgba(6,182,212,.85));
    color: #fff;
}

.btn--soft {
    background: rgba(79,70,229,.08);
    border-color: rgba(79,70,229,.18);
    color: rgba(15,23,42,.92);
}

.social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Subscribe */
.subscribe h3 {
    margin: 0 0 8px;
}

.subscribe p {
    margin: 0 0 12px;
    color: var(--muted);
}

.form {
    display: grid;
    gap: 10px;
}

    .form input {
        width: 100%;
        padding: 12px 12px;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: #fff;
        color: var(--text);
        outline: none;
    }

        .form input:focus {
            border-color: rgba(79,70,229,.35);
            box-shadow: 0 0 0 4px rgba(79,70,229,.10);
        }

.fineprint {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(85,98,122,.9);
}

/* Content */
.content {
    display: block;
}

.section {
    margin-bottom: 18px;
}

.section__head {
    margin: 0 0 12px;
    padding: 0 4px;
}

.h2 {
    margin: 6px 0 0;
    font-size: 28px;
    letter-spacing: -0.03em;
}

/* Hero */
.hero__card {
    padding: 18px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 14px;
}

@media (max-width: 980px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }
}

.lead {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.statrow {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stat {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px 12px;
    background: rgba(255,255,255,.7);
    min-width: 140px;
}

.stat__num {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.stat__label {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.mini {
    border-radius: var(--radius);
}

.mini__title {
    font-weight: 800;
    margin-bottom: 10px;
}

.bullet {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.mini__links {
    display: grid;
    gap: 8px;
}

.link {
    color: rgba(79,70,229,.95);
    text-decoration: none;
    font-weight: 700;
}

    .link:hover {
        text-decoration: underline;
    }

/* Grids */
.grid2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

@media (max-width: 980px) {
    .grid2, .grid3 {
        grid-template-columns: 1fr;
    }
}

/* Tags */
.tagrow {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.tag {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.75);
    color: rgba(15,23,42,.85);
}

/* Posts */
.post {
    text-decoration: none;
    color: inherit;
}

.post__kicker {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    letter-spacing: .08em;
}

.post__title {
    margin-top: 8px;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.post__meta {
    margin-top: 10px;
    color: rgba(79,70,229,.95);
    font-weight: 800;
}

/* RSS list */
.list {
    display: grid;
    gap: 10px;
}

.list__item {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    background: rgba(255,255,255,.75);
}

    .list__item:hover {
        background: rgba(79,70,229,.06);
        border-color: rgba(79,70,229,.18);
    }

.list__title {
    font-weight: 900;
}

.list__meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    font-family: var(--mono);
}

.note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    border: 1px dashed rgba(79,70,229,.25);
    background: rgba(79,70,229,.06);
    color: rgba(15,23,42,.82);
}

/* Footer */
.footer {
    padding: 18px 6px 0;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.footer__links {
    display: flex;
    gap: 10px;
}

    .footer__links a {
        color: rgba(79,70,229,.95);
        text-decoration: none;
        font-weight: 800;
    }

        .footer__links a:hover {
            text-decoration: underline;
        }

.muted {
    color: var(--muted);
}

.inline {
    color: rgba(79,70,229,.95);
    font-weight: 800;
    text-decoration: none;
}

    .inline:hover {
        text-decoration: underline;
    }



.contact__form {
    display: grid;
    gap: 14px;
}

.contact__field label {
    display: inline-block;
    margin-bottom: 6px;
    font-weight: 600;
}

.contact__field input,
.contact__field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    /* 👇 visible border */
    border: 1px solid rgba(79,70,229,.25);
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

    /* Hover = slightly clearer */
    .contact__field input:hover,
    .contact__field textarea:hover {
        border: 1px solid rgba(79,70,229,.35);
    }

    /* Focus = matches your button glow */
    .contact__field input:focus,
    .contact__field textarea:focus {
        border: 1px solid rgba(79,70,229,.35);       
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
    }

.contact__field textarea {
    resize: vertical;
    min-height: 140px;
}

.contact__hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact__success {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    margin-bottom: 14px;
}

/* Mobile drawer behaviour */
.nav-toggle,
.nav-backdrop,
.nav-drawer__head {
    display: none;
}

@media (max-width: 980px) {
    /* show ellipsis button */
    .nav-toggle {
        display: inline-flex;
        position: fixed;
        top: 14px;
        right: 14px;
        z-index: 1001;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 14px;
        font-size: 22px;
        line-height: 1;
    }

    /* backdrop behind drawer */
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        opacity: 0;
        pointer-events: none;
        transition: opacity .18s ease;
        z-index: 1000;
    }

    /* drawer itself */
    .nav-drawer {
        position: fixed;
        top: 0;
        left: 0;
        height: 100dvh;
        width: min(420px, 88vw);
        overflow: auto;
        z-index: 1002;
        /* off-canvas */
        transform: translateX(-105%);
        transition: transform .18s ease;
        /* make it look like your cards */
        background: var(--bg);
        padding: 18px;
        border-right: 1px solid var(--line);
    }

    /* show a small header inside drawer */
    .nav-drawer__head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 14px;
    }

    .nav-close {
        padding: 8px 10px;
    }

    /* When open */
    .nav-open .nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-open .nav-drawer {
        transform: translateX(0);
    }

    /* On mobile, shell becomes single column; sidebar is now fixed so content is normal flow */
    .shell {
        grid-template-columns: 1fr;
    }
}

.site-toast {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 2000;
    width: min(420px, calc(100vw - 28px));
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(79,70,229,.22);
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.site-toast__title {
    font-weight: 900;
    letter-spacing: -0.02em;
}

.site-toast__body {
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.4;
}

.site-toast__close {
    position: absolute;
    top: 8px;
    right: 10px;
    text-decoration: none;
    font-weight: 900;
    color: rgba(15,23,42,.55);
    padding: 4px 8px;
    border-radius: 10px;
}

    .site-toast__close:hover {
        background: rgba(79,70,229,.08);
        color: rgba(15,23,42,.85);
    }

.post-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.post-header__image {
    flex: 0 0 40%;
}

    .post-header__image img {
        max-width: 100%;
        height: auto;
    }

.post-header__content {
    flex: 0 0 60%;
}

@media (max-width: 768px) {
    .post-header {
        flex-direction: column;
        text-align: center;
    }

    .post-header__image,
    .post-header__content {
        flex: 0 0 auto;
        width: 100%;
    }
}