/* Family Recipe Roots — a warm food blog about heritage and handed-down recipes.
   Design: homey and cosy. Paprika/rust primary, warm cream ground, olive accents,
   a Georgia-family serif for headings. Deliberately unlike sibling sites. */

:root {
  --bg: #fdf8f2;         /* warm cream */
  --bg-soft: #f5ede0;    /* toasty parchment */
  --ink: #2c1f10;        /* dark coffee brown */
  --muted: #7a5c3e;      /* warm taupe */
  --primary: #b4532a;    /* paprika / rust */
  --accent: #7a7d45;     /* olive green */
  --line: #e8d9c4;
  --border: #e8d9c4;
  --card: #fffdf9;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", "Iowan Old Style", serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.82;
  font-size: 17px;
}

/* Use a system sans-serif for nav / small UI elements only */
nav, .eyebrow, .pill, .btn, .footer-grid p, .footer-grid a, .footer-meta {
  font-family: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4 {
  font-family: "Georgia", "Palatino Linotype", "Book Antiqua", Palatino, "Iowan Old Style", serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.01em;
}

a { color: var(--primary); }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}

/* ---- Header ---- */
header {
  background: rgba(253,248,242,.95);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 20;
}
nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Georgia", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand-icon { width: 30px; height: 30px; flex-shrink: 0; color: var(--primary); }
.brand-icon path, .brand-icon circle, .brand-icon ellipse, .brand-icon rect { vector-effect: non-scaling-stroke; }
.brand:hover .brand-icon { color: var(--accent); transition: color 0.15s ease; }
.brand:hover { color: var(--accent); }

.nav-links { display: flex; gap: 26px; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  transition: color .15s;
}
.nav-links a:hover { color: var(--primary); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(170deg, var(--bg-soft) 0%, var(--bg) 65%);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 84px 26px 68px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.hero h1 { font-size: 3rem; max-width: 18ch; margin: 0 auto 22px; font-weight: 700; }
.hero p { font-size: 1.16rem; color: var(--muted); max-width: 58ch; margin: 0 auto 30px; font-family: "Georgia", serif; line-height: 1.72; }
.hero .btn { margin: 0 5px 8px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 3px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: background .15s, transform .15s;
  font-family: "Avenir Next", "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;
}
.btn:hover { background: #8f3d1a; transform: translateY(-1px); }
.btn-soft { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-soft:hover { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---- Sections ---- */
section { padding: 64px 0; }
section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 44px; }
.section-head h2 { font-size: 2.15rem; margin-bottom: 12px; }
section h2 { font-size: 2.1rem; margin-bottom: 14px; }
section p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split.reverse .ph { order: 2; }
.ph {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 42px rgba(44,31,16,.18);
}
.ph::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,.45);
  pointer-events: none;
}
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Card grid ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .16s, box-shadow .16s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(44,31,16,.13); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 22px 24px 26px; }
.pill {
  display: inline-block;
  font-size: 0.61rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
}
.card h3 { font-size: 1.26rem; margin-bottom: 8px; }
.card p { font-size: 0.93rem; margin: 0; color: var(--muted); }

/* ---- Category sections for recipes page ---- */
.recipe-category { margin-bottom: 52px; }
.recipe-category h3 {
  font-size: 1.6rem;
  color: var(--primary);
  border-bottom: 2px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.recipe-list { list-style: none; padding: 0; margin: 0; }
.recipe-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
}
.recipe-list li:last-child { border-bottom: none; }
.recipe-name { font-family: "Georgia", serif; font-weight: 700; color: var(--ink); font-size: 1.06rem; margin-bottom: 4px; }
.recipe-desc { font-size: 0.93rem; color: var(--muted); font-family: "Georgia", serif; }
.recipe-tag {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  font-family: "Avenir Next", Helvetica, Arial, sans-serif;
}

/* ---- Steps list ---- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 18px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.steps li::before {
  content: counter(step);
  background: var(--primary);
  color: #fff;
  font-family: "Avenir Next", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Prose ---- */
.prose { max-width: 70ch; margin: 0 auto; }
.prose h2 { font-size: 1.82rem; margin: 46px 0 12px; color: var(--primary); }
.prose h3 { font-size: 1.3rem; margin: 32px 0 8px; color: var(--ink); }
.prose p, .prose li { color: #5a3e25; line-height: 1.84; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 3px;
  padding: 20px 24px;
  margin: 28px 0;
}
.note p { margin: 0; color: var(--ink); font-style: italic; }
.pull {
  font-family: "Georgia", "Palatino Linotype", Palatino, serif;
  font-style: italic;
  font-size: 1.52rem;
  line-height: 1.52;
  color: var(--primary);
  text-align: center;
  max-width: 34ch;
  margin: 44px auto;
}

/* ---- CTA ---- */
.cta {
  background: var(--ink);
  color: #f5ead9;
  text-align: center;
  padding: 72px 26px;
}
.cta h2 { font-size: 2.1rem; margin-bottom: 12px; color: #fff; }
.cta p { color: #c4a882; max-width: 52ch; margin: 0 auto 26px; font-family: "Georgia", serif; }
.cta .btn-soft { color: var(--accent); border-color: var(--accent); }
.cta .btn-soft:hover { background: var(--accent); color: #fff; }

/* ---- Footer ---- */
footer {
  background: var(--ink);
  color: #c4a882;
  padding: 52px 0 28px;
  border-top: 3px solid var(--primary);
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 38px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(180,83,42,.3);
}
.footer-grid h4 {
  color: #fff;
  font-family: "Georgia", serif;
  font-size: 1.05rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-grid a, .footer-grid p {
  color: #b09070;
  text-decoration: none;
  display: block;
  margin: 5px 0;
  font-size: 0.91rem;
}
.footer-grid a:hover { color: var(--accent); }
.footer-meta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 26px;
  font-size: 0.81rem;
  color: #7a6050;
  text-align: center;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .ph { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 540px) {
  .grid-3 { grid-template-columns: 1fr; }
  nav { flex-direction: column; align-items: flex-start; gap: 12px; }
  .recipe-list li { grid-template-columns: 1fr; }
}
