/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Georgia", "Times New Roman", serif;
    color: #222;
    background: #fff;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
main {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ── Header ── */
.site-header {
    text-align: center;
    padding: 3.5rem 1.5rem 2.5rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 3rem;
}

.logo {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
    text-decoration: none;
}

.logo:hover { color: #555; }

.tagline {
    margin-top: 0.4rem;
    font-style: italic;
    color: #666;
    font-size: 1.05rem;
}

/* ── Intro ── */
.intro {
    margin-bottom: 3rem;
}

.intro p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* ── Article list (index) ── */
.articles h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.article-list {
    list-style: none;
}

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

.article-list a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    border-bottom: 2px solid #111;
}

.article-list a:hover {
    color: #555;
    border-color: #555;
}

.article-summary {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.95rem;
    color: #555;
}

/* ── Article page ── */
.article h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}

.article .subtitle {
    font-style: italic;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ── Recipe meta ── */
.recipe-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    margin-bottom: 2.5rem;
}

.recipe-meta-item {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.recipe-meta-item strong {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    margin-bottom: 0.15rem;
}

.article h2 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: #111;
}

.article h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.article p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.article ul, .article ol {
    margin: 0 0 1.25rem 1.5rem;
    font-size: 1.05rem;
}

.article li {
    margin-bottom: 0.4rem;
}

.article strong {
    font-weight: 700;
    color: #111;
}

.article em {
    font-style: italic;
}

.article code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

.article pre {
    background: #f5f5f5;
    border-left: 3px solid #ccc;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.6;
}

.article pre code {
    background: none;
    padding: 0;
}

.article .step-number {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    background: #111;
    color: #fff;
    width: 1.7em;
    height: 1.7em;
    line-height: 1.7em;
    text-align: center;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.article .tip {
    background: #fafaf5;
    border-left: 3px solid #bba;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: #555;
}

.article .tip strong {
    color: #444;
}

.article a {
    color: #222;
    text-decoration-color: #999;
    text-underline-offset: 2px;
}

.article a:hover {
    color: #000;
    text-decoration-color: #000;
}

.article .tip a {
    color: #444;
}

.article .result-box {
    background: #f0f7f0;
    border: 1px solid #c5dcc5;
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.article .result-box h3 {
    margin-top: 0;
    color: #2a6e2a;
}

/* ── Footer ── */
footer {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: #999;
}
