/* ============================================================
   PASTRYPATH — SHARED STYLESHEET
   Used by: /recipes/*, /blog/*, /learning-tracks.html
   Brand system matches pastrypath.com homepage (pink/burgundy/cream)
   Accessibility: 16px+ body text, pure dark text, high contrast (AA+)
   ============================================================ */

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

:root {
  --pink-bright:   #F72585;
  --pink-soft:     #FF8DC7;
  --pink-pale:     #FFD6EC;
  --pink-ultralight: #FFF0F8;

  --burgundy:      #6B1A3A;
  --burgundy-mid:  #9B2559;
  --burgundy-light:#D4547A;

  --cream:         #FFFAF8;
  --white:         #FFFFFF;

  --text-dark:     #1A0A12;
  --text-body:     #3A0A20;
  --text-muted:    #6B2B48;
  --border:        rgba(215, 84, 122, 0.25);
  --border-strong: rgba(107, 26, 58, 0.4);

  --shadow-pink:   0 8px 40px rgba(247, 37, 133, 0.2);
  --shadow-dark:   0 4px 24px rgba(58, 10, 32, 0.12);

  --easy:          #2E9E6B;
  --intermediate:  #C77D14;
  --advanced:      #C4344B;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--text-body);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(247,37,133,0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(107,26,58,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { position: relative; z-index: 1; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 2.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 250, 248, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-left { display: flex; align-items: center; gap: 2.2rem; }

.logo { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.logo-icon { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.logo-text { font-family: 'Nunito', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--burgundy); letter-spacing: -0.01em; }
.logo-text span { color: var(--pink-bright); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--pink-bright); }

.nav-yt {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; background: var(--pink-bright); color: #fff;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.5rem 1.25rem; border-radius: 100px; box-shadow: var(--shadow-pink);
  transition: all 0.2s; white-space: nowrap;
}
.nav-yt:hover { background: var(--burgundy-mid); transform: translateY(-1px); }
.nav-yt .yt-icon { width: 15px; height: 15px; fill: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--burgundy);
  padding: 0.4rem 0.2rem;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(58, 10, 32, 0.12);
    padding: 0.25rem 1.5rem 0.75rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: none; }
}

/* ── PAGE HEADER / BREADCRUMB ── */
.page-head {
  padding: 7.5rem 1.5rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--burgundy); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-bright);
  background: var(--pink-ultralight);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

h1.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  color: var(--burgundy);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin-bottom: 0.9rem;
}
h1.page-title em { color: var(--pink-bright); font-style: italic; }

.page-sub {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 720px;
  margin-bottom: 0.5rem;
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.byline img { width: 32px; height: 32px; border-radius: 50%; }
.byline strong { color: var(--text-body); }

/* ── SECTION HEAD (reused pattern) ── */
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 2.5rem; }
.sec-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--pink-bright); background: var(--pink-ultralight);
  padding: 0.4rem 0.9rem; border-radius: 100px; margin-bottom: 1rem;
}
.sec-title { font-family: 'Cormorant Garamond', serif; font-weight: 700; color: var(--burgundy); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; }
.sec-title em { color: var(--pink-bright); font-style: italic; }
.sec-sub { color: var(--text-body); font-size: 1.05rem; margin-top: 0.8rem; }
.separator { width: 60px; height: 3px; background: var(--pink-bright); border-radius: 2px; margin: 1.1rem auto 0; }

/* ── CATEGORY / FILTER PILLS ── */
.pill-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  max-width: 1100px; margin: 0 auto 2.5rem; padding: 0 1.5rem;
}
.pill {
  font-size: 0.88rem; font-weight: 600; color: var(--burgundy);
  background: var(--white); border: 1.5px solid var(--border);
  padding: 0.5rem 1.1rem; border-radius: 100px; text-decoration: none;
  transition: all 0.2s; cursor: pointer;
}
.pill:hover, .pill.active { background: var(--pink-bright); border-color: var(--pink-bright); color: #fff; }

/* ── CONTENT CARD GRID (recipes + blog posts) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .card-grid { grid-template-columns: 1fr; } }

.content-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-dark);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.content-card:hover { transform: translateY(-5px); box-shadow: 0 16px 44px rgba(107,26,58,0.18); }

.content-card .thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--pink-pale), var(--pink-ultralight));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.content-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.content-card .thumb .emoji { font-size: 3.6rem; }

.badge {
  position: absolute; top: 0.7rem; left: 0.7rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 100px; color: #fff;
}
.badge.easy { background: var(--easy); }
.badge.intermediate { background: var(--intermediate); }
.badge.advanced { background: var(--advanced); }
.badge.guide { background: var(--burgundy-mid); }

.content-card .body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.content-card .cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pink-bright); margin-bottom: 0.4rem; }
.content-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 700; color: var(--burgundy); line-height: 1.25; margin-bottom: 0.5rem; }
.content-card p { font-size: 0.95rem; color: var(--text-body); flex: 1; }
.content-card .cta { margin-top: 0.9rem; font-size: 0.88rem; font-weight: 700; color: var(--pink-bright); display: flex; align-items: center; gap: 0.3rem; }
.content-card:hover .cta { color: var(--burgundy); }

/* ── ARTICLE / RECIPE BODY LAYOUT ── */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.article-wrap h2 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--burgundy);
  font-size: 1.9rem;
  margin: 2.2rem 0 1rem;
}
.article-wrap h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--burgundy-mid);
  font-size: 1.4rem;
  margin: 1.6rem 0 0.7rem;
}
.article-wrap p { margin-bottom: 1.1rem; font-size: 1.05rem; }
.article-wrap ul, .article-wrap ol { margin: 0 0 1.1rem 1.4rem; font-size: 1.05rem; }
.article-wrap li { margin-bottom: 0.5rem; }
.article-wrap strong { color: var(--text-dark); }
.article-wrap a.inline-link { color: var(--pink-bright); font-weight: 600; text-decoration: underline; }

.hero-img {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  margin: 1.5rem 0 2rem;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--pink-pale), var(--pink-ultralight));
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.callout {
  background: var(--pink-ultralight);
  border-left: 5px solid var(--pink-bright);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
  font-size: 1.02rem;
}
.callout strong { color: var(--burgundy); }

.jump-recipe {
  display: inline-block; margin: 0.5rem 0 1.5rem;
  font-size: 0.95rem; font-weight: 700; color: var(--pink-bright);
  text-decoration: none; border-bottom: 2px solid var(--pink-bright);
}

/* ── RECIPE CARD (schema-backed) ── */
.recipe-card {
  background: var(--white);
  border: 2px solid var(--pink-pale);
  border-radius: 22px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-dark);
}
.recipe-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.recipe-card h2.recipe-title { font-size: 1.7rem; margin: 0; }
.recipe-meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1rem 0; margin: 1.2rem 0 1.6rem;
}
.recipe-meta div { font-size: 0.92rem; }
.recipe-meta strong { display: block; color: var(--burgundy); font-size: 1rem; }

.recipe-columns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; }
@media (max-width: 700px) { .recipe-columns { grid-template-columns: 1fr; } }

.ingredient-list { list-style: none; margin: 0; }
.ingredient-list li {
  padding: 0.55rem 0; border-bottom: 1px dashed var(--border);
  font-size: 1rem; display: flex; gap: 0.5rem;
}
.ingredient-list li strong { color: var(--text-dark); min-width: 130px; flex-shrink: 0; }

.method-list { list-style: none; counter-reset: step; margin: 0; }
.method-list li {
  counter-increment: step;
  padding: 0 0 1.1rem 2.6rem;
  position: relative;
  font-size: 1.03rem;
}
.method-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 1.9rem; height: 1.9rem;
  background: var(--pink-bright); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}

.recipe-note {
  background: var(--pink-ultralight);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  margin-top: 1.5rem;
  font-size: 0.98rem;
}

.print-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 700; color: var(--burgundy);
  background: var(--pink-pale); padding: 0.5rem 1rem; border-radius: 100px;
  border: none; cursor: pointer;
}
.print-btn:hover { background: var(--pink-soft); }

/* ── COMPARISON TABLE ── */
.compare-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: 0.95rem; }
.compare-table th { background: var(--burgundy); color: #fff; padding: 0.7rem 0.8rem; text-align: left; font-weight: 600; }
.compare-table td { padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--border); }
.compare-table tr:nth-child(even) td { background: var(--pink-ultralight); }

/* ── RELATED / CROSS-LINK STRIP ── */
.related-wrap { background: var(--white); padding: 3rem 1.5rem; border-top: 1px solid var(--border); }
.related-inner { max-width: 1100px; margin: 0 auto; }

/* ── LEARNING TRACK TIMELINE ── */
.track-list { max-width: 780px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.track-step {
  display: flex; gap: 1.4rem;
  background: var(--white); border-radius: 18px; padding: 1.4rem 1.6rem;
  margin-bottom: 1.1rem; box-shadow: var(--shadow-dark);
  text-decoration: none; align-items: flex-start;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.track-step:hover { transform: translateX(4px); box-shadow: 0 10px 30px rgba(107,26,58,0.15); }
.track-num {
  flex-shrink: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--pink-bright); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1.1rem;
}
.track-step.locked .track-num { background: var(--text-muted); }
.track-step.locked { opacity: 0.75; cursor: default; }
.track-body h3 { font-family: 'Cormorant Garamond', serif; color: var(--burgundy); font-size: 1.25rem; margin-bottom: 0.3rem; }
.track-body p { font-size: 0.95rem; color: var(--text-body); margin: 0; }
.track-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pink-bright); margin-bottom: 0.3rem; }

/* ── CTA STRIP ── */
.cta-wrap {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-mid) 100%);
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: #fff;
}
.cta-wrap .sec-tag { background: rgba(255,255,255,0.15); color: #fff; }
.cta-wrap h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.6rem,4vw,2.3rem); margin-bottom: 0.8rem; }
.cta-wrap h2 em { color: var(--pink-soft); font-style: italic; }
.cta-wrap p { max-width: 560px; margin: 0 auto 1.6rem; font-size: 1.05rem; opacity: 0.95; }
.btn-cta-light {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #fff; color: var(--burgundy); text-decoration: none; font-weight: 700;
  padding: 0.9rem 1.9rem; border-radius: 100px; transition: all 0.2s;
}
.btn-cta-light:hover { background: var(--pink-pale); transform: translateY(-2px); }
.btn-cta-light svg { width: 18px; height: 18px; fill: var(--burgundy); }

.btn-pink {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--pink-bright); color: #fff; text-decoration: none; font-weight: 600;
  padding: 0.85rem 1.7rem; border-radius: 100px; box-shadow: var(--shadow-pink); transition: all 0.2s;
}
.btn-pink:hover { background: var(--burgundy-mid); transform: translateY(-2px); }
.btn-pink svg { width: 18px; height: 18px; fill: #fff; }

/* ── FOOTER ── */
footer.site-footer { padding: 2.5rem 1.5rem; text-align: center; border-top: 1px solid var(--border); background: var(--cream); }
footer.site-footer p { font-size: 0.85rem; color: var(--text-muted); }
footer.site-footer a { color: var(--burgundy); text-decoration: none; font-weight: 600; }
footer.site-footer .foot-links { margin-top: 0.6rem; display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; font-size: 0.85rem; }

@media (max-width: 600px) {
  nav { padding: 0 1.25rem; }
  .page-head { padding: 6.5rem 1.25rem 2rem; }
  .recipe-meta { gap: 0.9rem; }
}
