:root {
  --cream: #faf7f2;
  --warm-white: #fffef9;
  --terracotta: #b0431f;
  --terracotta-dark: #7e2e12;
  --ink: #2b2118;
  --muted: #7a6f63;
  --border: #e7ddd0;
  --shadow: 0 6px 24px rgba(44, 24, 16, 0.10);
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>");
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--terracotta); }

/* ---------- Top bar / language toggle ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.topbar__home {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.topbar__home:hover { color: var(--terracotta); }

.lang {
  display: flex;
  gap: 0.4rem;
}

.lang__btn {
  font-family: inherit;
  font-size: 0.85rem;
  border: 1px solid var(--terracotta);
  background: transparent;
  color: var(--terracotta);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang__btn.is-active {
  background: var(--terracotta);
  color: #fff;
}

/* ---------- Site title (landing) ---------- */
.site-head {
  text-align: center;
  padding: 1.5rem 1.5rem 0.5rem;
}

.site-head__title {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin: 0;
  letter-spacing: 0.01em;
}

.site-head__sub {
  color: var(--muted);
  font-style: italic;
  margin: 0.4rem 0 0;
}

/* ---------- Recipe cards (landing) ---------- */
.cards {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(44, 24, 16, 0.16);
}

.card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card__body { padding: 1rem 1.25rem 1.25rem; }

.card__title {
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
  color: var(--terracotta-dark);
}

.card__sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Recipe page hero ---------- */
.hero {
  position: relative;
  height: 52vh;
  min-height: 300px;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0) 65%);
}

.hero__title {
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

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

/* Ingredients + method: side by side on wide screens, stacked when narrow */
.recipe__columns {
  display: grid;
  gap: 0 3rem;
}

@media (min-width: 800px) {
  .recipe__columns {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
  }
  .recipe__columns .doodle--divider {
    display: none;
  }
}

.recipe__intro {
  font-style: italic;
  color: var(--muted);
  font-size: 1.1rem;
  padding: 1.5rem 0;
}

.recipe__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.recipe__meta strong { color: var(--ink); font-weight: normal; }

.recipe__block { margin-bottom: 2.5rem; }

.recipe__block h2 {
  color: var(--terracotta);
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.3rem;
}

.recipe__block h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--terracotta-dark);
}

.recipe__block ul,
.recipe__block ol {
  padding-left: 1.4rem;
  margin: 0;
}

.recipe__block li { margin-bottom: 0.6rem; }

/* ---------- Decorative drawings ---------- */
.doodle {
  display: block;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.doodle--head {
  width: 220px;
  max-width: 60%;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.doodle--divider {
  width: 170px;
  max-width: 45%;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  background-color: var(--terracotta-dark);
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.28 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p)'/></svg>");
  color: rgba(255, 254, 249, 0.82);
  font-size: 0.9rem;
  padding: 2.25rem 1rem;
  margin-top: 1rem;
}

.footer p { margin: 0.2rem 0; }

.footer a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
}

.footer a:hover { border-bottom-color: #fff; }
