:root {
  --page-bg: #F4ECE3;
  --cream: #F4ECE3;
  --cream-2: #FBF7F2;
  --text: #373636;
  --muted: #68635f;
  --accent: #ef7041;
  --sage: #78866b;
  --line: rgba(76, 64, 54, .08);
  --radius: 12px;
  --shadow: 0 8px 28px rgba(75, 59, 45, .05);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;margin:0;padding:0;background:#F4ECE3}
body{margin:0;padding:0;background:#F4ECE3;color:var(--text);font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.55}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit}
.page-shell{width:100%;margin:0;background:#F4ECE3;min-height:100vh;box-shadow:none}
.container{width:min(900px,calc(100% - 48px));margin-inline:auto}
.site-header{border-bottom:1px solid var(--line)}
.header-inner{height:126px;display:flex;align-items:center;justify-content:space-between;gap:32px}
.brand{display:flex;align-items:center;gap:18px;min-width:0}
.brand img{width:72px;height:62px;object-fit:contain}
.brand span{font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:29px;white-space:nowrap}
.brand-highlight{color:#E8743F}
.main-nav{display:flex;align-items:center;gap:28px;font-weight:600}
.main-nav a{position:relative;padding:8px 0}
.main-nav a::after{content:'';position:absolute;left:0;right:0;bottom:2px;height:2px;background:var(--accent);transform:scaleX(0);transition:.2s}
.main-nav a:hover::after,.main-nav a.active::after{transform:scaleX(1)}
.menu-toggle{display:none;width:42px;height:42px;border:0;background:transparent;padding:8px;cursor:pointer}
.menu-toggle span{display:block;height:2px;background:var(--text);margin:6px 0;transition:.2s}

h1,h2,h3{font-family:Georgia,'Times New Roman',serif;line-height:1.18;margin:0;color:#3d3b3a}
h1{font-size:34px}
.button{display:inline-flex;align-items:center;justify-content:center;background:var(--accent);color:white;font-weight:700;border-radius:999px;padding:11px 18px;font-size:13px;box-shadow:0 5px 14px rgba(239,112,65,.18)}
.section{padding:52px 0 64px}
.section-heading{text-align:center;margin:0 auto 30px;max-width:660px}
.section-heading h2,.section-heading h1{font-size:28px;margin-bottom:8px}
.section-heading p{margin:0;color:#4f4a46;line-height:1.45}
.section-heading.wide{max-width:720px}
.back-link{display:inline-flex;color:var(--accent);font-size:13px;font-weight:700;margin-bottom:28px}

/* Home hero: exact width, aspect ratio and responsive spacing requested. */
.hero-container{width:min(1180px,calc(100vw - 96px));aspect-ratio:16/9;margin:30px auto 0;position:relative;overflow:hidden;border-radius:16px;box-shadow:var(--shadow);max-height:664px}
.hero-container img{width:100%;height:100%;object-fit:cover;display:block;border-radius:16px}
.hero-panel{position:absolute;left:32px;bottom:32px;width:min(38%,520px);max-width:520px;height:auto;padding:28px;border-radius:24px;background:rgba(244,236,227,.95);border:none;outline:none;box-shadow:0 10px 26px rgba(75,59,45,.08);filter:none;-webkit-filter:none;backdrop-filter:none;-webkit-backdrop-filter:none;z-index:2;isolation:isolate}
.hero-panel h1{max-width:none;font-size:clamp(24px,2.55vw,34px);opacity:1;filter:none;text-shadow:none}
.hero-panel p{max-width:none;margin:12px 0 18px;color:#4f4a46;line-height:1.4;opacity:1;filter:none;text-shadow:none}
.hero-panel .button{position:relative;z-index:1;opacity:1;filter:none;-webkit-filter:none;text-shadow:none;background:var(--accent);color:#fff}
.home-wide{width:min(1180px,calc(100vw - 96px));margin-inline:auto}
.room-section{padding-top:52px}
.room-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:24px 18px;align-items:start}
.room-card{display:block;text-align:center;transition:transform .2s ease;flex:0 0 calc((100% - 54px)/4)}
.room-card:hover{transform:translateY(-3px)}
.room-card img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:10px}
.room-card span{display:block;margin-top:8px;font-size:13px;font-weight:600}
.overview-grid .room-card{flex-basis:calc((100% - 54px)/4)}
.rooms-page{min-height:760px}

/* Home About Me section */
.about-me-section{width:100%;margin-top:80px;padding:0 0 76px}
.about-me-grid{display:grid;grid-template-columns:minmax(0,340px) minmax(0,440px);align-items:center;justify-content:center;gap:56px;width:calc(100% - 64px);max-width:960px;margin-inline:auto}
.about-me-image-wrap{width:100%;max-width:340px}
.about-me-image{width:100%;height:auto;border-radius:16px}
.about-me-content{width:100%;max-width:440px;transform:translateY(-10px)}
.about-me-content h2{font-size:32px;margin:0 0 16px;color:#E8743F}
.about-me-content p{font-size:16px;line-height:1.65;color:#4f4a46;margin:0 0 24px}
.about-me-button{background:#E8743F}

.category-page h1{font-size:30px;margin-bottom:5px}
.intro{margin:0 0 18px;max-width:570px;color:#4f4a46}
.category-hero{width:100%;height:405px;object-fit:cover;border-radius:12px}
.featured-title{font-size:22px;margin:24px 0 16px}
.idea-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.idea-card{background:#fff;border-radius:9px;overflow:hidden;box-shadow:0 5px 18px rgba(68,50,36,.035)}
.idea-card img{width:100%;aspect-ratio:1/1;object-fit:cover}
.idea-card>div{padding:12px 12px 13px}
.idea-card h3{font-family:Arial,Helvetica,sans-serif;font-size:15px;margin-bottom:3px}
.idea-card p{margin:0 0 7px;color:#55504c;font-size:12px}
.idea-card a,.blog-card a{color:var(--accent);font-size:12px;font-weight:700}

.filter-row{display:flex;gap:8px;flex-wrap:wrap}
.blog-filters{justify-content:center;margin:-7px 0 28px}
.resource-filters{margin-top:0;margin-bottom:32px}
.resource-category{margin-bottom:6px}
.filter{border:1px solid rgba(60,50,44,.12);background:#fff;border-radius:999px;padding:8px 13px;font-size:12px;cursor:pointer;color:#4f4a46;line-height:1}
.filter.active,.filter:hover{background:var(--accent);color:#fff;border-color:var(--accent)}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.blog-card{background:#fff;border-radius:9px;overflow:hidden;box-shadow:0 5px 18px rgba(68,50,36,.035);transition:.2s}
.blog-card:hover{transform:translateY(-2px)}
.blog-card.hidden,.product-card.hidden,.resource-card.hidden{display:none}
.blog-card img{width:100%;aspect-ratio:4/3;object-fit:cover}
.blog-card>div{padding:12px 13px 14px}
.eyebrow{display:block;font-size:10px;letter-spacing:.05em;color:var(--sage);margin-bottom:4px}
.blog-card h3{font-family:Arial,Helvetica,sans-serif;font-size:15px;margin-bottom:3px}
.blog-card p{font-size:12px;margin:0 0 7px;color:#55504c}

.article-page{max-width:660px;padding-top:34px}
.article-page h1{font-size:34px;margin-bottom:4px}
.meta-description{font-size:15px;line-height:1.55;margin:8px 0 18px;color:#4b4744}
.article-meta{font-size:13px;margin:0 0 18px;color:#4f4a46}
.article-meta-after{margin:12px 0 24px}
.article-hero{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:12px;margin:0 0 24px}
.article-hero.article-hero-full{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;display:block;margin-bottom:0}
.article-page h2{font-size:22px;margin:22px 0 8px}
.article-page-expanded .article-content h2{margin-top:34px}
.article-page-expanded .article-content h3{font-size:17px;margin:20px 0 5px}
.article-page p{margin:0 0 12px;color:#4b4744}
.article-page-expanded .article-content ul{margin:0 0 18px;padding-left:23px;color:#4b4744}
.article-page-expanded .article-content li{margin:0 0 6px;padding-left:2px}
.article-page-expanded .article-content img{display:block;width:100%;max-width:660px;height:auto;margin:30px auto 44px;border-radius:12px}
.article-page hr{border:0;border-top:1px solid var(--line);margin:34px 0 24px}

/* Inspiration overview mirrors the wide 4 + 3 screenshot layout. */
.inspiration-overview{width:min(1220px,calc(100vw - 96px));margin-inline:auto;min-height:850px}
.inspiration-overview-heading{margin-bottom:42px;max-width:730px}
.inspiration-overview-heading h1{font-size:38px;margin-bottom:12px}
.inspiration-overview-heading p{font-size:17px;line-height:1.45;margin:0;color:#4f4a46}
.inspiration-grid{gap:26px 22px}
.inspiration-grid .room-card{flex-basis:calc((100% - 66px)/4)}
.inspiration-grid .room-card span{font-size:16px;margin-top:10px}

/* Detail pages are deliberately 820px wide: 3 cards at about 263px each, like the supplied screenshots. */
.inspiration-page{width:min(820px,calc(100% - 48px));margin-inline:auto;padding-top:28px;padding-bottom:54px}
.inspiration-page .back-link{margin-bottom:20px;font-size:11px;font-weight:500}
.inspiration-page h1{font-size:31px;margin-bottom:10px}
.inspiration-intro{max-width:535px;margin:0;color:#3e3a37;font-size:13px;line-height:1.45}
.inspiration-filters{justify-content:flex-start;margin:24px 0 10px}
.inspiration-filters .filter{font-size:11px;padding:8px 13px}
.affiliate-note{margin:0 0 24px;color:var(--sage);font-size:10.5px;line-height:1.4}
.product-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px 15px}
.product-card{background:#fff;border-radius:10px;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.product-card img{width:100%;aspect-ratio:1/1;object-fit:cover}
.product-card-body{padding:12px 13px 13px;display:flex;flex:1;flex-direction:column;align-items:flex-start}
.product-card h3{font-family:Arial,Helvetica,sans-serif;font-size:13px;line-height:1.25;margin:0 0 6px}
.product-card p{font-size:11px;line-height:1.4;color:#55504c;margin:0 0 12px}
.shop-button{display:inline-flex;align-items:center;justify-content:center;border:0;background:var(--accent);color:#fff;border-radius:9px;padding:9px 14px;font-size:11px;font-weight:700;line-height:1;cursor:pointer;margin-top:auto}
.shop-button[aria-disabled="true"]{cursor:default}
.detail-footer .footer-grid{width:min(820px,calc(100% - 48px))}

.legal-page{max-width:720px;min-height:600px}
.legal-page h1{margin-bottom:18px}
.legal-page h2{font-size:22px;margin:24px 0 8px}
.legal-page p{color:#4b4744;margin:0 0 14px}
.text-link{color:var(--accent);font-weight:700}

.site-footer{border-top:1px solid var(--line);padding:28px 0 30px;background:#F4ECE3}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1.3fr;align-items:start;gap:25px;font-size:12px;color:#5d5854}
.footer-brand strong{font-family:Georgia,'Times New Roman',serif;font-size:15px;color:var(--text)}
.footer-brand p{margin:20px 0 0;white-space:nowrap}
.footer-nav,.footer-legal{display:flex;gap:14px;flex-wrap:wrap}
.footer-legal{justify-content:flex-end;color:#86807b}
.footer-grid a:hover{color:var(--accent)}

@media (min-width:1200px){.hero-container{min-height:520px}}
@media (max-width:1199px) and (min-width:768px){
  .hero-container,.home-wide,.inspiration-overview{width:calc(100vw - 64px)}
  .hero-panel{left:28px;bottom:28px;width:min(46%,500px);padding:26px}
  .hero-panel h1{font-size:clamp(24px,2.4vw,32px)}
  .hero-panel p{font-size:14px;margin:10px 0 16px}
  .hero-panel .button{font-size:12px;padding:10px 16px}
}
@media (max-width:960px){
  .room-card,.overview-grid .room-card,.inspiration-grid .room-card{flex-basis:calc((100% - 36px)/3)}
}
@media (max-width:860px){
  .about-me-section{margin-top:72px}
  .about-me-grid{grid-template-columns:minmax(0,320px) minmax(0,420px);gap:36px;width:calc(100% - 48px)}
  .about-me-image-wrap{max-width:320px}
  .about-me-content{max-width:420px;transform:translateY(-8px)}
  .about-me-content h2{font-size:29px}
  .about-me-content p{font-size:15px}
  .article-page-expanded .article-content img{max-width:620px}
  .page-shell{width:min(100% - 16px,1320px);margin:8px auto;min-height:calc(100vh - 16px)}
  .container{width:min(100% - 32px,900px)}
  .header-inner{height:94px}
  .brand img{width:56px;height:48px}
  .brand span{font-size:23px}
  .main-nav{gap:18px}
  .category-hero{height:340px}
  .idea-grid,.blog-grid{grid-template-columns:repeat(2,1fr)}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .inspiration-page{width:min(100% - 64px,820px)}
  .detail-footer .footer-grid{width:min(100% - 64px,820px)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .footer-legal{justify-content:flex-start}
  .footer-brand{grid-row:1/3}
}
@media (max-width:767px){
  body{font-size:14px}
  .about-me-section{margin-top:64px;padding:0 0 58px}
  .about-me-grid{grid-template-columns:1fr;gap:28px;width:calc(100% - 40px);max-width:620px}
  .about-me-image-wrap{max-width:320px;margin-inline:auto}
  .about-me-content{max-width:100%;margin-inline:auto;text-align:center;transform:none}
  .about-me-content h2{font-size:28px;margin-bottom:14px}
  .about-me-content p{font-size:15px;line-height:1.6;margin-bottom:22px}
  .page-shell{width:100%;margin:0;box-shadow:none}
  .container{width:min(100% - 28px,900px)}
  .site-header{position:sticky;top:0;background:#F4ECE3;backdrop-filter:blur(8px);z-index:20}
  .header-inner{height:78px;gap:10px}
  .brand{gap:10px}
  .brand img{width:46px;height:42px}
  .brand span{font-size:18px;white-space:normal;line-height:1.05;max-width:200px}
  .menu-toggle{display:block;margin-left:auto}
  .main-nav{position:absolute;top:78px;left:0;right:0;background:var(--cream-2);border-bottom:1px solid var(--line);padding:14px 20px 18px;display:none;flex-direction:column;align-items:stretch;gap:0;box-shadow:0 12px 24px rgba(0,0,0,.05)}
  .main-nav.open{display:flex}
  .main-nav a{padding:10px 4px}
  .hero-container,.home-wide,.inspiration-overview{width:calc(100vw - 40px)}
  .hero-container{aspect-ratio:4/3;margin-top:20px;border-radius:14px}
  .hero-panel{left:16px;right:auto;bottom:16px;width:calc(100% - 32px);max-width:none;height:auto;padding:22px;border-radius:24px}
  .hero-panel h1{font-size:22px}
  .hero-panel p{font-size:12px;margin:8px 0 14px;line-height:1.3;max-width:none}
  .section{padding:42px 0 52px}
  .section-heading h1,.section-heading h2{font-size:25px}
  .room-card,.overview-grid .room-card,.inspiration-grid .room-card{flex-basis:calc((100% - 14px)/2)}
  .room-card span{font-size:12px}
  .category-page h1{font-size:28px}
  .category-hero{height:255px}
  .inspiration-overview{min-height:0}
  .inspiration-overview-heading{margin-bottom:30px}
  .inspiration-overview-heading h1{font-size:31px}
  .inspiration-overview-heading p{font-size:14px}
  .inspiration-grid .room-card span{font-size:13px}
  .inspiration-page{width:calc(100vw - 40px);padding-top:30px}
  .inspiration-page h1{font-size:28px}
  .inspiration-filters,.blog-filters,.resource-filters{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:7px;scrollbar-width:thin}
  .inspiration-filters .filter,.blog-filters .filter,.resource-filters .filter{flex:0 0 auto}
  .detail-footer .footer-grid{width:min(100% - 28px,820px)}
  .footer-grid{grid-template-columns:1fr;gap:18px}
  .footer-brand{grid-row:auto}
  .footer-brand p{margin:10px 0 0;white-space:normal}
  .footer-legal{justify-content:flex-start}
}
@media (max-width:560px){
  .article-page-expanded .article-content img{width:100%;max-width:100%}
  .idea-grid,.blog-grid,.product-grid{grid-template-columns:1fr}
  .product-card{max-width:420px;width:100%;margin-inline:auto}
}
@media (max-width:430px){
  .container{width:min(100% - 22px,900px)}
  .about-me-section{padding-bottom:48px}
  .about-me-grid{gap:24px}
  .about-me-content h2{font-size:26px}
  .about-me-content p{font-size:14px}
  .brand span{font-size:16px;max-width:175px}
  .hero-container{width:calc(100vw - 40px)}
  .hero-panel{left:16px;right:auto;bottom:16px;width:calc(100% - 32px);padding:18px}
  .hero-panel h1{font-size:15px;line-height:1.08}
  .hero-panel p{font-size:9px;line-height:1.25;margin:6px 0 10px;max-width:100%}
  .hero-panel .button{font-size:10px;padding:7px 10px}
  .section-heading{margin-bottom:24px}
  .room-grid{gap:18px 10px}
  .room-card,.overview-grid .room-card,.inspiration-grid .room-card{flex-basis:calc((100% - 10px)/2)}
  .room-card img{border-radius:8px}
  .category-hero{height:220px}
  .article-page h1{font-size:30px}
  .inspiration-page{width:calc(100vw - 32px)}
  .inspiration-page h1{font-size:26px}
}
@media (max-width:350px){
  .hero-panel{padding:16px}
  .hero-panel h1{font-size:14px}
  .hero-panel p{font-size:8.5px;margin:5px 0 9px;line-height:1.2}
  .hero-panel .button{font-size:9px;padding:6px 9px}
}

/* Kitchen article inline images: keep the cover image unchanged and reduce only images inside the article body. */
.article-content img:not(.article-cover) {
  display: block !important;
  width: 100% !important;
  max-width: 480px !important;
  height: auto !important;
  margin: 28px auto 44px auto !important;
}

@media (max-width: 768px) {
  .article-content img:not(.article-cover) {
    max-width: 440px !important;
  }
}

@media (max-width: 520px) {
  .article-content img:not(.article-cover) {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Kitchen long-form article body text: improve readability without changing headings, images or layout. */
.article-page-expanded .article-content p,
.article-page-expanded .article-content li {
  font-size: 18px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .article-page-expanded .article-content p,
  .article-page-expanded .article-content li {
    font-size: 17px;
    line-height: 1.7;
  }
}

@media (max-width: 520px) {
  .article-page-expanded .article-content p,
  .article-page-expanded .article-content li {
    font-size: 16.5px;
    line-height: 1.65;
  }
}




/* Corrected Small Bedroom article cover: 16:9 only for articles that opt in. */
.article-cover-wrapper.is-16-9 {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 48px;
}

.article-cover-wrapper.is-16-9 .article-hero,
.article-cover-wrapper.is-16-9 .article-hero.article-hero-full {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 0;
  margin: 0;
}


.article-cover-wrapper.is-16-9.cover-radius-16 {
  border-radius: 16px;
}

/* Corrected Small Bedroom single article images. */
.article-content .single-article-image {
  display: block !important;
  width: 100% !important;
  max-width: 480px !important;
  height: auto !important;
  margin: 28px auto 44px auto !important;
}

/* Corrected Small Bedroom image pairs: natural image ratios and no 480px single-image limit. */
.article-image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 960px;
  margin: 28px auto 44px auto;
}

.article-image-pair img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .article-cover-wrapper.is-16-9 {
    margin-bottom: 40px;
  }

  .article-content .single-article-image {
    max-width: 440px !important;
  }

  .article-image-pair {
    gap: 16px;
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .article-image-pair {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .article-cover-wrapper.is-16-9 {
    margin-bottom: 32px;
  }

  .article-content .single-article-image {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* Unified long-form article spacing and highlighted section headings.
   Applied only to the first Kitchen, Bathroom, Small Bedroom and Laundry Room articles. */
.article-page.article-unified-treatment .article-cover-wrapper.unified-cover-spacing {
  margin-bottom: 48px;
}

.article-page.article-unified-treatment .article-content h2.first-section-heading,
.article-page.article-unified-treatment .article-content h2.conclusion-heading {
  color: #E8743F;
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 24px;
}

.article-page.article-unified-treatment .article-content h2.first-section-heading {
  margin-top: 56px;
}

.article-page.article-unified-treatment .article-content h2.conclusion-heading {
  margin-top: 64px;
}

@media (max-width: 768px) {
  .article-page.article-unified-treatment .article-cover-wrapper.unified-cover-spacing {
    margin-bottom: 40px;
  }

  .article-page.article-unified-treatment .article-content h2.first-section-heading,
  .article-page.article-unified-treatment .article-content h2.conclusion-heading {
    font-size: 30px;
  }

  .article-page.article-unified-treatment .article-content h2.first-section-heading {
    margin-top: 48px;
  }

  .article-page.article-unified-treatment .article-content h2.conclusion-heading {
    margin-top: 56px;
  }
}

@media (max-width: 520px) {
  .article-page.article-unified-treatment .article-cover-wrapper.unified-cover-spacing {
    margin-bottom: 32px;
  }

  .article-page.article-unified-treatment .article-content h2.first-section-heading,
  .article-page.article-unified-treatment .article-content h2.conclusion-heading {
    font-size: 27px;
  }

  .article-page.article-unified-treatment .article-content h2.first-section-heading {
    margin-top: 40px;
  }

  .article-page.article-unified-treatment .article-content h2.conclusion-heading {
    margin-top: 48px;
  }
}


/* Free Resources and two-tone section system */
:root {
  --page-bg: #F4ECE3;
  --cream: #F4ECE3;
  --cream-2: #FBF7F2;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #F4ECE3;
}

.page-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100vh;
  background: #F4ECE3;
  box-shadow: none;
}

.site-header,
.site-footer {
  background: #F4ECE3;
}

/* Keep long-form article reading areas calm and visually uniform. */
body[data-page-type="article"] main {
  background: #F4ECE3;
}

/* Single content areas on non-article pages use the lighter companion beige. */
body[data-page-type="rooms-overview"] main,
body[data-page-type="room"] main,
body[data-page-type="blog"] main,
body[data-page-type="inspiration-overview"] main,
body[data-page-type="inspiration-detail"] main,
body[data-page-type="legal"] main {
  background: #FBF7F2;
}

/* Home alternates full-width sections while preserving the existing inner widths. */
body[data-page-type="home"] main {
  background: #F4ECE3;
}

body[data-page-type="home"] .room-section {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  background: #FBF7F2;
}

body[data-page-type="home"] .room-section .home-grid {
  width: min(1180px, calc(100vw - 96px));
  margin-inline: auto;
}

body[data-page-type="home"] .about-me-section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  background: #F4ECE3;
}

.free-resources-section {
  width: 100%;
  background: #FBF7F2;
  padding: 64px 0 76px;
}

.free-resources-heading {
  margin-bottom: 32px;
}

.resource-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.resource-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #F4ECE3;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(68, 50, 36, .035);
  transition: transform .2s ease;
}

.resource-card:hover {
  transform: translateY(-2px);
}

.resource-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.resource-card img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 18px auto 0;
  aspect-ratio: auto;
  object-fit: contain;
  background: #FBF7F2;
}

.resource-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
}

.resource-card h3,
.resource-card h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.3;
  margin: 0 0 8px;
}

.resource-card p {
  margin: 0 0 20px;
  color: #55504c;
  font-size: 13px;
  line-height: 1.55;
}

.resource-card-button {
  margin-top: auto;
  pointer-events: none;
}

/* Free Resources overview uses the same subtle two-tone rhythm. */
body[data-page-type="free-resources"] main {
  background: #F4ECE3;
}

.free-resources-intro-section {
  background: #F4ECE3;
  padding-top: 54px;
  padding-bottom: 46px;
}

.free-resources-page-heading {
  max-width: 720px;
  text-align: center;
}

.free-resources-page-heading h1 {
  font-size: 34px;
  margin: 0 0 10px;
}

.free-resources-page-heading p {
  max-width: 620px;
  margin: 0 auto;
  color: #4f4a46;
  font-size: 16px;
  line-height: 1.55;
}

.free-resources-list-section {
  background: #FBF7F2;
  padding-top: 58px;
  padding-bottom: 76px;
}

/* Keep five desktop navigation items comfortable without changing typography. */
@media (max-width: 960px) and (min-width: 768px) {
  .header-inner {
    gap: 12px;
  }

  .main-nav {
    gap: 10px;
  }
}

@media (max-width: 1199px) and (min-width: 768px) {
  body[data-page-type="home"] .room-section .home-grid,
  .free-resources-inner,
  .free-resources-overview-inner {
    width: calc(100vw - 64px);
  }
}

@media (max-width: 860px) {
  .resource-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-card img {
    max-width: 280px;
  }
}

@media (max-width: 767px) {
  .site-header {
    background: #F4ECE3;
  }

  .main-nav {
    background: #FBF7F2;
  }

  body[data-page-type="home"] .room-section .home-grid,
  .free-resources-inner,
  .free-resources-overview-inner {
    width: calc(100vw - 40px);
  }

  .free-resources-section,
  .free-resources-list-section {
    padding-top: 52px;
    padding-bottom: 58px;
  }

  .free-resources-intro-section {
    padding-top: 44px;
    padding-bottom: 38px;
  }

  .free-resources-page-heading h1 {
    font-size: 30px;
  }

  .free-resources-page-heading p {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .resource-card-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    max-width: 460px;
    width: 100%;
    margin-inline: auto;
  }

  .resource-card img {
    max-width: 280px;
  }
}

@media (max-width: 430px) {
  .free-resources-section,
  .free-resources-list-section {
    padding-top: 46px;
    padding-bottom: 50px;
  }

  .resource-card-body {
    padding: 16px;
  }

  .resource-card h3,
  .resource-card h2 {
    font-size: 16px;
  }
}


/* Global navigation refinement and Small Bathroom Organization Checklist detail page */
.main-nav,
.main-nav a {
  white-space: nowrap;
}

@media (min-width: 1121px) {
  .site-header .header-inner {
    width: min(1180px, calc(100% - 64px));
    gap: 44px;
  }

  .site-header .brand {
    flex: 0 0 auto;
  }

  .site-header .main-nav {
    flex: 0 0 auto;
    gap: 32px;
  }
}

/* Use the existing mobile navigation treatment on tablets as well, so five items never crowd. */
@media (max-width: 1120px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #F4ECE3;
  }

  .site-header .menu-toggle {
    display: block;
    margin-left: auto;
    flex: 0 0 auto;
  }

  .site-header .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 20px 18px;
    background: #FBF7F2;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(0,0,0,.05);
    z-index: 30;
  }

  .site-header .main-nav.open {
    display: flex;
  }

  .site-header .main-nav a {
    padding: 10px 4px;
  }
}

body[data-page-type="resource-detail"] main {
  background: #F4ECE3;
}

.resource-detail-section {
  width: 100%;
  background: #F4ECE3;
  padding: 48px 0 80px;
}

.resource-detail-container {
  width: min(1080px, calc(100% - 64px));
  margin-inline: auto;
}

.resource-back-link {
  margin-bottom: 24px;
}

.resource-detail-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.resource-detail-heading h1 {
  font-size: 38px;
  line-height: 1.16;
  margin: 0 0 12px;
}

.resource-detail-heading p {
  max-width: 710px;
  margin: 0;
  color: #4f4a46;
  font-size: 17px;
  line-height: 1.6;
}

.resource-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 420px);
  justify-content: center;
  align-items: start;
  gap: 64px;
}

.resource-preview-wrap {
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}

.resource-preview-image {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(75, 59, 45, .06);
}

.resource-detail-copy {
  padding-top: 8px;
  max-width: 420px;
}

.resource-detail-copy p {
  margin: 0 0 18px;
  color: #4f4a46;
  font-size: 17px;
  line-height: 1.7;
}

.resource-canva-button {
  margin-top: 8px;
}

.resource-detail-copy .resource-usage-note {
  margin-top: 16px;
  margin-bottom: 0;
  color: #77706a;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .resource-detail-container {
    width: min(900px, calc(100% - 48px));
  }

  .resource-detail-grid {
    grid-template-columns: minmax(0, 440px) minmax(0, 360px);
    gap: 40px;
  }

  .resource-preview-wrap,
  .resource-preview-image {
    max-width: 440px;
  }

  .resource-detail-heading h1 {
    font-size: 34px;
  }

  .resource-detail-heading p,
  .resource-detail-copy p {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .resource-detail-section {
    padding: 40px 0 60px;
  }

  .resource-detail-container {
    width: calc(100% - 40px);
  }

  .resource-detail-heading {
    margin-bottom: 32px;
  }

  .resource-detail-heading h1 {
    font-size: 30px;
  }

  .resource-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .resource-preview-wrap,
  .resource-preview-image {
    max-width: 440px;
    margin-inline: auto;
  }

  .resource-detail-copy {
    max-width: 620px;
    padding-top: 0;
    margin-inline: auto;
  }
}

@media (max-width: 430px) {
  .resource-detail-container {
    width: calc(100% - 28px);
  }

  .resource-preview-wrap,
  .resource-preview-image {
    width: 100%;
    max-width: 100%;
  }

  .resource-detail-heading h1 {
    font-size: 27px;
  }

  .resource-detail-heading p,
  .resource-detail-copy p {
    font-size: 15px;
  }

  .resource-canva-button {
    width: 100%;
    text-align: center;
  }
}

/* Affiliate disclosures */
.footer-amazon-disclosure {
  margin: 8px 0 0 !important;
  max-width: 320px;
  white-space: normal !important;
  font-size: 11px;
  line-height: 1.45;
  color: #6f6964;
}

.inspiration-affiliate-disclosure {
  max-width: 760px;
  margin: 0 0 36px;
}

.inspiration-affiliate-disclosure p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #4f4a46;
}

.inspiration-affiliate-disclosure a {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 520px) {
  .inspiration-affiliate-disclosure {
    margin-bottom: 30px;
  }

  .inspiration-affiliate-disclosure p {
    font-size: 13.5px;
  }

  .inspiration-affiliate-disclosure a {
    font-size: 12.5px;
  }
}

/* Final Free Resources checklist preview sizing: targets the actual markup used on overview, home and detail pages. */
body[data-page-type="free-resources"] .resource-card img,
body[data-page-type="home"] .free-resources-section .resource-card img {
  display: block !important;
  width: 100% !important;
  max-width: 180px !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  object-fit: contain !important;
  aspect-ratio: auto !important;
}

body[data-page-type="resource-detail"] .resource-preview-wrap {
  width: 100% !important;
  max-width: 380px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body[data-page-type="resource-detail"] .resource-preview-image {
  display: block !important;
  width: 100% !important;
  max-width: 380px !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  object-fit: contain !important;
}

@media (max-width: 980px) and (min-width: 521px) {
  body[data-page-type="home"] .free-resources-section .resource-card img {
    max-width: 160px !important;
  }

  body[data-page-type="resource-detail"] .resource-preview-wrap,
  body[data-page-type="resource-detail"] .resource-preview-image {
    max-width: 340px !important;
  }
}

@media (max-width: 520px) {
  body[data-page-type="home"] .free-resources-section .resource-card img,
  body[data-page-type="free-resources"] .resource-card img {
    max-width: 180px !important;
  }

  body[data-page-type="resource-detail"] .resource-preview-wrap,
  body[data-page-type="resource-detail"] .resource-preview-image {
    width: 100% !important;
    max-width: 100% !important;
  }
}
