/* CopyCook blog: same cream / terracotta / sage palette as the app and landing page. */
:root {
  --background: 37.2 59.2% 90.4%;
  --foreground: 20 4.9% 12%;
  --card: 36 30% 98%;
  --primary: 23.8 55.3% 50%;
  --primary-foreground: 38.6 58.3% 95.3%;
  --secondary: 37.9 48.7% 84.7%;
  --muted-foreground: 34.9 20.8% 40.6%;
  --border: 37.8 40.4% 77.6%;
  --accent-100: 26.3 80% 92.2%;
  --accent-400: 26.1 63.1% 56.5%;
  --accent-600: 23.2 58.5% 41.6%;
  --sage-100: 76.4 28.2% 92.4%;
  --sage-500: 81.8 19% 45.5%;
  --sage-700: 81.3 21.7% 28%;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
}
img { max-width: 100%; height: auto; display: block; }
a { color: hsl(var(--accent-600)); text-underline-offset: 3px; }
a:hover { color: hsl(var(--primary)); }
h1, h2, h3, h4 { font-family: 'Caprasimo', 'Figtree', serif; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: hsl(var(--primary)); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.8rem 1.4rem; border-radius: 14px; font: inherit; font-weight: 700; font-size: 0.95rem; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background 0.2s, color 0.2s, transform 0.2s; }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.btn-primary:hover { background: hsl(var(--accent-600)); color: hsl(var(--primary-foreground)); }
.btn-ghost { background: transparent; border-color: hsl(var(--border)); color: hsl(var(--foreground)); }
.btn-ghost:hover { border-color: hsl(var(--primary)); color: hsl(var(--accent-600)); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; border-radius: 12px; white-space: nowrap; flex: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: hsl(var(--background) / 0.92); backdrop-filter: blur(14px); border-bottom: 1px solid hsl(var(--border) / 0.6); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.25rem; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: 'Caprasimo', serif; font-size: 1.3rem; color: hsl(var(--foreground)); text-decoration: none; }
.logo:hover { color: hsl(var(--foreground)); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: hsl(var(--foreground) / 0.65); font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.nav a:not(.btn):hover { color: hsl(var(--foreground)); }
@media (max-width: 640px) { .nav a:not(.btn):not(:nth-child(2)) { display: none; } .nav { gap: 0.9rem; } .logo { font-size: 1.1rem; } .recipe-head .btn { display: none; } .recipe-card { padding: 1.25rem; } }

/* blog index */
.blog-hero { padding: 4.5rem 0 2.5rem; }
.blog-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0.6rem 0 1rem; }
.lede { font-size: 1.2rem; color: hsl(var(--muted-foreground)); max-width: 40rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.chip { padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--foreground)); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.chip:hover, .chip.is-active { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.5rem; }
.card { background: hsl(var(--card)); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 hsl(var(--border) / 0.5); transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -12px hsl(20 10% 20% / 0.25); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-cover { aspect-ratio: 3 / 2; overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; color: hsl(var(--accent-600)); background: hsl(var(--accent-100)); font-family: 'Caprasimo', serif; font-size: 1.1rem; }
.cover-tile svg { opacity: 0.55; }
.cover-breakfast, .cover-baking { background: hsl(var(--secondary)); color: hsl(var(--accent-600)); }
.cover-saving-recipes, .cover-recipe-apps { background: hsl(var(--sage-100)); color: hsl(var(--sage-700)); }
.cover-cooking-basics { background: hsl(var(--secondary)); color: hsl(var(--accent-600)); }
.cover-meal-planning, .cover-meal-prep { background: hsl(var(--sage-100)); color: hsl(var(--sage-700)); }
.card-body { padding: 1.25rem 1.4rem 1.5rem; }
.card-body h3 { font-size: 1.3rem; margin: 0.4rem 0 0.5rem; }
.card-body p { margin: 0 0 0.8rem; color: hsl(var(--muted-foreground)); font-size: 0.95rem; line-height: 1.55; }
.card-meta { font-size: 0.8rem; font-weight: 700; color: hsl(var(--sage-700)); }
.blog-app { margin: 4rem auto 5rem; }

/* post */
.post { padding-bottom: 3rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1.5rem 0 0; font-size: 0.85rem; color: hsl(var(--muted-foreground)); }
.crumbs a { color: inherit; }
.post-head { padding: 1.25rem 0 1.5rem; }
.post-head h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); margin: 0.6rem 0 1rem; }
.byline { margin: 1rem 0 0; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.post-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.post-hero { margin: 0 0 2rem; }
.post-hero img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }

.prose { font-size: 1.0625rem; }
.prose h2 { font-size: 1.85rem; margin: 2.6rem 0 0.9rem; }
.prose h3 { font-size: 1.35rem; margin: 2rem 0 0.7rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose strong { font-weight: 700; }

/* app callout (inline) */
.callout { display: flex; gap: 1rem; align-items: flex-start; margin: 2rem 0; padding: 1.25rem 1.4rem; border-radius: var(--radius); background: hsl(var(--accent-100)); border: 1px solid hsl(var(--accent-400) / 0.35); }
.callout-icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; background: hsl(var(--card)); }
.callout p { margin: 0.2rem 0 0.5rem; font-size: 0.98rem; line-height: 1.55; }
.callout-link { font-weight: 700; font-size: 0.95rem; }

/* recipe card */
.recipe-card { margin: 2.5rem 0; padding: 1.75rem; border-radius: calc(var(--radius) + 4px); background: hsl(var(--card)); border: 1px solid hsl(var(--border)); scroll-margin-top: 5.5rem; }
.recipe-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.recipe-head h2 { font-size: 1.8rem; }
.recipe-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); gap: 0.75rem; margin: 1.25rem 0 1.5rem; padding: 1rem; border-radius: 14px; background: hsl(var(--background)); font-weight: 700; }
.recipe-meta span { display: block; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }
.recipe-cols { display: grid; gap: 2rem; }
@media (min-width: 760px) { .recipe-cols { grid-template-columns: 0.85fr 1.15fr; } }
.recipe-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.ing-group { font-family: 'Figtree', sans-serif; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--sage-700)); margin: 1.1rem 0 0.4rem; }
.ingredients { list-style: none; margin: 0; padding: 0; }
.ingredients li { border-bottom: 1px dashed hsl(var(--border)); }
.ingredients label { display: flex; gap: 0.7rem; padding: 0.5rem 0; cursor: pointer; line-height: 1.45; }
.ingredients input { flex: none; margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: hsl(var(--primary)); }
.ingredients input:checked + span { text-decoration: line-through; color: hsl(var(--muted-foreground)); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.1rem 2.7rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 700; font-size: 0.9rem; }
.recipe-notes { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid hsl(var(--border)); }
.recipe-notes ul { margin: 0; padding-left: 1.2rem; }
.recipe-notes li { margin-bottom: 0.4rem; }
.nutrition { margin: 1.5rem 0 0; padding: 0.9rem 1rem; border-radius: 12px; background: hsl(var(--sage-100)); font-size: 0.92rem; line-height: 1.55; }
.nutrition span { display: block; color: hsl(var(--muted-foreground)); font-size: 0.82rem; }

/* faq */
.faq { margin: 2.5rem 0; }
.faq h2 { font-size: 1.85rem; margin-bottom: 1rem; }
.faq details { border-bottom: 1px solid hsl(var(--border)); padding: 0.95rem 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: hsl(var(--primary)); }
.faq details[open] summary::after { content: '\2212'; }
.faq p { margin: 0.7rem 0 0; color: hsl(var(--muted-foreground)); }

/* app cta */
.app-cta { display: grid; gap: 2rem; align-items: center; margin: 3rem 0; padding: 2rem; border-radius: calc(var(--radius) + 6px); background: hsl(20 4.9% 12%); color: hsl(var(--primary-foreground)); overflow: hidden; }
@media (min-width: 760px) { .app-cta { grid-template-columns: 1.3fr 0.7fr; padding: 2.5rem; } }
.app-cta h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0.6rem 0 1rem; color: inherit; }
.app-cta .eyebrow { color: hsl(var(--accent-400)); }
.app-cta ul { margin: 0 0 1.5rem; padding-left: 1.2rem; color: hsl(var(--primary-foreground) / 0.8); font-size: 0.98rem; }
.app-cta li { margin-bottom: 0.35rem; }
.app-cta-shot { width: 100%; max-width: 240px; margin: 0 auto; border-radius: 22px; box-shadow: 0 20px 40px -12px rgb(0 0 0 / 0.5); }

.related { margin-top: 3.5rem; }
.related h2 { font-size: 1.85rem; margin-bottom: 1.25rem; }

/* ads */
.ad-slot { margin: 2rem 0; min-height: 120px; text-align: center; }
.ad-label { display: block; margin-bottom: 0.25rem; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: hsl(var(--muted-foreground)); }

/* footer */
.site-footer { background: hsl(20 4.9% 12%); color: #fff; margin-top: 4rem; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: 'Caprasimo', serif; font-size: 1.25rem; margin-bottom: 0.8rem; }
.site-footer p { color: rgb(255 255 255 / 0.6); font-size: 0.9rem; max-width: 22rem; margin: 0; }
.site-footer h4 { font-family: 'Figtree', sans-serif; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; color: rgb(255 255 255 / 0.9); }
.site-footer a { display: block; color: rgb(255 255 255 / 0.6); font-size: 0.9rem; text-decoration: none; margin-bottom: 0.5rem; }
.site-footer a:hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.1); }
.footer-base p { color: rgb(255 255 255 / 0.4); }
.footer-base a { margin: 0; }

@media print {
  .site-header, .site-footer, .no-print, .post-head, .post-hero, .prose, .callout, .app-cta, .related, .faq, .ad-slot, .crumbs { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .recipe-card { border: 0; padding: 0; margin: 0; }
  .recipe-cols { grid-template-columns: 1fr 1.3fr; }
}

/* guides: tables and table of contents */
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: 0.98rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.8rem; border-bottom: 1px solid hsl(var(--border)); white-space: nowrap; }
.prose td:first-child, .prose th:first-child { white-space: normal; }
.prose th { font-weight: 700; background: hsl(var(--secondary)); }
.prose h2[id] { scroll-margin-top: 5rem; }
.toc { margin: 1.6rem 0; padding: 1.1rem 1.4rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); }
.toc ol { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.toc li { margin-bottom: 0.3rem; }
