/*
Theme Name: HomeDecor Blog
Theme URI: https://example.com/homedecor-blog
Author: Vista Studio
Author URI: https://example.com
Description: A premium home decor blogging theme with a magazine-style homepage, bold editorial design, category showcases, author spotlight, built-in home tools (paint calculator and rug size guide), Pinterest save buttons, and full Customizer controls.
Version: 2.0.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: homedecor-blog
Tags: blog, home-decor, pinterest, customizer, responsive, two-columns, custom-menu, featured-images
*/

/* ============================================================
   1. TOKENS & RESET
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --bg-soft: #FAF5EC;
  --cream: #F3EBDA;
  --card: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #6E675C;
  --accent: #1E3A2A;
  --accent-deep: #142A1E;
  --accent-soft: #E7EFE8;
  --gold: #C6A15B;
  --gold-deep: #A9853F;
  --line: #E8E0CF;
  --footer-bg: #1E3A2A;
  --footer-ink: #F1EBDD;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(26, 26, 26, 0.08);
  --font-head: 'Archivo', 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-script: 'Pinyon Script', cursive;
  --wrap: 1200px;
  --wrap-narrow: 780px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 0.6em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }

::selection { background: var(--accent-soft); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 24px; }

.section { padding: 84px 0; }
.section-tight { padding-top: 0; }
.section-soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-head p { color: var(--muted); }

/* Buttons — three flavours */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 15px 36px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
/* Gold CTA with hard offset shadow */
.btn-gold {
  background: var(--gold);
  color: #1A1A1A;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.85);
}
.btn-gold:hover { background: var(--gold-deep); color: #fff; transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(0,0,0,0.85); }
/* Solid deep-green */
.btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; border-radius: 6px; }
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; transform: translateY(-2px); }
/* Outlined */
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); border-radius: 999px; padding: 11px 28px; font-size: 0.88rem; }
.btn-outline:hover { background: var(--accent); color: #fff; }

.text-link { font-weight: 700; color: var(--accent); }
.text-link::after { content: " \2192"; }
.text-link:hover { color: var(--accent-deep); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}

/* ============================================================
   2. HEADER
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 200;
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(26, 26, 26, 0.10); }
.header-inner {
  display: flex; align-items: center; gap: 28px;
  min-height: 88px; position: relative;
}
.brand-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo svg { height: 54px; width: auto; display: block; }
.brand-logo .custom-logo { height: 54px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
}
.main-nav a {
  display: block; padding: 12px 15px; color: var(--ink);
  font-size: 0.95rem; font-weight: 600; position: relative;
}
.main-nav a:hover { color: var(--accent); }
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a { color: var(--accent); }
/* Underline grow on hover */
.main-nav > ul > li > a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 6px;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform 0.25s ease;
}
.main-nav > ul > li > a:hover::after,
.main-nav .current-menu-item > a::after { transform: scaleX(1); }

/* Dropdowns */
.main-nav li { position: relative; }
.main-nav ul ul {
  display: none; position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 10px; z-index: 300;
}
.main-nav li:hover > ul,
.main-nav li:focus-within > ul { display: block; }
.main-nav ul ul li { width: 100%; }
.main-nav ul ul a { padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; white-space: nowrap; }
.main-nav ul ul a::after { display: none; }
.main-nav ul ul a:hover { background: var(--bg-soft); }
.menu-item-has-children > a .chev { display: inline-block; margin-left: 5px; font-size: 0.7em; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.icon-btn {
  background: none; border: none; border-radius: 50%;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
}
.icon-btn:hover { color: var(--accent); background: var(--bg-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.nav-toggle { display: none; }

.header-search {
  display: none; border-top: 1px solid var(--line); background: #fff;
  padding: 18px 0;
}
.header-search.open { display: block; }
.header-search form { display: flex; gap: 10px; max-width: 620px; margin: 0 auto; }
.header-search input[type="search"] {
  flex: 1; padding: 13px 20px; border: 2px solid var(--line); border-radius: 999px;
  font-size: 1rem; font-family: inherit; background: var(--bg-soft);
}
.header-search input[type="search"]:focus { border-color: var(--accent); outline: none; }

/* ============================================================
   3. HERO
   ============================================================ */
.hero {
  background: var(--accent);
  color: #fff;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 480px at 85% 20%, rgba(198,161,91,0.22), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center;
  position: relative;
}
.hero .kicker {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gold); font-weight: 700;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; max-width: 560px; margin-bottom: 20px; }
.hero p.lead { color: rgba(255,255,255,0.88); font-size: 1.12rem; max-width: 520px; margin-bottom: 36px; }
.hero-media { position: relative; transform: rotate(2deg); }
.hero-media::before {
  content: ""; position: absolute; inset: 0;
  border: 2px solid var(--gold); border-radius: 8px;
  transform: translate(20px, 20px);
}
.hero-media img {
  border-radius: 8px; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover;
  position: relative; box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.hero-fallback {
  position: relative; border-radius: 8px; aspect-ratio: 4 / 4.6;
  background: linear-gradient(135deg, var(--accent-deep), #2C5238);
  display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75); text-align: center; padding: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.hero-fallback svg { width: 96px; height: 96px; opacity: 0.9; }

/* ============================================================
   4. CATEGORY STARTER CARDS
   ============================================================ */
.starter-grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(4, 1fr);
}
.starter-card { text-align: center; }
.starter-img {
  display: block; position: relative; border-radius: var(--radius);
  overflow: visible; margin-bottom: 44px;
}
.starter-img img {
  width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius);
  background: var(--bg-soft); transition: transform 0.4s ease;
  box-shadow: var(--shadow);
}
.starter-card:hover .starter-img img { transform: scale(1.03); }
.starter-btn {
  position: absolute; left: 50%; bottom: -21px; transform: translateX(-50%);
  background: var(--gold); color: #1A1A1A;
  font-family: var(--font-head); font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.04em; padding: 11px 26px; border-radius: 999px;
  white-space: nowrap; box-shadow: 0 8px 20px rgba(26,26,26,0.18);
  transition: background 0.2s ease, color 0.2s ease;
}
.starter-card:hover .starter-btn { background: var(--accent); color: #fff; }
.starter-card h3 { font-size: 1.3rem; margin: 0; }
.starter-card h3 a { color: var(--ink); }
.starter-card h3 a:hover { color: var(--accent); }

/* ============================================================
   5. NEWSLETTER BAND
   ============================================================ */
.newsletter-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center; padding: 76px 0;
}
.newsletter-band h2 {
  text-transform: uppercase; letter-spacing: 0.04em;
  font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 12px;
}
.sparkle-line { color: var(--muted); font-size: 1.02rem; margin-bottom: 30px; }
.sparkle-line span { color: var(--gold-deep); }
.newsletter-form {
  display: flex; gap: 12px; max-width: 640px; margin: 0 auto; justify-content: center;
}
.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  flex: 1; padding: 15px 22px; border: 2px solid var(--line); border-radius: 6px;
  font-size: 1rem; font-family: inherit; background: #fff; min-width: 0;
}
.newsletter-form input:focus { border-color: var(--accent); outline: none; }
.newsletter-note { font-size: 0.8rem; color: var(--muted); margin-top: 16px; margin-bottom: 0; }

/* ============================================================
   6. SHOWCASE BOX & POST GRIDS
   ============================================================ */
.showcase-box {
  border: 2px solid var(--accent); border-radius: 22px;
  padding: 44px 40px; background: #fff;
}
.showcase-grid {
  display: grid; gap: 30px; grid-template-columns: repeat(4, 1fr);
}

/* Section heading bar: bold heading left, outlined See All right */
.post-block { margin-bottom: 8px; }
.post-block-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 30px;
}
.post-block-head h2 { margin: 0; }

/* Cream heading band for category sections */
.band-head {
  background: var(--cream); border-radius: 12px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 28px; margin-bottom: 30px;
}
.band-head h2 { margin: 0; font-size: 1.7rem; }

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

/* Post card */
.post-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card .card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); position: relative; }
.post-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .card-img img { transform: scale(1.06); }
.post-card .card-cat {
  position: absolute; top: 14px; left: 14px;
  background: rgba(30, 58, 42, 0.92); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.post-card .card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.post-card h3 a { color: var(--accent); }
.post-card h3 a:hover { color: var(--accent-deep); }
.post-card .excerpt { color: var(--muted); font-size: 0.94rem; margin: 0 0 14px; flex: 1; }
.post-meta { font-size: 0.82rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.post-meta time { white-space: nowrap; }

/* ============================================================
   7. ABOUT / POLAROID SECTION
   ============================================================ */
.about-section { background: var(--bg-soft); border-top: 1px solid var(--line); }
.about-grid {
  display: grid; grid-template-columns: 400px 1fr; gap: 72px; align-items: center;
}
.polaroid {
  background: #fff; padding: 18px 18px 56px; border-radius: 6px;
  box-shadow: 0 20px 50px rgba(26,26,26,0.14);
  transform: rotate(-3deg); position: relative;
  transition: transform 0.3s ease;
}
.polaroid:hover { transform: rotate(-1deg) scale(1.02); }
.polaroid::before {
  content: ""; position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(2deg);
  width: 120px; height: 34px; background: rgba(198,161,91,0.55);
  border-left: 1px dashed rgba(0,0,0,0.08); border-right: 1px dashed rgba(0,0,0,0.08);
}
.polaroid img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; border-radius: 2px; }
.photo-placeholder {
  aspect-ratio: 1 / 1; border-radius: 2px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-align: center; padding: 24px;
}
.about-text .kicker {
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; display: block; margin-bottom: 6px;
}
.script-greeting {
  font-family: var(--font-script); font-size: clamp(2rem, 3.4vw, 2.9rem);
  color: var(--accent); margin: 0 0 10px; line-height: 1.2;
}
.about-text h2 { margin-bottom: 16px; }
.about-text p { color: var(--muted); }
.about-text .text-link { display: inline-block; margin-top: 10px; font-size: 1.02rem; }

/* ============================================================
   8. SINGLE POST
   ============================================================ */
.single-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px;
  padding-top: 40px; padding-bottom: 72px; align-items: start;
}
.single-main { min-width: 0; }
.breadcrumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumbs a { color: var(--accent); font-weight: 600; }
.breadcrumbs a:hover { color: var(--accent-deep); }
.crumb-sep { margin: 0 8px; color: var(--gold-deep); }
.crumb-current { color: var(--muted); }

.single-hero { margin-bottom: 8px; }
.single-hero h1 { margin-bottom: 14px; }
.byline { color: var(--muted); font-size: 0.92rem; margin: 0; }
.byline .byline-sep { margin: 0 8px; color: var(--gold-deep); }

.single-featured { margin: 30px 0 8px; }
.single-featured img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* Share row with brand-colored borders */
.share-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 22px 0; margin: 26px 0 8px;
  border-top: 1px solid var(--line);
}
.share-btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: 2px solid var(--line); background: #fff; color: var(--ink);
  font-size: 0.88rem; font-weight: 700; padding: 10px 20px; border-radius: 6px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(26,26,26,0.12); }
.share-btn svg { width: 16px; height: 16px; }
.share-fb { border-color: #1877F2; color: #1877F2; }
.share-pin { border-color: #BD081C; color: #BD081C; }
.share-x { border-color: #1A1A1A; color: #1A1A1A; }
.share-copy { border-color: var(--line); }

.entry-content { font-size: 1.06rem; margin-top: 12px; }
.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: 8px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
/* Callout / tip blocks */
.entry-content blockquote {
  border: 2px solid var(--accent); border-radius: var(--radius);
  margin: 2em 0; padding: 24px 28px; background: var(--accent-soft);
  font-size: 1.02rem; color: var(--accent-deep);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
/* FAQ accordion (native details/summary) */
.entry-content details {
  border: 2px solid var(--line); border-radius: 12px;
  margin: 1.2em 0; background: #fff; overflow: hidden;
}
.entry-content details[open] { border-color: var(--accent); }
.entry-content summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 800; font-size: 1.02rem;
  padding: 18px 22px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.entry-content summary::-webkit-details-marker { display: none; }
.entry-content summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent); flex-shrink: 0;
  transition: transform 0.2s ease;
}
.entry-content details[open] summary::after { transform: rotate(45deg); }
.entry-content details .faq-answer, .entry-content details > div, .entry-content details > p {
  padding: 0 22px 20px; color: var(--muted);
}

/* Tags */
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 34px 0 8px; }
.tag-row a {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  font-size: 0.84rem; font-weight: 600; color: var(--muted); background: var(--bg-soft);
}
.tag-row a:hover { border-color: var(--accent); color: var(--accent); }

/* Prev / next */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0 8px;
}
.post-nav a {
  border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 26px;
  background: #fff; display: block; color: var(--ink); font-weight: 700;
}
.post-nav a:hover { border-color: var(--accent); }
.post-nav .nav-label { display: block; font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.post-nav .next { text-align: right; }

/* Sidebar */
.post-sidebar { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 28px; }
.sidebar-about {
  border: 2px solid var(--accent); border-radius: 18px; padding: 34px 28px;
  text-align: center; background: #fff;
}
.sidebar-about-photo { position: relative; margin-bottom: 18px; }
.sidebar-about-photo img {
  width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto;
  border: 4px solid var(--accent-soft);
}
.sidebar-about-photo svg { width: 96px; height: 96px; margin: 0 auto; }
.sidebar-about-name {
  display: block; font-family: var(--font-script); font-size: 1.9rem; color: var(--accent);
  margin-top: 10px; line-height: 1.2;
}
.sidebar-about p { color: var(--muted); font-size: 0.92rem; }
.sidebar-about-icons { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.sidebar-about-icons a {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.sidebar-about-icons a:hover { background: var(--accent); }
.sidebar-about-icons svg { width: 20px; height: 20px; }

.sidebar-trending { background: var(--bg-soft); border-radius: 18px; padding: 30px 28px; }
.sidebar-trending h3 { font-size: 1.15rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.06em; }
.sidebar-trending ul { list-style: disc; margin: 0; padding: 0 0 0 20px; }
.sidebar-trending li { margin-bottom: 14px; }
.sidebar-trending li::marker { color: var(--gold-deep); }
.sidebar-trending a { display: flex; gap: 12px; align-items: center; color: var(--ink); font-weight: 600; font-size: 0.92rem; line-height: 1.45; }
.sidebar-trending a:hover { color: var(--accent); }
.trending-thumb img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }

.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.widget-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 10px; }

/* ============================================================
   9. FOOTER
   ============================================================ */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding: 72px 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 0.9fr 1fr; gap: 56px; padding-bottom: 44px;
}
.footer-grid h4 {
  color: #fff; font-size: 1.05rem; font-weight: 800;
  letter-spacing: 0.04em; margin-bottom: 20px;
}
.footer-brand .brand-logo-light svg { height: 58px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: rgba(241,235,221,0.78); font-size: 0.94rem; max-width: 340px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links ul li { margin-bottom: 4px; }
.footer-links ul li::before { content: "\2022"; color: var(--gold); margin-right: 10px; }
.footer-links ul a { color: rgba(241,235,221,0.88); font-size: 0.95rem; }
.footer-links ul a:hover { color: #fff; }
.footer-touch p { color: rgba(241,235,221,0.78); font-size: 0.94rem; margin-bottom: 20px; }
.touch-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #0E0E0E; color: #fff; font-weight: 700; font-size: 0.9rem;
  padding: 12px 26px; border-radius: 999px; border: 2px solid #0E0E0E;
}
.pill-btn:hover { background: transparent; border-color: var(--gold); color: var(--gold); }
.pill-btn svg { width: 18px; height: 18px; }
.footer-touch .social-links { margin-top: 0; }
.footer-touch .social-links a { border-color: rgba(241,235,221,0.35); color: var(--footer-ink); }
.footer-touch .social-links a:hover { background: var(--gold); border-color: var(--gold); color: #1A1A1A; }

.footer-editorial {
  text-align: center; color: rgba(241,235,221,0.7); font-size: 0.9rem;
  border-top: 1px solid rgba(241,235,221,0.16); padding-top: 28px; margin-bottom: 0;
}
.footer-bottom {
  padding: 20px 0 28px; text-align: center;
  font-size: 0.86rem; color: rgba(241,235,221,0.6);
}

/* ============================================================
   10. ARCHIVE / BLOG INDEX / SEARCH
   ============================================================ */
.page-hero {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  text-align: center; padding: 68px 0 60px;
}
.page-hero .kicker {
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; display: block; margin-bottom: 14px;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }

.archive-wrap { padding: 56px 0 8px; }

.pagination { display: flex; justify-content: center; gap: 10px; margin: 48px 0 72px; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink); font-weight: 700; padding: 0 14px;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

.no-results { text-align: center; padding: 40px 0 72px; }
.no-results form { display: flex; gap: 10px; max-width: 480px; margin: 24px auto 0; }
.no-results input[type="search"] {
  flex: 1; padding: 13px 20px; border: 2px solid var(--line); border-radius: 999px;
  font-family: inherit; font-size: 1rem; background: #fff;
}

/* ============================================================
   11. COMMENTS
   ============================================================ */
.comments-area { margin: 40px 0 8px; }
.comments-area h2 { font-size: 1.5rem; }
.comment-list { list-style: none; margin: 0 0 40px; padding: 0; }
.comment-list .comment {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 24px; margin-bottom: 18px;
}
.comment-list .children { list-style: none; margin: 18px 0 0 24px; padding: 0; }
.comment-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 0.88rem; color: var(--muted); }
.comment-meta img { border-radius: 50%; }
.comment-author { font-weight: 700; color: var(--ink); }
.comment-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 13px 18px; border: 2px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; background: #fff; margin-bottom: 18px;
}
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form input[type="submit"] {
  background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 6px;
  font-family: var(--font-head); font-weight: 800; padding: 14px 34px; cursor: pointer;
}
.comment-form input[type="submit"]:hover { background: var(--accent-deep); }

/* ============================================================
   12. TOOLS (calculators)
   ============================================================ */
.tools-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.tool-card {
  background: #fff; border: 2px solid var(--line); border-radius: 18px;
  padding: 40px; box-shadow: var(--shadow); text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.tool-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.tool-card .tool-icon {
  width: 68px; height: 68px; border-radius: 50%; background: var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: var(--accent);
}
.tool-card .tool-icon svg { width: 32px; height: 32px; }
.tool-card h2 { font-size: 1.5rem; }
.tool-card p { color: var(--muted); }

.calc-wrap {
  background: #fff; border: 2px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 44px; max-width: 720px; margin: 0 auto;
}
.calc-field { margin-bottom: 20px; }
.calc-field label { display: block; font-weight: 700; margin-bottom: 8px; }
.calc-field .hint { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calc-field input[type="number"] {
  width: 100%; padding: 13px 18px; border: 2px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 1.05rem; background: var(--bg-soft);
}
.calc-field input[type="number"]:focus { border-color: var(--accent); outline: none; }
.calc-result {
  display: none; margin-top: 28px; background: var(--accent-soft); border: 2px solid var(--accent);
  border-radius: var(--radius); padding: 30px; text-align: center;
}
.calc-result.show { display: block; }
.calc-result .big {
  font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--accent); margin: 6px 0;
}
.calc-result .sub { color: var(--muted); font-size: 0.95rem; }
.calc-note { font-size: 0.85rem; color: var(--muted); margin-top: 18px; }

/* Rug visual guide */
.rug-visual {
  margin-top: 28px; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.rug-room {
  position: relative; width: 100%; max-width: 480px; margin: 0 auto;
  background: #E9DFCE; border: 2px solid var(--line); border-radius: 6px; overflow: hidden;
}
.rug-rug {
  position: absolute; background: var(--accent-soft); border: 2px dashed var(--accent);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: var(--accent);
}
.rug-legend { display: flex; justify-content: center; gap: 24px; margin-top: 16px; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; }
.rug-legend .swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }

/* ============================================================
   13. GENERIC PAGE / 404
   ============================================================ */
.page-content { padding: 56px 0 72px; }
.page-content .entry-content { max-width: var(--wrap-narrow); margin: 0 auto; }
.error-404 { text-align: center; padding: 80px 0; }
.error-404 .big-404 { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem, 12vw, 8rem); color: var(--cream); line-height: 1; }
.error-404 h1 { margin-top: 0; }

/* ============================================================
   14. RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .starter-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { max-width: 420px; }
  .single-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-media { max-width: 480px; }
  /* Slide-in mobile nav */
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
    background: #fff; z-index: 400; margin: 0; padding: 84px 32px 32px;
    transform: translateX(105%); transition: transform 0.3s ease;
    box-shadow: -12px 0 40px rgba(26,26,26,0.16);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav ul ul { position: static; display: block; border: none; box-shadow: none; padding: 0 0 0 16px; }
  .main-nav a { padding: 13px 8px; font-size: 1.02rem; }
  .main-nav > ul > li > a::after { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-close-hint { display: block; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .starter-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-box { padding: 28px 22px; }
  .post-grid, .post-grid.cols-2 { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .calc-row { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .calc-wrap { padding: 30px 22px; }
  .band-head { flex-direction: column; align-items: flex-start; }
  .header-inner { min-height: 76px; }
  .brand-logo svg { height: 46px; }
}

@media print {
  .site-header, .site-footer, .share-row, .newsletter-band, .comments-area, .post-sidebar { display: none; }
}

/* Screen reader only text */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal;
}
