/* ==========================================================
   Living Joyfully 50+ — refreshed editorial design system
   ========================================================== */
:root {
  --cream: #FAF6EF;
  --ivory: #FFFDF8;
  --sage: #7A8B6A;
  --sage-deep: #55663F;
  --sage-soft: #E8ECDF;
  --gold: #A98F3E;
  --gold-soft: #F3ECD9;
  --terracotta: #C07A5B;
  --terracotta-soft: #F5E5DD;
  --dusty-blue: #7E97A8;
  --dusty-blue-deep: #536C7C;
  --dusty-blue-soft: #E5EDF1;
  --ink: #2F2B26;
  --ink-soft: #58524A;
  --line: #E5DECF;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow: 0 10px 32px rgba(47, 43, 38, 0.10);
  --shadow-soft: 0 4px 18px rgba(47, 43, 38, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: var(--sage-deep); }
a:hover { color: var(--gold); }
p { margin-bottom: 1rem; }
h1, h2, h3, h4 {
  color: var(--ink);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.22;
}
h1 { font-size: clamp(2.45rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.34rem; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.narrow { width: min(760px, 92%); margin: 0 auto; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  background: var(--ink);
  color: white;
  padding: .75rem 1rem;
  border-radius: 10px;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .82rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .72rem;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 48px; height: 48px; }
.brand-name {
  color: var(--ink);
  font-family: "Lora", Georgia, serif;
  font-size: 1.34rem;
  font-weight: 600;
  white-space: nowrap;
}
.brand-name span { color: var(--sage-deep); }
.site-nav ul { display: flex; align-items: center; gap: .35rem; list-style: none; }
.site-nav a {
  display: block;
  padding: .58rem .86rem;
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover { background: var(--sage-soft); color: var(--sage-deep); }
.site-nav a.active { background: var(--sage-deep); color: white; }
.site-nav a.nav-start:not(.active) {
  border: 1px solid #D7C795;
  background: var(--gold-soft);
  color: #6B5A22;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--sage);
  border-radius: 10px;
  color: var(--sage-deep);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: .45rem .7rem;
}

/* Buttons */
.btn {
  display: inline-block;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: .88rem 1.55rem;
  font-size: 1.08rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--sage-deep); color: white !important; }
.btn-secondary { border-color: var(--sage-deep); color: var(--sage-deep) !important; background: transparent; }
.btn-gold { background: var(--gold); color: white !important; }
.btn-light { background: white; color: var(--dusty-blue-deep) !important; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Homepage hero */
.hero-split { background: var(--ivory); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.7rem);
  padding: clamp(3rem, 7vw, 5.6rem) 0;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 1.15rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7A6424;
  font-size: .91rem;
  font-weight: 800;
  letter-spacing: .13em;
  padding: .34rem .85rem;
  text-transform: uppercase;
}
.hero-text h1 { margin-bottom: 1.15rem; max-width: 11ch; }
.hero-text .sub { max-width: 36em; margin-bottom: 1.8rem; color: var(--ink-soft); font-size: 1.28rem; }
.hero-note { margin-top: 1.25rem; color: var(--ink-soft); font-size: 1rem; }
.hero-image {
  min-height: 570px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: var(--sage-soft);
}
.hero-image img { width: 100%; height: 100%; min-height: 570px; object-fit: cover; object-position: center; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.2rem) 0; }
.section.alt { background: var(--ivory); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: .58rem; }
.section-head p { color: var(--ink-soft); font-size: 1.18rem; }
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }
.kicker {
  color: var(--terracotta);
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .55rem;
}
.section-rule { width: 66px; height: 4px; border-radius: 99px; background: var(--terracotta); margin: .75rem 0 1.6rem; }

/* Benefits */
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.promise {
  border-left: 4px solid var(--terracotta);
  background: var(--ivory);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.35rem 1.45rem;
  box-shadow: var(--shadow-soft);
}
.promise h3 { margin-bottom: .35rem; }
.promise p { margin: 0; color: var(--ink-soft); }

/* Image cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 1.4rem; }
.card {
  display: block;
  padding: 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D8CEBB; color: var(--ink); }
.card h3 { margin-bottom: .48rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 1.04rem; }
.card-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--sage-soft);
  font-size: 1.55rem;
}
.topic-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.4rem; }
.topic-card {
  grid-column: span 4;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.topic-card:nth-child(4), .topic-card:nth-child(5) { grid-column: span 6; }
.finds-topic-grid .topic-card, .finds-topic-grid .topic-card:nth-child(4), .finds-topic-grid .topic-card:nth-child(5) { grid-column: span 4; }
.topic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--ink); }
.topic-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.topic-card-content { padding: 1.35rem 1.45rem 1.55rem; }
.topic-card-content h3 { margin-bottom: .4rem; }
.topic-card-content p { color: var(--ink-soft); margin-bottom: .8rem; }
.topic-link { color: var(--sage-deep); font-weight: 800; }

/* Post cards */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card-image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.35rem 1.45rem 1.5rem; }
.tag {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: .72rem;
  border-radius: 999px;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: .25rem .68rem;
  text-transform: uppercase;
}
.post-card h3 { margin-bottom: .5rem; }
.post-card p { flex: 1; }
.post-meta { margin-top: .8rem; color: #766F65; font-size: .94rem; }

/* Finds feature */
.feature-split, .about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.feature-image { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.feature-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature-copy h2 { margin-bottom: .7rem; }
.feature-copy p { color: var(--ink-soft); }
.disclosure {
  margin: 1.2rem 0 1.7rem;
  padding: .9rem 1.15rem;
  border: 1px solid #E4D6AE;
  border-radius: 12px;
  background: var(--gold-soft);
  color: #67571F;
  font-size: 1rem;
}

/* About preview */
.author-note { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); }
.author-mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--sage-deep);
  color: white;
  font-family: "Lora", Georgia, serif;
  font-size: 1.65rem;
}
.signature { color: var(--terracotta); font-family: "Lora", Georgia, serif; font-size: 1.32rem; }

/* Interior pages */
.page-hero {
  padding: clamp(3.2rem, 7vw, 5rem) 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--ivory), var(--sage-soft));
}
.page-hero h1 { max-width: 16ch; margin-bottom: .7rem; }
.page-hero p { max-width: 43em; margin: 0; color: var(--ink-soft); font-size: 1.22rem; }
.page-hero.with-image .container { display: grid; grid-template-columns: 1fr .75fr; align-items: center; gap: 3rem; }
.page-hero-image { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.page-hero-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.prose { max-width: 46em; }
.prose h2 { margin: 2.2rem 0 .8rem; }
.prose h3 { margin: 1.6rem 0 .55rem; }
.prose ul, .prose ol { margin: 0 0 1rem 1.5rem; }
.prose li { margin-bottom: .45rem; }
.prose img { border-radius: var(--radius); margin: 1.5rem 0 2rem; }
.checklist { list-style: none; margin-left: 0 !important; }
.checklist li { position: relative; padding-left: 2.1rem; margin-bottom: .8rem; }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .12rem;
  display: grid;
  place-items: center;
  width: 1.42rem;
  height: 1.42rem;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-deep);
  font-size: .82rem;
  font-weight: 900;
}
.article-hero-image { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius-lg); margin-top: 2rem; box-shadow: var(--shadow); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; align-items: start; gap: 3rem; }
.article-aside { position: sticky; top: 100px; border-radius: var(--radius); background: var(--sage-soft); padding: 1.3rem; }
.article-aside h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.article-aside p { margin-bottom: .8rem; font-size: 1rem; color: var(--ink-soft); }

/* Searchable Favorite Finds catalog */
.finds-catalog-section { min-height: 520px; }
.finds-controls {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) minmax(180px, 1fr) minmax(170px, .8fr) auto;
  gap: 1rem;
  align-items: end;
  margin: 1.5rem 0 1.2rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  box-shadow: var(--shadow-soft);
}
.finds-controls label {
  display: block;
  margin-bottom: .35rem;
  color: var(--ink);
  font-size: .96rem;
  font-weight: 800;
}
.finds-controls input,
.finds-controls select {
  width: 100%;
  min-height: 50px;
  padding: .72rem .9rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.finds-controls input:focus,
.finds-controls select:focus {
  border-color: var(--sage);
  outline: 3px solid rgba(122, 139, 106, .16);
}
.finds-reset { min-height: 50px; padding: .65rem 1rem; white-space: nowrap; }
.finds-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1rem;
  margin: 1.4rem 0;
}
#finds-results-count { margin: 0; color: var(--ink-soft); font-weight: 800; }
.finds-category-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.finds-chip {
  padding: .48rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--sage-deep);
  cursor: pointer;
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
}
.finds-chip:hover,
.finds-chip.active { border-color: var(--sage-deep); background: var(--sage-deep); color: #fff; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.45rem;
}
.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: #D8CEBB; box-shadow: var(--shadow); }
.product-image-wrap { overflow: hidden; background: var(--sage-soft); }
.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-image { transform: scale(1.025); }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem 1.3rem 1.35rem; }
.product-card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; margin-bottom: .55rem; }
.product-category {
  color: var(--sage-deep);
  font-size: .79rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.product-label {
  align-self: flex-start;
  display: inline-block;
  margin-bottom: .55rem;
  padding: .24rem .6rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #725D1D;
  font-size: .82rem;
  font-weight: 800;
}
.product-name { margin-bottom: .55rem; font-size: 1.34rem; }
.product-description { color: var(--ink-soft); font-size: 1.01rem; }
.product-best-for { margin-top: .85rem !important; color: var(--ink); font-size: .96rem !important; }
.product-price { flex: 0 0 auto; color: #766F65; font-size: .93rem; font-weight: 800; }
.product-card-actions { margin-top: auto; padding-top: 1.1rem; }
.product-button { width: 100%; }
.product-affiliate-note { margin-top: .62rem !important; color: #766F65 !important; font-size: .82rem !important; line-height: 1.42; }
.btn-disabled { border-color: var(--line); background: #EEEAE2; color: #777168 !important; cursor: default; }
.finds-empty {
  margin-top: 1.5rem;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--ivory);
  text-align: center;
}
.finds-empty h2 { margin-bottom: .55rem; }
.finds-empty p { color: var(--ink-soft); }

/* Forms */
.form-card { max-width: 680px; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; margin-bottom: .35rem; font-weight: 800; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: .8rem .95rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: white;
  font: inherit;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--sage); outline: none; }

/* Footer */
.site-footer { margin-top: 4rem; padding: 3.2rem 0 2rem; background: #394333; color: #D9E0D0; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.footer-brand img { width: 44px; height: 44px; }
.footer-brand .brand-name { color: white; }
.footer-brand .brand-name span { color: #C7D1B6; }
.footer-line { max-width: 40em; color: #C2CBB5; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 1.45rem 0; list-style: none; }
.footer-links a { color: #EDF1E9; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-note { color: #ABB79B; font-size: .96rem; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; padding-bottom: .8rem; }
  .hero-grid, .feature-split, .about-grid, .page-hero.with-image .container { grid-template-columns: 1fr; }
  .hero-image { order: -1; min-height: 430px; }
  .hero-image img { min-height: 430px; object-position: center 38%; }
  .hero-text h1 { max-width: none; }
  .promise-grid { grid-template-columns: 1fr; }
  .topic-card, .topic-card:nth-child(4), .topic-card:nth-child(5), .finds-topic-grid .topic-card, .finds-topic-grid .topic-card:nth-child(4), .finds-topic-grid .topic-card:nth-child(5) { grid-column: span 6; }
.finds-topic-grid .topic-card, .finds-topic-grid .topic-card:nth-child(4), .finds-topic-grid .topic-card:nth-child(5) { grid-column: span 4; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 1.08rem; }
  .brand-name { font-size: 1.12rem; }
  .brand img { width: 42px; height: 42px; }
  .hero-grid { padding-top: 1.6rem; }
  .hero-image { min-height: 360px; border-radius: 18px; }
  .hero-image img { min-height: 360px; }
  .hero-buttons .btn { width: 100%; }
  .topic-card, .topic-card:nth-child(4), .topic-card:nth-child(5), .finds-topic-grid .topic-card, .finds-topic-grid .topic-card:nth-child(4), .finds-topic-grid .topic-card:nth-child(5) { grid-column: 1 / -1; }
  .section { padding: 3.2rem 0; }
  .page-hero.with-image .page-hero-image { display: none; }
}


@media (max-width: 980px) {
  .finds-controls { grid-template-columns: 1fr 1fr; }
  .finds-search-wrap { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .finds-controls { grid-template-columns: 1fr; }
  .finds-search-wrap { grid-column: auto; }
  .finds-reset { width: 100%; }
  .finds-results-head { align-items: flex-start; flex-direction: column; }
  .finds-category-chips { width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; }
  .finds-chip { flex: 0 0 auto; }
  .product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
