/* Everyday Mercies homepage (2026 redesign). Layout: a slim leafy welcome band, two doorways that overlap its edge, then a run of
   compact full-width blocks (moment, carry, jar, shop) so every feature shows without long scrolling.
   Light theme, matching the rest of the site. */
:root {
  color-scheme: light;
  --honey-wash: #FFF9E8; --honey-line: #F0DC9E; --honey-ink: #7A5A00;
  --coral: #D4547A;  --coral-ink: #B23F63;  --coral-light: #F48FB1;  --blush-wash: #FBEBEA;
  --sage: #98B498;   --sage-ink: #4F6F52;   --sage-light: #B8D4B8;  --sage-wash: #EAF1E7;
  --gold: #C8970A;   --gold-light: #F4D58D;
  --cream: #FFF8F0;  --butter-1: #FCEBC6;   --butter-2: #F8E1BC;    --blush: #FFE8DC;
  --white: #FFFFFF;  --ink: #2C3E50;        --muted: #66707A;       --line: #EADFD3;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius-card: 20px; --radius-pill: 50px;
  --shadow-sm: 0 2px 8px rgba(80,40,30,.08); --shadow-md: 0 8px 26px rgba(140,60,80,.12);
}
body.home * { box-sizing: border-box; }
body.home { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
a { color: inherit; }
body.home h1, body.home h2, body.home h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.15; font-weight: 600; }
body.home p { margin: 0; }
.em-wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.45rem; border-radius: var(--radius-pill); font-weight: 600; font-size: .96rem; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-coral { background: linear-gradient(135deg, var(--coral), var(--coral-light)); color: var(--white); }
.btn-sage { background: var(--sage-ink); color: var(--white); }
.textlink { color: var(--coral-ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.textlink::before { content: "▸ "; font-size: .8em; }
@media (prefers-reduced-motion: reduce) { .btn, .chip, .carry a { transition: none; } .btn:hover { transform: none; } }


/* ---------- 1. welcome band (leaves always kept) ---------- */
.welcome { background: url('../images/hero-leaf-tr.png') right -20px top -50px / 240px auto no-repeat,
                       linear-gradient(135deg, #FFF7E2 0%, #FCEFD3 55%, #FFF7E2 100%); }
.welcome .em-wrap { padding-block: 1.9rem 4.6rem; text-align: center; }
.welcome h1 { font-size: clamp(1.7rem, 3.3vw, 2.35rem); font-weight: 700; color: var(--coral-ink); }
.welcome p { color: var(--muted); font-size: 1.05rem; margin-top: .45rem; }

/* ---------- 2. two doorways ---------- */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; max-width: none; margin: -3.2rem auto 0; position: relative; }
.leaf-climb { position: absolute; left: -22px; top: -178px; width: 200px; height: auto; z-index: 0; pointer-events: none; opacity: .95; }
.door { position: relative; z-index: 1; border-radius: var(--radius-card); padding: 2.3rem 2.4rem 2.4rem; display: flex; flex-direction: column; gap: .45rem; box-shadow: var(--shadow-md); min-width: 0; }
.door-dev { background: var(--sage-wash); }
.door-quiz { background: var(--blush-wash); }
.sec-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; }
.sec-title h2 { font-size: clamp(1.6rem, 2.6vw, 1.95rem); color: var(--ink); }
.sec-title .date { font-size: .95rem; color: var(--muted); font-weight: 500; }
.door h3 { font-size: 1.4rem; color: var(--ink); margin-top: .6rem; }
.door .verse.long { font-size: 1rem; line-height: 1.5; }
.door .dev-theme { font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-ink); margin-top: .7rem; }
.door .dev-theme + h3 { margin-top: .1rem; }
.door .dev-prayer { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid rgba(79,111,82,.2); color: var(--sage-ink); font-size: .98rem; line-height: 1.55; }
.door .dev-prayer span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .2rem; }
.door .dev-prayer em { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.door .meta { color: var(--muted); font-size: .95rem; }
.door .verse { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.6; color: var(--ink); margin-top: .5rem; }
.quiz-list { display: grid; gap: 0; margin-top: .4rem; flex: 1 0 auto; align-content: space-evenly; }
.quiz-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; padding-block: .7rem; }
.quiz-row + .quiz-row { border-top: 1px solid rgba(212,84,122,.18); }
.quiz-row h3 { font-size: 1.3rem; }
.quiz-row .tag { font-family: var(--font-body); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--gold-light); color: #6E5200; border-radius: 50px; padding: .12rem .45rem; margin-left: .4rem; vertical-align: 4px; }
.door .quiz-row .btn { padding: .65rem 1.2rem; font-size: .92rem; }
.door-quiz .go { margin-top: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; }
.quiz-note { color: var(--muted); font-size: .9rem; }
.quiz-art { width: 100px; height: 100px; border-radius: 14px; background-color: #FFFDF8; background-position: center; background-size: cover; background-repeat: no-repeat; }
.quiz-row h3 { margin-top: 0; }
.door .go { margin-top: auto; padding-top: 1.4rem; }
.door .btn { padding: .85rem 1.6rem; font-size: 1rem; }

/* ---------- shared block spacing ---------- */
.block { padding-block: 2.2rem 0; }
.block-head { margin-bottom: 1.1rem; }
.block-head h2 { font-size: clamp(1.55rem, 2.6vw, 1.95rem); color: var(--ink); }

/* ---------- 3. For This Moment: one wide, short band ---------- */
.momentband { background: var(--honey-wash); border-block: 1px solid var(--honey-line); margin-top: 2.6rem; }
.moment { padding-block: 2.4rem 2.5rem; }
.moment h2 { font-size: clamp(1.55rem, 2.6vw, 1.95rem); color: var(--ink); }
.moment .lede { color: var(--muted); font-size: 1.02rem; margin-top: .3rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.chip { font-size: .92rem; font-weight: 500; color: var(--honey-ink); background: var(--white); border: 1.5px solid var(--honey-line); border-radius: var(--radius-pill); padding: .55rem .95rem; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { background: var(--gold-light); border-color: var(--gold); color: var(--ink); }
.moment .more { margin-top: 1.1rem; display: inline-block; font-size: .95rem; }
/* chips: one even row filling the width on wide screens, a tidy 4 + 3 grid on mid-size screens, free wrap on phones */
@media (min-width: 761px) and (max-width: 1179px) { .chips { display: grid; grid-template-columns: repeat(4, max-content); } .chip { text-align: center; } }
@media (min-width: 1180px) { .chips { flex-wrap: nowrap; } .chip { flex: 1 1 auto; text-align: center; padding-inline: .6rem; } }

/* ---------- 4. Something to carry ---------- */
.carry { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; max-width: none; margin: 0 auto; }
.carry a.item { text-decoration: none; display: flex; flex-direction: column; gap: .4rem; border-top: 3px solid var(--sage); padding-top: .9rem; min-width: 0; }
.carry .pic { height: 170px; border-radius: 12px; overflow: hidden; background: var(--sage-wash); margin-bottom: .45rem; transition: box-shadow .2s, transform .2s; }
.carry .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carry .pic.paper { background: var(--white); border: 1px solid var(--line); }
.carry .pic.paper img { object-fit: contain; padding: 8px; }
.carry .pic.trio { background: #FFFDF8; } .carry .pic.trio img { object-fit: cover; padding: 0; }
.carry .pic.top img { object-position: center 18%; }
.carry a.item:hover .pic { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.carry h3 { font-size: 1.18rem; }
.carry p { color: var(--muted); font-size: .9rem; }
.carry .textlink { align-self: flex-start; font-size: .9rem; margin-top: auto; }
.carry p { margin-bottom: .55rem; }
.carry-head { max-width: none; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; }
.all-links { display: flex; gap: 1.4rem; font-size: .88rem; }
.block-foot { max-width: none; margin: 1rem auto 0; text-align: right; font-size: .93rem; }

/* ---------- 5. Prayer Jar (full width) ---------- */
.jar { background: linear-gradient(135deg, var(--cream), var(--blush)); margin-top: 2.4rem; }
.jar .em-wrap { padding-block: 1.5rem; }
.jar-row { display: grid; grid-template-columns: minmax(0, auto) auto; justify-content: center; gap: 1rem 5rem; align-items: center; max-width: none; margin: 0 auto; }
.jar h2 { font-size: 1.75rem; color: var(--sage-ink); }
.jar .sub { font-family: var(--font-display); font-size: 1.05rem; color: var(--coral-ink); margin-top: .15rem; }
.jar ol { list-style: none; counter-reset: s; margin: .75rem 0 0; padding: 0; display: grid; gap: .3rem; max-width: 60ch; }
.jar li { counter-increment: s; display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .6rem; align-items: center; color: var(--ink); font-size: .95rem; }
.jar li::before { content: counter(s); width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--white); border: 1.5px solid var(--coral-light); color: var(--coral-ink); font-weight: 700; font-size: .75rem; display: grid; place-items: center; }
.jar .count { font-family: var(--font-display); font-style: italic; color: var(--muted); margin-top: .65rem; font-size: .9rem; }
.jar-row { position: relative; }
.jar-side { display: flex; flex-direction: column; align-items: center; gap: 0; }
.jar-side .btn { margin-top: -34px; position: relative; z-index: 1; }
.jar-side img { width: 140px; height: auto; filter: drop-shadow(0 10px 26px rgba(212,84,122,.22)); }

/* ---------- 6. shop: a full-width band, no floating card ---------- */
.shopband { background: var(--white); border-top: 1px solid var(--line); }
.shopbox { max-width: none; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr) minmax(0, 300px); gap: 1.5rem 2rem; align-items: center; padding-block: 2.3rem 2.6rem; }
.shopbox h2 { font-size: 1.6rem; margin-top: .3rem; }
.shopbox p { color: var(--muted); font-size: .95rem; margin-top: .4rem; }
.shopbox .btn { margin-top: 1rem; }
.shelf { display: flex; justify-content: center; align-items: center; padding: .4rem 0; min-width: 0; }
.shelf img { width: 25%; max-width: 170px; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.16); margin-left: -6%; background: var(--white); }
.shelf img:first-child { margin-left: 0; }
.shelf img:nth-child(1) { transform: rotate(-7deg); } .shelf img:nth-child(2) { transform: rotate(-3deg) translateY(-6px); }
.shelf img:nth-child(3) { transform: translateY(-10px); position: relative; z-index: 2; }
.shelf img:nth-child(4) { transform: rotate(3deg) translateY(-6px); } .shelf img:nth-child(5) { transform: rotate(7deg); }
.also { min-width: 0; }
.also-label { font-size: .78rem; color: var(--muted); margin-bottom: .45rem; }
.also-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.also-grid a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; max-width: 100%; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; }
.also-grid a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.also-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- newsletter + footer ---------- */
.letter { background: linear-gradient(135deg, var(--sage-wash), #F3F7EF); }
.letter .em-wrap { padding-block: 2.6rem; }
.letter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; max-width: none; margin: 0 auto; }
.letter h2 { font-size: 1.85rem; color: var(--sage-ink); }
.letter-intro { display: flex; align-items: center; gap: 1.2rem; min-width: 0; flex: 1 1 380px; }
.letter form { flex: 0 1 auto; }
.letter-intro img { width: 84px; height: 84px; flex-shrink: 0; }
.letter p { color: var(--muted); margin-top: .3rem; font-size: 1.02rem; max-width: 46ch; }
.letter form { display: flex; gap: .6rem; flex-wrap: wrap; }
.letter input { font: inherit; padding: .9rem 1.2rem; border-radius: var(--radius-pill); border: 1.5px solid var(--sage-light); width: 300px; max-width: 100%; background: var(--white); color: var(--ink); }
.letter button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .shopbox { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } .also { grid-column: 1 / -1; } .also-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .carry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 761px) { .welcome p { white-space: nowrap; } }
@media (max-width: 860px) {
  .shopbox { grid-template-columns: minmax(0, 1fr); }
  .jar-row { grid-template-columns: minmax(0, 1fr); }   .jar-side { flex-direction: row; justify-content: flex-start; } .jar-side img { width: 90px; }
}
@media (max-width: 1100px) {
  .quiz-row { grid-template-columns: 88px minmax(0, 1fr); row-gap: .45rem; } .quiz-art { width: 88px; height: 88px; grid-row: span 2; }
  .quiz-row .btn { justify-self: start; }
}
@media (max-width: 600px) {
  .doors { grid-template-columns: minmax(0, 1fr); }
  .leaf-climb { width: 130px; top: -118px; left: -18px; }
}
@media (max-width: 520px) {
  .welcome { background-size: 150px auto, 160px auto, auto; background-position: right -30px top -40px, left -40px bottom -50px, 0 0; }
  .door { padding: 1.5rem 1.3rem 1.5rem; }
  .quiz-row { grid-template-columns: 84px minmax(0, 1fr); } .quiz-art { width: 84px; height: 84px; }
  .carry .pic { height: 140px; }
  .letter form, .letter input { width: 100%; }
}

/* MailerLite embedded form, restyled to sit in the signup band (its own heading is hidden: ours says it) */
.letter .ml-embedded { flex: 0 1 420px; min-width: 0; }
.letter .ml-form-embedContent { display: none !important; }
.letter .ml-form-embedWrapper, .letter .ml-form-embedBody { background: transparent !important; padding: 0 !important; border: 0 !important; width: 100% !important; max-width: 100% !important; }

/* ---------- Christmas season (25 Nov 2026): the Big Book band replaces the welcome line. Remove after Christmas. ---------- */
.xmas-band .em-wrap.xb { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem; align-items: center; text-align: left; padding-block: 1.6rem 4.6rem; max-width: 900px; }
.xb-cover img { width: 150px; height: auto; display: block; border-radius: 6px; box-shadow: 0 12px 28px rgba(30,42,74,.25); transform: rotate(-3deg); }
.xb-text .eyebrow { display: inline-block; margin-bottom: .3rem; }
.xmas-band h1 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
.xmas-band .xb-text p { white-space: normal; max-width: 560px; margin-top: .55rem; }
.xb-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: 1rem; }
.xb-price { font-size: .98rem; color: var(--muted); }
.xb-price b { font-family: var(--font-display); font-size: 1.35rem; color: var(--coral-ink); }
@media (max-width: 760px) {
  .xmas-band .em-wrap.xb { grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; padding-block: 1.2rem 4.4rem; align-items: start; }
  .xb-cover img { width: 84px !important; }
  .xmas-band .xb-text p { font-size: .95rem; }
}
