/* Builders for Christ – West Metro
   Job-site palette: primed drywall, slate ink, chalk-line blue, pine. */
@font-face{font-family:"Zilla Slab";src:url(/fonts/zilla-slab-latin-600-normal.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Zilla Slab";src:url(/fonts/zilla-slab-latin-700-normal.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"Public Sans";src:url(/fonts/public-sans-latin-400-normal.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Public Sans";src:url(/fonts/public-sans-latin-400-italic.woff2) format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Public Sans";src:url(/fonts/public-sans-latin-600-normal.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Public Sans";src:url(/fonts/public-sans-latin-700-normal.woff2) format("woff2");font-weight:700;font-display:swap}

:root {
  --wall: #FAF9F6;      /* primed drywall */
  --ink: #1D2733;       /* slate */
  --muted: #56606C;
  --chalk: #1F5FAD;     /* carpenter's chalk-line blue */
  --chalk-dark: #174A88;
  --pine: #E7D2A6;      /* framing lumber */
  --pine-soft: #F3EAD6;
  --rule: #D6D3CC;
  --slab: "Zilla Slab", Rockwell, Georgia, serif;
  --sans: "Public Sans", system-ui, sans-serif;
  --measure: 66ch;
}
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 1.15rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--chalk); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--chalk-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--wall); padding: .5rem 1rem; z-index: 20; }
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

/* ---------- header ---------- */
.site-head { background: var(--ink); color: #fff; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: .9rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand img { width: 56px; height: 56px; border-radius: 4px; }
.brand-name { display: block; font: 700 1.55rem/1.05 var(--slab); }
.brand-sub { display: block; font-size: .9rem; color: #C9D1DA; margin-top: .15rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 600; padding: .3rem 0; border-bottom: 3px solid transparent; display: inline-block; }
.site-nav a:hover { border-bottom-color: #7FA7D9; color: #fff; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--pine); }

/* ---------- type ---------- */
main { padding-block: 2.5rem 4rem; }
h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1.08; margin: 0 0 .55em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-top: 2em; }
h3 { font-size: 1.35rem; margin-top: 1.4em; }
p, ul, ol, dl { max-width: var(--measure); margin: 0 0 1.1em; }
.lede { font-size: 1.32rem; line-height: 1.5; }
.muted { color: var(--muted); }

/* ---------- home ---------- */
.intro { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .intro { grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); } }
.intro figure { margin: 0; }
.intro img { border-radius: 4px; }
.intro figcaption { font-size: .95rem; color: var(--muted); margin-top: .5rem; }
.talents { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; max-width: none; }
.talents li { background: var(--pine-soft); border: 1px solid var(--pine); border-radius: 3px; padding: .3rem .75rem; font-weight: 600; }
.callout {
  margin: 2.5rem 0; padding: 1.5rem 1.75rem; background: var(--pine-soft);
  border-left: 6px solid var(--chalk); max-width: 52rem;
}
.callout h2 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.btn { display: inline-block; background: var(--chalk); color: #fff; text-decoration: none; font-weight: 700; padding: .7rem 1.2rem; border-radius: 4px; }
.btn:hover { background: var(--chalk-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--chalk); border: 2px solid var(--chalk); padding: calc(.7rem - 2px) calc(1.2rem - 2px); }
.btn.ghost:hover { background: rgba(31,95,173,.08); color: var(--chalk-dark); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 1.25rem; }

/* ---------- the job board timeline (signature element) ---------- */
.decade { margin-top: 2.5rem; }
.decade > h2 { margin: 0 0 1rem; font-size: 1.5rem; color: var(--muted); }
.board { list-style: none; padding: 0; margin: 0; max-width: none; position: relative; }
/* the snapped chalk line */
.board::before {
  content: ""; position: absolute; top: .4rem; bottom: .4rem; left: 5.6rem; width: 3px;
  background: var(--chalk); opacity: .85;
  background-image: radial-gradient(circle, rgba(255,255,255,.35) 1px, transparent 1.4px);
  background-size: 3px 7px;
}
.job { position: relative; display: grid; grid-template-columns: 5.6rem 1fr; gap: 0 1.6rem; padding: .9rem 0 1.1rem; border-bottom: 1px solid var(--rule); }
.job:last-child { border-bottom: 0; }
/* nail head where the job sits on the line */
.job::before {
  content: ""; position: absolute; left: calc(5.6rem - 6px); top: 1.25rem; width: 15px; height: 15px;
  border-radius: 50%; background: var(--wall); border: 3px solid var(--chalk);
}
.job.has-photos::before { background: var(--chalk); }
.job-year { font: 700 2rem/1 var(--slab); padding-top: .55rem; padding-right: 1rem; text-align: right; }
.job-body { padding-left: .6rem; min-width: 0; }
.job-where { font: 600 1.3rem/1.25 var(--slab); margin: .2rem 0 .15rem; }
.job-church { margin: 0; color: var(--muted); }
.job-church a { color: inherit; }
.job-photos { display: flex; gap: .4rem; margin-top: .7rem; flex-wrap: wrap; align-items: center; }
.job-photos img { width: 92px; height: 70px; object-fit: cover; border-radius: 3px; border: 1px solid var(--rule); }
.job-photos .more { font-weight: 700; margin-left: .4rem; }
.job.upcoming .job-year { color: var(--chalk); }
@media (max-width: 34rem) {
  .board::before { left: 4.2rem; }
  .job { grid-template-columns: 4.2rem 1fr; gap: 0 1rem; }
  .job::before { left: calc(4.2rem - 6px); }
  .job-year { font-size: 1.55rem; }
  .job-photos img { width: 72px; height: 56px; }
}

/* ---------- year gallery ---------- */
.crumbs { font-size: .98rem; margin-bottom: 1rem; }
.year-head { border-bottom: 3px solid var(--chalk); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.year-head h1 { margin-bottom: .2em; }
.gallery { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
@media (max-width: 34rem) { .gallery { grid-template-columns: repeat(2, 1fr); gap: .5rem; } }
.gallery button { all: unset; display: block; width: 100%; cursor: zoom-in; border-radius: 4px; overflow: hidden; background: #E9E7E2; }
.gallery button:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .2s; }
.gallery button:hover img { transform: scale(1.03); }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-weight: 600; }
.empty { background: var(--pine-soft); padding: 1.25rem 1.5rem; border-radius: 4px; max-width: 44rem; }

dialog.viewer { border: 0; padding: 0; background: #111820; color: #fff; width: min(100vw - 1.5rem, 1200px); max-height: calc(100vh - 1.5rem); border-radius: 6px; }
dialog.viewer::backdrop { background: rgba(10,14,20,.88); }
.viewer-inner { display: grid; grid-template-rows: auto 1fr auto; max-height: calc(100vh - 1.5rem); }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .9rem; }
.viewer-title { font: 700 1.2rem/1.2 var(--slab); margin: 0; }
.viewer-stage { display: grid; place-items: center; min-height: 0; overflow: hidden; background: #000; }
.viewer-stage img { max-height: calc(100vh - 9rem); width: auto; object-fit: contain; }
.viewer button { font: 600 1rem/1 var(--sans); color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: .55rem .9rem; cursor: pointer; }
.viewer button:hover { background: rgba(255,255,255,.18); }
.viewer button[disabled] { opacity: .35; cursor: default; }
.viewer-count { color: #C9D1DA; font-size: .95rem; }

/* ---------- meetings / contact ---------- */
.dates { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: 44rem; }
.dates li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.dates .when { font: 700 1.1rem/1.3 var(--slab); }
.dates .cancelled { color: var(--muted); text-decoration: line-through; }
.leaders { list-style: none; padding: 0; max-width: 40rem; }
.leaders li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .6rem 0; border-bottom: 1px solid var(--rule); }
.leaders .role { color: var(--muted); }
.two { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .two { grid-template-columns: 1fr 1fr; } }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #DDE3EA; padding-block: 2rem 2.5rem; font-size: 1rem; }
.site-foot a { color: #fff; }
.site-foot .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 46rem) { .site-foot .wrap { grid-template-columns: 1fr auto; } }
.site-foot strong { font: 700 1.25rem/1.2 var(--slab); color: #fff; display: block; margin-bottom: .35rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

/* home: recent project cards */
.recent { list-style: none; padding: 0; margin: 0 0 1rem; max-width: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.recent a { display: block; text-decoration: none; color: var(--ink); }
.recent img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; margin-bottom: .55rem; }
.recent-year { display: block; font: 700 1.5rem/1 var(--slab); color: var(--chalk); }
.recent-where { display: block; font-weight: 600; margin-top: .2rem; }
.recent a:hover .recent-where { text-decoration: underline; }
@media (max-width: 34rem) { .job-photos img:nth-child(4) { display: none; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-nav, .actions, .skip { display: none; } }

a[href^="tel:"] { white-space: nowrap; }
