/*
Theme Name: Heart & Spoon
Author: daMitech
Theme URI: https://damitech.ch
Description: Custom WordPress recipe theme crafted by daMitech.ch
Version: 1.1.19
Text Domain: heart-spoon
*/

:root{
  --font-body: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --radius-sm:16px;
  --radius-md:22px;
  --radius-lg:30px;
  --ring: 0 0 0 4px rgba(255,255,255,.55);
  --glass: rgba(255,255,255,.55);
  --glass2: rgba(255,255,255,.35);
  --noise-opacity: .035;

  --bg1:#f7d6d9; --bg2:#e6e1ff;
  --ink:#1f1f28; --muted:#6d6d7a;
  --card:#ffffffee; --stroke:#e7e7f2;
  --shadow:0 16px 40px rgba(17,17,28,.16);
  --shadow-soft:0 12px 26px rgba(17,17,28,.12);
  --radius:28px;
  --accent:#5b4bff; --accent2:#ff4fa0;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1000px 700px at 10% 10%, rgba(240,106,163,.35), rgba(240,106,163,0) 60%),
    radial-gradient(1000px 700px at 90% 15%, rgba(123,92,255,.30), rgba(123,92,255,0) 65%),
    linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.9)),
    linear-gradient(90deg, var(--bg1), var(--bg2));
  background-attachment: fixed;
}

a{color:inherit;text-decoration:none}
.container{max-width:1600px;margin:0 auto;padding:28px 20px 90px}

.site-header{
  position:sticky; top:0; z-index:20;
  backdrop-filter: blur(10px) saturate(160%);
  background: rgba(255,255,255,.78);
  border-bottom:1px solid rgba(236,236,243,.8);
}
.site-header .inner{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  max-width:1600px;margin:0 auto;padding:14px 20px
}
.brand{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.2px}
.brand img{max-height:34px;width:auto}
.nav-pills{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 14px;border-radius:999px;
  background: rgba(255,255,255,.85);
  border:1px solid rgba(231,231,242,.9);
  box-shadow:0 10px 22px rgba(17,17,28,.08);
  font-weight:900;font-size:14px;
  transition:transform .15s ease, background .15s ease;
}
.pill:hover{transform:translateY(-1px)}
.pill.active{border-color: rgba(91,75,255,.35); background: rgba(91,75,255,.10); color: var(--accent);}

.card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero-wrap{padding:34px 0 10px}
.hero-grid{display:grid; grid-template-columns: 1.2fr 1fr; gap:22px;}
@media (max-width: 900px){ .hero-grid{grid-template-columns:1fr} }

.hero-card{padding:26px}
.hero-title{
  font-family: var(--font-display);
  font-size:56px; line-height:1.02; margin:0 0 10px;
  font-weight: 950;
  letter-spacing: -0.6px;
}
@media (max-width: 520px){ .hero-title{font-size:42px} }
.hero-sub{margin:0;color:var(--muted);font-size:16px;font-weight:650}

.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px; border-radius:999px;
  background:#fff; border:1px solid #e9e9f4;
  box-shadow:0 10px 22px rgba(31,31,40,.06);
  font-weight:900; font-size:14px;
  transition:transform .15s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{border-color: transparent; background: linear-gradient(90deg, var(--accent2), var(--accent)); color:#fff;}
.btn.primary svg, .btn.primary i{color:#fff}
.btn.heart{border-color: rgba(255,79,160,.35); background: rgba(255,79,160,.10); color: var(--accent2);}

.section-title{margin:26px 0 10px;font-weight:950;letter-spacing:.2px;font-size:18px}
.underline{
  width:120px;height:5px;border-radius:999px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  opacity:.9; margin-top:8px;
}

.grid{display:grid; grid-template-columns: repeat(3, 1fr); gap:14px;}
@media (max-width: 980px){ .grid{grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 560px){ .grid{grid-template-columns: 1fr;} }

/* --- Pinterest B (Magazine Masonry) --- */
.hs-pin-grid{
  column-count:3;
  column-gap:14px;
}
@media (max-width: 980px){ .hs-pin-grid{column-count:2;} }
@media (max-width: 560px){ .hs-pin-grid{column-count:1;} }

.hs-pin-grid > *{
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 14px;
  display: inline-block;
  width: 100%;
}

.hs-pin-grid .recipe-card{
  border-radius: 24px;
}

.hs-pin-grid .recipe-card img{
  width:100%;
  height:auto;
  aspect-ratio: 4 / 3; /* Pinterest-ish but not too tall */
  object-fit: cover;
  display:block;
}

/* Collections: show recipes as a clean vertical list (no tiny thumbnails) */
.hs-collection-list{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
  margin-top:12px;
}
.hs-collection-list .recipe-card img{
  height:140px;
  aspect-ratio: auto;
  object-fit: cover;
}



.recipe-card{
  background:#fff;
  border:1px solid var(--stroke);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}
.recipe-card .thumb{
  height:160px;
  background:linear-gradient(135deg, rgba(240,106,163,.25), rgba(123,92,255,.20));
}
.recipe-card img{width:100%;height:160px;object-fit:cover;display:block}
.recipe-card .body{padding:14px}
.recipe-card h3{margin:0 0 6px;font-size:16px;font-weight:900;letter-spacing:-0.2px}
.recipe-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.35}
.badge{
  display:inline-flex;
  padding:7px 10px;border-radius:999px;
  border:1px solid #e9e9f4;
  background:rgba(123,92,255,.06);
  font-weight:900;font-size:12px;color:var(--accent);
}
.badge.pink{background:rgba(240,106,163,.08);color:var(--accent2);border-color:rgba(240,106,163,.20)}

.toolbar{
  display:flex; gap:12px; align-items:center; flex-wrap:wrap;
  margin:18px 0 14px;
}
.search{
  flex:1 1 260px;
  display:flex; align-items:center; gap:10px;
  padding:12px 14px; border-radius: var(--radius-sm);
  background:#fff; border:1px solid var(--stroke);
  box-shadow:0 10px 22px rgba(31,31,40,.06);
}
.search input{border:none; outline:none; width:100%; font-size:14px; font-weight:650}
.counter{
  padding:12px 14px; border-radius: var(--radius-sm);
  background:rgba(255,255,255,.75);
  border:1px solid var(--stroke);
  font-weight:900; font-size:14px;
}

.meta-grid{
  display:grid; grid-template-columns: repeat(4, 1fr); gap:12px;
  margin:14px 0 18px;
}
@media (max-width: 760px){ .meta-grid{grid-template-columns: repeat(2, 1fr);} }
.meta-box{
  background:#fff;border:1px solid var(--stroke);border-radius:18px;
  padding:12px 12px;box-shadow:0 10px 22px rgba(31,31,40,.06);
  text-align:center;
}
.meta-box .label{font-size:12px;color:var(--muted);font-weight:900;letter-spacing:.3px;text-transform:uppercase}
.meta-box .value{font-weight:950;margin-top:6px}

.footer{
  padding:24px 16px;
  text-align:center; color:var(--muted); font-weight:850;
}


/* Heart & Spoon – Recipe featured image (extra small, centered) */
.single-recipe .post-thumbnail img,
.single-recipe .wp-post-image{
  max-width: 260px;   /* even smaller */
  width: 100%;
  height: auto;
  display: block;
  margin: 18px auto 26px auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* Favorite button */

.recipe-share{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  margin: 10px 0 18px;
}
.recipe-share a{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius:999px;
  border:1px solid rgba(236,236,243,.9);
  background: rgba(255,255,255,.85);
  text-decoration:none; font-weight:800;
}
.recipe-share a:hover{ transform: translateY(-1px); }






/* Favorite button on recipe page */
.hs-fav-btn{
  border: 1px solid rgba(236,236,243,.95);
  background: rgba(255,255,255,.92);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
}
.hs-fav-btn.active{ color:#ff4d6d; }


/* Title + favorite button */
.hs-title-row{
  display:flex;
  align-items:center;
  gap:12px;
}
.hs-title-row h1{ margin:0; }
.hs-fav-btn{
  border: 1px solid rgba(236,236,243,.95);
  background: rgba(255,255,255,.92);
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  border-radius:999px;
  font-size:20px;
  cursor:pointer;
}
.hs-fav-btn.active{ color:#ff4d6d; }

/* Recipe actions row (single recipe only) */
.hs-recipe-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:14px 0 8px;}
.hs-recipe-actions .pill{cursor:pointer;}
.hs-recipe-actions [data-hs-fav-btn].active{border-color:rgba(255,77,109,.45);box-shadow:0 10px 30px rgba(255,77,109,.18);}

/* Make single recipe image smaller + centered on mobile */
@media (max-width: 720px){
  .recipe-hero img,
  .recipe-header img,
  .single-recipe .hero img,
  .single-recipe .recipe-card img{
    max-height:210px!important;
    width:100%!important;
    object-fit:cover!important;
    border-radius:18px!important;
  }
  .recipe-hero,
  .recipe-header{
    display:block!important;
  }
}

/* Mobile tweaks: Today's pick (homepage) */
@media (max-width: 720px){
  .featured .featured-inner{display:block!important;padding:18px!important;gap:14px!important;}
  .featured .featured-media{margin-top:12px;max-height:200px;overflow:hidden;border-radius:18px;}
  .featured .featured-media img{width:100%;height:180px;object-fit:cover;display:block;}
  .featured .featured-copy h2{font-size:34px!important;line-height:1.1;}
  .featured .featured-copy .excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
}

/* Theme credit */
.hs-theme-credit{
  text-align:center;
  font-size:12px;
  opacity:.6;
  margin:18px 0 6px;
}
.hs-theme-credit a{ text-decoration:none; }

/* Difficulty stars (recipe page only) */
.hs-difficulty{display:flex;align-items:center;gap:10px;margin:12px 0 12px;}
.hs-difficulty .label{font-weight:800;font-size:12px;opacity:.75;}
.hs-difficulty .stars{font-size:16px;letter-spacing:2px;}

/* Related recipes spacing */
.hs-related{margin-top:26px;}


/* Recipe micro-story */
.hs-recipe-story{
  margin:12px 0 14px;
  font-size:15px;
  line-height:1.5;
  opacity:.9;
}
.hs-recipe-story .label{
  display:block;
  font-weight:700;
  font-size:12px;
  letter-spacing:.02em;
  margin-bottom:4px;
  opacity:.7;
}
.hs-recipe-story em{
  font-style:italic;
}


/* When to cook this */
.hs-when-to-cook{
  display:flex;
  gap:8px;
  font-size:14px;
  margin:0 0 10px;
  opacity:.85;
}
.hs-when-to-cook .label{
  font-weight:700;
  font-size:12px;
  opacity:.7;
}


/* Serve with */
.hs-serve-with{
  margin-top:18px;
  padding-top:12px;
  border-top:1px solid rgba(0,0,0,.06);
  font-size:14px;
}
.hs-serve-with .label{
  display:block;
  font-weight:700;
  font-size:12px;
  opacity:.7;
  margin-bottom:4px;
}


/* Start here homepage block */
.hs-start-here-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:18px;
}
.hs-start-card{
  display:block;
  padding:20px;
  border-radius:14px;
  background:#fff;
  text-decoration:none;
  color:inherit;
  box-shadow: var(--hs-shadow-soft);
  transition:transform .15s ease, box-shadow .15s ease;
}
.hs-start-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 30px rgba(0,0,0,.09);
}
.hs-start-card .emoji{
  font-size:26px;
  display:block;
  margin-bottom:6px;
}
.hs-start-card h3{
  margin:4px 0 6px;
  font-size:18px;
}
.hs-start-card p{
  margin:0;
  font-size:14px;
  opacity:.75;
}


/* Blog styling */
.hs-blog-list{
  display:grid;
  gap:18px;
}
.hs-blog-item h2,
.hs-blog-item h3{
  margin:0 0 6px;
}
.hs-blog-item p{
  margin:0;
  font-size:14px;
  opacity:.75;
}
.hs-blog-single h1{
  margin-bottom:8px;
}
.hs-blog-meta{
  font-size:12px;
  opacity:.6;
  margin-bottom:12px;
}
.hs-blog-thumb{
  margin:12px 0 16px;
}
.hs-blog-body{
  max-width:680px;
}


/* Tools I use */
.hs-tools-list{
  display:grid;
  gap:20px;
  max-width:720px;
}
.hs-tool{
  padding:16px;
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.05);
}
.hs-tool h3{
  margin:0 0 6px;
}
.hs-tool p{
  margin:0 0 6px;
  font-size:14px;
  opacity:.85;
}


/* Seasonal homepage block */
.hs-seasonal-home{
  margin-top:32px;
}



.hs-social-link{
  display:inline-block;
  padding:8px 10px;
  border-radius:999px;
  background:#ffffff;
  box-shadow:0 10px 26px rgba(0,0,0,.12);
  font-size:12px;
  text-decoration:none;
  color:inherit;
  opacity:.92;
}
@media (max-width: 700px){
  .hs-social-icons{right:12px;bottom:12px;gap:6px;}
  .hs-social-link{padding:7px 9px;}
}

/* Follow us section */
.hs-home-follow .hs-follow-block{margin-top:14px;}
.hs-follow-h{margin:0 0 10px;font-size:16px;}
.hs-yt-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
}
.hs-yt-card{
  display:block;
  text-decoration:none;
  color:inherit;
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow: var(--hs-shadow-soft);
}
.hs-yt-card img{width:100%;height:auto;display:block;}
.hs-yt-title{padding:10px 12px;font-size:13px;opacity:.9;}


/* Social icons in header (inline) */
.hs-social-icons{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  padding:10px 0;
}
.hs-social-link{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(0,0,0,.06);
  font-size:12px;
  text-decoration:none;
  color:inherit;
  opacity:.95;
}
@media (max-width: 700px){
  .hs-social-icons{justify-content:center;gap:8px;}
}


/* Mobile drawer menu */
.hs-mobile-menu-btn{
  display:none;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(140,120,255,.18);
  width:54px;
  height:54px;
  border-radius:999px;
  font-size:26px;
  line-height:1;
  padding:0;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  position:relative;
  z-index:10005;
  -webkit-tap-highlight-color: transparent;
}

.hs-mobile-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.35);
  z-index:9998;
}

.hs-mobile-drawer{
  position:fixed;
  top:0;
  right:0;
  height:100vh;
  width:min(88vw, 360px);
  background:#fff;
  z-index:9999;
  transform:translateX(100%);
  transition:transform .18s ease;
  box-shadow:-12px 0 30px rgba(0,0,0,.18);
  display:flex;
  flex-direction:column;
  padding:14px 14px 18px;
}

html.hs-menu-open .hs-mobile-drawer{
  transform:translateX(0);
}

.hs-mobile-drawer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.hs-mobile-drawer-title{
  font-weight:700;
  font-size:14px;
  opacity:.8;
}

.hs-mobile-close{
  background:transparent;
  border:0;
  font-size:22px;
  padding:6px 8px;
  cursor:pointer;
  position:relative;
  z-index:10;
}

.hs-mobile-drawer-search{
  padding:12px 0 10px;
}

.hs-mobile-search-form{
  display:flex;
  gap:8px;
}
.hs-mobile-search-form input[type="search"]{
  flex:1;
  padding:10px 12px;
  border-radius: var(--hs-radius-sm);
  border:1px solid rgba(0,0,0,.10);
  font-size:14px;
}
.hs-mobile-search-form button{
  padding:10px 12px;
  border-radius: var(--hs-radius-sm);
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  cursor:pointer;
}

.hs-mobile-menu{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.hs-mobile-menu a{
  display:block;
  padding:10px 10px;
  border-radius: var(--hs-radius-sm);
  text-decoration:none;
  color:inherit;
  background:rgba(0,0,0,.03);
}
.hs-mobile-drawer-social{
  margin-top:auto;
  padding-top:12px;
  border-top:1px solid rgba(0,0,0,.06);
}
.hs-mobile-drawer-social .hs-social-icons{
  padding:0;
  justify-content:flex-start;
}

/* Show hamburger on mobile only + hide desktop nav selectors */
@media (max-width: 820px){
  .hs-mobile-menu-btn{display:inline-block;}
  .site-nav, .primary-nav, nav.primary, .main-navigation{display:none !important;}
}


/* Top moods (auto top 3) */
.hs-mood-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.hs-mood-pill{
  display:inline-block;
  padding:10px 12px;
  border-radius:999px;
  text-decoration:none;
  color:inherit;
  background:rgba(0,0,0,.04);
  font-size:14px;
}


/* Premium polish */
:root{
  --font-body: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --radius-sm:16px;
  --radius-md:22px;
  --radius-lg:30px;
  --ring: 0 0 0 4px rgba(255,255,255,.55);
  --glass: rgba(255,255,255,.55);
  --glass2: rgba(255,255,255,.35);
  --noise-opacity: .035;

  --hs-radius: 18px;
  --hs-radius-sm: 14px;
  --hs-shadow-soft: 0 8px 22px rgba(0,0,0,.05);
}

body{
  line-height: 1.65;
  letter-spacing: 0.1px;
}

.entry-content, .site-main{
  line-height: 1.7;
}

h1,h2,h3{
  letter-spacing: -0.2px;
}

h1{
  margin-bottom: 10px;
}

h2, .section-title{
  margin-top: 26px;
  margin-bottom: 12px;
}

.entry-content p{
  margin: 0 0 14px;
}

/* Cards */
.card, .recipe-card, .post-card{
  border-radius: var(--radius-sm);
  box-shadow: var(--hs-shadow-soft);
}

.card img, .recipe-card img, .post-card img{
  border-radius: var(--radius-sm);
}

button, .btn, .button, a.button{
  border-radius: 999px;
}

a{
  text-underline-offset: 2px;
}


/* Glass sticky header */
.site-header, header.site-header{
  position: sticky;
  position: -webkit-sticky;
  
  top: 0;
  z-index: 999;
  position: relative;
  position: sticky;
  
  background: rgba(255,255,255,0.58);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.site-header.is-scrolled, header.site-header.is-scrolled{
  background: rgba(255,255,255,0.86);
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  border-bottom-color: rgba(0,0,0,0.08);
}

.hs-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.hs-header-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.hs-search-toggle{
  appearance:none;
  border:0;
  background: transparent;
  padding:8px 10px;
  border-radius:999px;
  line-height:1;
  cursor:pointer;
  opacity:.85;
}
.hs-search-toggle:hover{opacity:1; background: rgba(0,0,0,0.04);}

.hs-search-panel{
  display:none;
  position:absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 12px 14px 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.site-header.hs-search-open .hs-search-panel{display:block;}

.hs-search-panel form{
  max-width: 980px;
  margin: 0 auto;
  display:flex;
  gap:10px;
}
.hs-search-panel input[type="search"]{
  flex: 1 1 auto;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.8);
  outline: none;
}
.hs-search-panel button{
  padding: 12px 16px;
  border-radius: 999px;
}

/* keep content from hiding behind sticky header in anchor jumps */
:target{ scroll-margin-top: 90px; }

.site-header{ position: relative; }

/* Menu hardening */
body.hs-menu-open{
  overflow:hidden;
}

.hs-mobile-backdrop[aria-hidden="true"]{
  pointer-events:none;
  opacity:0;
}

#hs-mobile-drawer[aria-hidden="true"]{
  pointer-events:none;
}

.hs-cooked-badge{
 display:inline-block;
 margin:6px 0 14px;
 padding:4px 10px;
 font-size:12px;
 border-radius:999px;
 background:rgba(0,0,0,.04);
 color:#333;
}

html.hs-menu-open .hs-mobile-backdrop{display:block;}



/* ===============================
   Premium polish pack (v5.8)
   1) Typography, spacing
   2) Glass header refinements
   3) Card + button system
   4) Mobile drawer + overlay
   5) Empty states + subtle UI
   =============================== */

html, body{ height:100%; }
body{
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(1200px 600px at 20% 10%, rgba(255,255,255,.8), transparent 60%),
              radial-gradient(900px 500px at 80% 0%, rgba(255,255,255,.6), transparent 55%),
              linear-gradient(135deg, var(--bg1), var(--bg2));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  mix-blend-mode: overlay;
}

h1,h2,h3,.hero-title{
  font-family: var(--font-display);
  letter-spacing:-.02em;
}
p{ line-height:1.65; }

a:focus-visible, button:focus-visible, input:focus-visible{
  outline:none;
  box-shadow: var(--ring);
  border-radius: 14px;
}

/* Buttons */
.btn, button, input[type="submit"]{
  border-radius: 999px;
}
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 12px 18px;
  font-weight:600;
  border:1px solid rgba(31,31,40,.10);
  box-shadow: 0 8px 24px rgba(31,31,40,.10);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 14px 34px rgba(31,31,40,.14); }
.btn:active{ transform: translateY(0); box-shadow: 0 8px 20px rgba(31,31,40,.12); }
.btn.primary{border-color: transparent; background: linear-gradient(90deg, var(--accent2), var(--accent)); color:#fff;}
.btn.primary svg, .btn.primary i{color:#fff}
.btn.secondary{
  background: rgba(255,255,255,.55);
}

/* Cards */
.card{
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(31,31,40,.14);
}
.card:hover{
  box-shadow: 0 26px 80px rgba(31,31,40,.16);
}

/* Header */
.site-header{
  background: rgba(255,255,255,.45);
  border-bottom: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
}
.site-header.is-scrolled{
  background: rgba(255,255,255,.62);
}
.site-header.is-hidden{
  transform: translateY(-120%);
  transition: transform .22s ease;
}
.site-header{
  transition: background .2s ease, box-shadow .2s ease, transform .22s ease;
}

/* Nav pills — keep on desktop, hide on mobile and show in drawer */
@media (max-width: 960px){
  .nav-pills{ display:none !important; }
}

/* Mobile menu */
.hs-mobile-menu-btn{
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 99999;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: 0 10px 28px rgba(31,31,40,.14);
}
@media (min-width: 961px){
  .hs-mobile-menu-btn, .hs-mobile-drawer, .hs-mobile-backdrop{ display:none !important; }
}

.hs-mobile-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(31,31,40,.34);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  z-index: 99990;
}

.hs-mobile-drawer{
  position: fixed;
  top: 0;
  right: -110%;
  width: min(86vw, 360px);
  height: 100vh;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-left: 1px solid rgba(255,255,255,.65);
  box-shadow: -24px 0 80px rgba(31,31,40,.18);
  z-index: 99995;
  transition: right .22s ease;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
html.hs-menu-open .hs-mobile-drawer{ right: 0; }
.hs-mobile-drawer-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 14px 10px;
}
.hs-mobile-drawer-title .custom-logo{ max-height: 34px; width:auto; }
.hs-mobile-brand{ font-family: var(--font-display); font-weight: 700; }
.hs-mobile-close{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(31,31,40,.10);
}

/* Empty state */
.hs-empty{
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(31,31,40,.18);
  background: rgba(255,255,255,.55);
  color: var(--muted);
}

/* Small recipe image inside post */
.recipe-hero img, .single-recipe .recipe-hero img{
  max-width: 260px;
}
@media (max-width: 560px){
  .recipe-hero img, .single-recipe .recipe-hero img{ max-width: 220px; }
}


/* Premium App-like Focus */
:focus-visible{outline:none; box-shadow: var(--ring); border-radius: 14px;}


/* v6.5 mobile header + drawer usability fixes */
@media (max-width: 960px){
  /* Give space so the fixed hamburger never covers the logo */
  .site-header .inner{ padding-right: 76px !important; justify-content:flex-start; }
  .brand{ margin-right:auto; }
  .brand .custom-logo-link, .brand a.custom-logo-link{ display:inline-flex; align-items:center; }
  .brand img, .custom-logo{ max-height:34px; width:auto; }
}

/* Ensure drawer top + close button always visible */
.hs-mobile-drawer-top{
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.hs-mobile-close{
  font-size: 28px;
  line-height: 1;
}
.hs-mobile-drawer-title .custom-logo{
  max-height: 28px;
  width: auto;
}


/* Footer contact */
.hs-contact{margin:10px 0 0;font-weight:850;color:var(--muted);}
.hs-contact a{color:inherit;text-decoration:underline;text-underline-offset:3px;}

/* Search results */
.hs-search-excerpt{margin:6px 0 0;color:var(--muted);font-weight:700;font-size:13px;line-height:1.35;}

/* When search/saved pages have few items, keep layout looking intentional */
.hs-search-grid, .grid{align-items:stretch;}



/* v68 fixes: search grid sizing + featured pick image + sane hero images */
.hs-search-grid{
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  justify-content: stretch;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
@media (max-width: 980px){
  .hs-search-grid{ grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}

@media (max-width: 420px){
  .hs-search-grid{ grid-template-columns: 1fr; }
}

/* Featured pick on homepage */
.hs-featured-pick{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap:18px;
  align-items:center;
}
@media (max-width: 900px){
  .hs-featured-pick{ grid-template-columns: 1fr; }
}
.hs-featured-pick .hs-featured-img{
  width:100%;
  height:420px;
  max-height:420px;
  object-fit:cover;
  border-radius:22px;
  display:block;
}
@media (max-width: 700px){
  .hs-featured-pick .hs-featured-img{
    height:300px;
    max-height:300px;
    border-radius:18px;
  }
}

/* Single recipe featured image: prevent gigantic images */
.single-recipe .wp-post-image,
.single-recipe .recipe-hero img,
.single-recipe .recipe-cover img{
  width:100%;
  height:auto;
  max-height:520px;
  object-fit:cover;
  border-radius:22px;
  display:block;
}
@media (max-width: 768px){
  .single-recipe .wp-post-image,
  .single-recipe .recipe-hero img,
  .single-recipe .recipe-cover img{
    max-height:320px;
    border-radius:18px;
  }
}


/* v69: single recipe hero image clamp (prevents gigantic portrait images) */
.hs-recipe-hero{
  overflow:hidden;
  border-radius:28px;
}
.hs-recipe-hero-img{
  width:100%;
  height:min(35vh, 210px);
  max-height:210px;
  object-fit:cover;
  display:block;
}

@media (max-width: 700px){
  .hs-recipe-hero{ border-radius:18px; }
  .hs-recipe-hero-img{
    height:min(28vh, 130px);
    max-height:130px;
  }
}



/* v70: make single search cards fill available width */
.hs-search-grid .recipe-card{width:100%;}

/* v72: ingredient filter chips on /recipes/ */
.hs-filter-bar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin: 14px 0 18px;
}
.hs-filter-bar .chip{
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(255,255,255,.75);
  border:1px solid rgba(0,0,0,.06);
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  color: #222;
  box-shadow: 0 10px 25px rgba(0,0,0,.05);
}
.hs-filter-bar .chip:hover{transform: translateY(-1px);}
.hs-filter-bar .chip.active{
  background: linear-gradient(90deg, rgba(255,99,193,.16), rgba(109,92,255,.16));
  border-color: rgba(109,92,255,.25);
}

@media (max-width: 700px){
  .hs-filter-bar{gap:8px; margin: 10px 0 14px;}
  .hs-filter-bar .chip{padding:9px 12px; font-size:12.5px;}
}


/* === Saved (X) counter + mini heart buttons === */
.hs-count{
  display:inline-block;
  min-width: 18px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
  background: rgba(0,0,0,0.08);
  margin-left: 6px;
}

.hs-card-top{ position: relative; }
.hs-fav-mini{
  position:absolute;
  top:10px;
  right:10px;
  width:36px;
  height:36px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.9);
  text-decoration:none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  font-size: 16px;
}
.hs-fav-mini.active{
  background: rgba(255,230,238,1);
}
.hs-saved-indicator a{ margin-left:8px; }

/* Ingredient multi-select chips */
.hs-filter-bar{ display:flex; flex-direction:column; gap:10px; margin:14px 0 10px; }
.hs-chip-wrap{ display:flex; flex-wrap:wrap; gap:10px; }
.hs-ing-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.chip{ cursor:pointer; }


/* Editor's pick label */
.editor-pick-label{
  display:inline-block;
  margin-bottom:10px;
  padding:4px 10px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.4px;
  text-transform:uppercase;
  border-radius:999px;
  background:#f3f4f6;
  color:#444;
}

/* Featured card layout */
.hs-featured-inner{
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap:18px;
  align-items:center;
}
.hs-featured-media{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  background:#f2f2f6;
}
.hs-featured-media img{
  width:100%;
  height:420px;
  object-fit:cover;
  display:block;
}
.hs-featured-body h2{
  margin:0 0 6px;
}
@media (max-width: 900px){
  .hs-featured-inner{ grid-template-columns:1fr; }
  .hs-featured-media img{ height:260px; }
}


/* Smart Cooking Signals badges */
.hs-signals{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.hs-signals-single{
  margin-bottom:14px;
}
.hs-badge{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  background:#f3f4f6;
  color:#333;
  line-height:1;
  white-space:nowrap;
}
.hs-badge-hint{
  background:#eef2ff;
}


/* --- Smart Signals filters (collapsible on mobile) --- */
.hs-signal-filters{
  margin: 12px 0 18px;
}
.hs-filters-toggle{
  display:none;
  width:100%;
  text-align:left;
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:14px;
  padding:10px 12px;
  font-weight:700;
}
.hs-filters-panel{
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:12px;
  margin-top:10px;
}
.hs-filters-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.hs-filter-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:160px;
}
.hs-filter-field select{
  padding:10px 10px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#fff;
}
.hs-hint-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}
.hs-filters-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

/* Mobile: collapse by default, toggle button visible */
@media (max-width: 960px){
  .hs-filters-toggle{ display:block; }
  .hs-filters-panel{ display:none; }
  .hs-filters-panel.open{ display:block; }
}

/* --- Mobile menu improvements --- */
html.hs-menu-open .hs-mobile-menu-btn{
  opacity:0;
  pointer-events:none;
}

/* Keep drawer content below header height on mobile */
@media (max-width: 960px){
  .hs-mobile-drawer{
    padding-top: 14px;
  }
  .hs-mobile-drawer-top{
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
  }
}


/* === PWA Add-to-Home-Screen banner (gentle, once) === */
.hs-a2hs{position:fixed;left:12px;right:12px;bottom:12px;z-index:9999;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:12px 12px;display:flex;gap:12px;align-items:center;justify-content:space-between}
.hs-a2hs__msg{font-size:13px;color:var(--text);line-height:1.3;max-width:72%}
.hs-a2hs__actions{display:flex;gap:8px;align-items:center}
.hs-a2hs__btn{border:0;border-radius:999px;padding:8px 12px;background:var(--accent);color:#fff;font-weight:700;font-size:13px}
.hs-a2hs__x{border:0;background:transparent;font-size:22px;line-height:1;color:var(--muted);padding:0 6px}
@media (max-width:480px){.hs-a2hs__msg{max-width:66%}}


/* Mobile: smaller recipe card thumbs */
@media (max-width: 720px){
  .recipe-card .thumb{height:130px;}
  .recipe-card img{height:130px;}
  .hs-pin-grid .recipe-card img{height:140px;}
  .hs-pin-grid .recipe-card .thumb{height:140px;}
}


/* Featured (Editor's pick) – desktop sizing */
.featured .featured-inner{
  display:flex;
  gap:18px;
  align-items:stretch;
}
.featured .featured-media{
  flex:0 0 420px;
  max-height:240px;
  overflow:hidden;
  border-radius:18px;
}
.featured .featured-media img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}
@media (max-width: 900px){
  .featured .featured-inner{display:block;}
  .featured .featured-media{flex:none;max-height:200px;}
  .featured .featured-media img{height:180px;}
}


/* Buy ingredients block (affiliate optional) */
.hs-buy{ background: rgba(255,255,255,0.55); border:1px solid rgba(0,0,0,0.06); border-radius:18px; padding:12px 14px; }
.hs-buy-summary{ cursor:pointer; font-weight:750; color:var(--text); }
.hs-buy-inner{ margin-top:10px; }
.hs-buy-grid{ display:flex; flex-wrap:wrap; gap:10px; }
.hs-buy-item{ display:inline-flex; align-items:center; padding:8px 12px; border-radius:999px; background:#fff; border:1px solid rgba(0,0,0,0.06); box-shadow:0 8px 22px rgba(0,0,0,0.06); text-decoration:none; color:var(--text); font-weight:650; }
.hs-buy-item:hover{ transform:translateY(-1px); }

/* Chips used in shopping list */
.hs-chips{ display:flex; flex-wrap:wrap; gap:10px; }
.hs-chip{ display:inline-flex; align-items:center; padding:8px 12px; border-radius:999px; background:#fff; border:1px solid rgba(0,0,0,0.10); text-decoration:none; color:#111; font-weight:650; }
.hs-chip:hover{ transform:translateY(-1px); }


/* ===== Smart Shopping List (Saved recipes) ===== */
.hs-shopping-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.hs-shopping-actions{display:flex;gap:10px;flex-wrap:wrap;}
.hs-shopping-cols{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:12px;}
@media (max-width: 900px){.hs-shopping-cols{grid-template-columns:1fr;}}
.hs-shoplist{list-style:none;padding:0;margin:0;}
.hs-shopitem{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:14px;background:#fff;margin-bottom:10px;}
.hs-shoplabel{display:flex;align-items:center;gap:10px;cursor:pointer;}
.hs-shoplabel input{transform:scale(1.15);}
.hs-shoplink{font-size:12px;text-decoration:none;opacity:.85;}
.hs-shoplink:hover{opacity:1;text-decoration:underline;}


/* Ad slots */
.hs-ad-slot{margin:18px 0; text-align:center;}
.hs-ad-slot iframe{max-width:100%;}

/* Visible legal footer */
.footer{padding:28px 16px;text-align:center;}
.footer-inner{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;gap:12px;align-items:center;}
.footer-links{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;}
.footer-links .sep{opacity:.6;}
.footer-brand{line-height:1.5;}
.footer-credit{opacity:.85;font-size:.95em;}
