/* Every Purpose Home homepage widgets. Ported from the approved revision 4 styles.css.
   Written mobile-first: base rules are the phone layout. Everything is scoped under .eph-hp
   so the Foodica theme keeps its header, footer, and posts, and our sections keep their look. */

/* Palette, fonts, and base type live on each section instead of :root. */
.eph-hp{
  --sage:#60695D; --sage-light:#AEB0A2; --copper:#8F4F32;
  --ink:#38413C; --white:#FAF9F7; --linen:#F4EEE7;
  --serif:"Lora",Georgia,serif; --sans:"Source Sans 3",Arial,sans-serif;
  --script:"Caveat","Segoe Print",cursive;
  --radius:4px;
  font-family:var(--sans);color:var(--ink);background:var(--white);
  font-size:17px;line-height:1.55;text-align:left;
  padding-inline:0;border:0;
}
.eph-hp,.eph-hp *,.eph-hp *::before,.eph-hp *::after{box-sizing:border-box}

/* Full-bleed: each band spans the viewport from inside the theme's narrow .inner-wrap. */
.eph-hp{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);margin-block:0}
body:has(.eph-hp){overflow-x:clip}
.eph-hp > .wrap{width:calc(100% - 32px);max-width:1160px;margin-inline:auto}

/* Neutralize the theme's widget wrapper so the section sits flush against its neighbors. */
.widget.eph-hp-widget,
.home-widgetized-sections .widget:has(> .eph-hp),
.site-footer .widget:has(> .eph-hp){margin:0;padding:0;border:0;background:none;max-width:none;float:none;width:auto;overflow:visible;box-shadow:none}

/* Defensive resets against Foodica's heading, link, list, and image styles.
   The doubled class lifts these above the theme's ".widget h3"-style rules; the design rules
   below are written at the same weight (element-qualified) so they still win by order. */
.eph-hp.eph-hp h1,.eph-hp.eph-hp h2,.eph-hp.eph-hp h3,.eph-hp.eph-hp h4{margin:0;padding:0;border:0;background:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;color:inherit;text-transform:none;letter-spacing:normal}
.eph-hp.eph-hp h1::before,.eph-hp.eph-hp h1::after,.eph-hp.eph-hp h2::before,.eph-hp.eph-hp h2::after,
.eph-hp.eph-hp h3::before,.eph-hp.eph-hp h3::after,.eph-hp.eph-hp h4::before,.eph-hp.eph-hp h4::after{content:none}
.eph-hp.eph-hp p{margin:0;padding:0;font-family:inherit;font-size:inherit;line-height:inherit;color:inherit;text-transform:none;letter-spacing:normal}
.eph-hp.eph-hp ul,.eph-hp.eph-hp li{margin:0;padding:0;list-style:none;border:0}
.eph-hp.eph-hp a,.eph-hp.eph-hp a:hover,.eph-hp.eph-hp a:focus,.eph-hp.eph-hp a:visited{color:inherit;text-decoration:none;border:0;box-shadow:none;background-image:none}
.eph-hp.eph-hp img{display:block;width:100%;max-width:100%;height:auto;object-fit:cover;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
.eph-hp button,.eph-hp input{font:inherit}
.eph-hp button{cursor:pointer}
.eph-hp button,.eph-hp a,.eph-hp input{touch-action:manipulation}
.eph-hp a:focus-visible,.eph-hp button:focus-visible,.eph-hp input:focus-visible{outline:3px solid var(--copper);outline-offset:4px}
.eph-hp .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Shared section rhythm and the two-tone heading. */
.eph-hp.collection,.eph-hp.browse,.eph-hp.latest,.eph-hp.guides,.eph-hp.home-more,.eph-hp.offer,.eph-hp.about{padding-block:40px}
/* The prototype's .collection:first-of-type: the first collection under the header. */
.home-widgetized-sections > .widget:first-child > .eph-hp.collection{padding-top:26px}
/* Foodica draws a faint #eee line under the widget area (homepage, Start Here); not part of the design. */
.home-widgetized-sections{border-bottom:0}
.eph-hp.band-linen{background:var(--linen)}
.eph-hp.band-sage{background:var(--sage);color:var(--white)}
.eph-hp.band-sage-light{background:var(--sage-light)}
/* Two-tone copper headings: spaced capitals sized up and script sized down so they read as one. */
.eph-hp :is(h2,h3).duo-heading{display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;column-gap:8px;row-gap:0;text-align:center;margin-bottom:24px;color:var(--copper)}
.eph-hp .duo-heading .kicker{font-family:var(--sans);font-weight:700;font-size:18px;letter-spacing:.1em;text-transform:uppercase;line-height:1.35}
.eph-hp .duo-heading .accent{font-family:var(--script);font-weight:700;font-size:34px;line-height:1.1}
.eph-hp :is(h2,h3).duo-heading.stacked{flex-direction:column;align-items:center}
/* Plain heading, used where Marlene wants a simpler, separate feel (More From Every Purpose Home). */
.eph-hp :is(h2,h3).section-heading{font-family:var(--serif);font-weight:500;font-size:25px;line-height:1.25;color:var(--copper);text-align:center;text-wrap:balance;margin-bottom:24px}
.eph-hp .section-heading.two-line span{display:block}
.eph-hp p.collection-intro{text-align:center;max-width:560px;margin:-10px auto 24px;font-size:16px}
.eph-hp .flavor-label,.eph-hp p.flavor-label{display:block;font-family:var(--sans);font-size:13px;font-weight:700;letter-spacing:.11em;text-transform:uppercase;color:var(--copper);line-height:1.3}
.eph-hp a.more-link,.eph-hp a.more-link:hover{display:flex;align-items:center;justify-content:center;width:fit-content;min-height:48px;margin:22px auto 0;padding:6px 4px;font-family:var(--sans);font-size:14px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;text-align:center;color:var(--ink)}
.eph-hp .more-link span{color:var(--copper);margin-left:6px;transition:transform .15s ease}
.eph-hp .more-link:hover span{transform:translateX(3px)}

/* Recipe cards: photo, small copper flavor label, centered title. */
.eph-hp .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 14px}
.eph-hp .card a{display:block;text-align:center}
.eph-hp .card-image{display:block;position:relative;overflow:hidden;border-radius:var(--radius);background:var(--linen)}
.eph-hp .card img{aspect-ratio:4/5;transition:transform .3s ease}
.eph-hp .card a:hover img{transform:scale(1.03)}
.eph-hp .card .flavor-label{margin-top:12px}
.eph-hp .card h3{font-family:var(--serif);font-weight:600;font-size:17px;line-height:1.3;margin-top:5px;text-wrap:pretty}
.eph-hp .card a:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.eph-hp .featured-first .card:first-child{grid-column:1/-1}
.eph-hp .featured-first .card:first-child img,.eph-hp .featured-first .card:first-child .eph-hp-noimage{aspect-ratio:3/2}
.eph-hp .featured-first .card:first-child h3{font-size:21px}
.eph-hp .card a{position:relative}
/* Card badge (Quick, No Mixer): small cream pill with copper text in the photo's top-left corner. */
.eph-hp .card-badge{position:absolute;z-index:2;top:10px;left:10px;display:inline-block;padding:5px 11px;border:1px solid var(--copper);border-radius:999px;background:var(--white);color:var(--copper);font-family:var(--sans);font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;line-height:1.2;box-shadow:0 1px 4px rgb(56 65 60 / .2);pointer-events:none}
/* Placeholder when a post has no featured image yet. */
.eph-hp .eph-hp-noimage{display:block;aspect-ratio:4/5;background:var(--linen)}

/* Category circles: three by three on phones. */
.eph-hp.browse > .wrap{width:calc(100% - 26px)}
.eph-hp .category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 7px;max-width:430px;margin-inline:auto}
.eph-hp .category{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:14px;font-weight:600;line-height:1.25;text-align:center}
.eph-hp .category img{width:min(116px,100%);aspect-ratio:1/1;border-radius:50%}
.eph-hp .category:hover span{text-decoration:underline;text-underline-offset:4px}

/* Email offer. The Kit form replaces the prototype's demo form inside .email-embed-slot. */
.eph-hp .offer-inner{display:grid;gap:26px}
.eph-hp .offer-photo-wrap{position:relative;max-width:420px;width:100%;margin-inline:auto}
.eph-hp img.offer-photo{aspect-ratio:4/3;border-radius:var(--radius)}
.eph-hp .offer-copy{text-align:center;max-width:520px;margin-inline:auto}
.eph-hp h2.offer-script{font-family:var(--script);font-weight:700;font-size:36px;line-height:1.1;margin-bottom:12px}
.eph-hp .offer-script span{display:block}
.eph-hp p.offer-name{font-family:var(--serif);font-weight:500;font-size:19px;line-height:1.4;text-wrap:balance;margin-bottom:10px}
.eph-hp p.offer-line{font-size:16px;font-weight:600;margin-bottom:20px}
.eph-hp.offer :focus-visible{outline-color:var(--white)}
/* Kit inline forms: match the prototype's newsletter input and white button with copper text.
   !important is needed here because Kit ships inline style attributes and
   [data-uid]-scoped rules on its inputs and button. */
.eph-hp .email-embed-slot form:not(.formkit-form),
.eph-hp .email-embed-slot .formkit-fields{display:flex;flex-direction:column;gap:10px;margin:0!important}
.eph-hp .email-embed-slot .formkit-form{max-width:none!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
.eph-hp .email-embed-slot .formkit-form [data-style]{padding:0!important}
.eph-hp .email-embed-slot .formkit-field{margin:0!important;flex:none!important;min-width:0}
.eph-hp .email-embed-slot input[type=email],
.eph-hp .email-embed-slot input[type=text]{display:block;width:100%;background:var(--white)!important;color:var(--ink)!important;border:1px solid var(--sage-light)!important;border-radius:var(--radius)!important;padding:12px 15px!important;min-height:50px;min-width:0;margin:0;font-family:var(--sans)!important;font-size:16px!important;font-weight:400!important;line-height:1.3!important;box-shadow:none}
.eph-hp .email-embed-slot input[type=email]::placeholder,
.eph-hp .email-embed-slot input[type=text]::placeholder{color:var(--sage)!important;opacity:1}
.eph-hp .email-embed-slot button,
.eph-hp .email-embed-slot input[type=submit]{display:inline-flex;align-items:center;justify-content:center;min-height:50px;margin:0!important;padding:12px 22px!important;font-family:var(--sans)!important;font-weight:700!important;font-size:16px!important;line-height:1.3!important;text-align:center;text-transform:none!important;letter-spacing:normal!important;border:0!important;box-shadow:none!important;flex:none!important}
/* Colors apply only to a non-Kit form; Kit's own button colors (set in Kit) show through. */
.eph-hp .email-embed-slot button:not(.formkit-submit),
.eph-hp .email-embed-slot input[type=submit]{background:var(--white)!important;color:var(--copper)!important;border-radius:var(--radius)!important}
.eph-hp .email-embed-slot button:not(.formkit-submit):hover,
.eph-hp .email-embed-slot input[type=submit]:hover{background:var(--linen)!important}
/* Kit wraps the button text in a padded span and adds its badge; keep both quiet. */
.eph-hp .email-embed-slot .formkit-submit > span{padding:0!important;background:none!important}
.eph-hp .email-embed-slot .formkit-submit{width:100%}
/* A shorter button than the 50px inputs, per Marlene. */
.eph-hp.eph-hp .email-embed-slot .formkit-submit,
.eph-hp.eph-hp .email-embed-slot button,
.eph-hp.eph-hp .email-embed-slot input[type=submit]{min-height:36px;height:auto;padding:6px 18px!important;font-size:15px!important;line-height:1.2!important}
.eph-hp .email-embed-slot .formkit-powered-by-convertkit-container{justify-content:center!important;margin:14px 0 0!important}
.eph-hp .email-embed-slot .formkit-powered-by-convertkit{filter:brightness(0) invert(1);opacity:.6}

/* Latest: compact horizontal rows, quick to scan with a thumb. */
.eph-hp .row-grid{display:grid;gap:12px}
.eph-hp .row-card a{display:grid;grid-template-columns:104px 1fr;align-items:center;gap:16px;background:var(--linen);border-radius:var(--radius);overflow:hidden}
.eph-hp .row-card img,.eph-hp .row-card .eph-hp-noimage{height:104px}
.eph-hp .row-card .eph-hp-noimage{aspect-ratio:auto}
.eph-hp .row-text{padding-right:14px}
.eph-hp .row-card h3{font-family:var(--serif);font-weight:600;font-size:17px;line-height:1.3;margin-top:4px}
.eph-hp .row-card a:hover h3{text-decoration:underline;text-underline-offset:4px}

/* About: the original 4:5 portrait with alternating corners and a copper outline. */
.eph-hp .about-inner{display:grid;gap:30px;justify-items:center}
.eph-hp .portrait-frame{position:relative;width:min(240px,calc(100% - 16px))}
.eph-hp .portrait-frame::before{content:"";position:absolute;inset:12px -12px -12px 12px;border:1px solid var(--copper);border-radius:32px 8px;pointer-events:none}
.eph-hp img.portrait{position:relative;aspect-ratio:4/5;border-radius:32px 8px}
.eph-hp .about-copy{text-align:center;max-width:640px}
.eph-hp .about-copy .flavor-label{margin-bottom:8px}
.eph-hp :is(h2,h3).script-heading{font-family:var(--script);font-weight:700}
.eph-hp .about-copy h2{font-size:clamp(28px,8.4vw,40px);line-height:1.1;color:var(--ink);margin-bottom:18px}
.eph-hp .about-copy h2 span{display:block}
.eph-hp .about-copy p{margin-bottom:15px}
.eph-hp .about-copy .more-link{margin-top:6px}

/* Starter guides and More From Every Purpose Home. */
.eph-hp .guide-grid{display:grid;gap:14px}
.eph-hp .guide{display:grid;grid-template-columns:110px 1fr;align-items:center;gap:16px;background:var(--white);border-radius:var(--radius);overflow:hidden}
.eph-hp .guide img{height:140px}
.eph-hp .guide-text{padding:12px 14px 12px 0}
.eph-hp .guide h3{font-family:var(--serif);font-weight:600;font-size:18px;line-height:1.3;margin:4px 0 6px}
.eph-hp .guide p{font-size:15px;line-height:1.45}
.eph-hp .guide:hover h3{text-decoration:underline;text-underline-offset:4px}
.eph-hp .home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 14px}
.eph-hp .home-category{display:block;text-align:center;font-family:var(--sans);font-weight:600;font-size:16px;line-height:1.3}
.eph-hp .home-category img{aspect-ratio:4/3;border-radius:var(--radius);margin-bottom:10px}
.eph-hp .home-category:hover span{text-decoration:underline;text-underline-offset:4px}
.eph-hp .home-category:last-child:nth-child(odd){grid-column:1/-1;width:calc((100% - 14px)/2);justify-self:center}

/* Sign-off: script line and the original signature, drawn in copper through a mask. */
.eph-hp.signoff-section{padding-block:36px 40px}
.eph-hp .signoff{text-align:center}
.eph-hp .signoff p{font-family:var(--script);font-weight:600;font-size:28px;line-height:1.1}
.eph-hp img.signature{display:block;width:180px;height:auto;margin:6px auto 0;object-fit:contain}

/* Pinterest: sits on the theme's sage footer, so no band and no full-bleed. */
.eph-hp.eph-hp-pinterest-widget{background:transparent;color:var(--white);width:auto;max-width:none;margin:0}
.eph-hp.eph-hp-pinterest-widget > .wrap{width:auto;max-width:none}
.eph-hp.eph-hp-pinterest-widget :focus-visible{outline-color:var(--white)}
/* A small fanned set of pin-shaped photos and a clear outlined button.
   Each photo's crop comes from an inline object-position style. */
.eph-hp .pinterest{display:flex;flex-direction:column;align-items:center;gap:16px}
.eph-hp .pin-photos{display:flex;align-items:flex-end;justify-content:center}
.eph-hp .pin-photos img{width:76px;aspect-ratio:2/3;border-radius:var(--radius);border:3px solid var(--white);box-shadow:0 3px 10px rgb(56 65 60 / .25)}
.eph-hp .pin-photos img:nth-child(1){transform:rotate(-6deg) translateX(10px)}
.eph-hp .pin-photos img:nth-child(2){position:relative;z-index:1;width:90px}
.eph-hp .pin-photos img:nth-child(3){transform:rotate(6deg) translateX(-10px)}
.eph-hp .pin-script{font-family:var(--script);font-weight:700;font-size:32px;line-height:1.1}
.eph-hp .pin-text{display:flex;flex-direction:column;align-items:center;gap:10px}
.eph-hp .pin-button{display:inline-flex;align-items:center;min-height:46px;padding:10px 22px;border:1.5px solid var(--white);border-radius:999px;font-weight:600;font-size:16px}
.eph-hp .pinterest:hover .pin-button{background:var(--white);color:var(--sage)}

@media(max-width:350px){
  .eph-hp > .wrap{width:calc(100% - 24px)}
  .eph-hp .duo-heading .kicker{font-size:16px}.eph-hp .duo-heading .accent{font-size:31px}.eph-hp :is(h2,h3).section-heading{font-size:23px}
  .eph-hp .cards{gap:24px 10px}.eph-hp .card h3{font-size:16px}
  .eph-hp .flavor-label,.eph-hp p.flavor-label{font-size:12px}
  .eph-hp .category{font-size:13px}
  .eph-hp .row-card a{grid-template-columns:90px 1fr;gap:12px}.eph-hp .row-card img,.eph-hp .row-card .eph-hp-noimage{height:96px}.eph-hp .row-card h3{font-size:16px}
  .eph-hp .guide{grid-template-columns:92px 1fr}
}
@media(min-width:600px){
  .eph-hp > .wrap{width:calc(100% - 56px)}
  .eph-hp .cards-4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .eph-hp .row-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .eph-hp .guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .eph-hp .home-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .eph-hp .home-category:last-child:nth-child(odd){grid-column:auto;width:auto}
  .eph-hp .email-embed-slot form:not(.formkit-form),
  .eph-hp .email-embed-slot .formkit-fields{flex-direction:row;flex-wrap:wrap}
  .eph-hp .email-embed-slot form:not(.formkit-form) input[type=email],
  .eph-hp .email-embed-slot form:not(.formkit-form) input[type=text]{flex:1!important}
  /* Kit form: name and email side by side, the button full width beneath them. */
  .eph-hp .email-embed-slot .formkit-field{flex:1 1 calc(50% - 5px)!important}
  .eph-hp .email-embed-slot .formkit-submit{flex:1 1 100%!important;width:100%}
  .eph-hp .pinterest{flex-direction:row;gap:28px}.eph-hp .pin-text{align-items:flex-start}
}
@media(min-width:900px){
  .eph-hp{font-size:18px}
  .eph-hp.collection,.eph-hp.browse,.eph-hp.latest,.eph-hp.guides,.eph-hp.home-more,.eph-hp.offer,.eph-hp.about{padding-block:64px}
  .home-widgetized-sections > .widget:first-child > .eph-hp.collection{padding-top:40px}
  .eph-hp :is(h2,h3).duo-heading{column-gap:10px;margin-bottom:34px}
  .eph-hp .duo-heading .kicker{font-size:21px}.eph-hp .duo-heading .accent{font-size:44px}
  .eph-hp :is(h2,h3).section-heading{font-size:34px;margin-bottom:34px}
  .eph-hp .cards{gap:36px 24px}
  .eph-hp .card h3{font-size:20px}
  .eph-hp .flavor-label,.eph-hp p.flavor-label{font-size:14px}
  .eph-hp .featured-first{grid-template-columns:repeat(4,minmax(0,1fr))}
  .eph-hp .featured-first .card:first-child{grid-column:span 2}
  .eph-hp .featured-first .card:first-child img,.eph-hp .featured-first .card:first-child .eph-hp-noimage{aspect-ratio:8/5}
  .eph-hp .featured-first .card:first-child h3{font-size:24px}
  .eph-hp .favorites-count-5 .card:nth-child(n+4){grid-column:span 2}
  .eph-hp .favorites-count-5 .card:nth-child(n+4) img,.eph-hp .favorites-count-5 .card:nth-child(n+4) .eph-hp-noimage{aspect-ratio:8/5}
  .eph-hp .cards-6{grid-template-columns:repeat(3,minmax(0,1fr))}
  .eph-hp.browse > .wrap{width:calc(100% - 56px)}
  .eph-hp .category-grid{max-width:none;grid-template-columns:repeat(9,minmax(0,1fr));gap:12px}
  .eph-hp .category{font-size:16px}.eph-hp .category img{width:min(126px,100%)}
  .eph-hp .row-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
  .eph-hp .row-card a{grid-template-columns:120px 1fr}.eph-hp .row-card img,.eph-hp .row-card .eph-hp-noimage{height:120px}.eph-hp .row-card h3{font-size:18px}
  /* In the prototype these two were the .wrap itself; here they sit inside it, so center them. */
  .eph-hp .offer-inner{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;gap:56px;max-width:1000px;margin-inline:auto}
  .eph-hp img.offer-photo{aspect-ratio:4/5}.eph-hp .offer-copy{text-align:left;margin:0}
  .eph-hp h2.offer-script{font-size:44px}
  .eph-hp .about-inner{grid-template-columns:320px 1fr;gap:64px;justify-items:stretch;align-items:center;max-width:1040px;margin-inline:auto}
  .eph-hp .portrait-frame{width:100%}
  .eph-hp .about-copy h2{font-size:46px}
  .eph-hp .guide{grid-template-columns:150px 1fr}.eph-hp .guide img{height:170px}.eph-hp .guide h3{font-size:21px}
  .eph-hp .home-category{font-size:18px}
  .eph-hp .signoff p{font-size:32px}.eph-hp img.signature{width:200px}
}
@media(prefers-reduced-motion:reduce){.eph-hp,.eph-hp *{animation:none!important;transition:none!important}}
