/*
Theme Name: Get Small Space Sorted — Simple
Theme URI: https://getsmallspacesorted.com
Author: Get Small Space Sorted
Author URI: https://getsmallspacesorted.com
Description: A stripped-back, single-column theme for Get Small Space Sorted — one font, one accent color, no cards or shadows. Built for closet, pantry, and small-space organization content, with Amazon/affiliate links, Hostinger Reach email capture, and room left for ads later.
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: gsssmin
*/

/* =========================================================
   0. ROOT VARIABLES — one font, one accent, flat surfaces
   ========================================================= */

:root{
  --color-bg: #FBF7F0;       /* page background — matches logo cream */
  --color-surface: #FFFFFF;  /* cards/inputs sit on plain white, no shadow */
  --color-ink: #262220;      /* body text */
  --color-ink-soft: #6B6259; /* secondary text */
  --color-line: #E4DCCC;     /* all borders, one weight, one color */
  --color-accent: #B8502F;   /* single accent — terracotta from the logo */
  --color-accent-dark: #99401F;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --measure: 680px;          /* comfortable reading width */
  --container: 780px;        /* single-column site width */
  --container-wide: 1000px;  /* header/footer only */
}

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

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; height: auto; display: block; }
a{ color: var(--color-accent); text-decoration: none; }
a:hover{ text-decoration: underline; }
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{
  font-family: var(--font);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1.2em; }
.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide{ max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }
.skip-link{
  position: absolute; left: -9999px; top: 0;
  background: var(--color-ink); color: #fff;
  padding: 10px 18px; z-index: 10000;
}
.skip-link:focus{ left: 0; }
.screen-reader-text{ position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

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

.eyebrow{
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: 6px;
}
.meta{ font-size: 13.5px; color: var(--color-ink-soft); }
.meta a{ color: var(--color-ink-soft); }
.meta a:hover{ color: var(--color-accent); }

/* =========================================================
   3. BUTTONS + FORMS
   ========================================================= */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1.5px solid var(--color-ink);
  border-radius: 3px;
  background: var(--color-ink);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}
.btn:hover{ background: var(--color-accent-dark); border-color: var(--color-accent-dark); text-decoration: none; }
.btn-outline{ background: transparent; color: var(--color-ink); }
.btn-outline:hover{ background: var(--color-ink); color: #fff; }
.btn-block{ width: 100%; }

input[type="email"], input[type="text"], input[type="search"], textarea{
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-line);
  border-radius: 3px;
  background: var(--color-surface);
  color: var(--color-ink);
}
input:focus, textarea:focus{ outline: 2px solid var(--color-accent); outline-offset: 1px; }
textarea{ min-height: 140px; resize: vertical; }
label{ display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }

hr, .rule{ border: none; border-top: 1px solid var(--color-line); margin: 40px 0; }

/* =========================================================
   4. HEADER
   ========================================================= */

.site-header{ border-bottom: 1px solid var(--color-line); padding: 22px 0; }
.site-header .container-wide{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-branding{ display: flex; align-items: center; gap: 10px; }
.site-branding img.custom-logo{ height: 34px; width: auto; }
.site-branding .site-title{ font-size: 19px; font-weight: 700; margin: 0; }
.site-branding .site-title a{ color: var(--color-ink); }
.site-branding .site-description{
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--color-ink-soft);
}

.primary-navigation{ display:flex; align-items:center; }
.primary-menu{ display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.primary-menu a{
  color: var(--color-ink);
  font-size: 14.5px;
  font-weight: 600;
}
.primary-menu a:hover{ color: var(--color-accent); text-decoration: none; }
.primary-menu li.current-menu-item > a{ color: var(--color-accent); }

.header-actions{ display: flex; align-items: center; gap: 16px; }
.header-actions a{ font-size: 14px; font-weight: 600; color: var(--color-ink); }
.header-actions a:hover{ color: var(--color-accent); text-decoration: none; }
.menu-toggle{
  display: none;
  background: none; border: 1.5px solid var(--color-line); border-radius: 3px;
  width: 38px; height: 38px; align-items: center; justify-content: center;
}

@media (max-width: 760px){
  .primary-navigation{
    display: none;
    width: 100%;
    order: 3;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--color-line);
  }
  .primary-navigation.is-open{ display: block; }
  .primary-menu{ flex-direction: column; align-items: flex-start; gap: 14px; }
  .menu-toggle{ display: inline-flex; }
}

/* =========================================================
   5. INTRO / PAGE HEADER
   ========================================================= */

.site-intro{ padding: 48px 0 8px; text-align: center; }
.site-intro h1{ font-size: 32px; margin-bottom: 10px; }
.site-intro p{ color: var(--color-ink-soft); font-size: 17px; max-width: 520px; margin: 0 auto; }

.page-header{ padding: 44px 0 8px; }
.page-header .breadcrumbs{ margin-bottom: 10px; }
.page-header h1{ font-size: 30px; }
.page-header p{ color: var(--color-ink-soft); }
.breadcrumbs{ font-size: 13px; color: var(--color-ink-soft); }
.breadcrumbs a{ color: var(--color-ink-soft); }
.breadcrumbs a:hover{ color: var(--color-accent); }

/* =========================================================
   6. CATEGORY TEXT NAV (replaces icon/card grid)
   ========================================================= */

.category-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding: 20px 0 40px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 40px;
}
.category-row a{
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.category-row a:hover{ color: var(--color-accent); border-color: var(--color-accent); text-decoration: none; }

/* =========================================================
   7. POST LIST (single column, no shadows)
   ========================================================= */

.post-list{ display: flex; flex-direction: column; }
.post-row{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-line);
}
.post-row:first-child{ padding-top: 0; }
.post-row .post-thumb{
  aspect-ratio: 1/1;
  background: var(--color-line);
  overflow: hidden;
}
.post-row .post-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.post-row .post-thumb-empty{
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; text-align: center;
  color: var(--color-ink-soft); padding: 6px;
}
.post-row h2, .post-row h3{ font-size: 21px; margin: 0 0 6px; }
.post-row h2 a, .post-row h3 a{ color: var(--color-ink); }
.post-row h2 a:hover, .post-row h3 a:hover{ color: var(--color-accent); text-decoration: none; }
.post-row .post-excerpt{ color: var(--color-ink-soft); font-size: 15.5px; margin: 0 0 8px; }
.post-row.is-placeholder{ opacity: .7; }
.post-row.is-placeholder .post-thumb{ border: 1.5px dashed var(--color-line); background: transparent; }

@media (max-width: 560px){
  .post-row{ grid-template-columns: 72px 1fr; gap: 14px; padding: 20px 0; }
  .post-row h2, .post-row h3{ font-size: 18px; }
}

.list-head{
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 8px; flex-wrap: wrap;
}
.list-head h2{ font-size: 15px; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.list-head .view-all{ font-size: 13.5px; font-weight: 600; }

/* =========================================================
   8. NEWSLETTER — one simple inline block
   ========================================================= */

.newsletter{
  border: 1.5px solid var(--color-line);
  padding: 30px;
  margin: 44px 0;
  text-align: center;
}
.newsletter h3{ font-size: 20px; margin-bottom: 6px; }
.newsletter p{ color: var(--color-ink-soft); font-size: 15px; margin-bottom: 18px; }
.newsletter-form{ display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.newsletter-form input[type="email"]{ flex: 1; }
.newsletter-disclaimer{ font-size: 12px; color: var(--color-ink-soft); margin: 12px 0 0; }
@media (max-width: 520px){ .newsletter-form{ flex-direction: column; } }

/* =========================================================
   9. ARTICLE
   ========================================================= */

.article-header{ max-width: var(--measure); margin: 0 auto 24px; }
.article-header h1{ font-size: 34px; margin-bottom: 12px; }
.article-header .post-sub{ color: var(--color-ink-soft); font-size: 17px; margin-bottom: 14px; }

.article-featured-image{ max-width: var(--container); margin: 0 auto 32px; }
.article-featured-image img{ width: 100%; }

.disclosure-line{
  max-width: var(--measure); margin: 0 auto 28px;
  font-size: 13.5px; color: var(--color-ink-soft); font-style: italic;
  padding-bottom: 20px; border-bottom: 1px solid var(--color-line);
}
.disclosure-line a{ color: var(--color-ink-soft); text-decoration: underline; }

.entry-content{ max-width: var(--measure); margin: 0 auto; font-size: 18px; line-height: 1.8; }
.entry-content h2{ font-size: 25px; margin-top: 1.6em; }
.entry-content h3{ font-size: 20px; margin-top: 1.4em; }
.entry-content ul, .entry-content ol{ margin: 0 0 1.4em 1.2em; list-style: disc; }
.entry-content blockquote{
  border-left: 3px solid var(--color-accent);
  margin: 1.8em 0; padding: 2px 0 2px 20px;
  font-style: italic; color: var(--color-ink-soft);
}
.entry-content img{ margin: 1.6em 0; }
.entry-content a{ text-decoration: underline; }

.aff-button-wrap{ text-align: center; margin: 1.8em 0; }
.aff-button{
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-ink); color: #fff !important;
  padding: 13px 26px; border-radius: 3px; font-weight: 600;
  text-decoration: none !important;
}
.aff-button:hover{ background: var(--color-accent-dark); }
.aff-button-note{ display: block; font-size: 12px; color: var(--color-ink-soft); margin-top: 8px; }

.entry-tags{ display: flex; flex-wrap: wrap; gap: 10px; max-width: var(--measure); margin: 2.2em auto 0; }
.entry-tags a{ font-size: 13px; color: var(--color-ink-soft); border-bottom: 1px solid var(--color-line); }

.related-simple{ max-width: var(--measure); margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--color-line); }
.related-simple .list-head h2{ margin-bottom: 14px; }
.related-simple ul{ display: flex; flex-direction: column; gap: 10px; }
.related-simple a{ color: var(--color-ink); font-weight: 600; }
.related-simple a:hover{ color: var(--color-accent); }

/* =========================================================
   10. SHOP GRID (still available, kept plain/flat)
   ========================================================= */

.shop-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 1.8em 0; }
.shop-item{ border: 1.5px solid var(--color-line); }
.shop-item-img{ aspect-ratio: 1/1; background: var(--color-line); display: flex; align-items: center; justify-content: center; }
.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-soft); }
.shop-item h4{ font-size: 15px; margin: 6px 0; }
.shop-item-price{ font-weight: 700; 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; } }

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

.page-content{ max-width: var(--measure); margin: 32px auto; font-size: 17px; }
.page-content h2{ font-size: 23px; margin-top: 1.5em; }
.page-content ul{ margin: 0 0 1.4em 1.2em; list-style: disc; }

.contact-form-wrap{ max-width: 520px; margin: 0 auto; }
.form-row{ margin-bottom: 16px; }

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

.error-404{ text-align: center; padding: 60px 0; }
.error-404 .error-code{ font-size: 64px; font-weight: 700; color: var(--color-line); }

/* =========================================================
   13. PAGINATION
   ========================================================= */

.pagination{ display: flex; justify-content: center; gap: 18px; margin: 40px 0 10px; font-weight: 600; font-size: 14px; }

/* =========================================================
   14. FOOTER
   ========================================================= */

.site-footer{ border-top: 1px solid var(--color-line); margin-top: 60px; padding: 40px 0 24px; }
.footer-links{
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 20px; margin-bottom: 26px; font-size: 14px; font-weight: 600;
}
.footer-links a{ color: var(--color-ink); }
.footer-links .sep{ color: var(--color-line); }
.footer-bottom{
  text-align: center; font-size: 13px; color: var(--color-ink-soft);
}
.footer-bottom a{ color: var(--color-ink-soft); }
.footer-bottom a:hover{ color: var(--color-accent); }
