:root {
    --ink: #17203b;
    --ink-soft: #4a5370;
    --paper: #fff9ef;
    --surface: #ffffff;
    --soft-border: #d8def2;
    --pink: #ff5ca8;
    --cyan: #2cc8ff;
    --yellow: #ffcc4d;
    --green: #4ddf98;
    --orange: #ff8c4b;
    --violet: #7b61ff;
    --blue: #4f7dff;
    --deep: #151a3a;
}

body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--ink);
}

.public-shell {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 92, 168, 0.28), transparent 34%),
        radial-gradient(circle at 96% 10%, rgba(44, 200, 255, 0.26), transparent 32%),
        radial-gradient(circle at 74% 48%, rgba(123, 97, 255, 0.12), transparent 40%),
        radial-gradient(circle at 22% 86%, rgba(255, 204, 77, 0.2), transparent 34%),
        linear-gradient(180deg, #fff9ef 0%, #fbf7ff 46%, #f5f8ff 100%);
}

.public-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.14;
    background-image: linear-gradient(rgba(23, 32, 59, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 32, 59, 0.08) 1px, transparent 1px);
    background-size: 26px 26px;
    z-index: 0;
}

.public-shell > * {
    position: relative;
    z-index: 1;
}

.public-shell .container {
    max-width: 940px;
}

.top-nav {
    background: linear-gradient(100deg, #1b2248 0%, #2f2b73 42%, #183a73 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(8px);
}

.brand-mark {
    font-family: "IBM Plex Mono", monospace;
    letter-spacing: 0.04em;
}

.top-nav .nav-link {
    color: rgba(248, 250, 252, 0.88);
    font-weight: 500;
}

.top-nav .nav-link:hover,
.top-nav .nav-link:focus {
    color: #ffffff;
}

.nav-admin-btn {
    border-color: rgba(255, 255, 255, 0.45);
}

.nav-admin-btn:hover {
    border-color: #ffffff;
}

.flow-hero {
    position: relative;
    padding: 0.8rem 0 0.4rem;
}

.flow-hero::before,
.flow-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
    border-radius: 999px;
}

.flow-hero::before {
    width: 280px;
    height: 280px;
    top: -60px;
    left: -120px;
    background: radial-gradient(circle, rgba(255, 92, 168, 0.34), rgba(255, 92, 168, 0));
}

.flow-hero::after {
    width: 280px;
    height: 280px;
    right: -140px;
    top: -70px;
    background: radial-gradient(circle, rgba(44, 200, 255, 0.33), rgba(44, 200, 255, 0));
}

.flow-hero--compact {
    padding-top: 0.4rem;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    background: rgba(123, 97, 255, 0.12);
    border: 1px solid rgba(123, 97, 255, 0.3);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2e2f76;
}

.flow-hero-title {
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.08;
    max-width: 16ch;
}

.flow-hero-title--compact {
    max-width: none;
    font-size: clamp(2rem, 5vw, 3rem);
}

.flow-hero-lead {
    max-width: 68ch;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--ink-soft);
}

.flow-links .btn-outline-primary {
    color: #3a3f98;
    border-color: rgba(58, 63, 152, 0.5);
}

.flow-links .btn-outline-primary:hover {
    background: #3a3f98;
    border-color: #3a3f98;
}

.hero-tags {
    margin-top: 0.2rem;
}

.hero-tag {
    display: inline-flex;
    padding: 0.24rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(23, 32, 59, 0.13);
    font-size: 0.74rem;
    font-weight: 700;
}

.hero-tag--pink { background: rgba(255, 92, 168, 0.2); }
.hero-tag--cyan { background: rgba(44, 200, 255, 0.2); }
.hero-tag--yellow { background: rgba(255, 204, 77, 0.24); }
.hero-tag--green { background: rgba(77, 223, 152, 0.23); }

.flow-section {
    position: relative;
    padding-top: 0.6rem;
}

.flow-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(100deg, var(--pink) 0%, var(--violet) 50%, var(--cyan) 100%);
}

.section-intro {
    color: var(--ink-soft);
    max-width: 64ch;
}

.mono-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.75rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #4f5878;
}

.category-rail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.category-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    padding: 0.5rem 0.9rem 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(79, 88, 120, 0.24);
    background: rgba(255, 255, 255, 0.78);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-link::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: var(--tone, var(--pink));
}

.category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(32, 37, 76, 0.12);
}

.writing-list {
    margin: 0;
    padding: 0;
}

.writing-item {
    --tone: var(--pink);
    position: relative;
    padding: 1rem 0 1.2rem 1.2rem;
    border-bottom: 1px dashed rgba(95, 104, 140, 0.35);
}

.writing-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.45rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--tone);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tone) 22%, transparent);
}

.writing-item:last-child {
    border-bottom: 0;
}

.writing-date {
    margin: 0 0 0.4rem;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.76rem;
    color: #5d6788;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.writing-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    background: rgba(123, 97, 255, 0.11);
    border: 1px solid rgba(123, 97, 255, 0.24);
    font-size: 0.72rem;
    font-weight: 700;
}

.read-link {
    text-decoration: none;
    font-weight: 700;
    color: #3a3f98;
}

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

.writing-list--numbered .writing-item {
    padding-left: 3.2rem;
}

.writing-list--numbered .writing-item::before {
    width: 0.5rem;
    height: 0.5rem;
    left: 1.55rem;
}

.writing-index {
    position: absolute;
    left: 0;
    top: 0.9rem;
    width: 2rem;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 700;
    color: #5d6788;
}

.experience-stream {
    display: grid;
    gap: 0.9rem;
}

.experience-item {
    --tone: var(--pink);
    position: relative;
    padding: 0.9rem 1rem 0.95rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(130, 141, 180, 0.35);
    background: rgba(255, 255, 255, 0.8);
}

.experience-item::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    border-radius: 0.8rem 0 0 0.8rem;
    background: var(--tone);
}

.skill-ribbon {
    margin-top: 0.3rem;
}

.skill-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.66rem;
    border: 1px solid rgba(123, 133, 174, 0.34);
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.82);
}

.skill-chip--pink { background: rgba(255, 92, 168, 0.16); border-color: rgba(255, 92, 168, 0.45); }
.skill-chip--cyan { background: rgba(44, 200, 255, 0.16); border-color: rgba(44, 200, 255, 0.5); }
.skill-chip--yellow { background: rgba(255, 204, 77, 0.22); border-color: rgba(255, 204, 77, 0.55); }
.skill-chip--green { background: rgba(77, 223, 152, 0.2); border-color: rgba(77, 223, 152, 0.5); }
.skill-chip--blue { background: rgba(79, 125, 255, 0.16); border-color: rgba(79, 125, 255, 0.48); }
.skill-chip--orange { background: rgba(255, 140, 75, 0.18); border-color: rgba(255, 140, 75, 0.48); }
.skill-chip--violet { background: rgba(123, 97, 255, 0.16); border-color: rgba(123, 97, 255, 0.46); }

.article-shell {
    position: relative;
    padding-top: 0.5rem;
}

.article-shell::before {
    content: "";
    position: absolute;
    right: -90px;
    top: -14px;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.16), rgba(123, 97, 255, 0));
    pointer-events: none;
    z-index: -1;
}

.article-subtitle {
    max-width: 68ch;
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.tldr-line {
    max-width: 70ch;
    padding: 0.7rem 0.9rem;
    border-left: 4px solid var(--violet);
    background: rgba(123, 97, 255, 0.12);
    border-radius: 0.45rem;
}

.color-quote {
    margin: 1rem 0;
    padding: 0.8rem 1rem;
    border-left: 4px solid var(--pink);
    background: rgba(255, 92, 168, 0.1);
    border-radius: 0.4rem;
}

.comments-stream {
    padding-top: 1rem;
}

.comment-card {
    border: 1px solid var(--soft-border);
    border-radius: 0.8rem;
    background: #ffffff;
}

.comment-card--pink {
    border-color: rgba(255, 92, 168, 0.42);
    background: rgba(255, 92, 168, 0.08);
}

.comment-card--cyan {
    border-color: rgba(44, 200, 255, 0.46);
    background: rgba(44, 200, 255, 0.09);
}

.demo-form .form-control {
    border-color: #cfd7ee;
    background: #ffffff;
}

.demo-form .form-control:focus {
    border-color: #8f7bff;
    box-shadow: 0 0 0 0.2rem rgba(123, 97, 255, 0.18);
}

.public-shell .btn-primary {
    border: none;
    background: linear-gradient(105deg, #ff5ca8 0%, #7b61ff 56%, #2cc8ff 100%);
}

.public-shell .btn-primary:disabled {
    background: linear-gradient(105deg, #e39ec0 0%, #aaa0e8 56%, #93d9eb 100%);
}

.markdown-body pre {
    padding: 1rem;
    border-radius: 0.7rem;
    overflow-x: auto;
    background: #0f1630;
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.markdown-body code {
    font-family: "IBM Plex Mono", "Consolas", monospace;
}

.markdown-body p,
.markdown-body li {
    line-height: 1.76;
}

.markdown-body h2,
.markdown-body h3 {
    margin-top: 1.6rem;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(110deg, #141a3b 0%, #23295c 55%, #173e66 100%);
    color: #e2e8f0;
}

.footer-copy {
    color: #cdd5ef;
}

.newsletter-inline .form-control {
    min-width: 230px;
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.96);
}

.tone-backend { --tone: var(--cyan); }
.tone-architecture { --tone: var(--violet); }
.tone-devops { --tone: var(--orange); }
.tone-learning { --tone: var(--green); }
.tone-pink { --tone: var(--pink); }
.tone-cyan { --tone: var(--cyan); }
.tone-yellow { --tone: var(--yellow); }

.admin-shell {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

@media (max-width: 768px) {
    .flow-hero-title {
        max-width: none;
    }

    .newsletter-inline .form-control {
        min-width: 180px;
    }
}
