/* ============================================================================
   Field — one missionary, one story, told in order.

   Mission is a fellowship reporting on three regions; this is one family, and
   the difference matters. A supporter deciding whether to back a person reads
   top to bottom — who, where, why, what happened, how to help — so the page is
   a single column with no sidebar and nothing to choose between.

   Narrow measure, large first line, and a rule between each movement. The
   photographs are wide and infrequent: this template is a letter, and a letter
   with a picture every paragraph is a brochure.
   ========================================================================== */

.demo-body--field {
  --paper: #fbf9f5;
  --paper-2: #f2ede4;
  --ink: #1e1b16;
  --ink-soft: #595247;
  --ink-mid: #5d554a;
  --line: rgba(30, 27, 22, 0.14);
  --accent: #7c5322;

  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  font-size: 17px;
  line-height: 1.72;
}
.demo-body--field h1,
.demo-body--field h2,
.demo-body--field h3 {
  font-family: "Lora", Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", SimSun, serif;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: var(--track-label, -0.01em);
}

.f-shell { width: min(100% - 2.5rem, 42rem); margin-inline: auto; }
.f-shell--wide { width: min(100% - 2.5rem, 66rem); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.f-header { padding-block: 1.4rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.f-header__inner { display: flex; align-items: baseline; gap: 1.6rem; flex-wrap: wrap; }
.f-brand { margin-inline-end: auto; color: var(--ink); font-family: "Lora", Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", SimSun, serif; font-size: 1.15rem; text-decoration: none; }
.f-brand span { color: var(--ink-mid); font-family: inherit; font-size: 0.8rem; }
.f-nav { display: flex; gap: 1.3rem; }
.f-nav a { color: var(--ink-mid); font-size: 0.88rem; text-decoration: none; }
.f-nav a:hover { color: var(--accent); }

/* ── Opening ────────────────────────────────────────────────────────────── */
.f-open { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3rem); }
.f-kicker {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--track-label, 0.2em);
  text-transform: uppercase;
  color: var(--accent);
}
.f-title { margin: 0 0 1.4rem; font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
/* The first paragraph is set larger — a letter has an opening line. */
.f-lede { margin: 0; color: var(--ink-mid); font-size: 1.2rem; line-height: 1.6; }

/* ── Body ───────────────────────────────────────────────────────────────── */
.f-section { padding-block: clamp(2rem, 5vw, 3.25rem); }
.f-section--tint { background: var(--paper-2); }
.f-section + .f-section { border-top: 1px solid var(--line); }
.f-head { margin: 0 0 0.8rem; font-size: clamp(1.35rem, 3vw, 1.85rem); }
.f-prose { max-width: 38rem; }
.f-prose p + p { margin-top: 1.1rem; }
.f-prose p + h2 { margin-top: 2.2rem; }
.f-prose h2 { margin-bottom: 0.5rem; font-size: clamp(1.3rem, 2.6vw, 1.75rem); }

.f-note {
  margin: 2rem 0 0;
  padding: 1.1rem 1.3rem;
  border-inline-start: 3px solid var(--accent);
  background: var(--paper-2);
  color: var(--ink-mid);
  font-size: 0.96rem;
}

.f-facts { margin: 1.6rem 0 0; padding: 0; list-style: none; }
.f-facts li { display: flex; gap: 1rem; padding-block: 0.75rem; border-top: 1px solid var(--line); }
.f-facts li:last-child { border-bottom: 1px solid var(--line); }
.f-facts dt, .f-facts strong { flex: 0 0 9rem; font-weight: 600; }
.f-facts span { color: var(--ink-mid); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.f-button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--accent);
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 0.92rem;
  text-decoration: none;
}
.f-button:hover { background: #63411a; border-color: #63411a; }
.f-button--ghost { background: transparent; color: var(--accent); }
.f-button--ghost:hover { background: rgba(124, 83, 34, 0.09); }
.f-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.f-footer { padding-block: clamp(2.5rem, 6vw, 3.5rem); border-top: 1px solid var(--line); background: var(--paper-2); color: var(--ink-mid); font-size: 0.92rem; }
.f-footer__name { color: var(--ink); font-family: "Lora", Georgia, "Songti SC", "Source Han Serif SC", "Noto Serif CJK SC", "STSong", SimSun, serif; font-size: 1.05rem; }
.f-footer a { color: var(--accent); }

/* Nav links need a real touch target. At 24px they failed the 40px floor the
   visual check enforces, and on a phone a 24px link is a link you miss. */
.f-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.f-brand { display: inline-flex; align-items: center; min-height: 44px; }

/* ============================================================================
   Field — the blocks one missionary family's site needs.
   A single reading column throughout: the components are set in that column
   rather than beside it, because a supporter reads this page top to bottom.
   ========================================================================== */

.f-latest { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(1.5rem, 3vw, 2.25rem); }
.f-latest__n { font-size: 0.7rem; font-weight: 700; letter-spacing: var(--track-label, 0.16em); text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.f-latest h3 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); margin-bottom: 0.35rem; }
.f-latest__ref { color: var(--ink-soft); margin-bottom: 1.2rem; }
.f-play { display: flex; align-items: center; gap: 0.9rem; }
.f-play__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; flex: none; border-radius: 50%;
  background: var(--accent); color: var(--paper); text-decoration: none;
  transition: opacity 0.2s ease;
}
.f-play__btn:hover { opacity: 0.85; }
.f-play__btn svg { width: 15px; height: 15px; margin-inline-start: 2px; }
.f-play__rail { flex: 1; min-width: 0; }
.f-play__bar { position: relative; height: 3px; background: rgba(124, 83, 34, 0.2); }
.f-play__bar span { position: absolute; inset: 0 auto 0 0; width: 38%; background: var(--accent); }
.f-play__time { display: flex; justify-content: space-between; margin-top: 0.45rem; font-size: 0.74rem; color: var(--ink-soft); }
.f-latest__links { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 1rem; }

.f-diary { border-top: 1px solid var(--line); }
.f-diary li {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem); align-items: baseline;
  padding-block: 1.15rem; border-bottom: 1px solid var(--line);
}
.f-diary__when { font-size: 0.74rem; font-weight: 700; letter-spacing: var(--track-label, 0.1em); text-transform: uppercase; color: var(--accent); }
.f-diary h3 { font-size: 1.08rem; margin-bottom: 0.15rem; }
.f-diary__note { font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 640px) { .f-diary li { grid-template-columns: 1fr; gap: 0.2rem; } }

.f-sums { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 1.2rem; }
.f-sum {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 4.6rem; padding: 0.4rem 1rem;
  border: 1px solid var(--line); color: var(--ink);
  font-size: 0.92rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.f-sum:hover, .f-sum.is-on { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.f-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) { .f-signup { grid-template-columns: 1fr; } }
.f-signup h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin-bottom: 0.4rem; }
.f-signup p { color: var(--ink-soft); font-size: 0.92rem; }
.f-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.f-form input {
  flex: 1 1 13rem; min-height: 48px; padding: 0.5rem 0.9rem;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 0.95rem;
}
.f-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.f-form__note { flex: 1 0 100%; font-size: 0.75rem; color: var(--ink-soft); }
.f-footer__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) { .f-footer__cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); } }
.f-footer__cols h3 { font-size: 0.68rem; font-weight: 700; letter-spacing: var(--track-label, 0.14em); text-transform: uppercase; color: var(--accent); margin-bottom: 0.55rem; }
.f-footer__cols ul { display: grid; gap: 0.4rem; }
.f-footer__cols li a { color: inherit; text-decoration: none; }
.f-footer__cols li a:hover { color: var(--ink); }
.f-social { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.f-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.f-social a:hover { border-color: var(--accent); color: var(--accent); }
.f-social svg { width: 17px; height: 17px; }
.f-footer__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-size: 0.76rem; color: var(--ink-soft);
}
.f-footer__base a { color: inherit; }
.f-seal { display: inline-flex; width: 34px; height: 34px; color: var(--accent); vertical-align: middle; margin-inline-end: 0.5rem; }

/* Caught by demo-class-test.php: the letter's three links were written with a
   class this stylesheet had never defined, so they rendered as bare browser
   links inside a component built to look finished. Exactly the failure that
   check exists for. */
.f-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(124, 83, 34, 0.35);
}
.f-link:hover { border-bottom-color: currentColor; }

/* ── Sermons ──────────────────────────────────────────────────────────────
   Field is one family telling one story in order, so the list is plain and
   close-set — a page from a newsletter, not a catalogue. */
.f-sermons { display: grid; gap: 1.6rem; }
.f-sermon { padding-left: 0.9rem; border-left: 2px solid rgba(120, 96, 62, 0.3); }
.f-sermon__series { margin: 0 0 0.25rem; font-size: 0.8rem; opacity: 0.66; }
.f-sermon__title { margin: 0 0 0.2rem; font-size: 1.22rem; line-height: 1.35; }
.f-sermon__ref { margin: 0; font-size: 0.88rem; opacity: 0.76; }
