:root {
    --gh-font-heading: "Inter Tight", "Manrope", "Segoe UI", sans-serif;
    --gh-font-body: "Manrope", "Segoe UI", sans-serif;
    --gh-font-ui: "Geologica", "Inter Tight", "Manrope", "Segoe UI", sans-serif;
    --bg: #dff3fb;
    --surface: #ffffff;
    --surface-muted: #eef9fe;
    --text: #082a3c;
    --text-muted: #52778b;
    --border: #b8dceb;
    --accent: #082a3c;
    --accent-strong: #082a3c;
    --accent-soft: #e4f6fd;
    --accent-coral: #ff7b69;
    --accent-gold: #ffc24f;
    --accent-mint: #69e3cb;
    --accent-violet: #6f72ff;
    --shadow: 0 22px 52px rgba(17, 58, 79, 0.14);
    --shadow-soft: 0 12px 28px rgba(17, 58, 79, 0.1);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1120px;
}

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

html {
    font-size: 16px;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: var(--gh-font-body);
}

body.home-template {
    background: radial-gradient(circle at 0px -500px, #ff00a08c 0, rgba(255, 208, 158, 0) 1000px),
    radial-gradient(circle at 50% -500px, #2370fdc7 0, rgba(255, 224, 234, 0) 1000px),
    radial-gradient(circle at calc(100% + 100px) -500px, rgb(253, 228, 105) 0, rgba(193, 169, 255, 0) 1000px);
}

body.post-template {
    --text: #111111;
    --text-muted: #767676;
    --accent: #111111;
    --accent-strong: #111111;
    background: #fff;
}

body.articles-index-template {
    --text: #111111;
    --text-muted: #767676;
    --accent: #111111;
    --accent-strong: #111111;
    background: #fff;
}

body.page-template {
    --text: #111111;
    --text-muted: #767676;
    --accent: #111111;
    --accent-strong: #111111;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.site-shell {
    min-height: 100vh;
}

.site-main {
    padding-bottom: 4rem;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.site-header {
    position: static;
    z-index: 10;
}

body.home-template .site-header {
    background: transparent;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1rem 0;
}

.site-brand,
.site-footer__brand {
    font-family: var(--gh-font-body);
    font-weight: 700;
    font-size: clamp(1.5rem, 2vw, 1.9rem);
    color: var(--accent-strong);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-brand svg,
.site-footer__brand svg {
    display: block;
    width: auto;
    height: 2rem;
}

.site-header .site-brand svg path {
    fill: #010411;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
}

.site-header__nav {
    flex: 1;
}

.site-header__nav .nav,
.site-footer__nav .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__nav .nav {
    justify-content: center;
}

.site-header__nav .nav a,
.site-footer__nav .nav a {
    color: #082a3c;
    opacity: 0.82;
    font-family: var(--gh-font-ui);
    font-weight: 500;
    transition: color 160ms ease, opacity 160ms ease;
}

.site-header__nav .nav a:hover {
    color: #000;
    opacity: 1;
}

.site-header__app-link,
.home-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gh-font-ui);
    min-height: 0;
    padding: 10px 20px;
    border: 0 solid transparent;
    border-top-width: 4px;
    border-bottom-width: 4px;
    border-bottom-color: #0f58db;
    border-radius: 6px;
    background: #1767ea;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

body.home-template .site-header__app-link {
    min-height: 0;
    padding: 10px 20px;
    border-radius: 6px;
    background: #1767ea;
}

.site-footer {
    margin-top: 4rem;
    padding: 2rem 0 3rem;
}

.site-footer__inner {
    display: block;
}

.site-footer__legal {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    text-align: center;
}

.site-footer__legal a {
    color: #333;
    text-decoration: none;
}

.site-footer__legal a:hover {
    color: var(--text);
}

.site-footer__origin,
.site-footer__copyright {
    color: #8a97a0;
    font-size: 13px;
}

.site-footer__heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    margin: 0 0 0 0.18rem;
    vertical-align: -0.08em;
    color: #e14b5a;
}

.site-footer__heart svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.home-hero {
    padding-top: 3rem;
}

.home-hero__content {
    max-width: 84rem;
    margin: 0 auto;
    text-align: center;
}

.home-hero__title {
    margin: 0;
    font-family: var(--gh-font-heading);
    font-size: 40px;
    letter-spacing: normal;
    line-height: 1.1;
}

.home-hero__title > span {
    display: block;
}

.home-hero__inline {
    display: inline-flex;
    align-items: baseline;
    gap: 0.08em;
    white-space: nowrap;
}

.home-hero__emoji {
    margin: 0 4px;
}

.home-hero__accent {
    color: #3c86ff;
}

.home-hero__accent--warm {
    color: #ef1fae;
}

.home-hero__proof {
    color: #214c64;
    margin-top: 1rem;
}

.home-hero__lede {
    max-width: 48rem;
    margin: 4rem auto 0;
    color: var(--accent);
    font-size: 16px;
    line-height: 1.3;
}

.home-hero__actions {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3.2rem;
}

.home-hero__visual {
    width: min(100%, 70rem);
    margin: 3.25rem auto 0;
}

.home-hero__visual img {
    width: 100%;
}

.site-header__app-link:active,
.home-hero__cta:active {
    transform: translateY(2px);
}

.home-hero__cta-note {
    margin: -0.35rem 0 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.2;
}

.home-use-cases {
    max-width: 64rem;
    margin: 3.75rem auto 0;
    text-align: center;
}

.home-use-cases__title {
    margin: 0;
    color: var(--text);
    font-family: var(--gh-font-heading);
    font-size: 1.9rem;
    line-height: 1.1;
}

.home-use-cases__text {
    margin: 1rem 0 0;
    color: #214c64;
    font-size: 1rem;
    line-height: 1.7;
}

.home-logo-strip {
    margin-top: 58px;
}

.home-logo-strip__label {
    margin: 0;
    color: #7f909a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}

.home-logo-strip__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px 0;
    margin-top: 24px;
}

.home-logo-strip__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 140px;
    min-width: 0;
    min-height: 34px;
}

.home-logo-strip__item img {
    width: auto;
    max-width: 100%;
    max-height: 15px;
    opacity: 1;
}

.home-latest {
    margin-top: 6rem;
}

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

.home-article-card {
    min-width: 0;
}

.home-article-card__link {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.home-article-card__link:hover {
    transform: none;
    box-shadow: none;
}

.home-article-card__media {
    aspect-ratio: 2;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    margin: 0;
}

.home-article-card__media--placeholder {
    background: #ffd867;
}

.home-article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-article-card__body {
    padding: 1.15rem 0 0.35rem;
}

.home-article-card__date {
    margin: 0;
    color: var(--accent);
    font-size: 0.78rem;
}

.home-article-card__title {
    margin: 0.55rem 0 0;
    font-size: 1.4rem;
    line-height: 1.12;
}

.home-article-card__excerpt {
    margin: 0.6rem 0 0;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.hero,
.page__header,
.post-full__header,
.collection-hero {
    padding-top: 3.5rem;
}

.post-full__header {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
}

.collection-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
}

.post-full__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 2rem;
    align-items: center;
}

.hero__title,
.page__title,
.post-full__title,
.collection-hero__title {
    margin: 0;
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1.02;
}

.page__title,
.post-full__title {
    color: #000;
    font-size: 38px;
    text-align: center;
}

.collection-hero__title,
.collection-hero__text {
    text-align: center;
}

.collection-hero__text {
    margin: 0;
}

.page__excerpt {
    margin: 0;
    text-align: center;
}

.hero__lede,
.page__excerpt,
.post-full__excerpt,
.collection-hero__text {
    color: var(--text-muted);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    max-width: 46rem;
}

.hero__media img,
.page__media img,
.post-full__media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    background: var(--surface);
}

.post-full__media {
    width: 100%;
    max-width: 50.4rem;
    margin: 0 auto 2rem;
    aspect-ratio: 3 / 1;
    overflow: hidden;
}

.page__media {
    width: 100%;
    max-width: 50.4rem;
    margin: 0 auto 2rem;
    aspect-ratio: 3 / 1;
    overflow: hidden;
}

.page__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-full__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page__content,
.post-full__content {
    margin-top: 40px;
    line-height: 1.4;
}

.page__header,
.post-full__header,
.page__content,
.post-full__content {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.page__content--home {
    margin-top: 4rem;
}

.home-content {
    margin-bottom: 1rem;
    padding: 2rem 2.25rem;
    border-radius: 1.8rem;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 34px rgba(17, 58, 79, 0.06);
}

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

.post-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(221, 215, 203, 0.9);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 160ms ease, border-color 160ms ease;
}

.post-card__link:hover {
    transform: translateY(-3px);
    border-color: rgba(21, 94, 239, 0.35);
}

.post-card__media {
    aspect-ratio: 1.8;
    overflow: hidden;
    background: var(--surface-muted);
}

.post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.4rem;
}

.post-card__date,
.post-full__back {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.post-full__meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.5;
}

.post-full__excerpt {
    margin: 0;
    text-align: center;
}

.post-card__title {
    margin: 0;
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 1.65rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.post-card__excerpt {
    margin: 0;
    color: var(--text-muted);
}

.empty-state {
    padding: 2rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.7);
}

.empty-state--home {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.82);
}

.pagination-wrap {
    padding-top: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
}

.pagination a {
    color: var(--accent);
    font-family: var(--gh-font-ui);
    font-weight: 600;
}

.gh-content {
    color: #000;
    font-size: 1.08rem;
}

.page__content,
.post-full__content {
    padding: 20px;
    border-radius: 10px;
    background: #fff;
}

.post-full {
    padding-top: 0.5rem;
}

.page {
    padding-top: 0.5rem;
}

.page__header {
    max-width: 72rem;
}

.post-full__header {
    max-width: 72rem;
}

.post-full__back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: center;
    font-family: var(--gh-font-ui);
}

.post-full__back-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
}

.post-full__content {
    max-width: 50.4rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 1.14rem;
    line-height: 1.78;
}

.page__content {
    max-width: 50.4rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 1.14rem;
    line-height: 1.78;
}

.post-full__content > p:first-of-type::first-letter {
    float: left;
    margin: 0.12em 0.12em 0 0;
    font-family: "IBM Plex Serif", Georgia, serif;
    font-size: 4.6em;
    line-height: 0.82;
    font-weight: 600;
}

.gh-content > *:first-child {
    margin-top: 0;
}

.gh-content > *:last-child {
    margin-bottom: 0;
}

.gh-content h2,
.gh-content h3,
.gh-content h4 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
    font-family: "IBM Plex Serif", Georgia, serif;
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-weight: 400;
}

.gh-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.gh-content h3 {
    font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.gh-content p,
.gh-content ul,
.gh-content ol,
.gh-content blockquote,
.gh-content pre,
.gh-content table,
.gh-content .kg-card:not(.kg-width-full):not(.kg-width-wide) {
    margin: 1.25rem 0;
}

.post-full__content p,
.post-full__content li,
.post-full__content blockquote {
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
    overflow-wrap: break-word;
}

.gh-content a {
    color: var(--accent-strong);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.12em;
}

.gh-content ul,
.gh-content ol {
    padding-left: 1.4rem;
}

.gh-content blockquote {
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--accent);
    background: rgba(223, 233, 255, 0.55);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.gh-content hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.gh-content code,
.gh-content pre {
    font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
}

.gh-content pre {
    padding: 1rem;
    overflow-x: auto;
    border-radius: var(--radius-md);
    background: #161616;
    color: #f5f5f5;
}

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}

.gh-content th,
.gh-content td {
    padding: 0.85rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.gh-content img,
.gh-content .kg-image {
    border-radius: var(--radius-md);
}

.gh-content .kg-card.kg-width-wide,
.gh-content .kg-card.kg-width-full {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.gh-content .kg-button-card .kg-btn {
    border-radius: 999px;
    padding: 0.9rem 1.25rem;
    font-family: var(--gh-font-ui);
}

.gh-content .kg-callout-card,
.gh-content .kg-header-card,
.gh-content .kg-bookmark-card {
    border-radius: var(--radius-lg);
}

@media (max-width: 960px) {
    .site-header {
        position: static;
    }

    .site-header__inner,
    .site-footer__inner,
    .hero {
        grid-template-columns: 1fr;
        display: grid;
    }

    .site-header__inner {
        justify-items: flex-start;
    }

    .site-header__nav .nav {
        justify-content: flex-start;
    }

    .site-header__app-link {
        width: fit-content;
    }

    .home-hero__content {
        max-width: none;
    }

    .article-feed {
        grid-template-columns: 1fr;
    }

    .post-full__content {
        max-width: 45.6rem;
    }

    .post-full__media {
        max-width: 45.6rem;
    }

    .page__content {
        max-width: 45.6rem;
    }

    .page__media {
        max-width: 45.6rem;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 1.25rem), var(--container));
    }

    .site-header__inner,
    .site-footer__inner {
        gap: 1rem;
    }

    .site-header__nav .nav,
    .site-footer__nav .nav {
        gap: 0.9rem 1.15rem;
    }

    .hero,
    .page__header,
    .post-full__header,
    .collection-hero {
        padding-top: 2rem;
    }

    .page--home {
        padding-top: 0.5rem;
    }

    .home-hero {
        padding-top: 2.5rem;
    }

    .home-hero__title {
        font-size: clamp(2.8rem, 11vw, 4.4rem);
    }

    .home-latest__grid {
        grid-template-columns: 1fr;
    }

    .home-logo-strip {
        margin-top: 44px;
    }

    .home-use-cases {
        margin-top: 2.75rem;
        padding: 1.5rem 1.25rem;
        border-radius: 1.5rem;
    }

    .home-use-cases__title {
        font-size: 1.6rem;
    }

    .home-use-cases__text {
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .home-logo-strip__grid {
        margin-top: 20px;
    }

    .home-logo-strip__item {
        flex-basis: 120px;
        min-height: 30px;
    }

    .home-logo-strip__item img {
        max-height: 24px;
    }

    .home-latest,
    .home-content {
        padding: 1.5rem;
    }

    .page__content--home {
        margin-top: 3rem;
    }

    .home-hero__visual {
        margin-top: 2.25rem;
    }

    .post-full__title {
        font-size: clamp(2.5rem, 11vw, 3.4rem);
    }

    .post-full__content {
        max-width: none;
        font-size: 1.06rem;
        line-height: 1.72;
    }

    .post-full__media {
        max-width: none;
    }

    .page__content {
        max-width: none;
        font-size: 1.06rem;
        line-height: 1.72;
    }

    .page__media {
        max-width: none;
    }

    .post-full__content > p:first-of-type::first-letter {
        margin-right: 0.08em;
        font-size: 3.5em;
    }

}
