:root {
    --text-main: #121212;
    --text-muted: #555555;
    --bg-main: #ffffff;
    --bg-alt: #f8f8f8;
    --border-color: #e2e2e2;
    --accent: #d93025; /* NYT cooking red accent */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    margin-top: 0;
    font-weight: 700;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

/* Header */
.site-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
    text-align: center;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

.site-header h1 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: -0.02em;
}

.subtitle {
    font-family: var(--font-sans);
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.back-link {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}
.back-link:hover {
    color: var(--text-main);
}

/* Grid Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.recipe-card {
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.recipe-link {
    display: block;
    padding: 2rem 1.5rem;
    height: 100%;
    box-sizing: border-box;
}

.recipe-title {
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.recipe-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.recipe-time {
    font-weight: 500;
}

/* Recipe Page */
.recipe-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.recipe-headline {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 900;
}

.recipe-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    font-weight: 500;
}

.meta-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.recipe-source {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.recipe-source a {
    text-decoration: underline;
    color: var(--text-main);
}

.recipe-markdown-content h1, 
.recipe-markdown-content h2, 
.recipe-markdown-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.recipe-markdown-content h1 {
    display: none; /* Hide the main H1 since we show it at top */
}

.recipe-markdown-content h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-sans);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.recipe-markdown-content ul, 
.recipe-markdown-content ol {
    padding-left: 1.5rem;
}

.recipe-markdown-content li {
    margin-bottom: 0.5rem;
}

.recipe-markdown-content p {
    margin-bottom: 1.5rem;
}
