/* Presbytery of Pueblo - shared stylesheet. Light, warm, phone-first. No external fonts. */
:root {
  --bg: #fbf8f3;
  --paper: #ffffff;
  --tint: #f3ece0;
  --ink: #2b2622;
  --muted: #5a5148;
  --accent: #8a2b25;        /* brick red, AA on --bg and white */
  --link: #1f4e79;          /* deep blue, AA on --bg and white */
  --line: #e0d6c7;
  --nav: #2d3a46;
  --nav-ink: #ffffff;
  --gold: #e0b04f;
  --focus: #0b57d0;
  --radius: 10px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.nav :focus-visible, .nav-toggle:focus-visible { outline-color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--ink); }
h2 { font-size: 1.6rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.25rem; margin: 1.5rem 0 .5rem; }
h4 { font-size: 1.05rem; margin: 0 0 .25rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.prose { max-width: 46rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* skip link */
.skip { position: absolute; left: .5rem; top: -4rem; background: #fff; color: var(--ink); padding: .6rem 1rem; border: 2px solid var(--focus); border-radius: 6px; z-index: 100; font-weight: 600; }
.skip:focus { top: .5rem; }

/* header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-top { display: grid; gap: .75rem 1.5rem; padding: .9rem 0; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 64px; height: auto; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.75rem; line-height: 1.05; display: block; }
.brand-tag { font-family: var(--serif); font-style: italic; font-size: .95rem; color: var(--muted); display: block; margin-top: .25rem; }
.contact { display: grid; gap: .15rem; font-size: .92rem; line-height: 1.45; }
.contact p { margin: 0; }
.contact .lbl { font-weight: 600; color: var(--muted); }
.contact a { white-space: nowrap; }
.contact a.addr { white-space: normal; }

/* nav */
.nav { background: var(--nav); }
.nav-toggle { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.nav a { display: block; padding: .8rem .7rem; color: var(--nav-ink); text-decoration: none; font-size: .95rem; border-bottom: 3px solid transparent; }
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a[aria-current="page"] { border-bottom-color: var(--gold); font-weight: 600; }
.js .nav-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .85rem 1rem; background: transparent; color: var(--nav-ink); border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.js .nav-toggle::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.js .nav-toggle[aria-expanded="true"]::after { content: "\2212"; }
.js .nav ul { display: none; flex-direction: column; }
.js .nav ul.open { display: flex; }
.js .nav li + li a { border-top: 1px solid rgba(255,255,255,.12); }
.js .nav a { border-bottom: 0; border-left: 4px solid transparent; }
.js .nav a[aria-current="page"] { border-left-color: var(--gold); }

@media (min-width: 900px) {
  .header-top { grid-template-columns: auto 1fr; align-items: center; }
  .contact { font-size: .9rem; justify-self: end; text-align: left; }
  .brand img { width: 84px; }
  .brand-name { font-size: 2.1rem; }
  .js .nav-toggle { display: none; }
  .js .nav ul { display: flex; flex-direction: row; }
  .js .nav li + li a { border-top: 0; }
  .js .nav a { border-left: 0; border-bottom: 3px solid transparent; }
  .js .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
}

/* hero */
.hero { position: relative; overflow: hidden; background: #1c3350; color: #fff; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%); }
.hero .wrap { position: relative; z-index: 1; display: flex; align-items: flex-end; min-height: 150px; padding-top: 1.5rem; padding-bottom: 1.1rem; }
.hero h1 { margin: 0; color: #fff; font-size: 2rem; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.hero.big .wrap { min-height: 300px; justify-content: center; align-items: center; }
.hero.big h1 { font-size: 3.4rem; letter-spacing: .01em; }
@media (min-width: 700px) {
  .hero .wrap { min-height: 190px; }
  .hero h1 { font-size: 2.6rem; }
  .hero.big .wrap { min-height: 380px; }
  .hero.big h1 { font-size: 5rem; }
}

main { display: block; padding-bottom: 3rem; }
main:focus { outline: none; }
.page-title { margin: 1.5rem 0 1rem; font-size: 2rem; }
.lead { font-size: 1.15rem; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* intro */
.intro { display: grid; gap: 1.5rem; align-items: center; margin: 2rem 0; }
.intro .tagline { font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; }
.intro img { display: block; margin: 0 auto; width: 100%; max-width: 560px; }
@media (min-width: 800px) { .intro { grid-template-columns: 1fr 1fr; } }

/* mission */
.mission h2 { margin-top: 0; }
.mission h3 { color: var(--accent); margin-top: 1.75rem; }
.mission h4 { margin-top: 1rem; font-family: var(--sans); font-size: 1.02rem; }
.mission .vlabel { font-weight: 700; margin: .25rem 0 .25rem; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.mission ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.mission li { margin-bottom: .4rem; }
.mission-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.1rem; }
@media (min-width: 700px) { .mission-card { padding: 1.75rem 2rem; } }

/* cards / grids */
.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin: 1rem 0 2rem; padding: 0; list-style: none; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card .ph { display: block; aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--tint); }
.card .ph.logo { object-fit: contain; padding: .75rem; background: #fff; }
.card .body { padding: 1rem 1.1rem 1.2rem; overflow-wrap: anywhere; }
.card h3 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--accent); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { margin: 0 0 .5rem; font-size: .97rem; }
.card .small { font-size: .9rem; color: var(--muted); }
.card .vis { margin-top: .5rem; font-size: .92rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.section-band { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.25rem 0 .5rem; margin-top: 2rem; }
.section-band h2 { margin-top: 0; }

/* info tiles */
.tiles a { display: flex; flex-direction: column; align-items: center; gap: .6rem; height: 100%; padding: 1.1rem; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; text-align: center; font-family: var(--serif); font-size: 1.1rem; color: var(--accent); font-weight: 700; }
.tiles a:hover { border-color: var(--accent); }
.tiles img { width: 100%; max-width: 200px; height: 130px; object-fit: contain; }

/* committees */
.abbr { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; background: var(--tint); border-radius: var(--radius); padding: .75rem 1rem; margin: 1rem 0 0; font-size: .95rem; }
.abbr dt { display: inline; font-weight: 700; }
.abbr dd { display: inline; margin: 0 0 0 .25rem; }
.abbr div { display: block; }
.committee { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem .8rem; margin: 1.25rem 0; }
.committee h2 { margin: 0 0 .6rem; font-size: 1.35rem; color: var(--accent); }
.committee h3 { font-size: 1.05rem; margin: 1rem 0 .3rem; font-family: var(--sans); }
.committee .label { font-weight: 700; }
.roster { display: grid; gap: .5rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: .5rem 0 1rem; }
.roster div { padding: .4rem 0; border-bottom: 1px dotted var(--line); }
.roster dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.roster dd { margin: 0; }
.committee ul { margin: .25rem 0 1rem; padding-left: 1.2rem; }

/* plain lists */
.linklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.linklist li { padding: .6rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.linklist li:last-child { border-bottom: 0; }
.plain-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1rem 0; }
.contactcard { margin: .35rem 0 .25rem 1rem; font-size: .95rem; color: var(--muted); }
.datelist { list-style: none; padding: 0; margin: .25rem 0 1.25rem; }
.datelist li { padding: .3rem 0; border-bottom: 1px dotted var(--line); }

/* staff */
.staff { display: grid; gap: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .25rem 1rem; margin: 1rem 0; }
.staff div { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.staff div:last-child { border-bottom: 0; }
.staff dt { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
.staff dd { margin: 0; }

/* youth camp / art / jobs */
.photo-strip { display: block; width: 100%; border-radius: var(--radius); margin: 1.25rem 0; }
.camp-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.1rem; margin: 1.25rem 0; }
.camp-card h2 { margin-top: 0; color: var(--accent); }
.button { display: inline-block; background: var(--accent); color: #fff; padding: .8rem 1.4rem; border-radius: 8px; text-decoration: none; font-weight: 700; margin: .5rem 0 1rem; }
.button:hover { background: #6f201b; color: #fff; }
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: 1rem 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; aspect-ratio: 4 / 3; background: var(--tint); }
.stat { display: flex; align-items: center; gap: 1rem; margin: 1rem 0; }
.stat strong { font-family: var(--serif); font-size: 2.4rem; color: var(--accent); line-height: 1; }
.sole-logo { display: block; max-width: 280px; margin: .5rem 0 1rem; background: #fff; padding: .5rem; border-radius: 6px; }
.art-title { text-align: center; margin-top: 1.75rem; }
.art-title .sub { font-family: var(--sans); font-size: 1.3rem; color: var(--muted); margin-top: .35rem; }
.essay { background: #f2efc9; border-radius: var(--radius); padding: 1.25rem 1.1rem; margin: 1.5rem 0; }
.essay blockquote { margin: 1rem 0; padding: .2rem 0 .2rem 1rem; border-left: 4px solid var(--accent); font-style: italic; }
.essay .fn { font-size: .88rem; color: var(--muted); }
.art-grid { display: grid; gap: 1.5rem; margin: 1.5rem 0; }
.art-piece { display: grid; gap: .75rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; }
.art-piece img { width: 100%; border-radius: 6px; display: block; }
.art-piece a { display: block; }
.art-piece .cap { font-size: .85rem; color: var(--muted); margin: 0; }
@media (min-width: 800px) { .art-piece { grid-template-columns: 1fr 1fr; align-items: start; } }
details.job { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .25rem 1rem; margin: 1.5rem 0; }
details.job summary { cursor: pointer; font-weight: 700; padding: .8rem 0; font-family: var(--serif); font-size: 1.15rem; color: var(--accent); }
details.job h3 { font-family: var(--sans); font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* members */
.login { max-width: 26rem; margin: 2rem auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.login label { display: block; font-weight: 700; margin-bottom: .35rem; }
.login input[type=password], .login input[type=text] { width: 100%; padding: .75rem; font: inherit; border: 2px solid #8a8175; border-radius: 6px; background: #fff; color: var(--ink); }
.login .err { color: #8a1f1f; font-weight: 600; margin: 0 0 1rem; }
.login button { margin-top: 1rem; width: 100%; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: .85rem; font: inherit; font-weight: 700; cursor: pointer; }
.login button:hover { background: #6f201b; }
.logout { text-align: right; font-size: .92rem; margin-top: .75rem; }
.msubhead { color: var(--muted); font-style: italic; margin: 0 0 1rem; }
.mtoc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .6rem; margin: 0 0 1rem; }
.mtoc a { display: inline-block; padding: .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; font-size: .92rem; }
.msec h2 { border-bottom: 2px solid var(--gold); padding-bottom: .3rem; }
.mgrid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: .75rem 0 1.5rem; }
.mcols { display: grid; gap: 1rem 2rem; }
@media (min-width: 900px) { .mcols { grid-template-columns: 1fr; } }
.mcolhead { font-size: 1.05rem; color: var(--accent); }
.mcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; overflow-wrap: anywhere; font-size: .95rem; }
.mcard header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem .75rem; }
.mcode { font-size: .78rem; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .55rem; background: var(--tint); white-space: nowrap; }
.msub { margin: .1rem 0 .4rem; color: var(--muted); font-size: .9rem; }
.mcard dl { margin: .4rem 0 0; }
.mcard dl div { display: grid; grid-template-columns: 4.2rem 1fr; gap: .5rem; padding: .15rem 0; }
.mcard dt { font-weight: 700; color: var(--muted); }
.mcard dd { margin: 0; }
.mline { padding: .05rem 0; }

/* footer */
.site-footer { background: var(--nav); color: #e9edf1; padding: 1.75rem 0; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0 0 .4rem; }
.site-footer .credit { font-size: .85rem; opacity: .9; margin-top: .75rem; }
.notfound { text-align: center; padding: 3rem 0; }

@media print {
  .nav, .skip { display: none; }
  body { background: #fff; }
}
