/* RECIPESIDEAS - warm home-cooking food blog
   Palette: tomato/terracotta primary, golden accent, charcoal text, cream alt-bg
   Typography: Fraunces (display serif) headings + Nunito Sans body */

:root {
  --primary: #E8552D;
  --primary-dark: #C5421F;
  --primary-light: #F47C53;
  --accent: #F2A900;
  --accent-soft: #FCE9C4;
  --charcoal: #2B2622;
  --text: #3a342f;
  --text-soft: #6c655e;
  --cream: #FBF6EE;
  --cream-deep: #F4EADB;
  --white: #ffffff;
  --line: #ece3d6;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 26px rgba(43, 38, 34, 0.10);
  --shadow-sm: 0 3px 12px rgba(43, 38, 34, 0.07);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
}

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

a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  color: var(--charcoal);
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 1.7em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); margin-top: 1.3em; color: var(--primary-dark); }
p { margin: 0 0 1.1em; }

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

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--charcoal) !important;
  letter-spacing: -0.02em;
  text-decoration: none !important;
  display: flex; align-items: center; gap: .5rem;
}
.brand .dot { color: var(--primary); }
.brand:hover { color: var(--primary-dark) !important; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--charcoal);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none !important;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); border-bottom-color: var(--primary); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; color: var(--charcoal); line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  padding: 0;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem;
  align-items: center; padding: clamp(2rem, 5vw, 4.5rem) 0;
}
.hero-eyebrow {
  display: inline-block; background: var(--accent-soft); color: var(--primary-dark);
  font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero h1 { margin-bottom: .5rem; }
.hero .lead { font-size: 1.2rem; color: var(--text-soft); margin-bottom: 1.6rem; max-width: 36ch; }
.hero-media img {
  border-radius: var(--radius); box-shadow: var(--shadow); width: 100%;
  aspect-ratio: 16/10; object-fit: cover;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 800; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: 999px; cursor: pointer;
  text-decoration: none !important; transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff !important; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); color: #fff !important; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary-dark) !important; border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff !important; transform: translateY(-2px); }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.2rem, 5vw, 3.8rem) 0; }
.section-cream { background: var(--cream); }
.section-title { text-align: center; margin-bottom: .4rem; }
.section-sub { text-align: center; color: var(--text-soft); max-width: 60ch; margin: 0 auto 2.2rem; }

/* ---------- Recipe card grid ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.6rem;
}
.recipe-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.recipe-card a { text-decoration: none !important; color: inherit; display: flex; flex-direction: column; height: 100%; }
.recipe-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--cream-deep); }
.recipe-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.recipe-card:hover .thumb img { transform: scale(1.05); }
.recipe-card .card-body { padding: 1.1rem 1.25rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.recipe-card .tag {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .4rem;
}
.recipe-card h3 { font-size: 1.18rem; margin: 0 0 .4rem; color: var(--charcoal); }
.recipe-card p { font-size: .94rem; color: var(--text-soft); margin: 0; }
.recipe-card .more { margin-top: auto; padding-top: .8rem; color: var(--primary); font-weight: 800; font-size: .9rem; }

/* ---------- Article ---------- */
.article-hero { background: var(--cream); padding: clamp(2rem,4vw,3rem) 0 0; }
.article-wrap { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.article-figure { margin: 0 0 1.8rem; }
.article-figure img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.article-body { padding: 2.2rem 0 1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.article-body li { margin-bottom: .55rem; }
.article-body img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 1.6rem 0; }
.article-body .lead { font-size: 1.15rem; color: var(--text-soft); }
.breadcrumbs { font-size: .85rem; color: var(--text-soft); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--text-soft); font-weight: 700; }

/* ingredient highlight blocks inside articles */
.article-body h2 { border-bottom: 2px solid var(--accent-soft); padding-bottom: .3rem; }

/* ---------- Contact form ---------- */
.contact-form { max-width: 600px; margin: 1.5rem 0; }
.contact-form .field { margin-bottom: 1rem; }
.contact-form label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--charcoal); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,85,45,.12);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #d9d2c8; margin-top: 3rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem;
  padding: 3rem 0 2rem;
}
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: .9rem; }
.site-footer .brand-foot { font-family: "Fraunces", serif; font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: .6rem; }
.site-footer p { color: #b7afa4; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .5rem; }
.site-footer ul a { color: #d9d2c8; font-weight: 600; font-size: .95rem; }
.site-footer ul a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0; text-align: center; font-size: .88rem; color: #9b938a; }

/* ---------- Utility classes (keeps HTML free of inline styles) ---------- */
.pt-tight { padding-top: 1.4rem; }
.mt-0 { margin-top: 0; }
.center { justify-content: center; }
.hub-note { text-align: center; margin-top: 2.2rem; color: var(--text-soft); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(3rem,8vw,6rem) 0; background: var(--cream); }
.notfound h1 { font-size: clamp(3rem,10vw,6rem); color: var(--primary); margin-bottom: .2rem; }
.notfound p { font-size: 1.2rem; color: var(--text-soft); margin-bottom: 1.6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1rem; box-shadow: var(--shadow-sm);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
