/* ============================================================
   wellnessandcarehub.com — "The Pantry Ledger"
   Editorial Magazine family · tomato / olive / cream
   ============================================================ */

:root {
  --tomato: #C8402E;
  --tomato-deep: #A33323;
  --olive: #6B7043;
  --olive-deep: #565A35;
  --cream: #FAF3E7;
  --paper: #FFFDF8;
  --ink: #2B2118;
  --ink-soft: #6E6154;
  --hairline: #E4D6BF;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--tomato); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 0; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--olive-deep);
  color: var(--cream);
  text-align: center;
  padding: .55rem 1rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------- Masthead ---------- */
.masthead {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  text-align: center;
}

.masthead-brand { display: grid; justify-items: center; gap: .45rem; }

.mark { color: var(--tomato); display: inline-block; }
.mark svg { transition: transform .5s ease; }
.mark:hover svg { transform: rotate(45deg); }

.wordmark {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: .01em;
}
.wordmark span { color: var(--tomato); font-style: italic; }

.tagline {
  font-size: .68rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.cart-btn {
  position: absolute; top: 2.2rem; right: 1.5rem;
  color: var(--ink);
  display: inline-flex; align-items: center;
  padding: .5rem;
}
.cart-badge {
  position: absolute; top: 0; right: -4px;
  background: var(--tomato); color: #fff;
  min-width: 18px; height: 18px; border-radius: 50%;
  font-size: .68rem; font-weight: 700;
  display: grid; place-items: center;
  transition: transform .25s ease;
}
.cart-badge.pop { transform: scale(1.45); }

/* Nav below hairlines */
.primary-nav {
  margin-top: 1.4rem;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.primary-nav ul {
  display: flex; justify-content: center; flex-wrap: wrap;
  column-gap: .6rem;
  padding: .65rem 0;
}
.primary-nav a {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .2rem .7rem;
  transition: color .2s ease;
}
.primary-nav a:hover { color: var(--tomato); }
.primary-nav li + li::before {
  content: "·";
  color: var(--tomato);
  align-self: center;
}

.nav-toggle {
  display: none;
  position: absolute; top: 2.2rem; left: 1.5rem;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; gap: 5px; padding: .4rem; z-index: 30;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections shared ---------- */
main { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 3.4rem 0 0; }

.kicker-row {
  display: flex; align-items: center; gap: 1rem;
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--olive-deep);
  margin-bottom: 1.6rem;
}
.kicker-rule { flex: 1; height: 1px; background: var(--hairline); }

/* ---------- Front page ---------- */
.front-grid {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 2.2rem;
  align-items: start;
}

.feature-card figure {
  position: relative;
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--olive);
  overflow: hidden;
}
.feature-card img { width: 100%; aspect-ratio: 2 / 1.02; object-fit: cover; }

.feature-text { padding-top: 1.6rem; }
.feature-kicker {
  color: var(--tomato);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  margin-bottom: .7rem;
}
.feature-text h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}
.dek { color: var(--ink-soft); max-width: 56ch; margin-bottom: 1rem; }
.photo-caption {
  font-size: .74rem; font-style: italic;
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
  padding-top: .8rem;
}

.mini-stories { display: grid; gap: 1.8rem; }

.mini-card figure { overflow: hidden; border: 1px solid var(--hairline); }
.mini-card img {
  aspect-ratio: 16 / 9; object-fit: cover; width: 100%;
  transition: transform .6s ease;
}
.mini-card:hover img { transform: scale(1.04); }
.mini-kicker {
  color: var(--olive);
  font-size: .66rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  margin: .8rem 0 .35rem;
}
.mini-card h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.28rem; line-height: 1.25;
}
.mini-card h2 a { text-decoration: none; }
.mini-card h2 a:hover { color: var(--tomato); }

/* ---------- Picks ---------- */
.picks-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 1rem;
  margin-bottom: .4rem;
}
.picks-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.picks-head p { color: var(--ink-soft); font-size: .92rem; max-width: 46ch; }

.pick-list { display: grid; }

.pick-row {
  display: grid;
  grid-template-columns: 3.2rem 96px 1fr auto auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--hairline);
}

.pick-index {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--tomato);
  font-style: italic;
}

.pick-thumb {
  width: 96px; height: 96px;
  border: 1px solid var(--hairline);
  background: var(--paper);
}
.pick-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pick-info h3 { font-size: 1.02rem; font-weight: 600; }
.pick-info h3 a { text-decoration: none; }
.pick-info h3 a:hover { color: var(--tomato); }
.pick-note { color: var(--ink-soft); font-size: .86rem; margin-top: .15rem; }

.pick-meta { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.count { font-size: .76rem; color: var(--ink-soft); }

.stars { display: inline-flex; gap: 2px; color: var(--olive); }
.stars svg { width: 14px; height: 14px; }

.pick-price {
  font-family: var(--serif);
  font-size: 1.5rem;
  min-width: 3.5rem;
  text-align: right;
}

.add-btn {
  font-family: var(--sans);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  background: var(--tomato); color: #fff;
  border: 1px solid var(--tomato);
  padding: .7rem 1.5rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.add-btn:hover { background: var(--tomato-deep); border-color: var(--tomato-deep); }
.add-btn.added { background: var(--olive); border-color: var(--olive); }

/* ---------- Seasonal band ---------- */
.band {
  position: relative;
  margin-top: 3.4rem;
  padding: 4.6rem 1.5rem;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(107, 112, 67, .55), transparent 55%),
    linear-gradient(118deg, var(--tomato-deep) 0%, var(--tomato) 46%, var(--olive) 100%);
  color: var(--cream);
  overflow: hidden;
}
.band-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.band-accent {
  position: absolute; color: rgba(250, 243, 231, .28);
  pointer-events: none;
}
.band-accent-l { width: 190px; left: 4%; top: 50%; transform: translateY(-50%); }
.band-accent-r { width: 210px; right: 4%; bottom: 12%; }

.band-kicker {
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  margin-bottom: 1rem; opacity: .85;
}
.band h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.band-sub { opacity: .9; margin-bottom: 1.8rem; }
.band-btn {
  display: inline-block;
  background: var(--cream); color: var(--tomato-deep);
  text-decoration: none;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  padding: .95rem 2.2rem;
  border: 1px solid var(--cream);
  transition: background .2s ease, color .2s ease;
}
.band-btn:hover { background: transparent; color: var(--cream); }

/* ---------- Field notes ---------- */
.notes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}
.note { color: var(--ink); }
.note svg { color: var(--olive); margin-bottom: .9rem; }
.note h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.25rem; margin-bottom: .5rem;
}
.note p { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Letters ---------- */
.letters-head { margin-bottom: 1.6rem; }
.letters-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.letters-head p { color: var(--ink-soft); font-size: .92rem; }

.letters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

.letter-card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--olive);
  padding: 1.6rem 1.5rem;
}
.letter-card .stars { color: var(--tomato); margin-bottom: .8rem; }
.letter-card blockquote { font-size: .95rem; margin-bottom: 1rem; }
.letter-name { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Newsletter ---------- */
.newsletter { padding-bottom: 4.5rem; }
.news-frame {
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 5px;
  background: var(--paper);
  text-align: center;
  padding: 3.2rem 1.6rem;
  max-width: 720px;
  margin: 0 auto;
}
.news-kicker {
  color: var(--tomato);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  margin-bottom: .8rem;
}
.news-frame h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: .7rem;
}
.news-sub { color: var(--ink-soft); font-size: .92rem; max-width: 48ch; margin: 0 auto 1.6rem; }

.news-form { display: flex; max-width: 460px; margin: 0 auto; }
.news-form input {
  flex: 1;
  font: inherit; font-size: .9rem;
  padding: .85rem 1rem;
  border: 1px solid var(--ink);
  border-right: 0;
  background: var(--cream);
  color: var(--ink);
}
.news-form input:focus { outline: 2px solid var(--olive); outline-offset: -2px; }
.news-form button {
  font: inherit; font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  background: var(--ink); color: var(--cream);
  border: 1px solid var(--ink);
  padding: 0 1.6rem;
  cursor: pointer;
  transition: background .2s ease;
}
.news-form button:hover { background: var(--olive-deep); border-color: var(--olive-deep); }
.news-success { margin-top: 1rem; color: var(--olive-deep); font-weight: 600; }

/* ---------- Colophon footer ---------- */
.colophon {
  background: var(--olive-deep);
  color: var(--cream);
  padding: 3.6rem 1.5rem 2rem;
}
.colophon > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

.colophon-statement {
  text-align: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.4;
  max-width: 640px;
  margin-bottom: 3rem;
}
.colophon-statement em { color: #E9E2C8; }

.colophon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(250, 243, 231, .25);
}
.colophon-col h3 {
  font-size: .7rem; letter-spacing: .26em; text-transform: uppercase;
  color: #E9E2C8;
  margin-bottom: .9rem;
}
.colophon-col a {
  font-size: .88rem;
  text-decoration: none;
  color: var(--cream);
  opacity: .85;
}
.colophon-col a:hover { opacity: 1; text-decoration: underline; }
.colophon-col li + li { margin-top: .45rem; }

.colophon-pay {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem;
  padding: 1.6rem 0;
}
.chip {
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(250, 243, 231, .4);
  padding: .3rem .7rem;
  color: #E9E2C8;
}

.colophon-base {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(250, 243, 231, .25);
  padding-top: 1.4rem;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
}
.issue-line { color: #E9E2C8; }
.copyright { opacity: .8; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translateX(-50%);
  background: var(--ink); color: var(--cream);
  padding: .85rem 1.6rem;
  font-size: .85rem; letter-spacing: .06em;
  box-shadow: 0 10px 30px rgba(43, 33, 24, .35);
  z-index: 60;
}
.toast.show { animation: toast-in .3s ease; }
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease var(--d, 0ms), transform .7s ease var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .front-grid { grid-template-columns: 1fr; }
  .mini-stories { grid-template-columns: 1fr 1fr; }
  .notes-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .letters-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--cream);
    border-top: 1px solid var(--ink);
    z-index: 20;
  }
  .masthead { position: relative; }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; padding: .5rem 0; }
  .primary-nav li { text-align: center; padding: .55rem 0; }
  .primary-nav li + li { border-top: 1px solid var(--hairline); }
  .primary-nav li + li::before { content: none; }
}

@media (max-width: 700px) {
  .mini-stories { grid-template-columns: 1fr; }
  .pick-row {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "thumb info"
      "thumb meta"
      "price btn";
    row-gap: .6rem;
  }
  .pick-index { display: none; }
  .pick-thumb { grid-area: thumb; width: 72px; height: 72px; }
  .pick-info { grid-area: info; }
  .pick-meta { grid-area: meta; }
  .pick-price { grid-area: price; text-align: left; }
  .add-btn { grid-area: btn; justify-self: start; }
  .colophon-grid { grid-template-columns: 1fr 1fr; }
  .colophon-base { flex-direction: column; text-align: center; }
  .news-form { flex-direction: column; }
  .news-form input { border-right: 1px solid var(--ink); }
  .news-form button { padding: .85rem; margin-top: .6rem; }
  .band-accent-l, .band-accent-r { display: none; }
}
