:root {
    --blog-shell-width: min(100%, 46rem);
    --blog-index-width: min(100%, 36rem);
    --blog-soft-border: var(--button-border-color);
    --blog-panel: rgba(0, 0, 0, 0.02);
    --blog-panel-strong: rgba(0, 0, 0, 0.05);
    --blog-title-color: var(--text-color);
    --blog-link-muted: rgba(0, 0, 0, 0.64);
    --blog-link-strong: rgba(0, 0, 0, 0.9);
    --blog-kicker: rgba(0, 0, 0, 0.56);
}

html {
    scroll-behavior: smooth;
}

body.site-shell-page.section-blog {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    line-height: 1.7;
}

body.site-shell-page.section-blog main {
    padding-bottom: 0;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 0.75rem;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.site-path {
    font-size: 2rem;
    font-weight: 500;
    text-align: left;
    line-height: 1.2;
    margin: 0 0 10px;
}

.site-path a {
    text-decoration: none;
}

.site-path a:hover {
    text-decoration: underline;
}

.site-path-current {
    font-weight: 500;
}

.header {
    border-bottom: solid 1px var(--border-color);
    padding: 1rem 0;
    padding-left: 0.5rem;
}

.blog-main-frame {
    width: min(100%, var(--blog-shell-width));
    margin: 0;
    padding: 0.35rem 0 0;
}

body.blog-index-page .blog-main-frame,
body.blog-template-page .blog-main-frame {
    width: var(--blog-index-width);
    margin: 0 auto;
    padding-top: 0.55rem;
}

.blog-index-intro {
    max-width: 41rem;
    padding: 0.8rem 0 1.2rem;
}

.blog-index-kicker,
.blog-section-kicker {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blog-kicker);
}

.blog-index-title {
    margin: 0;
    color: var(--blog-title-color);
    font-family: "Lora", serif;
    font-size: clamp(2.7rem, 8vw, 4.8rem);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.blog-index-description {
    margin: 1.2rem 0 0;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--blog-link-muted);
}

.blog-index-description-line {
    display: block;
}

.blog-post-header {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0 2rem;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: var(--muted-color);
}

.blog-meta-separator {
    opacity: 0.65;
}

.blog-post-title {
    margin: 0;
    color: var(--blog-title-color);
    font-family: "Lora", serif;
    font-size: clamp(2.05rem, 5vw, 2.9rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.blog-article {
    color: var(--text-color);
    font-size: 1.04rem;
}

.blog-article > * {
    margin: 0;
}

.blog-article > * + * {
    margin-top: 1.2rem;
}

.blog-article p {
    color: var(--text-color);
}

.blog-article a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

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

.blog-article em {
    font-style: italic;
}

.blog-article hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--blog-soft-border);
}

.blog-article h2,
.blog-article h3 {
    margin-top: 2rem;
    color: var(--blog-title-color);
    font-family: "Lora", serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.blog-article h2 {
    font-size: clamp(1.5rem, 3.3vw, 2rem);
}

.blog-article h3 {
    font-size: clamp(1.25rem, 2.8vw, 1.55rem);
}

.blog-article ul,
.blog-article ol {
    padding-left: 1.35rem;
    color: var(--text-color);
}

.blog-article li + li {
    margin-top: 0.5rem;
}

.blog-article blockquote {
    margin: 1.6rem 0;
    padding: 1rem 1.1rem;
    border-left: 3px solid var(--border-color);
    background: var(--blog-panel);
    color: var(--text-color);
}

.blog-article code {
    padding: 0.08rem 0.3rem;
    border-radius: 0.35rem;
    background: var(--blog-panel);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9em;
}

.blog-article pre {
    overflow-x: auto;
    padding: 1rem 1.1rem;
    border-radius: 0.75rem;
    background: var(--blog-panel);
}

.blog-article pre code {
    padding: 0;
    background: transparent;
}

.blog-hold {
    min-height: 0;
    display: block;
    padding: 1.2rem 0 2rem;
}

.blog-hold-copy {
    max-width: 36rem;
}

.blog-hold-kicker {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--blog-kicker);
}

.blog-hold-title {
    margin: 0;
    color: var(--blog-title-color);
    font-family: "Lora", serif;
    font-size: clamp(2.75rem, 8vw, 5rem);
    font-weight: 600;
    line-height: 0.94;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.blog-hold-description {
    margin: 1.15rem 0 0;
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--blog-link-muted);
}

.blog-hold-description-line {
    display: block;
}

.blog-quiet-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--blog-link-muted);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.blog-quiet-link:hover {
    color: var(--blog-link-strong);
    transform: translateX(2px);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: 1rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footername {
    text-align: right;
    font-size: 1.25rem;
    line-height: normal;
}

.footername a {
    text-decoration: none !important;
}

.my-copyright {
    order: 1;
    text-align: left;
    font-size: small;
    color: var(--muted-color);
    margin: 0.5rem;
}

.my-copyright p {
    margin: 0;
}

.footer-nav {
    order: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0 0.5rem;
    font-size: small;
}

.footer-nav a {
    color: var(--muted-color);
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.blog-section-rule {
    margin: 0.9rem 0 1rem;
}

[data-reveal] {
    opacity: 1;
    transform: none;
}

html.js [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

html.js [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    html.js [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .blog-quiet-link {
        transition: none;
    }
}

@media (max-width: 640px) {
    .blog-index-intro {
        padding-bottom: 1rem;
    }

    .blog-post-header {
        margin-bottom: 1.7rem;
    }

    .blog-hold {
        padding: 1rem 0 1.5rem;
    }
}

@media screen and (min-width: 601px) and (max-width: 820px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .header {
        padding-left: 0;
    }
}

@media screen and (max-width: 600px) {
    .header {
        padding-left: 0;
    }

    footer {
        gap: 1rem;
    }
}
