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

:root {
  --red:    #C8102E;
  --gold:   #E8A020;
  --cream:  #FDF6EC;
  --brown:  #5C3D1E;
  --text:   #2B1A0E;
  --muted:  #7A5C3A;
  --border: #D9C4A8;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: var(--red);
  color: #fff;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 4rem;
  border-bottom: 4px solid var(--gold);
}

header .site-title {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff;
}

header .site-title span {
  color: var(--gold);
}

nav a {
  color: #ffe;
  text-decoration: none;
  margin-left: 1.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

nav a:hover { color: var(--gold); }

/* ── Hero (home page) ── */
.hero {
  background: linear-gradient(135deg, #7a1c1c 0%, var(--red) 50%, #9e3030 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 2rem 3.5rem;
  border-bottom: 4px solid var(--gold);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 880px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.card-body {
  padding: 1.2rem 1.4rem 1.4rem;
  flex: 1;
}

.card-body h2 {
  font-size: 1.3rem;
  color: var(--red);
  margin-bottom: 0.4rem;
}

.card-body p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ── Recipe page ── */
.recipe-wrap {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 0 2rem 4rem;
}

.recipe-header {
  text-align: center;
  margin-bottom: 2rem;
}

.recipe-header .emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.recipe-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--red);
}

.recipe-header .tagline {
  color: var(--muted);
  font-style: italic;
  margin-top: 0.3rem;
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
}

.meta-bar span {
  font-size: 0.9rem;
  color: var(--muted);
}

.meta-bar strong {
  color: var(--text);
}

section.block {
  margin-bottom: 2.4rem;
}

section.block h2 {
  font-size: 1.25rem;
  color: var(--brown);
  border-left: 4px solid var(--gold);
  padding-left: 0.7rem;
  margin-bottom: 1rem;
}

section.block ul,
section.block ol {
  padding-left: 1.5rem;
}

section.block li {
  margin-bottom: 0.45rem;
  font-size: 0.97rem;
}

section.block p {
  font-size: 0.97rem;
  color: var(--muted);
}

.tip-box {
  background: #fff8ec;
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 1rem 1.3rem;
  font-size: 0.92rem;
  color: var(--brown);
}

.tip-box::before {
  content: "Tip: ";
  font-weight: bold;
  color: var(--gold);
}

/* ── Back link ── */
.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--red);
  text-decoration: none;
}

.back:hover { text-decoration: underline; }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
