/*
Theme Name: Get Small Space Sorted
Theme URI: https://getsmallspacesorted.com
Author: Get Small Space Sorted
Author URI: https://getsmallspacesorted.com
Description: A warm, editorial home-organization theme built for content, affiliate roundups (Amazon & other retailers), and email list growth. Inspired by modern lifestyle publishers, styled around closets, pantries, small-space living, and real-life declutter systems.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gsss
Tags: blog, e-commerce, entertainment, food-and-drink, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, full-width-template, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks
*/

/* =========================================================
   0. FONTS + ROOT VARIABLES
   ========================================================= */

:root{
  /* Brand palette — pulled from the site logo */
  --color-terracotta: #C24A2B;   /* roof red / closet category */
  --color-terracotta-dark: #A63C21;
  --color-forest: #2F4A3C;       /* dark green / pantry + primary UI */
  --color-forest-dark: #21362B;
  --color-mustard: #DFA537;      /* gold / seasonal category */
  --color-mustard-dark: #C08C24;
  --color-plum: #7C5B96;         /* small space category */
  --color-berry: #C24671;        /* kids & dorm category */
  --color-denim: #3A6B8A;        /* bathroom & problem spots category */
  --color-cream: #FBF5E9;        /* page background */
  --color-cream-deep: #F3E9D6;
  --color-paper: #FFFFFF;
  --color-ink: #2B2420;          /* body text */
  --color-ink-light: #5B5148;
  --color-border: #E7DCC6;

  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(43,36,32,0.08);
  --shadow-md: 0 6px 20px rgba(43,36,32,0.10);
  --shadow-lg: 0 16px 40px rgba(43,36,32,0.14);

  --container: 1180px;
}

/* =========================================================
   1. RESET
   ========================================================= */

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
button{ font-family: inherit; cursor: pointer; }
input, textarea, select, button{ font-family: inherit; font-size: inherit; }
h1,h2,h3,h4,h5,h6{
  font-family: var(--font-heading);
  color: var(--color-ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}
p{ margin: 0 0 1.2em; }
figure{ margin: 0; }
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.screen-reader-text{
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.skip-link{
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-forest);
  color: #fff;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* =========================================================
   2. UTILITIES
   ========================================================= */

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-terracotta);
}
.section{ padding: 56px 0; }
.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2{ font-size: 30px; margin: 0; }
.section-head .view-all{
  font-weight: 700;
  font-size: 14px;
  color: var(--color-forest);
  border-bottom: 2px solid var(--color-mustard);
  padding-bottom: 2px;
  white-space: nowrap;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn-primary{ background: var(--color-terracotta); color: #fff; }
.btn-primary:hover{ background: var(--color-terracotta-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-forest{ background: var(--color-forest); color: #fff; }
.btn-forest:hover{ background: var(--color-forest-dark); transform: translateY(-1px); }
.btn-outline{ background: transparent; border-color: currentColor; color: var(--color-forest); }
.btn-outline:hover{ background: var(--color-forest); color: #fff; }
.btn-block{ width: 100%; }
.btn-sm{ padding: 9px 18px; font-size: 13px; }

.badge{
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: var(--color-forest);
}
/* Category color system — mirrors the content plan's color-coded pillars */
.cat-closet{ background: var(--color-terracotta); }
.cat-pantry{ background: var(--color-forest); }
.cat-bathroom{ background: var(--color-denim); }
.cat-small-space{ background: var(--color-plum); }
.cat-kids-dorm{ background: var(--color-berry); }
.cat-seasonal{ background: var(--color-mustard-dark); }
.cat-default{ background: var(--color-ink-light); }

.text-cat-closet{ color: var(--color-terracotta); }
.text-cat-pantry{ color: var(--color-forest); }
.text-cat-bathroom{ color: var(--color-denim); }
.text-cat-small-space{ color: var(--color-plum); }
.text-cat-kids-dorm{ color: var(--color-berry); }
.text-cat-seasonal{ color: var(--color-mustard-dark); }

/* =========================================================
   3. HEADER
   ========================================================= */

.announcement-bar{
  background: var(--color-forest);
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 9px 16px;
}
.announcement-bar a{ text-decoration: underline; text-underline-offset: 2px; }

.site-header{
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 500;
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-branding{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-branding img.custom-logo{
  height: 52px;
  width: auto;
}
.site-branding .site-title{
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  color: var(--color-forest);
  line-height: 1.1;
}
.site-branding .site-title a{ color: inherit; }
.site-branding .site-description{
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--color-ink-light);
  margin-top: 2px;
}

.primary-navigation{ display: flex; align-items: center; }
.mobile-nav-close{ display: none; }
.primary-menu{
  display: flex;
  align-items: center;
  gap: 30px;
}
.primary-menu > li > a{
  font-weight: 700;
  font-size: 14.5px;
  color: var(--color-ink);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a{
  color: var(--color-terracotta);
  border-color: var(--color-terracotta);
}
.primary-menu li.menu-item-has-children{ position: relative; }
.primary-menu .sub-menu{
  display: none;
  position: absolute;
  top: 100%;
  left: -16px;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 220px;
  padding: 8px;
  z-index: 50;
}
.primary-menu li.menu-item-has-children:hover .sub-menu{ display: block; }
.primary-menu .sub-menu a{
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
}
.primary-menu .sub-menu a:hover{ background: var(--color-cream); color: var(--color-terracotta); }

.header-actions{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-icon-btn{
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  color: var(--color-forest);
  transition: background .15s ease;
}
.header-icon-btn:hover{ background: var(--color-cream-deep); }
.menu-toggle{
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  align-items: center;
  justify-content: center;
}

.header-search-panel{
  display: none;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-cream);
}
.header-search-panel.is-open{ display: block; }
.header-search-panel .container{ padding-top: 16px; padding-bottom: 16px; }
.header-search-panel form{ display: flex; gap: 10px; }
.header-search-panel input[type="search"]{
  flex: 1;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
}

/* =========================================================
   4. MOBILE NAV
   ========================================================= */

@media (max-width: 900px){
  .primary-navigation{
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--color-paper);
    z-index: 1000;
    padding: 20px 24px;
    overflow-y: auto;
  }
  .primary-navigation.is-open{ display: block; }
  .primary-navigation .mobile-nav-close{
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--color-cream); border: 1px solid var(--color-border);
    margin-bottom: 20px;
  }
  .primary-menu{ flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .primary-menu > li{ width: 100%; border-bottom: 1px solid var(--color-border); }
  .primary-menu > li > a{ display: block; padding: 14px 4px; border: none; }
  .primary-menu .sub-menu{
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 8px 12px;
    min-width: 0;
  }
  .primary-menu li.menu-item-has-children.is-expanded .sub-menu{ display: block; }
  .menu-toggle{ display: inline-flex; }
.site-branding{ flex-shrink: 1; min-width: 0; }
.site-branding .site-title{ font-size: 19px; }
.site-branding .site-description{ white-space: normal; overflow-wrap: break-word; }
.header-actions .btn-primary.btn-sm{ display: none; }
}

/* =========================================================
   5. HERO
   ========================================================= */

.hero{
  background: linear-gradient(180deg, var(--color-cream-deep) 0%, var(--color-cream) 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--color-border);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero-content .eyebrow{ margin-bottom: 14px; }
.hero-content h1{
  font-size: 44px;
  margin-bottom: 16px;
}
.hero-content p{
  font-size: 18px;
  color: var(--color-ink-light);
  max-width: 46ch;
}
.hero-actions{ display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.hero-media{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3.1;
  background: var(--color-cream-deep) url('assets/images/logo.png') center/40% no-repeat;
  box-shadow: var(--shadow-lg);
}
.hero-media .placeholder-note{
  position: absolute; inset: auto 16px 16px 16px;
  background: rgba(255,255,255,.92);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--color-ink-light);
  text-align: center;
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-content h1{ font-size: 32px; }
}

/* =========================================================
   6. CATEGORY PILLARS GRID (homepage)
   ========================================================= */

.pillars-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.pillar-card{
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pillar-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar-icon{
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: #fff;
}
.pillar-icon svg{ width: 24px; height: 24px; }
.pillar-card h3{ font-size: 15px; margin: 0 0 4px; }
.pillar-card p{ font-size: 12.5px; color: var(--color-ink-light); margin: 0; }

@media (max-width: 900px){
  .pillars-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px){
  .pillars-grid{ grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   7. POST GRID + CARDS
   ========================================================= */

.post-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.post-grid.cols-4{ grid-template-columns: repeat(4, 1fr); gap: 22px; }
.post-grid.cols-2{ grid-template-columns: repeat(2, 1fr); }

.post-card{ display: flex; flex-direction: column; }
.post-card .post-thumb{
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-cream-deep);
  margin-bottom: 14px;
}
.post-card .post-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.post-card .post-thumb .badge{ position: absolute; top: 12px; left: 12px; }
.post-card .placeholder-thumb{
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-ink-light);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 10px;
}
.post-card h3{ font-size: 19px; margin-bottom: 8px; }
.post-card h3 a:hover{ color: var(--color-terracotta); }
.post-card .post-excerpt{ font-size: 14.5px; color: var(--color-ink-light); margin-bottom: 10px; }
.post-card .post-meta{
  font-size: 12.5px;
  color: var(--color-ink-light);
  font-weight: 600;
  display: flex;
  gap: 8px;
  align-items: center;
}

.post-list-row{
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.post-list-row .post-thumb{ aspect-ratio: 4/3; margin: 0; }

@media (max-width: 900px){
  .post-grid, .post-grid.cols-4{ grid-template-columns: repeat(2, 1fr); }
  .post-list-row{ grid-template-columns: 1fr; }
}
@media (max-width: 560px){
  .post-grid, .post-grid.cols-4, .post-grid.cols-2{ grid-template-columns: 1fr; }
}

/* =========================================================
   8. NEWSLETTER BLOCKS
   ========================================================= */

.newsletter-block{
  background: var(--color-forest);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}
.newsletter-block h2, .newsletter-block h3{ color: #fff; }
.newsletter-block p{ color: rgba(255,255,255,.82); }
.newsletter-form{ display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"]{
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  font-size: 15px;
}
.newsletter-form .btn{ flex-shrink: 0; }
.newsletter-disclaimer{ font-size: 12px; color: rgba(255,255,255,.65); margin-top: 10px; }

.newsletter-block.compact{
  padding: 28px;
  grid-template-columns: 1fr;
  text-align: center;
}
.newsletter-block.compact .newsletter-form{ justify-content: center; margin-top: 14px; }

.sidebar .newsletter-block{
  background: var(--color-cream-deep);
  color: var(--color-ink);
  padding: 26px;
  grid-template-columns: 1fr;
}
.sidebar .newsletter-block h3{ color: var(--color-ink); font-size: 19px; }
.sidebar .newsletter-block p{ color: var(--color-ink-light); font-size: 14px; }
.sidebar .newsletter-form{ flex-direction: column; }
.sidebar .newsletter-form input[type="email"]{ width: 100%; }
.sidebar .newsletter-block .newsletter-disclaimer{ color: var(--color-ink-light); }

@media (max-width: 900px){
  .newsletter-block{ grid-template-columns: 1fr; text-align: left; }
}

/* =========================================================
   9. LAYOUT: content + sidebar
   ========================================================= */

.content-sidebar-layout{
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.sidebar{ position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget{
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.sidebar-widget h3{
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-cream-deep);
}
.sidebar-widget .search-form{ display: flex; gap: 8px; }
.sidebar-widget .search-form input{
  flex: 1;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}
.sidebar-cat-list li{ border-bottom: 1px solid var(--color-cream-deep); }
.sidebar-cat-list li:last-child{ border-bottom: none; }
.sidebar-cat-list a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  font-weight: 600;
  font-size: 14.5px;
}
.sidebar-cat-list a:hover{ color: var(--color-terracotta); }
.sidebar-cat-list .dot{ width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.sidebar-popular-item{
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-cream-deep);
}
.sidebar-popular-item:last-child{ border-bottom: none; padding-bottom: 0; }
.sidebar-popular-item .num{
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-mustard-dark);
  width: 28px;
  flex-shrink: 0;
}
.sidebar-popular-item h4{ font-size: 14px; margin: 0; line-height: 1.35; }

@media (max-width: 980px){
  .content-sidebar-layout{ grid-template-columns: 1fr; }
  .sidebar{ position: static; }
}

/* =========================================================
   10. SINGLE ARTICLE
   ========================================================= */

.article-header{ max-width: 780px; margin: 0 auto 28px; text-align: center; }
.article-header .eyebrow{ justify-content: center; margin-bottom: 14px; }
.article-header h1{ font-size: 38px; margin-bottom: 16px; }
.article-header .post-sub{ font-size: 18px; color: var(--color-ink-light); margin-bottom: 18px; }
.article-meta{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 13.5px;
  color: var(--color-ink-light);
  font-weight: 600;
}
.article-meta .author-avatar{
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-cream-deep);
}
.article-featured-image{
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-cream-deep);
  margin-bottom: 36px;
}
.article-featured-image img{ width: 100%; height: 100%; object-fit: cover; }

.affiliate-disclosure-inline{
  background: var(--color-cream-deep);
  border-left: 4px solid var(--color-mustard-dark);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--color-ink-light);
  margin: 0 0 32px;
}
.affiliate-disclosure-inline a{ text-decoration: underline; color: var(--color-forest); font-weight: 700; }

.entry-content{
  font-size: 18px;
  line-height: 1.8;
  max-width: 740px;
  margin: 0 auto;
}
.entry-content h2{ font-size: 27px; margin-top: 1.6em; }
.entry-content h3{ font-size: 22px; margin-top: 1.4em; }
.entry-content p{ margin-bottom: 1.4em; }
.entry-content ul, .entry-content ol{ margin: 0 0 1.4em 1.3em; list-style: revert; }
.entry-content blockquote{
  border-left: 4px solid var(--color-terracotta);
  margin: 1.8em 0;
  padding: 4px 0 4px 22px;
  font-style: italic;
  font-size: 20px;
  color: var(--color-ink-light);
}
.entry-content img{ border-radius: var(--radius-md); margin: 1.6em 0; }
.entry-content figcaption{ font-size: 13px; color: var(--color-ink-light); text-align: center; margin-top: 8px; }
.entry-content a{ color: var(--color-forest); text-decoration: underline; text-underline-offset: 2px; }

/* Affiliate CTA button + shop grid shortcodes */
.aff-button-wrap{ text-align: center; margin: 1.6em 0; }
.aff-button{
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-terracotta);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
}
.aff-button:hover{ background: var(--color-terracotta-dark); }
.aff-button-note{ display: block; font-size: 12px; color: var(--color-ink-light); margin-top: 8px; text-decoration: none; }

.shop-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 1.8em 0;
}
.shop-item{
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.shop-item .shop-item-img{
  aspect-ratio: 1/1;
  background: var(--color-cream-deep);
  display: flex; align-items: center; justify-content: center;
}
.shop-item .shop-item-img img{ width: 100%; height: 100%; object-fit: cover; }
.shop-item-body{ padding: 16px; }
.shop-item-retailer{ font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--color-ink-light); }
.shop-item h4{ font-size: 15.5px; margin: 6px 0; }
.shop-item .shop-item-price{ font-weight: 700; color: var(--color-forest); margin-bottom: 10px; }
@media (max-width: 700px){ .shop-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px){ .shop-grid{ grid-template-columns: 1fr; } }

.entry-tags{ display: flex; flex-wrap: wrap; gap: 8px; margin: 2.4em 0 0; max-width: 740px; margin-left:auto; margin-right:auto; }
.entry-tags a{
  font-size: 12.5px; font-weight: 700;
  background: var(--color-cream-deep);
  padding: 7px 14px;
  border-radius: 999px;
}
.entry-tags a:hover{ background: var(--color-mustard); color:#fff; }

.author-box{
  max-width: 740px;
  margin: 40px auto 0;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.author-box .author-avatar-lg{ width: 64px; height: 64px; border-radius: 50%; background: var(--color-cream-deep); flex-shrink: 0; }
.author-box h4{ font-size: 15px; margin-bottom: 4px; }
.author-box p{ font-size: 13.5px; color: var(--color-ink-light); margin: 0; }

.related-posts{ max-width: 980px; margin: 56px auto 0; }

/* =========================================================
   11. PAGE / GENERIC CONTENT
   ========================================================= */

.page-header{
  background: var(--color-cream-deep);
  padding: 46px 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.page-header h1{ font-size: 36px; margin-bottom: 10px; }
.page-header p{ color: var(--color-ink-light); font-size: 16px; max-width: 620px; margin: 0 auto; }
.breadcrumbs{ font-size: 12.5px; color: var(--color-ink-light); font-weight: 600; margin-bottom: 12px; }
.breadcrumbs a:hover{ color: var(--color-terracotta); }

.page-content{ max-width: 780px; margin: 44px auto; font-size: 17px; }
.page-content h2{ font-size: 25px; margin-top: 1.5em; }
.page-content ul{ margin: 0 0 1.4em 1.3em; list-style: disc; }

/* Contact form */
.contact-form-wrap{ max-width: 640px; margin: 0 auto; }
.form-row{ margin-bottom: 18px; }
.form-row label{ display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.form-row input, .form-row textarea{
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.form-row textarea{ min-height: 150px; resize: vertical; }
.contact-info-grid{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
}
.contact-info-card{ background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 24px 18px; }
.contact-info-card .icon{ width: 44px; height: 44px; border-radius: 50%; background: var(--color-cream-deep); color: var(--color-forest); display:flex; align-items:center; justify-content:center; margin: 0 auto 12px; }
@media (max-width: 700px){ .contact-info-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   12. 404 / SEARCH
   ========================================================= */

.error-404{ text-align: center; padding: 80px 0; }
.error-404 .error-code{ font-family: var(--font-heading); font-size: 96px; color: var(--color-cream-deep); font-weight: 700; }
.search-results-count{ color: var(--color-ink-light); font-weight: 600; margin-bottom: 28px; }

/* =========================================================
   13. FOOTER
   ========================================================= */

.site-footer{ background: var(--color-forest-dark); color: rgba(255,255,255,.82); margin-top: 60px; }
.footer-top{ padding: 56px 0 36px; }
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 36px;
}
.footer-brand .site-title{ color: #fff; font-family: var(--font-heading); font-size: 22px; }
.footer-brand img.custom-logo{
  height: 46px;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  box-sizing: content-box;
}
.footer-brand p{ font-size: 14px; color: rgba(255,255,255,.7); margin-top: 10px; }
.footer-social{ display: flex; gap: 10px; margin-top: 16px; }
.footer-social a{
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover{ background: var(--color-terracotta); }
.footer-col h4{
  color: #fff; font-family: var(--font-body); font-size: 13px;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 16px;
}
.footer-col li{ margin-bottom: 10px; }
.footer-col a{ font-size: 14.5px; color: rgba(255,255,255,.75); }
.footer-col a:hover{ color: #fff; }
.footer-newsletter p{ font-size: 14px; color: rgba(255,255,255,.7); }
.footer-newsletter .newsletter-form input[type="email"]{ background: rgba(255,255,255,.08); color:#fff; border:1px solid rgba(255,255,255,.2); }
.footer-newsletter .newsletter-form input::placeholder{ color: rgba(255,255,255,.5); }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255,255,255,.6);
}
.footer-bottom-links{ display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a:hover{ color: #fff; }

@media (max-width: 900px){
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  .footer-grid{ grid-template-columns: 1fr; }
}

/* =========================================================
   14. PAGINATION
   ========================================================= */

.pagination{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 10px;
}
.pagination a, .pagination span{
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  font-weight: 700;
  font-size: 14px;
}
.pagination .current{ background: var(--color-forest); color: #fff; border-color: var(--color-forest); }
.pagination a:hover{ background: var(--color-cream-deep); }

/* =========================================================
   15. MISC
   ========================================================= */

.wp-block-quote{ border-left: 4px solid var(--color-terracotta); padding-left: 20px; font-style: italic; }
::selection{ background: var(--color-mustard); color: var(--color-ink); }
.alignwide{ max-width: 980px; }
.alignfull{ max-width: 100%; }
