/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    line-height: 1.56;
    color: rgba(41, 41, 41, 1);
    background: #fdfdfd;
    font-size: 21px;
    max-width: none;
    overflow-x: hidden;
    counter-reset: h2;
}

body a {
    color: #1a73e8;
    text-decoration: none;
}

.post {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 50px;
    background: #fff;
}

@media (max-width: 700px) {
    .post {
        padding: 0 20px;
    }
}

.post-header {
    padding: 56px 0 28px 0;
    text-align: left;
    border-bottom: 1px solid rgba(230, 230, 230, 1);
    margin-bottom: 32px;
}

nav {
    margin-bottom: 48px;
}

ol.toc {
    list-style: decimal-leading-zero;
    padding-left: 20px;
}

ol.toc li {
    margin-bottom: 8px;
}

ol.toc a {
    color: rgba(117, 117, 117, 1);
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
}

ol.toc a:hover {
    text-decoration: underline;
}

.post-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.12;
    margin-bottom: 20px;
    color: rgba(41, 41, 41, 1);
}

.post-subtitle {
    font-size: 21px;
    line-height: 1.4;
    color: rgba(117, 117, 117, 1);
    margin-bottom: 24px;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.author-info {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: rgba(117, 117, 117, 1);
}

.post-date {
    font-size: 14px;
    color: rgba(117, 117, 117, 1);
}

.post-stats {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    color: rgba(117, 117, 117, 1);
}

.bmc-link {
    margin-top: 16px;
}

.bmc-link a {
    display: inline-block;
    background: #e6e2d1;
    color: #222;
    padding: 12px 24px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    transition: background 0.2s;
}

.bmc-link a:hover {
    background: #e6e2d1;
}

.header-links, .footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.email-link {
    margin-top: 16px;
}

.email-link a {
    display: inline-block;
    background: #4285f4;
    color: #fff;
    padding: 12px 24px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    transition: background 0.2s;
}

.email-link a:hover {
    background: #357ae8;
}

main section {
    padding: 0 0 32px 0;
}

h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.25;
    color: rgba(41, 41, 41, 1);
    margin-top: 48px;
    margin-bottom: 24px;
    counter-increment: h2;
    position: relative;
}

h2::before {
    content: counter(h2) ". ";
    color: rgba(230, 230, 230, 1);
    font-weight: 400;
    margin-right: 8px;
}

p {
    margin-bottom: 24px;
    color: rgba(41, 41, 41, 1);
}

ul {
    margin: 16px 0 20px 20px;
    padding: 0;
    list-style: none;
}

ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 24px;
}

ul li::before {
    content: "•";
    font-size: 18px;
    color: rgba(117, 117, 117, 1);
    position: absolute;
    left: 0;
    top: 0;
}

.highlight {
    background: #f3f4f6;
    padding: 0 6px;
    border-radius: 2px;
    font-weight: 500;
}

.divider {
    border: none;
    border-top: 1px solid rgba(230, 230, 230, 1);
    margin: 48px 0;
}

.image-wrapper {
    padding: 30px 0;
}

.image-wrapper-60 img {
    max-width: 60%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.image-wrapper-100 img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

figcaption {
    text-align: center;
    margin-top: 12px;
    font-size: 16px;
    color: rgba(117, 117, 117, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.caption-title {
    font-weight: 600;
}

.caption-source {
    font-size: 14px;
    margin-top: 4px;
}

pre {
    background: #f6f8fa;
    border-radius: 4px;
    padding: 24px;
    margin: 20px 0;
    font-size: 16px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    line-height: 1.45;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}

footer {
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid rgba(230, 230, 230, 1);
}

