@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/Inter-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Crimson Pro';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/CrimsonPro-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Crimson Pro';
    font-style: normal;
    font-weight: 700;
    src: url('/fonts/CrimsonPro-Bold.woff2') format('woff2');
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #333;
}

h1 {
    margin-bottom: 1rem;
}

.article-title {
    font-size: 1.7rem;
    margin-bottom: 0;
}

.article-title-short {
    font-size: 2rem;
}

.article-date {
    margin-top: 0;
    margin-bottom: 2rem;
}

.ai-note {
    color: #bbb;
}

.article-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.article-list li {
    margin-bottom: 0.5rem;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    color: #004999;
    text-decoration: none;
}

li a:visited {
    color: #551a8b;
}

.date {
    font-family: monospace;
    font-size: 1rem;
    margin-right: 1rem;
}

.article-content {
    font-family: 'Crimson Pro', serif;
    font-size: 1.15rem;
    text-align: justify;
    hyphens: auto;
}

.article-content img {
    max-width: 100%;
    height: auto;
}

body.wide-container {
    max-width: min(1100px, 95vw);
}

.image-row {
    display: flex;
    gap: 0.5rem;
    width: 70%;
    margin: 0 auto;
    align-items: center;
}

.image-row img:first-child {
    width: 40%;
    height: auto;
    border-radius: 4px;
}

.image-row img:last-child {
    width: 60%;
    height: auto;
    border-radius: 4px;
}

.article-content pre {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    background: #f5f5f5;
    padding: 1rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.article-content code {
    font-size: 0.85rem;
}

.back-link {
    opacity: 0.5;
}

@media (max-width: 500px) {
    h1 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }
}

footer {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.5;
}
