: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;
}

html {
    overflow-x: hidden;
}

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

.public-shell {
    position: relative;
    overflow-x: hidden;
    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;
}

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

.experience-item {
    --tone: var(--pink);
    position: relative;
    padding: 1.1rem 1.15rem 1.15rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(130, 141, 180, 0.32);
    background: rgba(255, 255, 255, 0.84);
}

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

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-left: 0.3rem;
}

.experience-title {
    font-size: 1.08rem;
    line-height: 1.25;
    margin: 0;
}

.experience-company {
    color: var(--ink-soft);
    font-weight: 700;
}

.experience-meta {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    flex: 0 0 auto;
    max-width: 100%;
    color: var(--ink-soft);
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: left;
}

.experience-summary {
    max-width: 76ch;
    margin: 0.85rem 0 0;
    padding-left: 0.3rem;
    color: var(--ink-soft);
}

.experience-groups {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(130, 141, 180, 0.22);
}

.experience-group {
    display: grid;
    grid-template-columns: 10.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 0.1rem 0 0.75rem;
    border-bottom: 1px dashed rgba(130, 141, 180, 0.22);
}

.experience-group:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.experience-group-title {
    margin: 0.18rem 0 0;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #596481;
    text-transform: uppercase;
}

.experience-bullets {
    display: grid;
    gap: 0.38rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.45;
}

.experience-bullets li {
    position: relative;
    padding-left: 0.9rem;
}

.experience-bullets li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: var(--tone);
}

.experience-bullets--legacy {
    margin-top: 0.85rem;
    padding-left: 1rem;
    list-style: disc;
}

.experience-bullets--legacy li {
    padding-left: 0;
}

.experience-bullets--legacy li::before {
    content: none;
}

.experience-stack-block {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(130, 141, 180, 0.18);
}

.experience-stack-title {
    margin: 0 0 0.55rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ink);
}

.experience-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.experience-stack li {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.26rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(123, 133, 174, 0.32);
    background: rgba(255, 255, 255, 0.76);
    color: #3e4964;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}
@media (max-width: 767.98px) {
    .experience-header {
        display: grid;
        gap: 0.45rem;
    }

    .experience-group {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}
.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;
    }
}

/* Five base colors, assigned by role. See docs/color-system.md. */
:root {
    --color-primary: #176d62;
    --color-primary-hover: #10544d;
    --color-primary-surface: #c9e9dc;
    --color-secondary: #655082;
    --color-secondary-hover: #4d3868;
    --color-secondary-surface: #ded5f3;
    --color-tertiary: #285c72;
    --color-tertiary-hover: #1c4558;
    --color-tertiary-surface: #cce9f2;
    --color-accent: #71452c;
    --color-accent-surface: #f4d4bd;
    --ink: #1f3438;
    --ink-soft: #54707a;
    --paper: #f6fffb;
    --surface: #ffffff;
    --soft-border: #cde7e4;
    /* Legacy component names resolve to the same semantic palette. */
    --pink: var(--color-accent-surface);
    --cyan: var(--color-tertiary-surface);
    --yellow: var(--color-accent-surface);
    --green: var(--color-primary-surface);
    --orange: var(--color-accent-surface);
    --violet: var(--color-secondary-surface);
    --blue: var(--color-tertiary-surface);
    --mint: #47bda6;
    --deep: #19373d;
}

.public-shell {
    background:
        radial-gradient(circle at 90% 8%, rgba(71, 189, 166, 0.13), transparent 36%),
        linear-gradient(180deg, #f6fffb 0%, #effaf6 100%);
}

.public-shell::before { opacity: 0.1; }

.top-nav {
    background: #1b4849;
    border-bottom: 2px solid rgba(255, 255, 255, 0.23);
}

.flow-hero::before {
    background: radial-gradient(circle, rgba(71, 189, 166, 0.18), transparent);
}

.flow-hero::after {
    background: radial-gradient(circle, rgba(71, 189, 166, 0.12), transparent);
}

.hero-kicker {
    background: var(--color-accent-surface);
    border-color: color-mix(in srgb, var(--color-accent) 35%, var(--color-accent-surface));
    color: var(--color-accent);
}

.hero-tag { border-color: rgba(31, 52, 56, 0.13); }
.hero-tag--pink { background: var(--pink); }
.hero-tag--cyan { background: var(--cyan); }
.hero-tag--yellow { background: var(--yellow); }
.hero-tag--green { background: var(--green); }

.flow-links .btn-outline-primary,
.read-link {
    color: #176d62;
}

.flow-links .btn-outline-primary {
    border-color: rgba(23, 109, 98, 0.5);
}

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

.flow-section::before {
    background: #47bda6;
}

.flow-section:has(.writing-list)::before {
    background: var(--color-secondary);
}

.category-link {
    border-color: rgba(84, 112, 122, 0.24);
    background: rgba(255, 255, 255, 0.92);
}

.category-link:hover {
    box-shadow: 0 10px 20px rgba(31, 52, 56, 0.12);
}

.writing-item {
    --tone: var(--color-secondary);
    border-bottom-color: rgba(84, 112, 122, 0.3);
}

.blog-category-card { --tone: var(--color-tertiary); }

.writing-date,
.mono-label { color: var(--ink-soft); }

.writing-date,
.mono-label {
    display: table;
    max-width: 100%;
    padding: 0.16rem 0.45rem;
    border-radius: 0.3rem;
    color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent-surface) 65%, white);
}

.pill-tag {
    background: rgba(71, 189, 166, 0.16);
    border-color: rgba(29, 119, 107, 0.3);
}

.skill-chip,
.experience-stack li {
    color: var(--color-tertiary);
    background: var(--color-tertiary-surface);
    border-color: color-mix(in srgb, var(--color-secondary-surface) 60%, var(--color-secondary));
}

.tldr-line {
    color: var(--ink);
    border-left-color: var(--color-accent);
    background: var(--color-accent-surface);
}

.color-quote {
    border-left-color: var(--cyan);
    background: rgba(71, 189, 166, 0.12);
}

.comment-card--pink,
.comment-card--cyan {
    border-color: rgba(29, 119, 107, 0.32);
    background: rgba(71, 189, 166, 0.1);
}

.demo-form .form-control:focus {
    border-color: #47bda6;
    box-shadow: 0 0 0 0.2rem rgba(71, 189, 166, 0.2);
}

.public-shell .btn-primary {
    background: #176d62;
    border-color: #176d62;
}

.public-shell .btn-primary:disabled {
    background: #8dbbb1;
    border-color: #8dbbb1;
}

.markdown-body pre {
    background: #17363d;
    border-color: rgba(71, 189, 166, 0.38);
}

.site-footer {
    background: #1b4849;
}

.footer-copy { color: #d4e8e9; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: .65rem 1.4rem; }
.footer-legal-links a { color: #d4e8e9; font-size: .9rem; padding-block: .5rem; text-underline-offset: .2em; }
.footer-legal-links a:is(:hover, :focus-visible) { color: #fff; }
.footer-legal-links a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.top-nav .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    padding: 0.45rem;
    background: #1b4849;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
}

.top-nav .dropdown-item {
    border-radius: 6px;
    color: rgba(248, 250, 252, 0.88);
    font-weight: 500;
}

.top-nav .dropdown-item:hover,
.top-nav .dropdown-item:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.top-nav .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.18);
}

.timeline-list {
    display: grid;
    gap: 1.25rem;
    position: relative;
    margin-left: 0.35rem;
    padding-left: 1.35rem;
}

.timeline-list::before {
    content: "";
    position: absolute;
    top: 0.4rem;
    bottom: 0.4rem;
    left: 0.36rem;
    width: 2px;
    border-radius: 999px;
    background: var(--cyan);
}

.timeline-list--compact {
    gap: 0.9rem;
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    position: absolute;
    top: 1.15rem;
    left: -1.35rem;
    width: 0.75rem;
    height: 0.75rem;
    border: 2px solid var(--surface);
    border-radius: 50%;
    background: var(--tone, var(--cyan));
    box-shadow: 0 0 0 4px rgba(23, 32, 59, 0.08);
}

.timeline-card {
    border: 1px solid var(--soft-border);
    border-left: 4px solid var(--tone, var(--cyan));
    border-radius: 8px;
    padding: 1.1rem;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.compact-stack {
    margin: 0;
}

.tone-green { --tone: var(--green); }

.vertical-timeline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    margin-top: 1.6rem;
}

.vertical-timeline-item {
    min-width: 0;
}

.vertical-timeline-content {
    min-width: 0;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid color-mix(in srgb, var(--tone, var(--cyan)) 28%, var(--soft-border));
}

.timeline-kind {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.timeline-kind {
    color: var(--ink-soft);
}

.vertical-timeline-title {
    color: var(--ink);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    line-height: 1.12;
}

@media (max-width: 768px) {
    .vertical-timeline-title {
        font-size: 1.08rem;
    }
}

.interactive-timeline {
    overflow-x: auto;
    padding: 0.5rem 0.2rem 1rem;
}

.timeline-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
    position: relative;
    min-width: min-content;
    padding-top: 1.65rem;
}

.timeline-track::before {
    content: "";
    position: absolute;
    top: 2.2rem;
    right: 0.75rem;
    left: 0.75rem;
    height: 4px;
    border-radius: 999px;
    background: var(--cyan);
}

.timeline-node {
    position: relative;
    z-index: 1;
}

.timeline-node::before {
    content: "";
    position: absolute;
    top: 0.28rem;
    left: 1rem;
    width: 1.1rem;
    height: 1.1rem;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: var(--tone, var(--cyan));
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone, var(--cyan)) 18%, transparent);
}

.timeline-trigger {
    display: grid;
    gap: 0.35rem;
    width: 100%;
    min-height: 8.5rem;
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--tone, var(--cyan)) 38%, var(--soft-border));
    border-top: 5px solid var(--tone, var(--cyan));
    border-radius: 8px;
    background: color-mix(in srgb, var(--tone, var(--cyan)) 10%, var(--surface));
    color: var(--ink);
    text-align: left;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.08);
}

.timeline-trigger:hover,
.timeline-trigger:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.12);
}

.timeline-trigger-date {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
}

.timeline-trigger-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.15;
}

.timeline-trigger-subtitle {
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.25;
}

.timeline-detail {
    display: none;
    margin-top: 0.8rem;
    padding: 1rem;
    border: 1px solid var(--soft-border);
    border-left: 4px solid var(--tone, var(--cyan));
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.1);
}

.timeline-node:hover .timeline-detail,
.timeline-node:focus-within .timeline-detail,
.timeline-node.is-active .timeline-detail {
    display: block;
}

.timeline-node.is-active .timeline-trigger {
    background: color-mix(in srgb, var(--tone, var(--cyan)) 16%, var(--surface));
}

@media (max-width: 768px) {
    .interactive-timeline {
        overflow-x: visible;
    }

    .timeline-track {
        grid-template-columns: 1fr;
        gap: 1.1rem;
        padding-top: 0;
        padding-left: 1.3rem;
    }

    .timeline-track::before {
        top: 0.4rem;
        bottom: 0.4rem;
        left: 0.5rem;
        width: 4px;
        height: auto;
        background: var(--cyan);
    }

    .timeline-node::before {
        top: 1.35rem;
        left: -1.3rem;
    }

    .timeline-trigger {
        min-height: auto;
        margin-top: 0;
    }
}

.timeline-list {
    gap: 1.4rem;
    margin-left: 0;
    padding-left: 0;
}

.timeline-list::before {
    left: calc(12rem + 0.85rem + 0.675rem);
    width: 3px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 12rem 1.35rem minmax(0, 1fr);
    column-gap: 0.85rem;
    align-items: start;
}

.timeline-date {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    margin: 0;
    padding: 0.8rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--tone, var(--cyan)) 45%, var(--soft-border));
    border-right: 4px solid var(--tone, var(--cyan));
    border-radius: 8px;
    background: color-mix(in srgb, var(--tone, var(--cyan)) 14%, var(--surface));
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.07);
    text-align: right;
}

.timeline-date-label {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.timeline-date-value {
    color: var(--ink);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
}

.timeline-marker {
    position: static;
    justify-self: center;
    margin-top: 0.95rem;
}

.timeline-card {
    min-width: 0;
}

@media (max-width: 768px) {
    .timeline-list {
        gap: 1.1rem;
    }

    .timeline-list::before {
        left: 0.675rem;
    }

    .timeline-item {
        grid-template-columns: 1.35rem minmax(0, 1fr);
        column-gap: 0.75rem;
        row-gap: 0.55rem;
    }

    .timeline-date {
        grid-column: 2;
        align-items: flex-start;
        padding: 0.7rem 0.8rem;
        border-right-width: 1px;
        border-left: 4px solid var(--tone, var(--cyan));
        text-align: left;
    }

    .timeline-marker {
        grid-column: 1;
        grid-row: 2;
    }

    .timeline-card {
        grid-column: 2;
        grid-row: 2;
    }
}

/* Main navigation is green. Editorial and taxonomy links have distinct roles. */
.public-shell main a:not(.btn) {
    color: var(--color-primary);
}

.public-shell main a:not(.btn):hover {
    color: var(--color-primary-hover);
}

.public-shell main .writing-item :is(h3, h4) a,
.public-shell main a.read-link,
.public-shell main .markdown-body a {
    color: var(--color-secondary);
    text-underline-offset: 0.2em;
}

.public-shell main .writing-item :is(h3, h4) a {
    box-shadow: inset 0 -0.22em 0 var(--color-secondary-surface);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.public-shell main a.read-link {
    display: inline-block;
    padding: 0.22rem 0.55rem;
    border: 1px solid color-mix(in srgb, var(--color-secondary-surface) 70%, var(--color-secondary));
    border-radius: 0.35rem;
    background: var(--color-secondary-surface);
    text-decoration: underline;
}

.public-shell main .writing-item :is(h3, h4) a:is(:hover, :focus-visible),
.public-shell main a.read-link:is(:hover, :focus-visible),
.public-shell main .markdown-body a:is(:hover, :focus-visible) {
    color: var(--color-secondary-hover);
    background: var(--color-secondary-surface);
}

.public-shell .btn-primary,
.public-shell .btn-success {
    --button-pastel: var(--color-primary-surface);
    --button-ink: var(--color-primary);
    --button-hover-ink: var(--color-primary-hover);
}
.public-shell .btn-outline-primary,
.public-shell .btn-dark,
.public-shell .btn-outline-dark {
    --button-pastel: var(--color-secondary-surface);
    --button-ink: var(--color-secondary);
    --button-hover-ink: var(--color-secondary-hover);
}
.public-shell .blog-category-action {
    --button-pastel: var(--color-tertiary-surface);
    --button-ink: var(--color-tertiary);
    --button-hover-ink: var(--color-tertiary-hover);
}

.public-shell .btn-primary,
.public-shell .btn-success,
.public-shell .btn-dark,
.public-shell .btn-outline-primary,
.public-shell .btn-outline-dark,
.public-shell .blog-category-action {
    --bs-btn-color: var(--button-ink);
    --bs-btn-hover-color: var(--button-ink);
    --bs-btn-active-color: var(--button-ink);
    --bs-btn-disabled-color: var(--button-ink);
    --bs-btn-disabled-bg: var(--button-pastel);
    --bs-btn-disabled-border-color: var(--button-pastel);
    color: var(--button-ink);
    border: 1px solid color-mix(in srgb, var(--button-pastel) 55%, var(--ink-soft));
    background: var(--button-pastel);
    transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.public-shell :is(.btn-primary, .btn-success, .btn-dark, .btn-outline-primary, .btn-outline-dark, .blog-category-action):is(:hover, :focus-visible) {
    color: var(--button-hover-ink);
    border-color: var(--ink-soft);
    background: color-mix(in srgb, var(--button-pastel) 92%, var(--button-ink));
}

.public-shell :is(.btn-primary, .btn-success, .btn-dark, .btn-outline-primary, .btn-outline-dark, .blog-category-action):is(:active, .active) {
    color: var(--button-hover-ink);
    border-color: var(--ink-soft);
    background: color-mix(in srgb, var(--button-pastel) 86%, var(--button-ink));
}

.public-shell .btn-primary:disabled {
    background: var(--button-pastel);
    border-color: var(--button-pastel);
}

.public-shell .btn:focus-visible,
.public-shell main a:focus-visible {
    outline: 2px solid #176d62;
    outline-offset: 3px;
    box-shadow: 0 0 0 0.2rem rgba(71, 189, 166, 0.2);
}

.top-nav .btn:focus-visible {
    outline-color: var(--yellow);
}

.article-shell::before {
    background: radial-gradient(circle, rgba(71, 189, 166, 0.14), transparent);
}

/* Content titles lead in lavender; short supporting descriptions use peach. */
.content-heading,
.profile-section .vertical-timeline-title {
    color: var(--color-secondary);
}

.context-description {
    padding: 0.8rem 1rem;
    border-left: 3px solid var(--color-accent-surface);
    border-radius: 0.4rem;
    background: color-mix(in srgb, var(--color-accent-surface) 42%, white);
    color: var(--ink);
    font-weight: 400;
    line-height: 1.75;
}

.profile-section {
    --tone: var(--color-secondary);
}

.profile-section .experience-company {
    display: table;
    max-width: 100%;
    padding: 0.15rem 0.45rem;
    border-radius: 0.3rem;
    color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent-surface) 65%, white);
}

.profile-section::before { background: var(--tone); }

.profile-section .experience-groups,
.profile-section .experience-group,
.profile-section .experience-stack-block {
    border-color: var(--color-secondary-surface);
}

.profile-section .experience-group-title {
    color: var(--color-secondary);
    line-height: 1.6;
}

.profile-section .experience-bullets {
    line-height: 1.7;
}
