/*
 * 石牌教會全站主題｜聖經元素表色彩與排版
 * 對照來源：bible.html 的暖白、棕色頁首、灰綠按鈕與 system-ui 字型。
 * 本檔最後載入，不改動內容順序、首頁三欄、海報無框及影片比例。
 */
:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #403f3b;
  --muted: #626965;
  --line: #d9dfdc;
  --soft: #f0f2ef;
  --deep: #574935;
  --accent: #586f67;
  --radius: 14px;
  --body: system-ui, "Noto Sans TC", sans-serif;
  --serif: system-ui, "Noto Sans TC", sans-serif;
  --text-size: 16px;
  --bible-mauve: #ad929e;
  --bible-blue: #8da2b8;
  --bible-taupe: #c09e89;
  --bible-sage: #98a391;
}
.home-page { --radius: 14px; }

html { color-scheme: light; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--text-size);
  line-height: 1.78;
  letter-spacing: .012em;
}
button, input, textarea, select { font-family: var(--body); }
::selection { background: #d8e1dc; color: var(--ink); }

h1, h2, h3, h4, h5, h6,
.testimony-list-number, .card-number {
  font-family: var(--body);
  letter-spacing: .015em;
}
h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.3;
}
h2 {
  font-size: clamp(25px, 2.8vw, 32px);
  font-weight: 600;
  line-height: 1.35;
}
h3 {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.45;
}
.eyebrow, .section-kicker {
  color: var(--accent);
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: .10em;
}
.hero-copy, .section-head p, .panel p, .resource-card p,
.news-item span:last-child, .belief-list p {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.8;
}
.scripture-ref { color: var(--muted); }
.section, .footer, .info-list div, .online-schedule {
  border-color: var(--line);
}

/* 與聖經元素表一致的深棕導覽列；保留原本的標誌圖形。 */
.site-header {
  background: #574935;
  color: #fbfaf7;
  border-bottom-color: #574935;
  backdrop-filter: none;
}
.brand-logo {
  filter: brightness(0) invert(1);
  opacity: .96;
}
.site-header .nav > a,
.site-header .nav-trigger {
  color: #f3eee6;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .025em;
}
.site-header .nav > a:hover,
.site-header .nav-trigger:hover,
.site-header .nav > a[aria-current="page"],
.site-header .nav .is-current {
  color: #ffffff;
}
.site-header .submenu {
  background: #ffffff;
  border-color: var(--line);
  box-shadow: 0 14px 34px rgba(64, 63, 59, .12);
}
.site-header .submenu a,
.site-header .submenu-trigger {
  color: var(--ink);
  font-size: 16px;
}
.site-header .submenu a:hover,
.site-header .submenu-trigger:hover {
  background: var(--soft);
  color: var(--accent);
}
.menu-button span { background: #fbfaf7; }

/* 保留原網站的文字連結式按鈕，改用聖經元素表灰綠色。 */
a.button, button.button,
a.button.primary, a.button.ghost,
button.button.primary, button.button.ghost {
  color: #4c5e57;
  border-bottom-color: #586f67;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .01em;
}
a.button:hover, button.button:hover,
.text-link:hover, .card-link:hover { color: #574935; }
.text-link, .card-link, .detail-back-link {
  color: var(--accent);
  font-size: 15px;
}

/* 保留既有卡片與欄位結構，只統一配色與內文層級。 */
.panel, .resource-card, .news-item, .belief-list article,
.blog-card, .detail-article, .notice-panel {
  background: var(--paper);
  border-color: var(--line);
}
.faith-card { background: var(--paper); }
.home-page .home-video-hero { background: var(--soft); }
.home-page .home-three-columns .faith-card-head h3 {
  color: var(--ink);
  font-size: clamp(21px, 1.9vw, 25px);
  font-weight: 600;
}
.home-page .faith-card-body,
.home-page .reading-preview {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.85;
}
.home-page .faith-card-body .date,
.home-page .live-status {
  color: var(--muted);
  font-size: 14.5px;
}
.home-page .online-schedule div {
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.75;
}
.home-page .hero-carousel-status { color: var(--muted); font-size: 14px; }
.home-page .hero-carousel-controls button { color: var(--accent); }
.home-page .home-scripture h2 {
  color: var(--ink);
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 500;
  line-height: 1.75;
  text-wrap: balance;
}
.home-page .home-scripture .scripture-ref {
  color: var(--muted);
  font-size: 16px;
}
.testimony-list-number { color: var(--bible-mauve); font-size: 20px; }
.testimony-list-copy strong { font-size: clamp(19px, 1.6vw, 23px); }
.testimony-list-copy span, .testimony-list-action,
.blog-card .meta, .source-note, .subnav-line {
  color: var(--muted);
  font-size: 14px;
}
.schedule-table th { color: var(--accent); font-size: 15px; }
.schedule-table td { font-size: 16px; }
.contact-form label, .search-field { color: var(--ink); font-size: 15px; }
.contact-form input, .contact-form textarea, .search-field input {
  font-size: 16px;
  background: #ffffff;
  color: var(--ink);
  border-color: #c9cfcc;
}
.contact-note { color: var(--muted); font-size: 15px; }
/* Unified coffee footer: same surface as the top navigation. */
body .footer {
  width:100%;
  max-width:none;
  box-sizing:border-box;
  background-color:#574935;
  color:#ffffff;
  font-size:14.5px;
  padding-left:max(20px,calc((100% - 1120px)/2));
  padding-right:max(20px,calc((100% - 1120px)/2));
  border-top:0;
}
body .footer strong,body .footer p,body .footer small,
body .footer a,body .footer a:visited { color:#ffffff; }
body .footer strong { font-weight:600; }
body .footer-links a:hover,body .footer a:hover { color:#ffffff; text-decoration:underline; text-underline-offset:4px; }
body .footer a:focus-visible { outline-color:#ffffff; }

/* 各頁的鍵盤操作與表單也使用一致的可辨識焦點。 */
:where(a, button, input, textarea, select):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .site-header .nav,
  .site-header .nav.is-open {
    background: #ffffff;
    color: var(--ink);
    border-color: var(--line);
  }
  .site-header .nav > a,
  .site-header .nav-trigger,
  .site-header .nav > a[aria-current="page"],
  .site-header .nav .is-current { color: var(--ink); }
  .site-header .nav > a:hover,
  .site-header .nav-trigger:hover { color: var(--accent); }
  .site-header .submenu { background: transparent; box-shadow: none; }
}

@media (max-width: 600px) {
  h1 { font-size: clamp(28px, 8vw, 34px); }
  h2 { font-size: clamp(23px, 6vw, 28px); }
  h3 { font-size: 21px; }
  .hero-copy { font-size: 16px; }
  .home-page .home-scripture h2 {
    font-size: clamp(19px, 5.15vw, 21px);
    line-height: 1.75;
  }
  .home-page .home-scripture .scripture-ref { font-size: 15px; }
  .home-page .home-three-columns .faith-card-head h3 { font-size: 22px; }
  .home-page .faith-card-body, .home-page .reading-preview { font-size: 16px; }
  .home-page .online-schedule div { font-size: 15px; }
  .home-page .faith-card .button, .home-page .visit-section .button { font-size: 16px; }
  .footer { font-size: 14px; }
}