/*
Theme Name: TidyNest Living
Theme URI: https://example.com/tidynest-living
Author: TidyNest Living
Author URI: https://example.com
Description: A responsive editorial WordPress theme for home organization, kitchen tools, product roundups and buying guides.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: tidynest-living
Tags: blog, custom-logo, custom-menu, featured-images, one-column, two-columns, theme-options
*/

:root {
      --sage: #526B50;
      --forest: #304735;
      --cream: #F8F6EF;
      --beige: #E6DCCB;
      --white: #fff;
      --charcoal: #272c27;
      --muted: #687168;
      --line: #e4e4da;
      --radius: 18px;
      --shadow: 0 12px 32px rgba(48,71,53,.08);
      --max: 1180px;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 100px; }
    body { margin: 0; color: var(--charcoal); background: var(--cream); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
    img { display: block; width: 100%; height: auto; object-fit: cover; }
    a { color: inherit; text-decoration: none; }
    button, input { font: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #a4b99d; outline-offset: 3px; }
    .container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
    .announcement { background: var(--forest); color: #f7f6ef; font-size: .78rem; letter-spacing: .04em; text-align: center; padding: 8px 16px; }
    .site-header { position: sticky; top: 0; z-index: 20; background: rgba(248,246,239,.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(48,71,53,.1); }
    .header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
    .brand { display: inline-flex; flex-direction: column; line-height: 1.12; flex-shrink: 0; }
    .brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 700; letter-spacing: -.055em; color: var(--forest); }
    .brand-name span { color: var(--sage); }
    .brand-tagline { margin-top: 6px; color: var(--muted); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
    .nav-wrap { display: flex; align-items: center; gap: 24px; }
    .main-nav ul { display: flex; align-items: center; gap: clamp(14px, 2vw, 27px); list-style: none; padding: 0; margin: 0; }
    .main-nav a { color: #343d35; font-size: .88rem; font-weight: 650; transition: color .2s; }
    .main-nav a:hover { color: var(--sage); }
    .header-actions { display: flex; align-items: center; gap: 10px; }
    .icon-button, .menu-toggle { border: 1px solid var(--line); background: transparent; color: var(--forest); border-radius: 50%; width: 42px; height: 42px; display: inline-grid; place-items: center; cursor: pointer; }
    .menu-toggle { display: none; border-radius: 12px; }
    .search-panel { display: none; border-top: 1px solid var(--line); padding: 14px 0 18px; }
    .search-panel.open { display: block; }
    .search-form { display: flex; max-width: 640px; margin-inline: auto; gap: 8px; }
    .search-form input { min-width: 0; flex: 1; padding: 12px 15px; border: 1px solid #d7d9cf; border-radius: 999px; background: white; }
    .search-form button { border: 0; border-radius: 999px; padding: 11px 18px; background: var(--forest); color: white; cursor: pointer; }
    .hero { padding: 64px 0 72px; overflow: hidden; }
    .hero-grid { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(34px, 6vw, 82px); }
    .eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--sage); text-transform: uppercase; letter-spacing: .15em; font-size: .73rem; font-weight: 800; }
    .eyebrow::before { content: ""; width: 25px; height: 1px; background: currentColor; }
    h1, h2, h3, p { margin-top: 0; }
    h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.04em; }
    h1 { color: var(--forest); font-size: clamp(3.15rem, 5.4vw, 5.4rem); line-height: .99; margin: 20px 0 23px; max-width: 600px; }
    .hero-copy > p { color: #5e685f; font-size: 1.08rem; max-width: 490px; margin-bottom: 28px; }
    .button-row { display: flex; flex-wrap: wrap; gap: 12px; }
    .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 12px 20px; border-radius: 999px; font-size: .9rem; font-weight: 750; border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s; cursor: pointer; }
    .button:hover { transform: translateY(-2px); }
    .button-primary { background: var(--forest); color: white; }
    .button-primary:hover { background: var(--sage); }
    .button-secondary { background: transparent; border-color: #c8cfc3; color: var(--forest); }
    .button-secondary:hover { background: white; border-color: var(--sage); }
    .hero-note { margin-top: 25px; color: #778077; font-size: .79rem; }
    .hero-visual { min-height: 490px; position: relative; }
    .hero-image { height: 490px; border-radius: 48% 48% 18px 18px; object-fit: cover; box-shadow: var(--shadow); }
    .hero-stamp { position: absolute; left: -25px; bottom: 34px; background: var(--white); padding: 18px 22px; border-radius: 14px; box-shadow: var(--shadow); max-width: 220px; }
    .hero-stamp strong { display: block; color: var(--forest); font-family: Georgia, serif; font-size: 1.1rem; font-weight: 500; }
    .hero-stamp span { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; }
    .hero-vertical { position: absolute; top: 45px; right: -19px; writing-mode: vertical-rl; letter-spacing: .2em; font-size: .68rem; color: var(--sage); text-transform: uppercase; }
    .section { padding: 78px 0; }
    .section-white { background: #fff; }
    .section-beige { background: #eee8dc; }
    .section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 30px; }
    .section-head h2 { color: var(--forest); font-size: clamp(2.1rem, 3.7vw, 3.2rem); line-height: 1.08; margin: 10px 0 0; }
    .section-head p { color: var(--muted); max-width: 450px; margin: 0; }
    .text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--forest); font-weight: 750; font-size: .88rem; white-space: nowrap; }
    .text-link span { transition: transform .2s; }
    .text-link:hover span { transform: translateX(4px); }
    .category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
    .category-card { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 345px; background: #dce2d8; isolation: isolate; }
    .category-card img { position: absolute; inset: 0; height: 100%; transition: transform .55s; z-index: -2; }
    .category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,25,17,.02) 20%, rgba(15,25,17,.78) 100%); z-index: -1; }
    .category-card:hover img { transform: scale(1.055); }
    .category-content { position: absolute; left: 22px; right: 22px; bottom: 22px; color: white; }
    .category-content h3 { font-size: 1.55rem; margin: 0 0 7px; line-height: 1.1; }
    .category-content p { font-size: .83rem; color: rgba(255,255,255,.87); margin-bottom: 13px; line-height: 1.5; }
    .category-content a { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 750; }
    .article-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 23px; }
    .article-card { background: white; border: 1px solid #ecece4; border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
    .article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
    .article-image-wrap { position: relative; overflow: hidden; }
    .article-image { height: 235px; transition: transform .5s; }
    .article-card:hover .article-image { transform: scale(1.04); }
    .article-body { padding: 22px 23px 24px; }
    .meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: #7a8279; font-size: .74rem; margin-bottom: 12px; }
    .category-label { color: var(--sage); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .68rem; }
    .article-body h3 { color: var(--forest); font-size: 1.55rem; line-height: 1.14; margin-bottom: 11px; }
    .article-body p { color: var(--muted); font-size: .9rem; margin-bottom: 17px; }
    .product-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
    .product-card { background: white; border: 1px solid #e7e7de; border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
    .product-image { height: 220px; border-radius: 12px; background: #f0eee6; }
    .placeholder-flag { align-self: flex-start; background: #f0eee6; color: #586656; border-radius: 999px; padding: 5px 9px; text-transform: uppercase; font-size: .65rem; font-weight: 850; letter-spacing: .08em; margin: 15px 0 5px; }
    .product-card h3 { font-size: 1.4rem; color: var(--forest); margin: 7px 5px; }
    .product-card p { margin: 0 5px 13px; color: var(--muted); font-size: .88rem; }
    .feature-list { list-style: none; padding: 0 5px; margin: 0 0 19px; color: #4e5c50; font-size: .82rem; }
    .feature-list li { margin: 5px 0; }
    .feature-list li::before { content: "✓"; color: var(--sage); font-weight: 900; margin-right: 8px; }
    .product-card .button { width: 100%; margin-top: auto; font-size: .84rem; }
    .affiliate-note { margin: 20px 0 0; color: #6c766c; font-size: .78rem; }
    .editorial-band { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; overflow: hidden; border-radius: 24px; background: var(--forest); color: white; }
    .editorial-image { height: 100%; min-height: 400px; }
    .editorial-copy { padding: clamp(30px, 5vw, 62px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
    .editorial-copy .eyebrow { color: #c7d5bf; }
    .editorial-copy h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.04; margin: 17px 0; }
    .editorial-copy p { color: #e0e7dc; max-width: 440px; }
    .editorial-copy .button { background: var(--cream); color: var(--forest); margin-top: 10px; }
    .latest-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; }
    .latest-feature { background: white; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
    .latest-feature img { height: 300px; }
    .latest-feature .article-body h3 { font-size: 1.9rem; }
    .latest-list { display: flex; flex-direction: column; gap: 14px; }
    .latest-item { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 14px; }
    .latest-item img { height: 104px; border-radius: 10px; }
    .latest-item h3 { color: var(--forest); font-size: 1.15rem; margin: 5px 0; line-height: 1.2; }
    .latest-item p { color: var(--muted); font-size: .8rem; margin: 0; }
    .newsletter { background: #e7eadf; padding: 56px 24px; text-align: center; border-radius: 22px; }
    .newsletter h2 { color: var(--forest); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
    .newsletter p { color: var(--muted); max-width: 560px; margin: 0 auto 22px; }
    .newsletter-form { display: flex; max-width: 480px; gap: 9px; margin: 0 auto; }
    .newsletter-form input { flex: 1; min-width: 0; padding: 13px 16px; border: 1px solid #cbd2c5; border-radius: 999px; background: white; }
    .newsletter-form button { border: 0; cursor: pointer; }
    .form-message { margin: 12px auto 0; font-size: .82rem; color: var(--forest); }
    .site-footer { background: #24372a; color: #f6f5ef; padding: 58px 0 22px; }
    .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
    .footer-brand .brand-name { color: white; }
    .footer-brand .brand-name span { color: #c2d1ba; }
    .footer-brand .brand-tagline { color: #c8d1c6; }
    .footer-grid p { color: #cbd4c9; font-size: .86rem; max-width: 290px; margin-top: 17px; }
    .footer-grid h3 { font-family: inherit; font-size: .83rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: #d8e1d3; margin-bottom: 15px; }
    .footer-grid ul { list-style: none; margin: 0; padding: 0; }
    .footer-grid li { margin: 8px 0; }
    .footer-grid a:not(.brand) { color: #d4ddd1; font-size: .84rem; }
    .footer-grid a:hover { color: white; text-decoration: underline; text-underline-offset: 3px; }
    .footer-disclosure { font-size: .76rem !important; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); }
    .footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.16); margin-top: 36px; padding-top: 20px; color: #bac8b8; font-size: .76rem; }
    .footer-bottom a { color: #e0e7dc; }
    .placeholder-link { cursor: pointer; }
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    @media (max-width: 1000px) {
      .header-inner { gap: 18px; }
      .main-nav ul { gap: 13px; }
      .main-nav a { font-size: .82rem; }
      .hero-grid { gap: 35px; }
      .hero-visual, .hero-image { min-height: 420px; height: 420px; }
      .category-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
      .category-card { min-height: 320px; }
      .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    }
    @media (max-width: 760px) {
      .container { width: min(var(--max), calc(100% - 30px)); }
      .announcement { font-size: .7rem; }
      .header-inner { min-height: 76px; }
      .brand-name { font-size: 1.45rem; }
      .brand-tagline { font-size: .59rem; }
      .menu-toggle { display: inline-grid; }
      .nav-wrap { gap: 9px; }
      .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 14px 20px 22px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
      .main-nav.open { display: block; }
      .main-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
      .main-nav li { border-bottom: 1px solid var(--line); }
      .main-nav li:last-child { border-bottom: 0; }
      .main-nav a { display: block; padding: 12px 4px; font-size: .95rem; }
      .hero { padding: 44px 0 50px; }
      .hero-grid { grid-template-columns: 1fr; }
      h1 { font-size: clamp(3rem, 12vw, 4.5rem); max-width: 550px; }
      .hero-visual, .hero-image { height: 360px; min-height: 360px; }
      .hero-visual { margin: 8px 8px 0 15px; }
      .hero-stamp { left: -12px; bottom: 20px; }
      .hero-vertical { right: -17px; }
      .section { padding: 58px 0; }
      .section-head { display: block; }
      .section-head p { margin-top: 13px; }
      .section-head .text-link { margin-top: 15px; }
      .article-grid, .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
      .article-image { height: 185px; }
      .article-body { padding: 17px; }
      .article-body h3 { font-size: 1.3rem; }
      .product-image { height: 175px; }
      .editorial-band { grid-template-columns: 1fr; }
      .editorial-image { height: 260px; min-height: 260px; }
      .editorial-copy { padding: 34px 26px; }
      .latest-grid { grid-template-columns: 1fr; }
      .latest-feature img { height: 250px; }
    }
    @media (max-width: 500px) {
      .icon-button { width: 38px; height: 38px; }
      .menu-toggle { width: 38px; height: 38px; }
      .hero-copy > p { font-size: 1rem; }
      .button-row .button { width: 100%; }
      .category-grid, .article-grid, .product-grid { grid-template-columns: 1fr; }
      .category-card { min-height: 330px; }
      .article-image { height: 235px; }
      .product-image { height: 230px; }
      .latest-item { grid-template-columns: 92px 1fr; gap: 12px; }
      .latest-item img { height: 90px; }
      .newsletter-form { flex-direction: column; }
      .newsletter-form .button { width: 100%; }
      .footer-grid { grid-template-columns: 1fr; gap: 27px; }
      .footer-bottom { display: block; }
      .footer-bottom span { display: block; margin-top: 8px; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
    }

/* WordPress theme layouts */
.site-content { min-height: 45vh; }
.content-layout { max-width: 820px; margin: 0 auto; color: var(--charcoal); }
.content-layout h1, .content-layout h2, .content-layout h3 { color: var(--forest); }
.content-layout h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.08; margin-bottom: 22px; }
.content-layout h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.content-layout p, .content-layout li { color: #4f584f; }
.content-layout a { color: var(--sage); text-decoration: underline; text-underline-offset: 3px; }
.content-layout img, .post-card img { max-width: 100%; height: auto; border-radius: 12px; }
.content-layout .wp-block-image { margin: 25px 0; }
.content-layout .wp-block-image img { width: 100%; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0 0 22px; background: #fff; }
.post-card h2 { margin: 14px 0 10px; }
.post-card h2 a { color: var(--forest); text-decoration: none; }
.post-card .entry-meta { color: var(--muted); font-size: .82rem; }
.navigation.pagination, .posts-navigation { margin-top: 30px; }
.navigation.pagination .page-numbers { display: inline-block; padding: 8px 12px; margin-right: 6px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.navigation.pagination .current { background: var(--forest); color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--muted); font-size: .85rem; }
.bypostauthor { display: block; }
.comment-list { padding-left: 22px; }
.comment-form input:not([type=submit]), .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.comment-form input[type=submit] { border: 0; cursor: pointer; background: var(--forest); color: #fff; border-radius: 999px; padding: 12px 20px; }
