/* =====================================================================
   Harvest Chapel Tri-County - main stylesheet
   ---------------------------------------------------------------------
   CHANGE LOG
   2026-11-30  New stylesheet for the plain HTML site (replaces the
               WordPress theme). Harvest green + wheat gold palette.
   ---------------------------------------------------------------------
   SECTIONS
     1. Colors and fonts (change the look here)
     2. Base page
     3. Header and navigation
     4. Home: welcome band with the field picture and countdown
     5. Latest message
     6. Message lists (home "recent", archive pages)
     7. Single message page
     8. Plan your visit / about / contact
     9. Footer
    10. Phones and small screens
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. COLORS AND FONTS
   --------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --field: #22391f;        /* deep harvest green - main brand color   */
  --field-2: #2f4c2a;      /* lighter green for hover / panels         */
  --wheat: #e4b24c;        /* wheat gold - accent                      */
  --wheat-deep: #a8741a;   /* darker gold for text on white            */
  --paper: #ffffff;        /* page background                          */
  --wash: #f4f1ea;         /* soft band background                     */
  --ink: #1b2419;          /* main text                                */
  --muted: #5d6658;        /* secondary text                           */
  --line: #e2ddd1;         /* thin borders                             */
  --radius: 14px;
  --head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --verse: "Lora", Georgia, serif;
  --max: 1180px;
}


/* ---------------------------------------------------------------------
   2. BASE PAGE
   --------------------------------------------------------------------- */
* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--field-2); text-underline-offset: 3px; }
a:hover { color: var(--wheat-deep); }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(4vw, 18px); }
.band { padding: clamp(40px, 6vw, 80px) 0; }
.band.wash { background: var(--wash); }
.kicker { font: 600 15px/1.3 var(--head); color: var(--wheat-deep); margin: 0 0 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font: 600 16px var(--head); text-decoration: none;
  background: var(--wheat); color: #23180a; border: 2px solid var(--wheat);
}
.btn:hover { background: #f0c464; color: #23180a; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover { background: rgba(255,255,255,.12); color: inherit; }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 2px; }
.verse { font: italic 19px/1.55 var(--verse); margin: 0; }
.verse cite { display: block; margin-top: 8px; font: 600 14px var(--head); font-style: normal; color: var(--wheat-deep); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }


/* ---------------------------------------------------------------------
   3. HEADER AND NAVIGATION
   --------------------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 48px; height: auto; }
.brand b { display: block; font: 700 20px/1.1 var(--head); }
.brand span { display: block; font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav a {
  flex: none; padding: 10px 14px; border-radius: 999px;
  font: 600 15px var(--head); color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav a:hover { background: var(--wash); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--field); color: #fff; }


/* ---------------------------------------------------------------------
   4. HOME: WELCOME BAND WITH THE FIELD PICTURE AND COUNTDOWN
   --------------------------------------------------------------------- */
.hero { position: relative; color: #fff; background: var(--field); overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .wrap { position: relative; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(180px, 22vw, 260px); }
.hero h1 { max-width: 13ch; }
.hero .lede { font-size: 20px; max-width: 34ch; margin: 0 0 28px; color: #f6efdf; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.next {
  margin-top: 34px; display: inline-grid; gap: 6px;
  padding: 18px 22px; border-radius: var(--radius);
  background: rgba(20, 33, 18, .72); border: 1px solid rgba(228,178,76,.45);
}
.next .label { font: 600 14px var(--head); color: var(--wheat); }
.next .what { font: 600 18px var(--head); }
.clock { display: flex; gap: 14px; font-variant-numeric: tabular-nums; }
.clock div { text-align: center; }
.clock b { display: block; font: 700 clamp(28px, 4vw, 40px)/1 var(--head); }
.clock small { font-size: 12px; color: #d9d2bf; }
.next .now { font: 700 22px var(--head); color: var(--wheat); }


/* ---------------------------------------------------------------------
   5. LATEST MESSAGE
   --------------------------------------------------------------------- */
.latest { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #111; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .novideo { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; padding: 20px; }
.meta { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
audio { width: 100%; margin: 6px 0 16px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links .btn { min-height: 42px; font-size: 15px; }
.links .btn.ghost { color: var(--field); }
.links .btn.ghost:hover { background: var(--wash); }


/* ---------------------------------------------------------------------
   6. MESSAGE LISTS
   --------------------------------------------------------------------- */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a.row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 14px 6px; text-decoration: none; color: var(--ink);
}
.list a.row:hover { background: var(--wash); }
.row time { font: 600 14px var(--head); color: var(--muted); white-space: nowrap; }
.row .t { font-weight: 600; }
.row .s { display: block; font-size: 14px; color: var(--muted); }
.tag { font: 600 12px var(--head); padding: 4px 10px; border-radius: 999px; background: var(--wash); color: var(--field-2); white-space: nowrap; }
.tag.friday { background: #fbefd4; color: #7b5310; }
.tag.memory { background: #e6efe3; color: #2c4a27; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 22px; }
.tools input, .tools select {
  font: 16px var(--body); min-height: 46px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.tools input { flex: 1 1 260px; }
.count { color: var(--muted); font-size: 15px; margin-left: auto; }
.year { font: 700 22px var(--head); margin: 34px 0 6px; color: var(--field); }
.empty { padding: 30px 0; color: var(--muted); }


/* ---------------------------------------------------------------------
   7. SINGLE MESSAGE PAGE
   --------------------------------------------------------------------- */
.crumbs { font-size: 15px; margin: 0 0 14px; }
.msg-head { max-width: 820px; }
.msg-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; margin-top: 28px; align-items: start; }
.panel { background: var(--wash); border-radius: var(--radius); padding: 22px; }
.prevnext { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; flex-wrap: wrap; }


/* ---------------------------------------------------------------------
   8. PLAN YOUR VISIT / ABOUT / CONTACT
   --------------------------------------------------------------------- */
.times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0 0 34px; }
.time { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 22px; border-radius: var(--radius); background: var(--field); color: #fff; }
.time b { font: 700 clamp(34px, 4vw, 46px)/1 var(--head); color: var(--wheat); white-space: nowrap; }
.time span { font: 600 18px/1.3 var(--head); }
.time small { display: block; font: 400 15px var(--body); color: #d9d2bf; }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 40px; }
.faq h3 { margin-bottom: 6px; }
.faq p { margin: 0; }
.pastor { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: center; }
.pastor img { width: 260px; height: 260px; object-fit: cover; border-radius: var(--radius); box-shadow: 10px 10px 0 var(--wheat); }
.contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact b { display: block; font: 600 14px var(--head); color: var(--muted); margin-bottom: 4px; }
.contact a, .contact span { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.prose { max-width: 760px; }
.prose p { margin: 0 0 1.1em; }
.beliefs { counter-reset: b; list-style: none; padding: 0; margin: 0; }
.beliefs li { position: relative; padding: 0 0 22px 46px; }
.beliefs li::before {
  counter-increment: b; content: counter(b);
  position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--field); color: var(--wheat); font: 700 15px var(--head);
}
.beliefs .refs { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }


/* ---------------------------------------------------------------------
   9. FOOTER
   --------------------------------------------------------------------- */
.site-foot { background: var(--field); color: #e9e4d6; padding: 48px 0 30px; }
.site-foot a { color: #fff; }
.site-foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.site-foot h3 { color: var(--wheat); font-size: 17px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: 0 0 6px; }
.site-foot .fine { margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: 14px; color: #bfc8b8; }


/* ---------------------------------------------------------------------
   10. PHONES AND SMALL SCREENS
   --------------------------------------------------------------------- */
@media (max-width: 900px) {
  .latest, .msg-body { grid-template-columns: minmax(0, 1fr); }
  .site-foot .cols { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .site-head .wrap { flex-wrap: wrap; gap: 4px; padding-top: 8px; }
  .nav { width: 100%; margin: 0 0 6px; }
  .times, .faq { grid-template-columns: minmax(0, 1fr); }
  .pastor { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .pastor img { width: 200px; height: 200px; }
  .list a.row { grid-template-columns: minmax(0, 1fr) auto; }
  .list a.row time { grid-column: 1 / -1; }
  .hero .wrap { padding-bottom: 150px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art .sway { transform-origin: bottom; animation: sway 6s ease-in-out infinite alternate; }
  @keyframes sway { from { transform: skewX(-2deg); } to { transform: skewX(2deg); } }
}
