.blog-post-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(40px, 7vw, 88px) 0 clamp(72px, 10vw, 120px);
}

.blog-post-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

.blog-back-link,
.blog-post-kicker {
    font-family: var(--headline-font);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.blog-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-size: 0.76rem;
    font-weight: 700;
}

.blog-back-link::before {
    content: '<';
}

.blog-post-kicker {
    margin-top: 18px;
    color: rgba(186, 204, 175, 0.84);
    font-size: 0.76rem;
    font-weight: 700;
}

.blog-post-copy h1 {
    margin-top: 14px;
    font-family: var(--headline-font);
    font-size: clamp(2.7rem, 5.5vw, 5.3rem);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.04em;
}

.blog-post-description {
    margin-top: 20px;
    max-width: 40rem;
    color: rgba(186, 204, 175, 0.92);
    font-size: 1.06rem;
    line-height: 1.85;
}

.blog-post-media {
    background: rgba(31, 31, 31, 0.96);
    padding: 18px;
}

#main-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.blog-article {
    margin-top: clamp(48px, 7vw, 84px);
}

.blog-article > :first-child {
    margin-top: 0;
}

.blog-article p,
.blog-article ul,
.blog-article ol,
.blog-article h2,
.blog-article h3,
.blog-article h4,
.blog-article blockquote {
    width: min(100%, 780px);
    margin-left: auto;
    margin-right: auto;
}

.blog-article p,
.blog-article ul,
.blog-article ol,
.blog-article blockquote {
    margin-top: 20px;
    color: rgba(226, 226, 226, 0.94);
    line-height: 1.9;
}

.blog-article h2,
.blog-article h3,
.blog-article h4 {
    margin-top: 44px;
    font-family: var(--headline-font);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.blog-article h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.blog-article h3 {
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.blog-article h4 {
    font-size: 1.2rem;
}

.blog-article ul,
.blog-article ol {
    padding-left: 1.35rem;
}

.blog-article li + li {
    margin-top: 12px;
}

.blog-article a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.blog-article b,
.blog-article strong {
    color: var(--secondary-color);
}

.blog-article img,
.blog-article video,
.blog-article iframe {
    display: block;
    width: min(100%, 920px);
    margin: 34px auto 0;
    background: rgba(31, 31, 31, 0.96);
}

.blog-article pre {
    position: relative;
    width: min(100%, 920px);
    margin: 34px auto 0;
    padding: 24px 18px 18px;
    overflow-x: auto;
    background: var(--surface-lowest);
    border: 1px solid rgba(60, 75, 53, 0.24);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.blog-article code,
.blog-article pre,
.blog-article .code-comment {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

.blog-article code {
    color: rgba(226, 226, 226, 0.95);
}

.copy-code {
    width: 28px;
    height: 32px;
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: transparent;
    border: none;
}

.copy-box {
    position: absolute;
    border: 1px solid rgba(226, 226, 226, 0.92);
    border-radius: 3px;
    width: 67%;
    height: 80%;
    transition: border-color 180ms ease;
}

.copy-code:hover .copy-box {
    cursor: pointer;
    border-color: var(--secondary-color);
}

.copy-box.one {
    top: 0;
    right: 0;
}

.copy-box.two {
    bottom: 0;
    left: 0;
}

@media only screen and (max-width: 920px) {
    .blog-post-hero {
        grid-template-columns: 1fr;
    }
}
