:root {
    --ink: #0f172a;
    --muted: #475569;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --warm: #fff6f0;
    --brand: #ff9966;
    --brand-dark: #b84414;
    --brand-hover: #e98554;
    --gold: #ffe161;
    --navy: #060c1a;
    --navy-raised: #1e293b;
    --page: #ffffff;
    --footer: #232323;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: "Jost", sans-serif;
    -webkit-font-smoothing: antialiased;
}

main {
    font-family: "Jost", sans-serif;
}

a {
    color: inherit;
}

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

.article-site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: #000;
}

.page-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.article-header-inner {
    width: min(1120px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.article-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.article-brand img {
    width: 152px;
    height: auto;
}

.journal-brand {
    gap: 14px;
    color: #fff;
}

.journal-brand span {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.24);
}

.journal-brand strong {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.article-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-family: "Jost", sans-serif;
    font-size: 0.95rem;
}

.article-nav a {
    text-decoration: none;
}

.article-back {
    color: rgba(255, 255, 255, 0.76);
}

.article-back:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-contact {
    padding: 0.65rem 1.15rem;
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
}

.article-contact:hover {
    background: #fff;
    color: var(--navy);
}

.section-label,
.article-kicker {
    margin: 0 0 12px;
    color: var(--brand-dark);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

#menu1-home .nav-link,
#menu1-home .dropdown-item {
    white-space: nowrap;
}

.journal-introduction {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 5.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background-color: var(--navy);
    background-image:
        linear-gradient(rgba(6, 12, 26, 0.78), rgba(6, 12, 26, 0.9)),
        url("/assets/images/blog/tech-talks-journal-bg.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}

.journal-introduction::before {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 153, 102, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    content: "";
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.75), transparent 70%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.75), transparent 70%);
}

.journal-introduction::after {
    position: absolute;
    right: max(20px, calc((100vw - 1120px) / 2 - 30px));
    bottom: -0.32em;
    color: rgba(255, 255, 255, 0.025);
    content: "TT";
    font-family: "Jost", sans-serif;
    font-size: clamp(15rem, 26vw, 24rem);
    font-weight: 900;
    letter-spacing: -0.12em;
    line-height: 0.72;
    pointer-events: none;
}

.journal-introduction .page-shell {
    position: relative;
    z-index: 1;
}

.journal-introduction-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.journal-introduction .section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    color: var(--gold);
}

.journal-introduction .section-label::before {
    width: 28px;
    height: 1px;
    flex: 0 0 auto;
    background: var(--gold);
    content: "";
}

.journal-introduction-kicker > span {
    color: rgba(248, 250, 252, 0.42);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.journal-introduction-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    align-items: start;
    gap: clamp(3rem, 8vw, 7rem);
}

.journal-introduction h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(3rem, 5.4vw, 4.85rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.journal-introduction h1 span {
    display: block;
    margin-top: 0.08em;
    color: var(--brand);
    font-weight: 200;
}

.journal-introduction-copy {
    padding-left: 1.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.journal-introduction-copy > p {
    margin: 0;
    color: rgba(248, 250, 252, 0.76);
    font-size: 1.05rem;
    line-height: 1.68;
}

.journal-introduction-copy ul {
    margin: 1.75rem 0 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
}

.journal-introduction-copy li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.journal-introduction-copy li span {
    color: var(--gold);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.journal-introduction-copy li strong {
    color: rgba(248, 250, 252, 0.9);
    font-size: 0.92rem;
    font-weight: 500;
}

.catalog-section {
    padding: 6rem 0;
}

.catalog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.catalog-heading .section-label {
    margin-bottom: 0.65rem;
}

.catalog-heading h2 {
    margin: 0;
    font-family: "Jost", sans-serif;
    font-size: clamp(2.25rem, 3.9vw, 3.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.catalog-heading > p {
    max-width: 390px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.catalog-status {
    grid-column: 1 / -1;
    padding: 2rem 0;
    color: var(--muted);
}

.catalog-status a {
    color: var(--brand-dark);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.story {
    min-width: 0;
}

.story-link {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column-reverse;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.story-link:hover {
    border-color: rgba(255, 153, 102, 0.68);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
    transform: translateY(-4px);
}

.story:first-child {
    grid-column: 1 / -1;
}

.story:first-child .story-link {
    min-height: 420px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    grid-template-areas: "copy art";
}

.story-copy {
    flex: 1;
    padding: 2rem;
}

.story:first-child .story-copy {
    grid-area: copy;
    align-self: center;
    padding: clamp(2rem, 5vw, 4rem);
}

.story:first-child .story-art {
    grid-area: art;
}

.story:first-child .story-title {
    font-size: clamp(2rem, 4vw, 3rem);
}

.story-meta,
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
}

.story-author {
    color: var(--ink);
    font-weight: 600;
}

.story-title {
    max-width: 750px;
    margin: 0.9rem 0 0.75rem;
    font-family: "Jost", sans-serif;
    font-size: 1.95rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.story-description {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-family: "Jost", sans-serif;
    font-size: 1.03rem;
    line-height: 1.66;
}

.story-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 22px;
}

.story-action {
    color: var(--brand-dark);
    font-family: "Jost", sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.story-art {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 225, 97, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 225, 97, 0.12) 1px, transparent 1px),
        var(--navy);
    background-size: 32px 32px;
}

.story-art::before {
    position: absolute;
    top: 28px;
    left: 28px;
    width: 64px;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 10px 0 rgba(255, 225, 97, 0.42);
    content: "";
}

.story-art::after {
    position: absolute;
    right: -34px;
    bottom: -58px;
    width: 180px;
    height: 180px;
    border: 28px solid var(--brand);
    border-radius: 50%;
    content: "";
}

.story-art--picture::before,
.story-art--picture::after {
    display: none;
}

.story-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-art span {
    position: absolute;
    z-index: 1;
    right: 18px;
    bottom: 16px;
    left: 18px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.story-art--picture span {
    right: auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(3, 11, 28, 0.82);
}

.journal-cta {
    padding: 5rem 0;
    background: var(--soft);
}

.journal-cta-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 3rem;
}

.journal-cta .section-label {
    color: var(--brand-dark);
}

.journal-cta h2 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(2.25rem, 3.9vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.journal-cta a {
    flex: 0 0 auto;
    padding: 0.9rem 1.35rem;
    border-radius: 6px;
    background: var(--brand);
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 180ms ease, transform 180ms ease;
}

.journal-cta a:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
}

.article-nav a:focus-visible,
.article-brand:focus-visible,
.story-link:focus-visible,
.journal-cta a:focus-visible,
.article-footer a:focus-visible,
.share-actions a:focus-visible,
.share-actions button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

.article-progress {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--brand);
}

.article-header {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 78px 0 34px;
}

.article-header h1 {
    margin: 0;
    font-family: "Jost", sans-serif;
    font-size: clamp(3.5rem, 6.8vw, 6.2rem);
    line-height: 1;
    letter-spacing: -0.035em;
    font-weight: 800;
}

.article-deck {
    max-width: 760px;
    margin: 24px 0 30px;
    color: var(--muted);
    font-family: "Jost", sans-serif;
    font-size: 1.28rem;
    line-height: 1.7;
    font-weight: 400;
}

.byline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
}

.byline-text {
    line-height: 1.35;
}

.byline-name {
    font-size: 1rem;
    font-weight: 600;
}

.article-meta {
    margin-top: 2px;
    font-size: 0.74rem;
}

.article-tools {
    width: min(680px, calc(100% - 40px));
    margin: 0 auto;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.article-tools-label {
    color: var(--muted);
    font-size: 0.75rem;
}

.share-actions {
    display: flex;
    gap: 8px;
}

.share-actions a,
.share-actions button {
    min-width: 40px;
    height: 36px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.share-actions .socicon,
.share-actions .mobi-mbri {
    font-size: 1rem;
    line-height: 1;
}

.share-accessible {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.share-actions a:hover,
.share-actions button:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.article-body {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px 0 78px;
    font-family: "Jost", sans-serif;
    font-size: 1.05rem;
    line-height: 1.68;
}

.article-body p {
    margin: 0 0 28px;
}

.article-body h2 {
    margin: 56px 0 20px;
    font-family: "Jost", sans-serif;
    font-size: clamp(2.25rem, 3.9vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 800;
}

.article-body ul {
    margin: -8px 0 28px;
    padding-left: 28px;
}

.article-body li {
    margin-bottom: 8px;
    padding-left: 4px;
}

.article-body blockquote {
    margin: 42px 0;
    padding-left: 24px;
    border-left: 3px solid var(--ink);
    font-size: 1.4rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.45;
}

.article-body blockquote p {
    margin: 0;
}

.article-body strong {
    font-weight: 700;
}

.article-body a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.article-body pre {
    position: relative;
    margin: 38px 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(3, 11, 28, 0.12);
}

.article-body pre > code {
    display: block;
    padding: 3.5rem 1.5rem 1.5rem;
    overflow-x: auto;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.9rem;
    line-height: 1.65;
}

.code-copy {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(13, 17, 23, 0.88);
    color: #c9d1d9;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: border-color 180ms ease, color 180ms ease, background-color 180ms ease;
}

.code-copy:hover {
    border-color: var(--gold);
    background: #0d1117;
    color: var(--gold);
}

.code-copy:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.article-body :not(pre) > code {
    padding: 0.12em 0.35em;
    border-radius: 4px;
    background: var(--soft);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.88em;
}

.table-scroll {
    width: calc(100vw - 40px);
    max-width: 920px;
    margin: 38px 50%;
    overflow-x: auto;
    transform: translateX(-50%);
}

.article-body table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-family: "Jost", sans-serif;
    font-size: 1rem;
    line-height: 1.45;
}

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

.article-body th {
    border-color: var(--ink);
    font-weight: 700;
}

.article-body tbody tr:nth-child(even) {
    background: var(--soft);
}

.article-end {
    width: min(680px, calc(100% - 40px));
    margin: 0 auto 88px;
    padding: 28px;
    border-top: 1px solid var(--ink);
    background: var(--soft);
}

.article-end h2 {
    margin: 0 0 10px;
    font-family: "Jost", sans-serif;
    font-weight: 700;
}

.article-end p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.article-end a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
}

.article-footer {
    padding: 2rem 0;
    background: #232323;
    color: rgba(248, 250, 252, 0.72);
    font-family: "Jost", sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5;
}

.article-footer-inner {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.article-footer nav {
    display: flex;
    gap: 18px;
}

.article-footer a {
    color: #fff;
    font-family: "Jost", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
}

.article-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

@media (max-width: 991px) {
    .journal-introduction-grid {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 2rem;
    }

    .journal-introduction-copy {
        max-width: 700px;
    }

    .story:first-child .story-link {
        grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    }
}

@media (max-width: 720px) {
    .page-shell,
    .article-header-inner,
    .article-footer-inner {
        width: min(100% - 28px, 1120px);
    }

    .article-header-inner {
        min-height: 68px;
    }

    .article-brand img {
        width: 128px;
    }

    .article-contact {
        display: none;
    }

    .journal-brand {
        gap: 10px;
    }

    .journal-brand span {
        height: 22px;
    }

    .journal-brand strong {
        font-size: 0.62rem;
    }

    .article-back {
        font-size: 0.86rem;
    }

    .journal-introduction {
        padding: 4rem 0 4.5rem;
    }

    .journal-introduction::after {
        right: -0.02em;
        bottom: -0.25em;
        font-size: 13rem;
    }

    .journal-introduction h1 {
        font-size: clamp(2.5rem, 12vw, 3.8rem);
    }

    .journal-introduction-copy {
        padding: 0;
        border-left: 0;
    }

    .journal-introduction-kicker > span {
        display: none;
    }

    .catalog-section {
        padding: 4.5rem 0;
    }

    .catalog-heading {
        display: block;
        margin-bottom: 1.75rem;
    }

    .catalog-heading > p {
        margin-top: 1rem;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .story:first-child {
        grid-column: auto;
    }

    .story-link,
    .story:first-child .story-link {
        min-height: 0;
        display: flex;
        flex-direction: column-reverse;
    }

    .story-copy,
    .story:first-child .story-copy {
        padding: 1.5rem;
    }

    .story-title {
        font-size: 1.65rem;
    }

    .story:first-child .story-title {
        font-size: 1.85rem;
    }

    .story-description {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: 1rem;
    }

    .story-art {
        width: 100%;
        min-height: 170px;
    }

    .story-art::after {
        right: -24px;
        bottom: -42px;
        width: 130px;
        height: 130px;
        border-width: 20px;
    }

    .story-action {
        font-size: 0.92rem;
    }

    .journal-cta {
        padding: 4.5rem 0;
    }

    .journal-cta-inner {
        display: block;
    }

    .journal-cta a {
        display: inline-block;
        margin-top: 1.75rem;
    }

    .article-header {
        width: calc(100% - 32px);
        padding-top: 52px;
    }

    .article-header h1 {
        font-size: clamp(2.6rem, 13vw, 4rem);
    }

    .article-deck {
        font-size: 1rem;
    }

    .article-tools,
    .article-body,
    .article-end {
        width: calc(100% - 32px);
    }

    .article-body {
        padding-top: 36px;
        font-size: 1.05rem;
        line-height: 1.68;
    }

    .article-body h2 {
        font-size: 2.25rem;
    }

    .article-body blockquote {
        padding-left: 18px;
        font-size: 1.25rem;
    }

    .article-footer-inner {
        display: block;
    }

    .article-footer nav {
        margin-top: 12px;
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .story-link,
    .journal-cta a {
        transition: none;
    }

    .story-link:hover,
    .journal-cta a:hover {
        transform: none;
    }
}
