/* ============================================================================
   Harvest — a Chinese-speaking congregation, designed Chinese-first.
   ----------------------------------------------------------------------------
   Every other template here sets a Latin display face and lets CJK fall through
   to whatever the reader's system happens to have. This one is the other way
   round: the display face is a CJK serif, the measure is set for characters
   rather than words, and the tracking token is zero from the start rather than
   corrected afterwards. A large share of the ministries this service talks to
   are Chinese-speaking, and showing them a design that was clearly drawn for
   English and then fitted with Chinese is showing them the problem they came
   to solve.

   Vermilion and old gold on warm paper: the colours of a couplet on a door,
   not the colours of a Western church. Palette matches the `harvest` row in
   ministry_templates — the swatches sit beside it on the card.
   ========================================================================== */

.demo-body--harvest {
  --paper: #fcf8f2;
  --paper-2: #f2e7d8;
  --vermilion: #9e2b2b;   /* 7.1:1 on the paper */
  --vermilion-2: #7d1f1f;
  --gold: #a9803a;
  --ink: #1f1b18;
  --ink-soft: #554d45;    /* 7.4:1 on the paper */
  --line: rgba(31, 27, 24, 0.14);

  /* The token that everything else in this project has to be reminded about.
     Here it starts at zero, because the design starts in Chinese. */
  --track-label: 0;

  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", SimSun, serif;
  font-size: 17px;
  line-height: 1.95;
}
.demo-body--harvest:lang(en) { line-height: 1.7; }

.hv-shell { width: 100%; max-width: 1060px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

.hv-label, .hv-nav, .hv-button, .hv-meta, .hv-link, .hv-foot h3 {
  font-family: "Inter", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

h1, h2, h3 { font-weight: 600; line-height: 1.45; }

.hv-label {
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--vermilion);
}
.hv-label--light { color: #eec98d; }

.hv-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0.55rem 1.7rem;
  border: 1px solid var(--vermilion); border-radius: 2px;
  background: var(--vermilion); color: #fff;
  font-size: 0.92rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.hv-button:hover { background: var(--vermilion-2); border-color: var(--vermilion-2); }
.hv-button--sm { min-height: 40px; padding: 0.35rem 1.1rem; font-size: 0.85rem; }
.hv-button--ghost { background: transparent; color: var(--vermilion); }
.hv-button--ghost:hover { background: rgba(158, 43, 43, 0.08); color: var(--vermilion); }
.hv-button--light { background: #f6e3c4; border-color: #f6e3c4; color: #2b1d10; }
.hv-button--light:hover { background: #fff; border-color: #fff; }

.hv-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.88rem; font-weight: 600; color: var(--vermilion);
  text-decoration: none; border-bottom: 1px solid rgba(158, 43, 43, 0.35);
}
.hv-link:hover { border-bottom-color: currentColor; }
.hv-link--light { color: #eec98d; border-bottom-color: rgba(238, 201, 141, 0.45); }

/* ── Masthead ──────────────────────────────────────────────────────────────
   Both names stacked, the way a diaspora congregation's sign board is set:
   the Chinese large, the English under it in small caps. Not a translation
   bolted on — a bilingual lockup, which is what these churches actually use. */

.hv-header { border-bottom: 2px solid var(--vermilion); background: rgba(252, 248, 242, 0.95); backdrop-filter: blur(8px); }
.hv-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 88px; }
.hv-brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: inherit; min-height: 44px; }
.hv-seal { width: 42px; height: 42px; flex: none; color: var(--vermilion); }
.hv-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.hv-brand__zh { font-size: 1.35rem; font-weight: 700; }
.hv-brand__en {
  font-family: "Inter", sans-serif;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: var(--track-label, 0.18em);
  text-transform: uppercase; color: var(--ink-soft);
}
.hv-nav { display: flex; gap: 1.5rem; margin-inline-start: auto; font-size: 0.9rem; }
.hv-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink-soft); }
.hv-nav a:hover { color: var(--vermilion); }
@media (max-width: 900px) {
  .hv-header__inner { flex-wrap: wrap; gap: 0.5rem 1rem; justify-content: space-between; }
  .hv-brand { flex: 1 0 100%; }
  .hv-nav { gap: 0.9rem; font-size: 0.86rem; flex-wrap: wrap; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hv-hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.hv-hero__inner { position: relative; max-width: 44rem; }
.hv-hero__title { font-size: clamp(2.1rem, 5.5vw, 3.4rem); margin-bottom: 1.2rem; }
.hv-hero__lede { color: var(--ink-soft); font-size: 1.05rem; }
.hv-hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* The couplet rule: a thin vermilion band down the left of the hero, the way a
   printed Chinese page marks a heading. */
.hv-hero__inner { padding-inline-start: 1.4rem; border-inline-start: 4px solid var(--vermilion); }

.hv-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.hv-times > div { padding: 1.4rem 0.25rem; }
.hv-times > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 1.4rem; }
.hv-times dt { font-family: "Inter", sans-serif; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 0.35rem; }
.hv-times dd { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.hv-times dd strong { display: block; font-size: 1.5rem; font-weight: 600; color: var(--ink); }
@media (max-width: 760px) { .hv-times > div + div { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0.25rem; } }

/* ── Sections ────────────────────────────────────────────────────────────── */

.hv-section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.hv-section--tint { background: var(--paper-2); }
.hv-head { max-width: 42rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.hv-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.hv-head__lede { margin-top: 0.8rem; color: var(--ink-soft); }

.hv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 880px) { .hv-split { grid-template-columns: 1fr; } }
.hv-prose p + p { margin-top: 1rem; }
.hv-prose p { color: var(--ink-soft); }

/* ── The sermon, with its player ─────────────────────────────────────────── */

.hv-sermon { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; padding: clamp(1.1rem, 2.5vw, 1.75rem); border: 1px solid var(--line); background: #fffdf9; }
@media (max-width: 800px) { .hv-sermon { grid-template-columns: 1fr; } }
.hv-sermon__art { position: relative; margin: 0; overflow: hidden; }
.hv-sermon__art img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hv-sermon__stamp {
  position: absolute; inset-block-start: 0.7rem; inset-inline-start: 0.7rem;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  background: var(--vermilion); color: #fff; font-size: 0.82rem; font-weight: 700;
}
.hv-sermon__body h3 { font-size: clamp(1.3rem, 2.7vw, 1.8rem); margin-bottom: 0.35rem; }
.hv-meta { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 1.1rem; }
.hv-play { display: flex; align-items: center; gap: 0.9rem; }
.hv-play__btn { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--vermilion); color: #fff; text-decoration: none; transition: transform 0.2s ease; }
.hv-play__btn:hover { transform: scale(1.05); }
.hv-play__btn svg { width: 16px; height: 16px; margin-inline-start: 3px; }
.hv-play__rail { flex: 1; min-width: 0; }
.hv-play__bar { position: relative; height: 3px; background: rgba(158, 43, 43, 0.2); }
.hv-play__bar span { position: absolute; inset: 0 auto 0 0; width: 37%; background: var(--vermilion); }
.hv-play__time { display: flex; justify-content: space-between; margin-top: 0.45rem; font-family: "Inter", sans-serif; font-size: 0.72rem; color: var(--ink-soft); }
.hv-sermon__links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; }

.hv-list { border-top: 1px solid var(--line); }
.hv-list li { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; gap: clamp(0.9rem, 3vw, 2rem); align-items: baseline; padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
.hv-list__when { font-family: "Inter", sans-serif; font-size: 0.78rem; font-weight: 700; color: var(--vermilion); }
.hv-list h3 { font-size: 1.08rem; margin-bottom: 0.15rem; }
.hv-list__note { font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 700px) { .hv-list li { grid-template-columns: 1fr; gap: 0.2rem; } }

/* ── Fellowship groups, people, map ──────────────────────────────────────── */

.hv-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.hv-groups li { padding-inline-start: 1.1rem; border-inline-start: 3px solid var(--gold); }
.hv-groups h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.hv-groups p { font-size: 0.92rem; color: var(--ink-soft); }

.hv-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
.hv-people__seal { display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: 0.8rem; background: var(--vermilion); color: #fff; font-size: 1.35rem; font-weight: 700; }
.hv-people h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.hv-people__role { font-family: "Inter", sans-serif; font-size: 0.72rem; font-weight: 700; color: var(--vermilion); margin-bottom: 0.4rem; }
.hv-people p { font-size: 0.9rem; color: var(--ink-soft); }

.hv-find { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 860px) { .hv-find { grid-template-columns: 1fr; } }
.hv-map { border: 1px solid var(--line); background: var(--paper-2); }
.hv-map svg { display: block; width: 100%; height: auto; }
.hv-find dl { display: grid; gap: 1.1rem; margin: 0; }
.hv-find dt { font-family: "Inter", sans-serif; font-size: 0.74rem; font-weight: 700; color: var(--vermilion); margin-bottom: 0.2rem; }
.hv-find dd { margin: 0; color: var(--ink-soft); }

/* ── Giving ──────────────────────────────────────────────────────────────── */

.hv-give { padding-block: clamp(3rem, 7vw, 5rem); background: #2c1a17; color: #f3e9df; }
.hv-give__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 780px) { .hv-give__inner { grid-template-columns: 1fr; } }
.hv-give h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.8rem; }
.hv-give p { color: #cdbcae; }
.hv-sums { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }
.hv-sum { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 4.6rem; padding: 0.4rem 1rem; border: 1px solid rgba(243, 233, 223, 0.42); color: #f3e9df; font-family: "Inter", sans-serif; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
.hv-sum:hover, .hv-sum.is-on { background: #f6e3c4; border-color: #f6e3c4; color: #2b1d10; }
.hv-give__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.hv-foot { padding-block: clamp(2.5rem, 5vw, 4rem); background: var(--paper-2); border-top: 2px solid var(--vermilion); }
.hv-signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; padding-bottom: clamp(2rem, 4vw, 3rem); margin-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
@media (max-width: 820px) { .hv-signup { grid-template-columns: 1fr; } }
.hv-signup h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); margin-bottom: 0.4rem; }
.hv-signup p { color: var(--ink-soft); font-size: 0.92rem; }
.hv-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hv-form input { flex: 1 1 13rem; min-height: 48px; padding: 0.5rem 0.9rem; border: 1px solid var(--line); background: #fffdf9; color: var(--ink); font-family: "Inter", sans-serif; font-size: 0.94rem; }
.hv-form input:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 1px; }
.hv-form__note { flex: 1 0 100%; font-family: "Inter", sans-serif; font-size: 0.75rem; color: var(--ink-soft); }
.hv-foot__cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: start; font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 900px) { .hv-foot__cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); } }
.hv-foot h3 { font-size: 0.74rem; font-weight: 700; color: var(--vermilion); margin-bottom: 0.55rem; }
.hv-foot ul { display: grid; gap: 0.35rem; }
.hv-foot li a { color: inherit; text-decoration: none; }
.hv-foot li a:hover { color: var(--vermilion); }
.hv-foot__name { display: flex; align-items: center; gap: 0.6rem; font-size: 1.1rem; color: var(--ink); margin-bottom: 0.7rem; }
.hv-foot__name svg { width: 30px; height: 30px; color: var(--vermilion); flex: none; }
.hv-social { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.hv-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); color: var(--ink-soft); transition: border-color 0.2s ease, color 0.2s ease; }
.hv-social a:hover { border-color: var(--vermilion); color: var(--vermilion); }
.hv-social svg { width: 17px; height: 17px; }
.hv-foot__base { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); padding-top: 1.2rem; border-top: 1px solid var(--line); font-family: "Inter", sans-serif; font-size: 0.76rem; color: var(--ink-soft); }
.hv-foot__base a { color: inherit; }
