
/* ============================================================
   Wellness Every Day — theme.css
   Rebuilt responsively from the Figma export (390 / 834 / 1440)
   ============================================================ */

:root {
  --wed-green: #243e34;
  --wed-green-soft: #607067;
  --wed-terracotta: #b54f2f;
  --wed-cream: #faf9f4;
  --wed-sage: #e7ebdd;
  --wed-border: #d6dccd;
  --wed-white: #ffffff;
  --wed-serif: 'Noto Serif TC', 'Noto Serif', serif;
  --wed-sans: 'Noto Sans TC', 'Noto Sans', sans-serif;
  --wed-radius: 8px;
  --wed-radius-lg: 12px;
  --wed-container: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--wed-cream);
  color: var(--wed-green);
  font-family: var(--wed-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wed-container {
  max-width: var(--wed-container);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 769px) { .wed-container { padding-left: 24px; padding-right: 24px; } }

.wed-serif { font-family: var(--wed-serif); }
.wed-soft  { color: var(--wed-green-soft); }
.wed-terra { color: var(--wed-terracotta); }

/* ---------- Announcement bar ---------- */
.wed-announcement {
  background: var(--wed-green);
  color: var(--wed-white);
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.wed-announcement a {
  color: var(--wed-white);
  text-decoration: none;
  font-weight: 500;
}
@media (min-width: 900px) {
  .wed-announcement { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- Header / navigation ---------- */
.wed-header { background: var(--wed-cream); }
.wed-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.wed-nav__top { display: flex; align-items: center; gap: 12px; width: 100%; }
.wed-nav__brand { flex: 1; text-decoration: none; }
.wed-nav__title { font-family: var(--wed-serif); font-weight: 700; font-size: 28px; line-height: 1.3; margin: 0; }
.wed-nav__tagline { font-size: 10px; font-weight: 500; letter-spacing: .12em; color: var(--wed-green-soft); margin: 0; }
.wed-nav__icons { display: flex; align-items: center; gap: 16px; }
.wed-nav__icons a { display: inline-flex; line-height: 0; }
.wed-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}
.wed-nav__links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}
.wed-nav__links a:hover { color: var(--wed-terracotta); }
.wed-nav__login {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 48px;
  background: var(--wed-cream);
  border: 1px solid var(--wed-green);
  border-radius: var(--wed-radius);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 24px;
  transition: background .2s ease, color .2s ease;
}
.wed-nav__login:hover { background: var(--wed-green); color: var(--wed-white); }

@media (min-width: 900px) {
  .wed-nav { flex-direction: row; align-items: center; gap: 32px; padding-top: 24px; padding-bottom: 24px; }
  .wed-nav__top { width: auto; flex: 1; }
  .wed-nav__links { width: auto; flex: 2; justify-content: center; gap: 32px; }
  .wed-nav__links a { font-size: 18px; }
  .wed-nav__login { width: auto; min-height: 0; }
  .wed-nav__title { font-size: 34px; }
}

/* ---------- Hero ---------- */
.wed-hero { background: var(--wed-sage); }
.wed-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}
.wed-hero__eyebrow { font-weight: 500; font-size: 16px; margin: 0 0 4px; }
.wed-hero__title {
  font-family: var(--wed-serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.5;
  margin: 0 0 8px;
  white-space: pre-line;
}
.wed-hero__text { color: var(--wed-green-soft); font-size: 17px; margin: 0 0 4px; white-space: pre-line; }
.wed-hero__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

.wed-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--wed-radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .2s ease, background .2s ease, color .2s ease;
  font-family: var(--wed-sans);
}
.wed-btn:hover { opacity: .88; }
.wed-btn--primary { background: var(--wed-green); color: var(--wed-white); }
.wed-btn--outline { background: var(--wed-cream); border-color: var(--wed-green); color: var(--wed-green); }
.wed-btn--outline:hover { background: var(--wed-green); color: var(--wed-white); opacity: 1; }
.wed-btn--block { width: 100%; }

.wed-hero__meta { color: var(--wed-green-soft); font-size: 14px; margin: 8px 0 0; }
.wed-hero__media { position: relative; }
.wed-hero__media img { width: 100%; border-radius: var(--wed-radius-lg); }
.wed-hero__card {
  background: var(--wed-cream);
  border-radius: var(--wed-radius);
  padding: 14px 18px;
  margin-top: 12px;
}
.wed-hero__card-label { color: var(--wed-green-soft); font-size: 14px; margin: 0; }
.wed-hero__card-text { font-weight: 500; font-size: 17px; margin: 2px 0 0; }

@media (min-width: 1024px) {
  .wed-hero__inner { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
  .wed-hero__title { font-size: 52px; }
  .wed-hero__text { font-size: 20px; }
  .wed-hero__actions { flex-direction: row; }
  .wed-btn--block { width: auto; }
  .wed-hero__card { position: absolute; left: 24px; bottom: 24px; margin-top: 0; box-shadow: 0 8px 24px rgba(36,62,52,.12); }
  .wed-hero__media { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- Generic section ---------- */
.wed-section { padding: 36px 0; }
.wed-section--sage { background: var(--wed-sage); }
.wed-section--green { background: var(--wed-green); color: var(--wed-cream); }
@media (min-width: 1024px) { .wed-section { padding: 56px 0; } }

.wed-section__head { margin-bottom: 24px; }
.wed-section__title {
  font-family: var(--wed-serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.5;
  margin: 0;
}
.wed-section__subtitle { color: var(--wed-green-soft); font-size: 17px; margin: 4px 0 0; }
.wed-section--green .wed-section__subtitle { color: var(--wed-sage); }
.wed-section__link {
  display: inline-block;
  margin-top: 12px;
  font-size: 17px;
  text-decoration: none;
}
.wed-section__link:hover { color: var(--wed-terracotta); }
@media (min-width: 1024px) { .wed-section__title { font-size: 36px; } }

/* ---------- Topic pills ---------- */
.wed-topics__title { font-weight: 500; font-size: 19px; margin: 0 0 16px; }
.wed-topics__list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.wed-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 26px;
  background: var(--wed-white);
  border: 1px solid var(--wed-border);
  text-decoration: none;
  font-size: 16px;
  transition: background .2s ease, color .2s ease;
}
.wed-pill:hover { border-color: var(--wed-green); }
.wed-pill--active, .wed-pill--active:hover { background: var(--wed-green); border-color: var(--wed-green); color: var(--wed-white); }

/* ---------- Card grids (journal / events / shop) ---------- */
.wed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px) { .wed-grid--3 { grid-template-columns: repeat(2, 1fr); } .wed-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wed-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.wed-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  border-radius: var(--wed-radius-lg);
  text-decoration: none;
}
.wed-card--filled { background: var(--wed-cream); overflow: hidden; }
.wed-card__media { position: relative; }
.wed-card__media img { width: 100%; border-radius: var(--wed-radius-lg); }
.wed-card--filled .wed-card__media img { border-radius: 0; }
.wed-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--wed-cream);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 500;
}
.wed-card__cat { color: var(--wed-terracotta); font-size: 15px; margin: 4px 0 0; }
.wed-card__title {
  font-family: var(--wed-serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.5;
  margin: 0;
  white-space: pre-line;
}
.wed-card__excerpt { color: var(--wed-green-soft); font-size: 15px; margin: 0; }
.wed-card__meta { color: var(--wed-green-soft); font-size: 14px; margin: 0; }
.wed-card__price { font-weight: 500; font-size: 17px; margin: 0; }
.wed-card__body { display: flex; flex-direction: column; gap: 10px; padding: 6px 16px 16px; }
.wed-card .wed-btn { margin-top: 4px; font-size: 15px; min-height: 44px; }
@media (min-width: 1024px) {
  .wed-card__title { font-size: 22px; }
  .wed-card__excerpt { font-size: 16px; }
}

/* ---------- Shop note ---------- */
.wed-shop__note {
  color: var(--wed-green-soft);
  font-size: 14px;
  text-align: center;
  margin: 24px 0 0;
}

/* ---------- Membership / newsletter ---------- */
.wed-membership__title {
  font-family: var(--wed-serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.55;
  color: var(--wed-cream);
  margin: 0;
  max-width: 720px;
}
.wed-membership__text { color: var(--wed-sage); font-size: 17px; max-width: 640px; margin: 8px 0 0; white-space: pre-line; }
.wed-membership__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--wed-cream);
  border-radius: var(--wed-radius);
  padding: 12px;
  margin-top: 20px;
  max-width: 640px;
}
.wed-membership__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--wed-sans);
  font-size: 16px;
  color: var(--wed-green);
  padding: 12px 14px;
  min-width: 0;
}
.wed-membership__input:focus { outline: 2px solid var(--wed-green-soft); border-radius: 4px; }
.wed-membership__input::placeholder { color: var(--wed-green-soft); }
.wed-membership__submit {
  background: var(--wed-terracotta);
  color: var(--wed-white);
  border: none;
  border-radius: 5px;
  min-height: 48px;
  padding: 12px 28px;
  font-family: var(--wed-sans);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: opacity .2s ease;
}
.wed-membership__submit:hover { opacity: .9; }
.wed-membership__note { color: var(--wed-sage); font-size: 13px; margin: 8px 0 0; }
.wed-membership__message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--wed-radius);
  font-size: 15px;
}
.wed-membership__message--ok { background: rgba(231,235,221,.15); color: var(--wed-sage); }
.wed-membership__message--error { background: rgba(181,79,47,.35); color: var(--wed-white); }
@media (min-width: 700px) {
  .wed-membership__form { flex-direction: row; align-items: center; }
  .wed-membership__submit { width: auto; }
}
@media (min-width: 1024px) { .wed-membership__title { font-size: 36px; } }

/* ---------- Footer ---------- */
.wed-footer { background: var(--wed-cream); }
.wed-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 28px;
}
.wed-footer__brand-title { font-family: var(--wed-serif); font-weight: 500; font-size: 24px; margin: 0; }
.wed-footer__brand-text { color: var(--wed-green-soft); font-size: 15px; margin: 8px 0 0; white-space: pre-line; }
.wed-footer__col h3 { font-weight: 500; font-size: 17px; margin: 0 0 12px; }
.wed-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wed-footer__col a { color: var(--wed-green-soft); text-decoration: none; font-size: 15px; }
.wed-footer__col a:hover { color: var(--wed-terracotta); }
@media (min-width: 700px) { .wed-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wed-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; } }

.wed-footer__hr { border: 0; border-top: 1px solid var(--wed-border); margin: 0; }
.wed-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 24px;
  color: var(--wed-green-soft);
  font-size: 13px;
}
.wed-footer__bottom-links { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; }
.wed-footer__bottom a { color: var(--wed-green-soft); text-decoration: none; }
.wed-footer__bottom a:hover { color: var(--wed-terracotta); }
@media (min-width: 900px) { .wed-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Accessibility ---------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}
.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  z-index: 100000;
}

/* Journal card inner column link reset */
.wed-card a { color: inherit; }
.wed-card__media { line-height: 0; }
.wed-card__media img { border-radius: 12px; }
