/*
Theme Name: Humidifier Hub Calm
Theme URI: https://humidifiert.com
Description: Bespoke calm spa minimal theme for Humidifier Hub. Lora serif headings, Karla body, misty blue-grey palette, airy spacing, flat cards.
Author: Humidifier Hub
Version: 1.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU GPLv2 or later
Text Domain: hum
*/

/* =====================================================
   TOKENS — misty blue-grey spa palette
   ===================================================== */
:root {
  --accent:     #15aabf;
  --accent-dk:  #1098ad;
  --accent-lt:  #e0f7fa;
  --ink:        #2b3a42;       /* dark blue-grey, not pure black */
  --ink-soft:   #4e6170;
  --muted:      #7a9aad;
  --bg:         #f5f8fa;       /* misty off-white with blue tinge */
  --surface:    #ffffff;
  --surface-2:  #edf3f7;       /* card hover / subtle bg */
  --border:     #dce8ef;
  --max-article: 720px;
  --max-wide:    1100px;

  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Karla', 'Helvetica Neue', Arial, sans-serif;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: 2.2rem;  letter-spacing: -.02em; }
h2 { font-size: 1.55rem; letter-spacing: -.015em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p, ul, ol { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
li { margin: .3em 0; }

/* =====================================================
   LAYOUT WRAPPERS
   ===================================================== */
.hum-wrap {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.hum-wrap--narrow {
  max-width: var(--max-article);
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   SITE HEADER — centered stacked, calm + airy
   ===================================================== */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  /* NOT sticky — serene, non-intrusive */
}

.hum-hd {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 20px 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* Brand: Lora serif, calm dark */
.hum-brand {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
  line-height: 1;
}
.hum-brand .accent { color: var(--accent); }
.hum-brand:hover { text-decoration: none; color: var(--ink); }

/* thin teal rule below brand */
.hum-brand-rule {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--accent);
  margin: 4px auto 0;
  border-radius: 2px;
}

/* Primary nav: airy, no backgrounds */
.hum-nav .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hum-nav .menu li { list-style: none; margin: 0; }
.hum-nav .menu a {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 40px;
  display: inline-block;
  transition: color .15s, background .15s;
}
.hum-nav .menu a:hover,
.hum-nav .menu .current-menu-item > a,
.hum-nav .menu .current-post-parent > a,
.hum-nav .menu .current-cat > a {
  color: var(--accent);
  background: var(--accent-lt);
  text-decoration: none;
}

/* =====================================================
   SITE MAIN
   ===================================================== */
.site-main {
  padding: 48px 0 64px;
}

/* =====================================================
   HERO — full-width misty gradient banner
   ===================================================== */
.hum-hero {
  background: linear-gradient(160deg, #deeef5 0%, #edf6f9 50%, #f5f8fa 100%);
  padding: 64px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}
.hum-hero h1 {
  font-family: var(--font-head);
  font-size: 2.6rem;
  color: var(--ink);
  margin: 0 auto .4em;
  max-width: 700px;
  letter-spacing: -.03em;
}
.hum-hero p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =====================================================
   CARD GRID — flat, airy, no shadow
   ===================================================== */
.hum-section-label {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}

.hum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
  margin: 0 0 40px;
}

/* FLAT card — thin border, no shadow, very minimal */
.hum-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;          /* almost square — spa minimal */
  overflow: hidden;
  transition: border-color .2s, background .2s;
}
.hum-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
}
.hum-card a {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* Card image — 16:9, no gradient overlay */
.hum-card__img {
  aspect-ratio: 16 / 9;
  background: var(--surface-2) center / cover no-repeat;
  position: relative;
  overflow: hidden;
}
.hum-card__img--placeholder {
  background: linear-gradient(135deg, #d0e8f0 0%, #c5dce8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hum-card__img--placeholder span {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 8px;
}

/* Card body — generous padding */
.hum-card__body {
  padding: 20px 22px 22px;
}
.hum-card__cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
  display: block;
}
.hum-card__title {
  font-family: var(--font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.3;
}
.hum-card__ex {
  font-size: .9rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.hum-pagination {
  margin: 40px 0 0;
  display: flex;
  justify-content: center;
}
.hum-pagination .nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.hum-pagination .page-numbers {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.hum-pagination .page-numbers.current,
.hum-pagination .page-numbers:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* =====================================================
   ARCHIVE / CATEGORY TITLE
   ===================================================== */
.hum-archive-hd {
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.hum-archive-hd h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  margin: 0 0 .2em;
}
.hum-archive-hd .cat-desc {
  color: var(--ink-soft);
  font-size: .97rem;
}

/* =====================================================
   SINGLE ARTICLE
   ===================================================== */
.hum-single {
  max-width: var(--max-article);
  margin: 0 auto;
  padding: 0 24px;
}

.hum-breadcrumb {
  font-size: .8rem;
  color: var(--muted);
  margin: 0 0 28px;
}
.hum-breadcrumb a { color: var(--muted); text-decoration: none; }
.hum-breadcrumb a:hover { color: var(--accent); }
.hum-breadcrumb span { margin: 0 6px; opacity: .5; }

.hum-post-header {
  margin: 0 0 32px;
}
.hum-post-title {
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 0 0 .35em;
}
.hum-meta {
  font-size: .83rem;
  color: var(--muted);
  font-family: var(--font-body);
  letter-spacing: .02em;
}

/* Featured image on single */
.hum-feat-img {
  margin: 0 0 36px;
  border-radius: 3px;
  overflow: hidden;
}
.hum-feat-img img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

/* =====================================================
   .entry — article content
   ===================================================== */
.entry {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--ink);
}

.entry h2 {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.2em 0 .6em;
  padding-bottom: .35em;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.015em;
}
.entry h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.8em 0 .45em;
}
.entry h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 1.5em 0 .35em;
}
.entry p { margin: 0 0 1.15em; }

/* Custom bullets — thin teal dash, not filled disc */
.entry ul {
  list-style: none;
  padding-left: 1.5em;
}
.entry ul > li {
  position: relative;
  padding-left: .2em;
  margin: .45em 0;
}
.entry ul > li::before {
  content: '';
  position: absolute;
  left: -1.2em;
  top: .72em;
  width: .6em;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}
.entry ol { padding-left: 1.5em; }
.entry ol > li { margin: .45em 0; }
.entry ol > li::marker { color: var(--accent); font-weight: 700; }

.entry a       { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-lt); }
.entry a:hover { color: var(--accent-dk); text-decoration-color: var(--accent); }

.entry blockquote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  font-style: italic;
  color: var(--ink-soft);
  border-radius: 0 3px 3px 0;
}

.entry strong { color: var(--ink); }
.entry em     { color: var(--ink-soft); }

/* =====================================================
   .cmpc-disc — affiliate disclosure box
   ===================================================== */
.cmpc-disc {
  font-family: var(--font-body);
  font-size: .82rem;
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--accent-lt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 12px 16px;
  margin: 0 0 28px;
  border-radius: 0 0 3px 3px;
}

/* =====================================================
   .cta-amz — Amazon CTA button (calm pill style)
   ===================================================== */
.cta-amz {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .97rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff !important;
  background: var(--accent);
  text-decoration: none !important;
  padding: 13px 30px;
  border-radius: 40px;   /* pill — serene, rounded */
  margin: 10px 0 18px;
  border: none;
  transition: background .2s, transform .1s;
}
.cta-amz:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
  text-decoration: none !important;
}
.cta-amz span {
  font-weight: 400;
  font-size: .82rem;
  opacity: .85;
  margin-left: 5px;
}

/* =====================================================
   TABLE WRAP — horizontal scroll on mobile
   ===================================================== */
.hum-tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6em 0;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.hum-tablewrap::-webkit-scrollbar { height: 6px; }
.hum-tablewrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }

.entry table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: .95rem;
  margin: 0;
}
.entry th,
.entry td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.entry th {
  background: var(--surface-2);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.entry tbody tr:nth-child(even) {
  background: #f9fcfd;
}

/* =====================================================
   RELATED POSTS — compact strip below article
   ===================================================== */
.hum-related {
  margin: 56px 0 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--border);
  max-width: var(--max-article);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.hum-related h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 20px;
  border: none;
  padding: 0;
}
.hum-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.hum-related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 16px 18px;
  transition: border-color .2s;
}
.hum-related-card:hover { border-color: var(--accent); }
.hum-related-card a {
  color: var(--ink);
  text-decoration: none;
  display: block;
}
.hum-related-card h3 {
  font-family: var(--font-head);
  font-size: .98rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
}
.hum-related-card p {
  font-size: .85rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}

/* =====================================================
   PAGE template
   ===================================================== */
.hum-page {
  max-width: var(--max-article);
  margin: 0 auto;
  padding: 0 24px;
}
.hum-page .entry h2 { border-bottom: 1px solid var(--border); }

/* =====================================================
   SITE FOOTER — calm, minimal
   ===================================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 40px 0 32px;
}

.hum-foot-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.hum-foot-brand {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -.02em;
}
.hum-foot-brand .accent { color: var(--accent); }

.hum-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 0 18px;
}
.hum-foot-links a {
  font-family: var(--font-body);
  font-size: .83rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: .02em;
}
.hum-foot-links a:hover { color: var(--accent); }

.hum-foot-disc {
  font-family: var(--font-body);
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 680px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 680px) {
  body { font-size: 16px; line-height: 1.7; }

  .hum-hero { padding: 44px 18px 36px; }
  .hum-hero h1 { font-size: 1.9rem; }
  .hum-hero p  { font-size: 1rem; }

  .hum-wrap,
  .hum-wrap--narrow { padding: 0 16px; }

  h1, .hum-post-title { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }

  .hum-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .hum-single, .hum-related, .hum-page { padding: 0 16px; }

  .hum-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .hum-nav::-webkit-scrollbar { display: none; }
  .hum-nav .menu { flex-wrap: nowrap; width: max-content; gap: 0 2px; }

  .cta-amz { display: block; text-align: center; padding: 13px 20px; }

  .hum-related-grid { grid-template-columns: 1fr; }

  .site-footer { margin-top: 48px; padding: 28px 0 24px; }
}

@media (max-width: 420px) {
  .hum-grid { grid-template-columns: 1fr; }
}
