/*
Theme Name: Haley's Homemade Child
Theme URI: https://haleyshomemade.com/
Description: Custom Kadence child theme for Haley's Homemade, a cozy home-baking editorial publication.
Author: Haley's Homemade Editorial
Template: kadence
Version: 1.0.0
Text Domain: haleys-homemade
*/

:root{
  --hh-brand:#FEB54D;
  --hh-brand-dark:#A85A08;
  --hh-accent:#7F4A2C;
  --hh-ink:#2B211A;
  --hh-muted:#76695F;
  --hh-bg:#FFF9F0;
  --hh-surface:#FFFFFF;
  --hh-soft:#F7ECDD;
  --hh-border:#E8D9C6;
  --hh-success:#5F7A55;
  --hh-radius:18px;
  --hh-shadow:0 16px 40px rgba(62,42,27,.08);
  --hh-max:1180px;
}

html{scroll-behavior:smooth}
body{background:var(--hh-bg);color:var(--hh-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.7}
a{color:var(--hh-brand-dark);text-underline-offset:3px}
a:hover,a:focus{color:var(--hh-accent)}
:focus-visible{outline:3px solid rgba(254,181,77,.55);outline-offset:3px}

.site-header,.site-main-header-wrap{background:rgba(255,249,240,.96);backdrop-filter:saturate(120%) blur(10px);border-bottom:1px solid var(--hh-border)}
.site-branding img,.custom-logo{max-height:64px;width:auto}
.primary-menu-container a,.mobile-navigation a{font-weight:700;letter-spacing:.01em;color:var(--hh-ink)}
.primary-menu-container a:hover,.primary-menu-container .current-menu-item>a{color:var(--hh-brand-dark)}

.hh-shell{max-width:var(--hh-max);margin:0 auto;padding:0 28px}
.hh-section{padding:76px 0}
.hh-section--soft{background:var(--hh-soft)}
.hh-section--dark{background:#30271F;color:#FFF8EC}
.hh-kicker{display:inline-flex;align-items:center;gap:.55rem;font-size:.76rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:var(--hh-brand-dark)}
.hh-kicker:before{content:"";width:26px;height:2px;background:var(--hh-brand)}
.hh-section-head{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}
.hh-section-head h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2rem,4vw,3.2rem);line-height:1.05;letter-spacing:-.025em}
.hh-section-head p{max-width:620px;color:var(--hh-muted);margin:.65rem 0 0}
.hh-section--dark .hh-section-head p{color:#E6D9C8}
.hh-link{font-weight:800;text-decoration:none;white-space:nowrap}
.hh-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border-radius:999px;background:var(--hh-brand);color:#2E1E0D;text-decoration:none;font-weight:800;border:1px solid transparent;transition:.2s ease}
.hh-button:hover{background:#F0A52D;color:#26190D;transform:translateY(-1px)}
.hh-button--ghost{background:transparent;border-color:var(--hh-border);color:var(--hh-ink)}
.hh-button--ghost:hover{background:#fff;color:var(--hh-ink)}

.hh-hero{padding:46px 0 62px}
.hh-hero-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);gap:46px;align-items:center}
.hh-hero-copy h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(3rem,6vw,5.8rem);line-height:.98;letter-spacing:-.045em;margin:14px 0 20px;max-width:850px}
.hh-hero-copy>p{font-size:1.13rem;color:var(--hh-muted);max-width:760px}
.hh-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.hh-featured{background:#fff;border:1px solid var(--hh-border);border-radius:28px;overflow:hidden;box-shadow:var(--hh-shadow);transform:rotate(.35deg)}
.hh-featured-media{aspect-ratio:4/3;background:#EFE4D7;display:block;overflow:hidden}
.hh-featured-media img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.hh-featured:hover img{transform:scale(1.025)}
.hh-featured-body{padding:22px 24px 26px}
.hh-featured-body h2{font-family:Georgia,"Times New Roman",serif;font-size:1.7rem;line-height:1.16;margin:7px 0 9px}
.hh-featured-body p{margin:0;color:var(--hh-muted)}
.hh-meta{font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--hh-brand-dark)}

.hh-welcome{display:grid;grid-template-columns:.8fr 1.2fr;gap:48px;align-items:start}
.hh-welcome h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2rem,4vw,3.6rem);line-height:1.05;margin:0}
.hh-welcome-copy{font-size:1.06rem;color:#584B41}

.hh-category-map{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:28px}
.hh-cat-chip{display:block;padding:22px;border-radius:16px;background:#fff;border:1px solid var(--hh-border);text-decoration:none;color:var(--hh-ink);min-height:150px;transition:.2s ease}
.hh-cat-chip:hover{transform:translateY(-3px);box-shadow:var(--hh-shadow);color:var(--hh-ink)}
.hh-cat-chip strong{font-family:Georgia,"Times New Roman",serif;font-size:1.35rem;display:block;margin-bottom:7px}
.hh-cat-chip span{color:var(--hh-muted);font-size:.94rem}

.hh-lead-layout{display:grid;grid-template-columns:1.25fr .75fr;gap:24px}
.hh-lead-card,.hh-card{background:var(--hh-surface);border:1px solid var(--hh-border);border-radius:var(--hh-radius);overflow:hidden;box-shadow:0 9px 28px rgba(62,42,27,.05)}
.hh-lead-card .hh-card-media{aspect-ratio:16/10}
.hh-card-media{aspect-ratio:4/3;background:#F0E4D6;overflow:hidden;display:block}
.hh-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.hh-card:hover img,.hh-lead-card:hover img{transform:scale(1.025)}
.hh-card-body{padding:20px}
.hh-card-title{font-family:Georgia,"Times New Roman",serif;font-size:1.28rem;line-height:1.18;margin:6px 0 8px}
.hh-lead-card .hh-card-title{font-size:clamp(1.65rem,3vw,2.45rem)}
.hh-card-title a{text-decoration:none;color:var(--hh-ink)}
.hh-card-title a:hover{color:var(--hh-brand-dark)}
.hh-card-excerpt{font-size:.94rem;color:var(--hh-muted);margin:0}
.hh-stack{display:grid;gap:16px}
.hh-stack .hh-card{display:grid;grid-template-columns:150px 1fr}
.hh-stack .hh-card-media{aspect-ratio:1/1}

.hh-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.hh-grid--4{grid-template-columns:repeat(4,1fr)}
.hh-process-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.hh-process-card{background:#FFFDF9;border:1px solid #DCCDBA;border-radius:20px;padding:24px;position:relative}
.hh-process-card:before{content:"";display:block;width:42px;height:4px;border-radius:99px;background:var(--hh-brand);margin-bottom:18px}

.hh-troubleshoot{display:grid;grid-template-columns:.85fr 1.15fr;gap:38px;align-items:start;background:#34291F;color:#FFF8EC;border-radius:28px;padding:38px}
.hh-troubleshoot h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2rem,4vw,3.3rem);line-height:1.05;margin:0}
.hh-trouble-list{display:grid;gap:12px}
.hh-trouble-item{padding:16px 18px;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(255,255,255,.045)}
.hh-trouble-item strong{display:block;color:#FFD697;margin-bottom:3px}

.hh-empty{padding:24px;border:1px dashed #D8C6B1;border-radius:16px;background:rgba(255,255,255,.5);color:var(--hh-muted)}

.hh-about-strip{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center;background:#FFF0D8;border:1px solid #F0D0A2;border-radius:26px;padding:34px}
.hh-about-strip h2{font-family:Georgia,"Times New Roman",serif;font-size:2rem;margin:0 0 8px}

/* Single article */
.single-post .content-area,.page .content-area{max-width:1120px;margin-inline:auto}
.hh-article{max-width:860px;margin:0 auto;padding:54px 24px 80px}
.hh-article-header{text-align:left;margin-bottom:28px}
.hh-breadcrumb{font-size:.84rem;color:var(--hh-muted);margin-bottom:14px}
.hh-article h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.6rem,5vw,4.8rem);line-height:1.03;letter-spacing:-.04em;margin:10px 0 14px}
.hh-deck{font-size:1.15rem;color:var(--hh-muted);max-width:760px}
.hh-byline{display:flex;gap:10px;flex-wrap:wrap;font-size:.9rem;color:var(--hh-muted);margin-top:18px}
.hh-article-featured{border-radius:24px;overflow:hidden;margin:28px 0 38px;background:#EFE4D7}
.hh-article-featured img{width:100%;height:auto;display:block}
.hh-entry{font-family:Georgia,"Times New Roman",serif;font-size:1.08rem;line-height:1.82}
.hh-entry h2,.hh-entry h3{font-family:Inter,ui-sans-serif,system-ui,sans-serif;line-height:1.15;color:var(--hh-ink);letter-spacing:-.02em}
.hh-entry h2{font-size:2rem;margin-top:2.2em}.hh-entry h3{font-size:1.35rem;margin-top:1.8em}
.hh-entry img{border-radius:14px}
.hh-entry table{display:block;overflow-x:auto;width:100%;border-collapse:collapse;font-family:Inter,system-ui,sans-serif;font-size:.95rem}
.hh-entry th,.hh-entry td{padding:12px;border:1px solid var(--hh-border);text-align:left}
.hh-entry blockquote{border-left:4px solid var(--hh-brand);background:#FFF1DA;padding:18px 20px;margin:1.6em 0;font-style:normal}
.hh-note{margin:1.6em 0;padding:20px 22px;border-radius:16px;border:1px solid var(--hh-border);background:#FFFDF9;font-family:Inter,system-ui,sans-serif;font-size:.96rem}
.hh-note h3{margin:0 0 7px;font-size:1.05rem}
.hh-note--tip{border-left:5px solid var(--hh-brand)}
.hh-note--trouble{border-left:5px solid #B86A48;background:#FFF7F3}
.hh-note--texture{border-left:5px solid #8A6B48;background:#FFF9ED}
.hh-note--sub{border-left:5px solid #71845D;background:#F7FAF2}
.hh-note--oven{border-left:5px solid #BC7A3D;background:#FFF6E9}
.hh-author-box{margin-top:42px;padding:26px;border-radius:20px;background:var(--hh-soft);border:1px solid var(--hh-border)}
.hh-author-box h2{font-family:Georgia,"Times New Roman",serif;margin:0 0 8px}
.hh-related{margin-top:52px}

/* Archives */
.hh-archive-hero{padding:58px 0 30px}
.hh-archive-hero h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.7rem,5vw,4.8rem);margin:0 0 12px;line-height:1.02}
.hh-archive-desc{max-width:780px;color:var(--hh-muted);font-size:1.05rem}
.hh-pagination{margin-top:34px}
.hh-pagination .page-numbers{display:inline-flex;min-width:42px;height:42px;align-items:center;justify-content:center;border:1px solid var(--hh-border);border-radius:999px;text-decoration:none;margin:0 4px;background:#fff}
.hh-pagination .current{background:var(--hh-brand);color:#2E1E0D;border-color:var(--hh-brand)}

/* Pages/search/404/footer */
.hh-page{max-width:900px;margin:0 auto;padding:58px 24px 80px}
.hh-page h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.6rem,5vw,4.4rem)}
.hh-search-form{display:flex;gap:8px;max-width:620px;margin:26px 0}.hh-search-form input{flex:1;min-width:0;border:1px solid var(--hh-border);border-radius:999px;padding:12px 16px;background:#fff}.hh-search-form button{border:0;border-radius:999px;padding:0 20px;background:var(--hh-brand);font-weight:800}
.hh-404{text-align:center;max-width:760px;margin:0 auto;padding:100px 24px}.hh-404 h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(3rem,7vw,6rem);line-height:.95;margin:0 0 20px}

.hh-prefooter{background:#2D251E;color:#F7EEDF;padding:46px 0;border-top:1px solid rgba(255,255,255,.08)}
.hh-footer-grid{display:grid;grid-template-columns:1.1fr .9fr .9fr;gap:34px}
.hh-prefooter a{color:#FFE3B8;text-decoration:none}.hh-prefooter h3{color:#fff;font-size:1rem;margin-bottom:10px}.hh-footer-brand img{max-width:250px;filter:none;margin-bottom:14px}.hh-footer-brand p{color:#D9C9B5;max-width:500px}
.hh-footer-links{display:flex;flex-direction:column;gap:7px}
.site-footer{background:#231D18!important;color:#D8CABA}

@media(max-width:1024px){
 .hh-hero-grid,.hh-welcome,.hh-troubleshoot{grid-template-columns:1fr}
 .hh-category-map,.hh-grid,.hh-process-grid{grid-template-columns:repeat(2,1fr)}
 .hh-grid--4{grid-template-columns:repeat(2,1fr)}
 .hh-footer-grid{grid-template-columns:1fr 1fr}
 .hh-footer-brand{grid-column:1/-1}
}
@media(max-width:720px){
 .hh-shell{padding:0 18px}.hh-section{padding:54px 0}.hh-hero{padding-top:28px}
 .hh-hero-grid{gap:28px}.hh-hero-copy h1{font-size:clamp(2.7rem,14vw,4.1rem)}
 .hh-section-head{align-items:start;flex-direction:column}.hh-category-map,.hh-grid,.hh-grid--4,.hh-process-grid{grid-template-columns:1fr}
 .hh-lead-layout{grid-template-columns:1fr}.hh-stack .hh-card{grid-template-columns:112px 1fr}.hh-stack .hh-card-body{padding:14px}.hh-stack .hh-card-title{font-size:1.05rem}
 .hh-troubleshoot{padding:26px 20px}.hh-about-strip{grid-template-columns:1fr;padding:26px 20px}
 .hh-article{padding:34px 18px 64px}.hh-entry{font-size:1.02rem}.hh-entry h2{font-size:1.65rem}
 .hh-footer-grid{grid-template-columns:1fr}.hh-footer-brand{grid-column:auto}
 .hh-actions{flex-direction:column;align-items:stretch}.hh-button{width:100%}
}
