/*
Theme Name: Capsule Cabinet
Theme URI: https://capsulecabinet.com
Author: Capsule Cabinet
Description: Editorial wellness theme for Capsule Cabinet — earthy palette, serif headlines, arch motifs, built-in affiliate disclosure and medical disclaimer.
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: capsule-cabinet
*/

:root {
  --cream: #F7F3EC;
  --sand: #EDE4D6;
  --sand-deep: #E3D6C2;
  --sage: #93A48F;
  --sage-deep: #6F7F6B;
  --sage-dark: #4E5B4B;
  --terra: #C4795A;
  --terra-deep: #A9613F;
  --char: #2E2A26;
  --ink-soft: #6B635A;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Karla', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--char);
  background: var(--cream);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--terra-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sage-dark); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--char); }
.accent-i { font-style: italic; font-weight: 500; color: var(--sage-deep); }
.accent-t { font-style: italic; font-weight: 500; color: var(--terra); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 236, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-deep);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  letter-spacing: .45em; text-transform: uppercase; color: var(--char);
}
.wordmark span { color: var(--terra); }
.site-nav a {
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-left: 30px; position: relative;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--terra); transition: width .25s ease;
}
.site-nav a:hover { color: var(--char); }
.site-nav a:hover::after { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 110px 0 130px; text-align: center; }
.hero-arch {
  position: absolute; left: 50%; top: 54px; transform: translateX(-50%);
  width: 640px; height: 860px; border-radius: 320px 320px 0 0;
  background: linear-gradient(180deg, var(--sand) 0%, rgba(237,228,214,0) 82%);
  z-index: 0;
}
.hero-orb-1, .hero-orb-2 {
  position: absolute; border-radius: 50%; z-index: 0; filter: blur(1px);
}
.hero-orb-1 { width: 300px; height: 300px; right: -90px; top: 60px; background: rgba(147,164,143,.25); }
.hero-orb-2 { width: 380px; height: 380px; left: -140px; bottom: -120px; background: rgba(196,121,90,.14); }
.hero-inner { position: relative; z-index: 1; }
.hero .kicker {
  font-size: .8rem; font-weight: 700; letter-spacing: .5em; text-transform: uppercase;
  color: var(--sage-deep); margin-bottom: 34px;
}
.hero h1 { font-size: clamp(3rem, 7vw, 5.4rem); max-width: 820px; margin: 0 auto; }
.hero .sub {
  max-width: 560px; margin: 30px auto 0; font-size: 1.12rem; color: var(--ink-soft);
}
.hero .cta-row { margin-top: 44px; }

.btn {
  display: inline-block; padding: 16px 38px; border-radius: 999px;
  font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: var(--terra-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(196,121,90,.35); }
.btn-ghost { border: 1.5px solid var(--sage-deep); color: var(--sage-dark); margin-left: 14px; }
.btn-ghost:hover { background: var(--sage-deep); color: var(--cream); transform: translateY(-2px); }

/* ---------- Trust strip ---------- */
.trust-strip { border-top: 1px solid var(--sand-deep); border-bottom: 1px solid var(--sand-deep); background: var(--cream); }
.trust-strip .wrap {
  display: flex; justify-content: center; gap: 64px; flex-wrap: wrap;
  padding-top: 26px; padding-bottom: 26px;
}
.trust-item { font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--sage-deep); }
.trust-item::before { content: '◦ '; color: var(--terra); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sand { background: var(--sand); }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head .kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .4em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { color: var(--ink-soft); max-width: 520px; margin: 16px auto 0; }

/* ---------- Cluster cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.cluster-card {
  background: var(--cream); border-radius: 18px; padding: 54px 38px 44px; text-align: center;
  border: 1px solid var(--sand-deep);
  transition: transform .3s ease, box-shadow .3s ease;
}
.cluster-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(46,42,38,.10); }
.cluster-icon {
  width: 92px; height: 108px; margin: 0 auto 28px; border-radius: 46px 46px 6px 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 2.2rem; font-style: italic; color: var(--cream);
}
.cluster-icon.sage { background: var(--sage); }
.cluster-icon.terra { background: var(--terra); }
.cluster-icon.deep { background: var(--sage-dark); }
.cluster-card h3 { font-size: 1.6rem; margin-bottom: 12px; }
.cluster-card p { color: var(--ink-soft); font-size: .98rem; }
.cluster-card .link-more {
  display: inline-block; margin-top: 22px; font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--terra-deep);
}
.badge-soon {
  display: inline-block; margin-top: 22px; font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--sage-deep);
  border: 1px solid var(--sage); border-radius: 999px; padding: 6px 16px;
}

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 34px; }
article.post-card {
  background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--sand-deep);
  transition: transform .3s ease, box-shadow .3s ease;
}
article.post-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(46,42,38,.10); }
.post-card-banner {
  height: 190px; display: flex; align-items: flex-end; padding: 22px 28px;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-deep) 100%);
}
.post-card:nth-child(2n) .post-card-banner { background: linear-gradient(135deg, var(--terra) 0%, var(--terra-deep) 100%); }
.post-card:nth-child(3n) .post-card-banner { background: linear-gradient(135deg, var(--sand-deep) 0%, var(--sage) 100%); }
.post-card-banner .cat {
  font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.92); background: rgba(46,42,38,.22); padding: 7px 14px; border-radius: 999px;
}
.post-card-body { padding: 30px 30px 34px; }
.post-card-body h3 { font-size: 1.45rem; line-height: 1.25; }
.post-card-body h3 a { color: var(--char); }
.post-card-body h3 a:hover { color: var(--terra-deep); }
.post-card-body .excerpt { color: var(--ink-soft); font-size: .96rem; margin-top: 12px; }
.post-card-body .meta {
  margin-top: 20px; font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--sage-deep);
}

/* ---------- About strip ---------- */
.about-strip { text-align: center; }
.about-strip .big-quote {
  font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 500;
  font-style: italic; max-width: 780px; margin: 0 auto; color: var(--sage-dark); line-height: 1.4;
}
.about-strip .attribution {
  margin-top: 26px; font-size: .8rem; font-weight: 700; letter-spacing: .3em;
  text-transform: uppercase; color: var(--terra);
}

/* ---------- Single post ---------- */
.post-hero { text-align: center; padding: 90px 0 50px; }
.post-hero .cat-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--terra);
}
.post-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); max-width: 840px; margin: 24px auto 0; }
.post-hero .post-meta { margin-top: 24px; font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.post-divider { width: 76px; height: 2px; background: var(--terra); margin: 44px auto 0; }

.entry-content { padding-bottom: 90px; }
.entry-content > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.entry-content p { margin: 0 0 1.5em; color: #3B362F; }
.entry-content h2 {
  font-size: 1.9rem; margin: 2.2em auto .8em; padding-top: .4em;
}
.entry-content h3 { font-size: 1.4rem; margin: 1.8em auto .7em; }
.entry-content ul, .entry-content ol { margin: 0 auto 1.6em; padding-left: 1.4em; color: #3B362F; }
.entry-content li { margin-bottom: .55em; }
.entry-content blockquote {
  border-left: 3px solid var(--sage); background: var(--sand);
  padding: 26px 32px; border-radius: 0 14px 14px 0; margin: 0 auto 1.8em;
  font-style: italic; color: var(--sage-dark);
}
.entry-content table {
  width: 100%; border-collapse: collapse; margin: 0 auto 1.8em; font-size: .95rem;
}
.entry-content th {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage-dark); border-bottom: 2px solid var(--sage); padding: 12px 14px; text-align: left;
}
.entry-content td { border-bottom: 1px solid var(--sand-deep); padding: 12px 14px; }

/* Auto-inserted legal blocks */
.cc-disclosure {
  background: var(--sand); border-left: 3px solid var(--terra);
  border-radius: 0 14px 14px 0; padding: 20px 26px; margin: 0 auto 2.4em;
  font-size: .9rem; color: var(--ink-soft);
}
.cc-disclaimer {
  border-top: 1px solid var(--sand-deep); margin-top: 3em; padding-top: 1.6em;
  font-size: .85rem; color: var(--ink-soft); font-style: italic;
}

/* Product picks box */
.cc-picks {
  background: #fff; border: 1px solid var(--sand-deep); border-radius: 18px;
  padding: 34px 38px; margin: 0 auto 1.8em;
}
.cc-picks .picks-label {
  font-size: .76rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 14px;
}

/* ---------- Blog index / archive ---------- */
.archive-hero { text-align: center; padding: 80px 0 60px; }
.archive-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.archive-hero p { color: var(--ink-soft); margin-top: 14px; }

/* ---------- Pages ---------- */
.page-hero { text-align: center; padding: 84px 0 40px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--char); color: rgba(247,243,236,.82); margin-top: 40px; }
.site-footer .wrap { padding-top: 70px; padding-bottom: 44px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.footer-wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 1.2rem;
  letter-spacing: .4em; text-transform: uppercase; color: var(--cream);
}
.footer-tag { margin-top: 16px; font-size: .95rem; font-style: italic; font-family: var(--serif); color: var(--sage); font-size: 1.05rem; }
.footer-col h4 {
  font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; color: var(--sage); margin-bottom: 18px;
}
.footer-col a { display: block; color: rgba(247,243,236,.72); font-size: .92rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--terra); }
.footer-legal {
  margin-top: 54px; padding-top: 26px; border-top: 1px solid rgba(247,243,236,.14);
  font-size: .8rem; color: rgba(247,243,236,.5); line-height: 1.7;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-header .wrap { flex-direction: column; gap: 14px; }
  .site-nav a { margin: 0 12px; }
  .hero { padding: 80px 0 90px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .trust-strip .wrap { gap: 22px; }
  .btn-ghost { margin-left: 0; margin-top: 14px; }
}
