/* LCM Kota Lutheran Church - site styles
   Paper and ink, a crimson taken from the Luther rose, 1px rules instead of shadows. */
:root {
  --paper: #f3ede1;
  --paper-2: #e9e0cf;
  --sheet: #faf6ee;
  --ink: #24211c;
  --muted: #625b4f;
  --rule: #d4c8b3;
  --rule-strong: #b3a387;
  --accent: #9b2a26;
  --accent-ink: #7a1f1c;
  --blue: #23466f;
  --serif: "EB Garamond", "Noto Serif SC", "Songti SC", serif;
  --sans: "Source Sans 3", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
}
:lang(zh) body, body:lang(zh) { font-size: 16.5px; line-height: 1.9; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(36px, 5.2vw, 60px); letter-spacing: -.01em; }
.h1-pre { display: block; font-size: .46em; letter-spacing: .04em; color: var(--muted); margin-bottom: .2em; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); }
:lang(en) .hero h1 { font-size: clamp(40px, 5vw, 64px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 21px; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { font-weight: 700; letter-spacing: .02em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--sheet); padding: 8px 12px; border: 1px solid var(--ink); z-index: 10; }

/* ---------- buttons and links */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fbf5ea;
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 11px 22px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fbf5ea; }
.btn-line { background: transparent; color: var(--accent); }
.btn-line:hover { background: var(--accent); color: #fbf5ea; }
.more { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 28px; }

/* ---------- header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; }
.brand-name { display: block; font-family: "Noto Serif SC", var(--serif); font-weight: 700; font-size: 19px; line-height: 1.2; color: var(--ink); }
.brand-sub { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); line-height: 1.4; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15.5px; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule-strong); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav .lang { border: 1px solid var(--rule-strong); padding: 3px 10px; border-radius: 2px; font-size: 14px; }
.nav .lang:hover { border-color: var(--ink); }
.nav .btn { color: #fbf5ea; border-bottom: 1px solid var(--accent); padding: 9px 18px; font-size: 15px; }
.menu { display: none; }
.menu summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 6px 14px;
  font-size: 15px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--ink); }
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 80px;
  background: var(--sheet);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 8px var(--gutter) 24px;
  z-index: 5;
}
.menu-panel ul { list-style: none; margin: 0 0 18px; padding: 0; }
.menu-panel li { border-bottom: 1px solid var(--rule); }
.menu-panel li a { display: block; padding: 13px 0; color: var(--ink); text-decoration: none; font-size: 17px; }
.menu-panel li a[aria-current="page"] { color: var(--accent); }
.menu-panel .menu-foot { display: flex; gap: 16px; align-items: center; }
.site-header { position: relative; }

/* ---------- hero (home) */
.hero { padding: 64px 0 72px; border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.facts { margin: 28px 0 0; padding: 0; }
.facts div { display: grid; grid-template-columns: 7em 1fr; gap: 16px; border-top: 1px solid var(--rule); padding: 10px 0; }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); font-size: 14.5px; }
.facts dd { margin: 0; }

/* ---------- figures */
figure { margin: 0; }
figure img { width: 100%; border: 1px solid var(--rule); background: var(--paper-2); }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.6; }
figcaption::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--rule-strong); vertical-align: middle; margin-right: 8px; }

/* ---------- sections */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { max-width: 640px; margin-bottom: 40px; }

/* the welcome letter */
.letter {
  max-width: 760px;
  margin: 0 auto;
  background: var(--sheet);
  border: 1px solid var(--rule);
  padding: 56px 64px 48px;
}
.letter p { font-family: var(--serif); font-size: 19px; line-height: 1.95; }
:lang(zh) .letter p { font-family: "Noto Serif SC", var(--serif); font-size: 17.5px; line-height: 2.05; }
.letter .sign { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 15px; }
.letter .sign img { width: 36px; height: 36px; }

/* ministries: a plain numbered list with rules */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; align-items: start; }
.numbered { list-style: none; margin: 0; padding: 0; }
.numbered li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; border-top: 1px solid var(--rule); padding: 22px 0; }
.numbered li:last-child { border-bottom: 1px solid var(--rule); }
.numbered .num { font-family: var(--serif); font-size: 26px; color: var(--accent); line-height: 1.2; }
.numbered h3 { margin-bottom: 4px; }
.numbered p { margin: 0; color: var(--muted); }

/* photo columns, natural aspect ratios, nothing cropped */
.gallery { columns: 3 280px; column-gap: 28px; }
.gallery figure { break-inside: avoid; margin: 0 0 32px; }

/* people */
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.person { display: grid; grid-template-columns: 148px 1fr; gap: 24px; border-top: 1px solid var(--ink); padding-top: 24px; }
.person h3 { margin-bottom: 2px; }
.person .role { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.person p { font-size: 16px; }

/* inner page heads */
.page-head { padding: 64px 0 48px; border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 16em; }

/* ministry rows (service page) */
.rows { display: grid; gap: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--rule); }
.row:first-child { border-top: 0; padding-top: 16px; }
.row:nth-child(even) figure { order: 2; }
.row .num { font-family: var(--serif); font-size: 18px; color: var(--accent); display: block; margin-bottom: 6px; letter-spacing: .06em; }
.row-plain { display: block; max-width: 720px; border: 1px solid var(--rule); background: var(--sheet); padding: 40px 44px; margin: 24px 0 8px; }

/* beliefs (about) */
.beliefs { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.beliefs dl { margin: 28px 0 0; }
.beliefs dt { font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink); border-top: 1px solid var(--rule); padding-top: 18px; }
.beliefs dd { margin: 6px 0 22px; color: var(--muted); }

/* timeline with a single rule down the left */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--rule-strong); max-width: 760px; }
.timeline li { position: relative; padding: 0 0 36px 36px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 12px; width: 9px; height: 9px; background: var(--paper); border: 1px solid var(--accent); border-radius: 50%; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .year { font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1.3; display: block; }
.timeline p { margin: 4px 0 0; }

/* pastor page: long profiles */
.profile { display: grid; grid-template-columns: 340px 1fr; gap: 56px; padding: 64px 0; border-top: 1px solid var(--rule); align-items: start; }
.profile:first-child { border-top: 0; padding-top: 24px; }
.profile .role { color: var(--muted); margin-bottom: 18px; }
.profile .reach { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15.5px; }

/* visit band - every CTA on the site lands here */
.visit { background: var(--paper-2); border-top: 1px solid var(--rule); padding: 80px 0; }
.visit-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.contact { margin: 0; }
.contact div { display: grid; grid-template-columns: 8.5em 1fr; gap: 16px; border-top: 1px solid var(--rule-strong); padding: 14px 0; }
.contact div:last-child { border-bottom: 1px solid var(--rule-strong); }
.contact dt { color: var(--muted); font-size: 15px; }
.contact dd { margin: 0; }
.sep { color: var(--rule-strong); margin: 0 6px; }
.map { margin-top: 48px; }
.map iframe { display: block; width: 100%; height: 420px; border: 1px solid var(--rule-strong); background: var(--paper); }

/* footer */
.site-footer { padding: 40px 0 48px; font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--rule); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.foot-brand { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.foot-brand img { width: 32px; height: 32px; }
.foot nav a { color: var(--muted); text-decoration: none; margin-right: 18px; }
.foot nav a:hover { color: var(--ink); }
.credit { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); }
.credit a { color: var(--accent); font-weight: 600; text-decoration: none; }
.credit a:hover { text-decoration: underline; }

/* ---------- responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
  .hero-grid, .split, .visit-grid, .beliefs, .row, .profile { grid-template-columns: 1fr; gap: 32px; }
  .row:nth-child(even) figure { order: 0; }
  .people { grid-template-columns: 1fr; gap: 36px; }
  .profile { grid-template-columns: 1fr; }
  .profile figure { max-width: 340px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero { padding: 40px 0 48px; }
  .section { padding: 60px 0; }
  .page-head { padding: 44px 0 32px; }
  .letter { padding: 32px 22px 28px; }
  .letter p { font-size: 17px; }
  :lang(zh) .letter p { font-size: 16.5px; }
  .person { grid-template-columns: 96px 1fr; gap: 16px; }
  .facts div, .contact div { grid-template-columns: 1fr; gap: 2px; }
  .row-plain { padding: 28px 22px; }
  .visit { padding: 56px 0; }
  .map iframe { height: 320px; }
  .brand-name { font-size: 17px; }
  .brand img { width: 42px; height: 42px; }
}
