/* ==========================================================================
   Content pages: about, article index and article detail
   Loaded by index.html for the writing card grid as well.
   ========================================================================== */

:root {
    --page-bg: #04070d;
    --page-panel: rgba(10, 19, 31, .78);
    --page-line: rgba(120, 200, 255, .16);
    --page-text: #dbe7f5;
    --page-muted: #8fa6c0;
    --page-cyan: #22d3ee;
    --page-violet: #8b5cf6;
}

body.content-page {
    margin: 0;
    background: var(--page-bg);
    color: var(--page-text);
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.content-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 10% -8%, rgba(34, 211, 238, .10), transparent 62%),
        radial-gradient(820px 500px at 90% 2%, rgba(139, 92, 246, .12), transparent 64%),
        linear-gradient(rgba(120, 200, 255, .032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 200, 255, .032) 1px, transparent 1px);
    background-size: auto, auto, 54px 54px, 54px 54px;
}

body.content-page a {
    color: var(--page-cyan);
    text-decoration: none;
}

body.content-page a:hover,
body.content-page a:focus {
    color: #7ee7f7;
}

.inner-wrap {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

/* Header */
.inner-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(4, 7, 13, .76);
    border-bottom: 1px solid var(--page-line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.inner-header .inner-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 64px;
}

.inner-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
}

.inner-brand span {
    color: var(--page-cyan);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.inner-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
}

.inner-nav a {
    position: relative;
    padding: 5px 1px;
    color: var(--page-muted);
    transition: color .2s ease;
}

.inner-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--page-cyan), var(--page-violet));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.inner-nav a:hover::after,
.inner-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.inner-nav a:hover,
.inner-nav a[aria-current="page"] {
    color: var(--page-cyan);
}

/* Main */
.inner-main {
    position: relative;
    z-index: 1;
    padding: 40px 0 84px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: #6f86a1;
    font-size: 12px;
    letter-spacing: .02em;
}

.breadcrumb a {
    color: #8fa6c0;
}

.breadcrumb span {
    color: #4f647c;
}

/* Page hero */
.page-hero {
    padding: 8px 0 36px;
}

.page-eyebrow {
    margin: 0 0 10px;
    color: var(--page-cyan);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.page-hero h1 {
    margin: .18em 0 .28em;
    color: #fff;
    font-size: clamp(32px, 5.4vw, 52px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.01em;
}

.page-hero h1 em {
    color: var(--page-cyan);
    font-style: normal;
}

.page-lead {
    max-width: 780px;
    margin: 0;
    color: #aabdd2;
    font-size: 17px;
    line-height: 1.9;
}

.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 22px;
    color: #7f95ad;
    font-size: 13px;
}

.page-meta b {
    color: #c8d8ea;
    font-weight: 600;
}

/* About hero */
.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, .55fr);
    gap: 42px;
    align-items: end;
    padding-bottom: 40px;
}

.about-facts {
    padding: 6px 0 0;
}

.fact {
    padding: 14px 0;
    border-top: 1px solid var(--page-line);
}

.fact small {
    display: block;
    margin-bottom: 3px;
    color: #6f86a1;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.fact strong {
    color: #e8f2ff;
    font-size: 15px;
    font-weight: 600;
}

/* Sections */
.section-block {
    margin: 48px 0 0;
}

.section-block > h2,
.article h2 {
    position: relative;
    margin: 0 0 1em;
    padding-left: 14px;
    color: #fff;
    font-size: clamp(21px, 2.6vw, 26px);
    line-height: 1.35;
}

.section-block > h2::before,
.article h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .16em;
    bottom: .16em;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--page-cyan), var(--page-violet));
}

.about-prose {
    max-width: 880px;
}

.about-prose p {
    margin: 0 0 1.1em;
    color: #c3d3e6;
}

.about-prose strong {
    color: #fff;
}

.about-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.about-card,
.content-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid var(--page-line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(12, 23, 37, .82), rgba(6, 12, 20, .9));
}

.about-card h3,
.content-card h2,
.content-card h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1.45;
}

.about-card p,
.content-card p {
    margin: 0;
    color: #93a9c0;
    font-size: 14px;
}

/* Timeline */
.timeline {
    margin: 0;
    padding: 0 0 0 24px;
    list-style: none;
    border-left: 1px solid var(--page-line);
}

.timeline li {
    position: relative;
    padding: 0 0 26px 6px;
}

.timeline li:last-child {
    padding-bottom: 0;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -29px;
    top: .55em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--page-cyan);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .12), 0 0 18px rgba(34, 211, 238, .5);
}

.timeline time {
    display: block;
    margin-bottom: 2px;
    color: var(--page-cyan);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    letter-spacing: .12em;
}

.timeline h3 {
    margin: 0 0 4px;
    color: #eef6ff;
    font-size: 16px;
    font-weight: 600;
}

.timeline p {
    margin: 0;
    color: #93a9c0;
    font-size: 14px;
}

/* Tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tag-cloud span,
.tags span {
    display: inline-block;
    padding: 4px 11px;
    border: 1px solid var(--page-line);
    border-radius: 999px;
    background: rgba(34, 211, 238, .05);
    color: #9ab2ca;
    font-size: 12px;
    line-height: 1.6;
}

.tag-group {
    margin-bottom: 18px;
}

.tag-group h3 {
    margin: 0 0 8px;
    color: #c8d8ea;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
}

/* FAQ */
.faq details {
    margin-bottom: 12px;
    padding: 16px 20px;
    border: 1px solid var(--page-line);
    border-radius: 12px;
    background: rgba(10, 19, 31, .6);
}

.faq summary {
    color: #eef6ff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.faq summary::marker {
    color: var(--page-cyan);
}

.faq p {
    margin: 10px 0 0;
    color: #a8bbd0;
    font-size: 14px;
}

/* CTA */
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 52px;
    padding: 28px 30px;
    border: 1px solid var(--page-line);
    border-radius: 16px;
    background:
        radial-gradient(420px 180px at 0% 0%, rgba(34, 211, 238, .12), transparent 70%),
        radial-gradient(420px 200px at 100% 100%, rgba(139, 92, 246, .14), transparent 70%),
        rgba(10, 19, 31, .72);
}

.cta-band h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
}

.cta-band p {
    margin: 6px 0 0;
    color: #93a9c0;
    font-size: 14px;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: none;
}

.btn-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border: 1px solid rgba(34, 211, 238, .45);
    border-radius: 999px;
    background: rgba(34, 211, 238, .08);
    color: #9ceaf7 !important;
    font-size: 14px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-neon:hover {
    background: rgba(34, 211, 238, .18);
    border-color: rgba(34, 211, 238, .8);
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: var(--page-line);
    background: transparent;
    color: #b9cbe0 !important;
}

.btn-ghost:hover {
    background: rgba(120, 200, 255, .06);
    border-color: rgba(120, 200, 255, .4);
}

/* Article list */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.content-card {
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, .45);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .35), 0 0 30px rgba(34, 211, 238, .07);
}

.content-card__tag {
    color: var(--page-cyan);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.content-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(120, 200, 255, .1);
    color: #6f86a1;
    font-size: 12px;
}

/* Article detail */
.article-shell {
    max-width: 860px;
    margin: 0 auto;
}

.article {
    padding: clamp(24px, 4vw, 52px);
    border: 1px solid var(--page-line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(12, 23, 37, .92), rgba(6, 12, 20, .95));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.article h1 {
    margin: .18em 0 .35em;
    color: #fff;
    font-size: clamp(27px, 4.2vw, 40px);
    line-height: 1.28;
    letter-spacing: -.01em;
}

.article-lead {
    margin: 0 0 28px;
    padding-left: 16px;
    border-left: 3px solid var(--page-cyan);
    color: #b7c9dc;
    font-size: 17px;
    line-height: 1.85;
}

.article h2 {
    margin-top: 2.1em;
    margin-bottom: .7em;
}

.article h3 {
    margin: 1.8em 0 .5em;
    color: #e8f2ff;
    font-size: 18px;
    line-height: 1.5;
}

.article p {
    margin: 0 0 1.1em;
    color: #c3d3e6;
}

.article ul,
.article ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
    color: #c3d3e6;
}

.article li {
    margin: .4em 0;
}

.article li::marker {
    color: var(--page-cyan);
}

.article strong {
    color: #fff;
}

.article code {
    padding: .1em .4em;
    border: 1px solid rgba(34, 211, 238, .18);
    border-radius: 5px;
    background: rgba(34, 211, 238, .1);
    color: #9ceaf7;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
}

.article pre {
    margin: 1.2em 0 1.5em;
    padding: 16px 18px;
    overflow: auto;
    border: 1px solid var(--page-line);
    border-radius: 10px;
    background: #02060c;
    font-size: 13px;
    line-height: 1.7;
}

.article pre code {
    padding: 0;
    border: 0;
    background: none;
    color: #b9cbe0;
    font-size: inherit;
}

.article blockquote {
    margin: 1.6em 0;
    padding: 16px 20px;
    border-left: 3px solid var(--page-violet);
    border-radius: 0 10px 10px 0;
    background: rgba(139, 92, 246, .08);
    color: #cdd9ea;
}

.article blockquote p:last-child {
    margin-bottom: 0;
}

.article table {
    width: 100%;
    margin: 1.2em 0 1.6em;
    border-collapse: collapse;
    font-size: 14px;
}

.article th,
.article td {
    padding: 10px 12px;
    border: 1px solid var(--page-line);
    text-align: left;
    vertical-align: top;
}

.article th {
    background: rgba(34, 211, 238, .07);
    color: #fff;
    font-weight: 600;
}

.article td {
    color: #b7c9dc;
}

.byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 26px;
    padding: 14px 0 22px;
    border-bottom: 1px solid var(--page-line);
    color: #7f95ad;
    font-size: 13px;
}

.byline a {
    color: #b9cbe0;
}

.byline .dot {
    color: #465a72;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.author-box {
    display: flex;
    gap: 16px;
    margin-top: 34px;
    padding: 20px;
    border: 1px solid var(--page-line);
    border-radius: 14px;
    background: rgba(10, 19, 31, .6);
}

.author-avatar {
    display: grid;
    place-items: center;
    flex: none;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(34, 211, 238, .35);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, rgba(34, 211, 238, .3), rgba(139, 92, 246, .22));
    color: #fff;
    font-size: 21px;
    font-weight: 700;
}

.author-box h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 16px;
}

.author-box p {
    margin: 0;
    color: #8fa6c0;
    font-size: 13px;
    line-height: 1.7;
}

/* Footer */
.inner-footer {
    position: relative;
    z-index: 1;
    padding: 26px 0 34px;
    border-top: 1px solid var(--page-line);
    color: #6f86a1;
    font-size: 13px;
}

.inner-footer .inner-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 22px;
}

.inner-footer a {
    color: #8fa6c0;
}

.inner-footer a:hover {
    color: var(--page-cyan);
}

/* Homepage writing cards */
.tech-articles {
    position: relative;
    padding: 86px 0;
    background: linear-gradient(180deg, rgba(4, 7, 13, .2), rgba(8, 14, 24, .72));
}

.tech-articles__lead {
    max-width: 660px;
    margin: -.4em auto 2.6em;
    color: #8fa6c0;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
}

.tech-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.tech-article-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--page-line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(12, 23, 37, .82), rgba(6, 12, 20, .9));
    color: var(--page-text) !important;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.tech-article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, .45);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .35), 0 0 30px rgba(34, 211, 238, .07);
}

.tech-article-card__tag {
    color: var(--page-cyan);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.tech-article-card h4 {
    margin: 8px 0 8px;
    color: #fff;
    font-size: 18px;
    line-height: 1.55;
}

.tech-article-card p {
    margin: 0 0 1.2em;
    color: #93a9c0;
    font-size: 14px;
    line-height: 1.75;
}

.tech-article-card__more {
    margin-top: auto;
    color: var(--page-cyan);
    font-size: 13px;
    letter-spacing: .04em;
}

.tech-articles__all {
    margin-top: 34px;
    text-align: center;
}

.tech-articles__all a {
    display: inline-block;
    padding: 9px 22px;
    border: 1px solid rgba(34, 211, 238, .35);
    border-radius: 999px;
    color: #9ceaf7;
    font-size: 14px;
    transition: background .2s ease, border-color .2s ease;
}

.tech-articles__all a:hover {
    background: rgba(34, 211, 238, .1);
    border-color: rgba(34, 211, 238, .7);
}

/* Responsive */
@media (max-width: 991px) {
    .content-grid,
    .tech-articles__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }
}

@media (max-width: 767px) {
    .inner-wrap {
        width: calc(100% - 30px);
    }

    .inner-header .inner-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 11px 0;
    }

    .inner-nav {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        font-size: 12.5px;
    }

    .inner-main {
        padding: 26px 0 64px;
    }

    .page-hero h1 {
        font-size: 31px;
    }

    .page-lead {
        font-size: 15px;
    }

    .about-card-grid,
    .content-grid,
    .tech-articles__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .article {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .article-lead {
        font-size: 15px;
    }

    .article table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }

    .tech-articles {
        padding: 64px 0;
    }
}

@media (max-width: 390px) {
    .inner-brand span {
        display: none;
    }

    .inner-nav {
        font-size: 12px;
    }
}
