:root {
    color-scheme: light;
    --ink: #111816;
    --muted: #68736f;
    --paper: #f7f8f5;
    --panel: #ffffff;
    --line: rgba(17, 24, 22, .12);
    --brand: #0e7c66;
    --brand-dark: #075f50;
    --amber: #f4b947;
    --coral: #e75d4a;
    --violet: #6654d9;
}

.dark {
    color-scheme: dark;
    --muted: #a1aaa7;
    --line: rgba(244, 244, 245, .13);
    --brand-dark: #9fe6d3;
}

#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 60;
    height: 3px;
    width: 0;
    background: var(--brand);
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 100;
    transform: translateY(-140%);
    border-radius: 6px;
    background: #09090b;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 800;
}

.skip-link:focus {
    transform: translateY(0);
}

a {
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

a:hover {
    color: var(--brand);
}

.tracking-tight,
.tracking-wide,
.tracking-\[\.2em\] {
    letter-spacing: 0 !important;
}

.brand-link,
.footer-brand-logo {
    display: inline-flex;
    align-items: center;
    width: min(260px, 54vw);
    min-width: 190px;
}

.brand-logo {
    display: block;
    width: 100%;
    height: auto;
}

.brand-logo-dark,
.dark .brand-logo-light {
    display: none;
}

.dark .brand-logo-dark {
    display: block;
}

.footer-brand-logo {
    margin-bottom: 14px;
    width: min(280px, 70vw);
}

.brand-tile {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--violet));
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(14, 124, 102, .18);
}

.nav-chip,
header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border-radius: 999px;
    padding: 0 14px;
}

header nav a:hover {
    background: #111816;
    color: #fff;
}

.dark header nav a:hover {
    background: #fff;
    color: #111816;
}

.icon-button {
    min-width: 44px;
    min-height: 40px;
    border: 1px solid rgba(113, 113, 122, .35);
    border-radius: 6px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 800;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(17, 24, 22, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 24, 22, .045) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

.hero-shell > div {
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    border: 1px solid rgba(14, 124, 102, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
    padding: 5px 10px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 900;
}

.dark .eyebrow {
    border-color: rgba(159, 230, 211, .22);
    background: rgba(244, 244, 245, .08);
    color: #9fe6d3;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--amber);
}

.primary-button,
.secondary-button,
.search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 7px;
    padding: 0 18px;
    font-weight: 900;
}

.primary-button {
    background: var(--ink);
    color: #fff;
}

.dark .primary-button {
    background: #f7f8f5;
    color: #111816;
}

.primary-button:hover {
    color: #fff;
    background: var(--brand-dark);
}

.dark .primary-button:hover {
    background: #dff8ed;
    color: #062d26;
}

.secondary-button {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .72);
    color: var(--ink);
}

.dark .secondary-button {
    border-color: rgba(244, 244, 245, .16);
    background: rgba(244, 244, 245, .08);
    color: #f7f8f5;
}

.search-button {
    border: 1px solid rgba(14, 124, 102, .25);
    background: #dff8ed;
    color: #062d26;
}

.dark .search-button {
    border-color: rgba(159, 230, 211, .26);
    background: #dff8ed;
    color: #062d26;
}

.search-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, .82);
    padding: 0 14px;
    outline: none;
    box-shadow: 0 1px 0 rgba(17, 24, 22, .04);
}

.search-input:focus {
    border-color: rgba(14, 124, 102, .55);
    box-shadow: 0 0 0 4px rgba(14, 124, 102, .1);
}

.dark .search-input {
    background: rgba(24, 24, 27, .72);
    border-color: rgba(244, 244, 245, .16);
    color: #f7f8f5;
}

.dark .search-input::placeholder {
    color: rgba(244, 244, 245, .42);
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid rgba(14, 124, 102, .24);
    border-radius: 999px;
    padding: 6px 12px;
    background: rgba(14, 124, 102, .08);
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 800;
}

.pill.muted {
    border-color: rgba(113, 113, 122, .28);
    background: rgba(113, 113, 122, .08);
    color: inherit;
}

.dark .pill {
    border-color: rgba(159, 230, 211, .2);
    background: rgba(159, 230, 211, .08);
    color: #9fe6d3;
}

.dark .pill.muted {
    border-color: rgba(244, 244, 245, .14);
    background: rgba(244, 244, 245, .06);
    color: #c8d1ce;
}

.article-card {
    display: grid;
    align-content: start;
    gap: 15px;
    min-height: 100%;
    border-top: 1px solid rgba(17, 24, 22, .16);
    padding-top: 22px;
}

.dark .article-card {
    border-top-color: rgba(244, 244, 245, .14);
}

.article-image {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #e7ece8;
}

.article-image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: transform .22s ease;
}

.article-image:hover img {
    transform: scale(1.025);
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.article-card h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: 0;
}

.article-card p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.72;
}

.dark .article-meta {
    color: #9fe6d3;
}

.dark .article-card p {
    color: #a1aaa7;
}

.hero-console {
    align-self: center;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 22, .12);
    border-radius: 8px;
    background: #101816;
    color: #eef7f3;
    box-shadow: 0 28px 80px rgba(17, 24, 22, .16);
}

.console-top {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 13px 16px;
    color: rgba(238, 247, 243, .68);
    font-size: 13px;
    font-weight: 800;
}

.console-top span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--coral);
}

.console-top span:nth-child(2) {
    background: var(--amber);
}

.console-top span:nth-child(3) {
    background: #28c76f;
}

.console-top strong {
    margin-left: auto;
}

.console-body {
    padding: clamp(22px, 4vw, 34px);
}

.console-kicker {
    color: #9fe6d3;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.console-body h2 {
    margin: 12px 0 24px;
    max-width: 520px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    line-height: 1.03;
}

.console-list {
    display: grid;
    gap: 12px;
}

.console-list div {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
    padding: 15px;
}

.console-list strong,
.console-list span {
    display: block;
}

.console-list strong {
    color: #fff;
    font-size: 16px;
}

.console-list span {
    margin-top: 5px;
    color: rgba(238, 247, 243, .68);
    line-height: 1.6;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: clamp(22px, 4vw, 36px);
}

.dark .cta-band {
    border-color: rgba(244, 244, 245, .14);
    background:
        linear-gradient(135deg, rgba(14, 124, 102, .12), rgba(102, 84, 217, .08)),
        #101816;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.cta-band h2 {
    margin: 14px 0 8px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 900;
    line-height: 1;
    color: #111816;
}

.dark .cta-band h2 {
    color: #f7f8f5;
}

.cta-band p {
    margin: 0;
    max-width: 660px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
}

.dark .cta-band p {
    color: #b6c2be;
}

.dark .cta-band .eyebrow {
    color: #9fe6d3;
}

.action-button {
    border: 1px solid rgba(113, 113, 122, .35);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 800;
}

.toc {
    display: grid;
    gap: 10px;
    border-left: 1px solid rgba(113, 113, 122, .28);
    padding-left: 16px;
    color: #71717a;
    font-size: 14px;
}

.toc a {
    line-height: 1.45;
}

.toc a.is-active {
    color: var(--brand);
    font-weight: 800;
}

.prose-engineering {
    max-width: 820px;
    font-size: 20px;
    line-height: 1.85;
}

.prose-engineering h2,
.prose-engineering h3 {
    scroll-margin-top: 96px;
    color: inherit;
    font-weight: 800;
    letter-spacing: 0;
}

.prose-engineering h2 {
    margin: 2.6em 0 .7em;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
}

.prose-engineering h3 {
    margin: 2.1em 0 .5em;
    font-size: 1.55rem;
    line-height: 1.2;
}

.prose-engineering p,
.prose-engineering ul,
.prose-engineering ol,
.prose-engineering blockquote,
.prose-engineering .table-scroll {
    margin: 1.15em 0;
}

.prose-engineering ul,
.prose-engineering ol {
    padding-left: 1.35em;
}

.prose-engineering li {
    margin: .35em 0;
}

.prose-engineering a {
    color: var(--brand-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.prose-engineering code:not(pre code) {
    border: 1px solid rgba(113, 113, 122, .25);
    border-radius: 4px;
    padding: 2px 6px;
    background: rgba(113, 113, 122, .12);
    font-family: "JetBrains Mono", monospace;
    font-size: .86em;
}

.code-panel {
    position: relative;
    overflow: auto;
    border: 1px solid rgba(63, 63, 70, .8);
    border-radius: 8px;
    background: #0b1020;
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
}

.code-wrap {
    position: relative;
    margin: 1.35em 0;
}

.code-wrap .code-panel {
    margin: 0;
}

.copy-code {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 5px;
    background: rgba(9, 9, 11, .85);
    color: #f4f4f5;
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 800;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid rgba(113, 113, 122, .24);
    border-radius: 8px;
}

.table-scroll table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 16px;
}

.table-scroll th,
.table-scroll td {
    border-bottom: 1px solid rgba(113, 113, 122, .2);
    padding: 12px 14px;
    text-align: left;
}

.callout {
    border-left: 4px solid var(--brand);
    border-radius: 0 8px 8px 0;
    margin: 1.5em 0;
    padding: 18px 20px;
    background: rgba(16, 185, 129, .1);
}

.callout-tip {
    border-color: #22c55e;
    background: rgba(34, 197, 94, .1);
}

.callout-warning {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, .12);
}

@media (max-width: 720px) {
    .brand-link {
        width: min(220px, 58vw);
        min-width: 170px;
    }

    .hero-shell h1 {
        font-size: clamp(3rem, 14vw, 4.4rem);
    }

    .hero-console {
        margin-top: 4px;
    }

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

    .primary-button,
    .secondary-button,
    .search-button {
        width: 100%;
    }

    form:has(.search-input) {
        flex-direction: column;
    }

    .prose-engineering {
        font-size: 18px;
        line-height: 1.78;
    }
}
