:root {
  --color-text: #1a1a1a;
  --color-muted: #555555;
  --color-border: #e5e5e5;
  --color-bg-tip: #dde95b;
  --color-bg-vegan: #fbd9a0;
  --color-bg-ingredients: #f2f2f2;
  --color-header-bg: #fcefc0;
  --color-accent: #2e6b33;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

/* Header */
.top-banner {
  background: var(--color-header-bg);
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-text {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 14pt;
}

.site-header {
  background: #e8f5e9;
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.logo-icon { width: 100px; height: auto; }

.site-name {
  font-family: 'DM Serif Display', var(--font-serif);
  font-weight: 400;
  font-size: 60pt;
  line-height: 1;
  margin: 0;
}

.tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 16pt;
  color: var(--color-muted);
  margin: 1rem 0 0;
}

/* Page layout */
.page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 800px) {
  .page {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    align-items: start;
  }
}

main.recipe, main.recipe-list { min-width: 0; }

/* Recipe header */
h1 {
  font-family: 'Roboto', var(--font-sans);
  font-weight: 700;
  font-size: 40pt;
  margin: 0 0 0.25rem;
}

.subtitle {
  color: var(--color-muted);
  margin: 0 0 0.5rem;
}

.meta {
  margin: 0 0 1.5rem;
  color: var(--color-text);
}

.stars {
  letter-spacing: 2px;
  margin-right: 0.5rem;
}

.hero-image, .section-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin: 0.5rem 0 1.5rem;
}

/* Recipe sections */
.recipe-section h2 {
  font-family: 'Roboto', var(--font-sans);
  font-weight: 700;
  font-size: 24pt;
  margin: 2rem 0 1rem;
}

.recipe-section p { margin: 0 0 1rem; }

.ingredients-list {
  background: var(--color-bg-ingredients);
  border-radius: 8px;
  padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  margin: 0 0 1.5rem;
}

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

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.author-card { text-align: center; margin-top: 0.75rem; }

.author-photo {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.author-bio {
  color: var(--color-muted);
  margin: 0;
}

.callout {
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.callout h3 { margin: 0.5rem 0; }
.callout p { margin: 0; max-width: 270px; }

.callout-tip { background: var(--color-bg-tip); }
.callout-vegan { background: var(--color-bg-vegan); }

.callout-icon { width: 3.5rem; height: 3.5rem; }

.archive { text-align: center; }

.archive-link { font-weight: bold; }

/* Recipe list (home page) */
.recipe-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 500px) {
  .recipe-list { grid-template-columns: repeat(2, 1fr); }
}

.recipe-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.recipe-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.recipe-card-body { padding: 1rem; }
.recipe-card h2 { font-size: 1.25rem; margin: 0 0 0.25rem; }
.recipe-card .subtitle { font-size: 0.9rem; }

/* Comment form */
.comments { margin-top: 3rem; }

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
}

.form-row { display: flex; gap: 1rem; }

.form-row input,
.comment-form textarea {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.comment-label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.comment-form textarea { min-height: 100px; resize: vertical; }

.comment-form button {
  align-self: flex-start;
  background: var(--color-accent);
  color: white;
  border: none;
  padding: 0.75rem 2.5rem;
  border-radius: 4px;
  font-weight: bold;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.comment-form button:hover { opacity: 0.9; }