/* ============================================================
   THE STARTER JAR — Design System
   Fonts: Playfair Display (headings) · Lora (body) · DM Sans (UI)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@400;500;600&display=swap');

/* === VARIABLES === */
:root {
  --cream:        #faf7f2;
  --warm-white:   #f5f0e8;
  --sage:         #4a7c59;
  --sage-dark:    #3a6347;
  --sage-light:   #e8f0eb;
  --tan:          #d4b896;
  --terracotta:   #c4724a;
  --warm-brown:   #3d2b1f;
  --muted:        #7a6a5e;
  --border:       #e0d4c3;
  --card-bg:      #fdf9f4;
  --shadow:       0 2px 20px rgba(61, 43, 31, 0.08);
  --shadow-hover: 0 8px 40px rgba(61, 43, 31, 0.16);
  --radius:       16px;
  --radius-sm:    8px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { max-width: 100%; display: block; }

/* === BASE === */
body {
  background: var(--cream);
  color: var(--warm-brown);
  font-family: 'Lora', serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--warm-brown);
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--sage); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--sage-dark); }
ul, ol { padding-left: 1.5rem; }

.ui-font { font-family: 'DM Sans', sans-serif; }

/* === LAYOUT === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section     { padding: 5rem 0; }
.section-sm  { padding: 3rem 0; }
.section-alt { background: var(--warm-white); }

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 0.85rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p  { color: var(--muted); font-size: 1.05rem; font-style: italic; margin-bottom: 0; }

/* === GRID === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--warm-brown);
  letter-spacing: 0.02em;
}
.nav-brand:hover { color: var(--sage); }
.nav-links {
  display: flex;
  list-style: none;
  padding: 0;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--warm-brown);
  letter-spacing: 0.03em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links a:hover { color: var(--sage); border-bottom-color: var(--sage); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px;
  height: 36px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--warm-brown);
  border-radius: 2px;
  transition: all 0.3s;
}

/* === HERO (full page) === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 1.5rem 5rem;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(74, 124, 89, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(196, 114, 74, 0.06) 0%, transparent 55%),
    linear-gradient(160deg, var(--cream) 0%, var(--warm-white) 60%, #ede8df 100%);
  position: relative;
  overflow: hidden;
}
.hero-content { position: relative; max-width: 740px; }
.hero-content { position: relative; max-width: 740px; }
.hero-content .eyebrow { margin-bottom: 1.25rem; }
.hero-content h1 { margin-bottom: 1.25rem; }
.hero-content > p {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-style: italic;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === PAGE HERO (shorter) === */
.page-hero {
  padding: 9rem 1.5rem 4.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 60% 0%, rgba(74, 124, 89, 0.07) 0%, transparent 60%),
    linear-gradient(160deg, var(--cream) 0%, var(--warm-white) 100%);
}
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero h1 { margin-bottom: 1rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.page-hero > .container > p {
  color: var(--muted);
  font-size: 1.05rem;
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
}

/* === BREADCRUMB === */
.breadcrumb {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--sage); }
.breadcrumb .sep { color: var(--tan); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.22s;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}
.btn-primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--warm-brown);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--sage);
  color: var(--sage);
  background: var(--sage-light);
}

/* === TAGS === */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
}
.tag-sage        { background: var(--sage-light); color: var(--sage-dark); }
.tag-terracotta  { background: #faeee7; color: var(--terracotta); }
.tag-tan         { background: #f5ede0; color: #8b5e3c; }
.tag-list { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* === CARDS === */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

.card-visual {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--warm-white) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  flex-shrink: 0;
  overflow: hidden;
}
.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .card-visual img { transform: scale(1.04); }
.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card-body p  { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; flex: 1; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  gap: 0.75rem;
}
.card-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
}
.card-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage);
  white-space: nowrap;
}
.card-link:hover { text-decoration: underline; }

/* === BLOG CARD === */
.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.3s, transform 0.3s;
}
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.blog-card h3 { font-size: 1.1rem; margin: 0; line-height: 1.35; }
.blog-card h3 a { color: var(--warm-brown); }
.blog-card h3 a:hover { color: var(--sage); }
.blog-card p { font-size: 0.88rem; color: var(--muted); margin: 0; line-height: 1.6; flex: 1; }
.blog-card-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  flex-wrap: wrap;
}

/* === RECIPE META BAR === */
.recipe-meta-bar {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.meta-item { font-family: 'DM Sans', sans-serif; }
.meta-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.25rem;
}
.meta-value {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--warm-brown);
}

/* === RECIPE LAYOUT === */
.recipe-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Ingredients sidebar */
.ingredients-card {
  background: var(--sage-light);
  border: 1px solid rgba(74, 124, 89, 0.2);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: sticky;
  top: 90px;
}
.ingredients-card h3 {
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
  color: var(--sage-dark);
}
.ingredients-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ingredients-list li {
  font-size: 0.9rem;
  color: var(--warm-brown);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}
.ingredients-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}

/* Steps */
.steps-heading {
  font-size: 1.3rem;
  margin-bottom: 1.75rem;
  color: var(--warm-brown);
}
.steps-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
  min-width: 40px;
}
.step-body h4 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--warm-brown); }
.step-body p  { font-size: 0.93rem; color: var(--muted); line-height: 1.75; margin: 0; }

/* Tip box */
.tip-box {
  background: linear-gradient(135deg, #fdf3ea, #fdf9f4);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.75rem;
  margin-top: 2.5rem;
}
.tip-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  display: block;
  margin-bottom: 0.4rem;
}
.tip-box p { font-size: 0.93rem; color: var(--warm-brown); margin: 0; font-style: italic; }

/* === ARTICLE (BLOG) === */
.article-wrapper {
  padding: 9rem 1.5rem 5rem;
}
.article-header {
  max-width: 760px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.article-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1.25rem;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--warm-brown);
}
.article-body h2 { font-size: 1.55rem; margin: 2.75rem 0 1rem; }
.article-body h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }
.article-body p  { margin-bottom: 1.4rem; }
.article-body ul,
.article-body ol { margin-bottom: 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.article-body li { line-height: 1.75; }
.article-body strong { color: var(--warm-brown); font-weight: 600; }
.article-body em { font-style: italic; color: var(--muted); }

/* === FAQ === */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
details.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
details.faq-item summary {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--warm-brown);
  padding: 1.3rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s, background 0.2s;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--sage);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s;
}
details.faq-item[open] > summary::after { transform: rotate(45deg); }
details.faq-item[open] > summary { color: var(--sage); background: var(--sage-light); }
.faq-answer {
  padding: 1rem 1.5rem 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

/* === HOW-TO STEPS (Start Your Starter page) === */
.howto-steps { display: flex; flex-direction: column; gap: 2rem; }
.howto-step { display: flex; gap: 1.5rem; align-items: flex-start; }
.howto-badge {
  background: var(--sage);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.3rem;
  letter-spacing: 0.02em;
}
.howto-text h4 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--warm-brown); }
.howto-text p  { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* === EQUIPMENT GRID === */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.equipment-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}
.equipment-item h4 { font-size: 0.93rem; margin-bottom: 0.35rem; color: var(--warm-brown); }
.equipment-item p  { font-size: 0.83rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* === ABOUT SPLIT === */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-visual {
  background: linear-gradient(135deg, var(--sage-light), var(--warm-white));
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 1px solid var(--border);
  overflow: hidden;
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-text .eyebrow { margin-bottom: 0.75rem; }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p  { color: var(--muted); margin-bottom: 1.25rem; }
.about-text p:last-child { margin-bottom: 0; }

/* === NEWSLETTER === */
.newsletter {
  background: linear-gradient(135deg, #3d2b1f 0%, #5a3d2e 100%);
  padding: 5rem 1.5rem;
  text-align: center;
  color: #fff;
}
.newsletter .eyebrow { color: var(--tan); }
.newsletter h2 { color: #fff; margin-bottom: 1rem; }
.newsletter > .container > p {
  color: rgba(255,255,255,0.65);
  font-style: italic;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 210px;
  padding: 0.8rem 1.25rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.45); }
.newsletter-form input[type="email"]:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}
.newsletter-form .btn-primary {
  background: var(--tan);
  border-color: var(--tan);
  color: var(--warm-brown);
}
.newsletter-form .btn-primary:hover {
  background: #c9a880;
  border-color: #c9a880;
  color: var(--warm-brown);
}

/* === FOOTER === */
.footer {
  background: var(--warm-brown);
  color: rgba(255,255,255,0.5);
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
}
.footer a { color: rgba(255,255,255,0.5); }
.footer a:hover { color: rgba(255,255,255,0.85); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; padding: 0; }

/* === DIVIDER === */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* === UTILITIES === */
.text-center  { text-align: center; }
.text-muted   { color: var(--muted); }
.text-sage    { color: var(--sage); }
.italic       { font-style: italic; }
.mt-1  { margin-top: 1rem; }
.mt-2  { margin-top: 2rem; }
.mt-3  { margin-top: 3rem; }
.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: 2rem; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .recipe-layout { grid-template-columns: 260px 1fr; }
  .about-split { gap: 2.5rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.65rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .recipe-layout { grid-template-columns: 1fr; }
  .ingredients-card { position: static; }
  .about-split { grid-template-columns: 1fr; }
  .recipe-meta-bar { gap: 1.25rem; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    display: none;
    box-shadow: 0 8px 20px rgba(61,43,31,0.08);
  }
  .nav-links.open { display: flex; }

  .section { padding: 3.5rem 0; }
  .hero { min-height: auto; padding: 8rem 1.5rem 4rem; }
  .page-hero { padding: 8rem 1.5rem 3.5rem; }

  .newsletter-form { flex-direction: column; align-items: center; }
  .newsletter-form input[type="email"] { width: 100%; min-width: unset; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .recipe-meta-bar { padding: 1.25rem; }
}
