/* Downtown Mission Church — true. genuine. church. */
:root {
  --ink: #1f1f1f;
  --char: #232323;
  --char-2: #2e2e2e;
  --yellow: #ffdd2e;
  --paper: #f6f4ef;
  --line: #e4e0d6;
  --muted: #5a5750;
  --white: #fff;
  --radius: 10px;
  --wrap: 1120px;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, 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; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 760px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--yellow); color: var(--char); padding: .6rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }
.textured { background: var(--char) url(img/texture.jpg) repeat; background-size: 440px; color: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--char) url(img/texture.jpg); background-size: 440px; color: var(--white); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-name { display: block; font-weight: 800; font-size: .95rem; letter-spacing: .08em; line-height: 1.1; text-transform: uppercase; }
.brand-tag { display: block; font-size: .8rem; color: var(--yellow); letter-spacing: .02em; font-weight: 600; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white); border-radius: 999px; padding: .5rem 1rem; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; min-height: 44px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; } .nav-toggle-bars::after { position: absolute; top: 6px; }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--char); border-top: 1px solid rgba(255,255,255,.1); max-height: calc(100vh - 68px); overflow-y: auto; padding: .5rem 1.25rem 1.5rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a, .site-nav .group-label { display: block; color: var(--white); text-decoration: none; padding: .7rem 0; font-weight: 600; }
.site-nav .group-label { color: var(--yellow); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; padding-bottom: .1rem; margin-top: .6rem; background: none; border: 0; font-family: inherit; text-align: left; }
.site-nav .sub a { padding: .55rem 0 .55rem .75rem; font-weight: 500; color: #e9e6df; }
.site-nav a[aria-current="page"] { color: var(--yellow); }
.site-nav .nav-give { margin-top: 1rem; display: inline-block; background: var(--yellow); color: var(--char); padding: .6rem 1.4rem; border-radius: 999px; font-weight: 800; }
@media (max-width: 420px) { .brand-name { font-size: .82rem; } .brand svg { width: 38px; height: 38px; } }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; background: none; border: 0; padding: 0; max-height: none; overflow: visible; }
  .site-nav > ul { display: flex; align-items: center; gap: .25rem; }
  .site-nav > ul > li { position: relative; }
  .site-nav > ul > li > a, .site-nav .group-label { padding: .6rem .8rem; margin: 0; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--white); font-weight: 600; cursor: pointer; }
  .site-nav .group-label::after { content: " \25BE"; font-size: .7em; opacity: .7; }
  .site-nav .sub { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--white); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0,0,0,.25); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
  .site-nav li:hover > .sub, .site-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
  .site-nav .sub a { color: var(--ink); padding: .55rem .8rem; border-radius: 6px; font-size: .95rem; }
  .site-nav .sub a:hover, .site-nav .sub a:focus-visible { background: var(--paper); }
  .site-nav .sub a[aria-current="page"] { color: var(--ink); background: #fff7cc; }
  .site-nav .nav-give { margin: 0 0 0 .6rem; padding: .55rem 1.3rem; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; font-weight: 800; font-size: .95rem; letter-spacing: .04em; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-yellow { background: var(--yellow); color: var(--char); }
.btn-yellow:hover { background: #ffe75f; }
.btn-dark { background: var(--char); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Home hero */
.hero { padding: 2.5rem 0 3rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-photo { max-width: 460px; margin-inline: auto; width: 100%; }
.hero-words { text-align: left; }
.hero-title { font-size: clamp(3rem, 12vw, 6rem); font-weight: 800; line-height: .95; letter-spacing: -.03em; text-transform: lowercase; margin: 0 0 1.25rem; }
.hero-title span { display: block; }
.hero-title span:nth-child(2) { padding-left: .4em; }
.hero-title span:nth-child(3) { padding-left: .8em; }
.hero-sub { font-size: 1.15rem; color: #e9e6df; max-width: 34ch; margin-bottom: 1.5rem; }
@media (min-width: 860px) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 3rem; }
  .hero-photo { max-width: 520px; }
}

/* Page banner */
.banner { position: relative; color: var(--white); background: var(--char); display: grid; min-height: 240px; place-items: center; text-align: center; overflow: hidden; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,.55), rgba(20,20,20,.7)); }
.banner-inner { position: relative; z-index: 1; padding: 3rem 0; }
.banner h1 { margin: 0; font-weight: 800; }
.banner .kicker { color: var(--yellow); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem; margin-bottom: .5rem; }
@media (min-width: 860px) { .banner { min-height: 320px; } }

/* Sections */
.section { padding: 3.5rem 0; }
.section-paper { background: var(--paper); }
.lede { font-size: clamp(1.15rem, 2.4vw, 1.35rem); line-height: 1.6; }
.eyebrow { display: inline-block; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.highlight { background: linear-gradient(transparent 60%, var(--yellow) 60%); padding: 0 .15em; }
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.75rem; }
.prose > :first-child { margin-top: 0; }
.center { text-align: center; }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: .35rem; }
.meta { color: var(--muted); font-weight: 600; }

/* Home tiles */
.tiles { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.tile { display: block; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); background: var(--char); box-shadow: 0 6px 20px rgba(0,0,0,.12); transition: transform .2s ease, box-shadow .2s ease; }
.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.tile img { aspect-ratio: 4 / 4.2; object-fit: cover; width: 100%; }
.tile span { display: block; padding: .9rem 1.1rem; background: var(--white); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }

/* Campuses */
.campus { display: grid; gap: 1rem; align-content: start; }
.campus img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; aspect-ratio: 9 / 8; object-fit: cover; }
.campus .time { font-size: 1.4rem; font-weight: 800; }

/* People */
.pastor { display: grid; gap: 1.5rem; align-items: start; }
.pastor img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 6px solid var(--white); box-shadow: 0 6px 22px rgba(0,0,0,.15); }
@media (min-width: 760px) { .pastor { grid-template-columns: 240px 1fr; gap: 2.5rem; } }
.pastor .role { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; margin-bottom: 1rem; }
.elders { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.elders li { text-align: center; font-weight: 700; }
.elders img, .elders .no-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto .6rem; }
.elders .no-photo { display: grid; place-items: center; background: var(--char); }
.elders .no-photo svg { width: 64px; height: 64px; }

/* Books */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.books img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.18); margin-bottom: .6rem; }
.books strong { display: block; line-height: 1.3; font-size: .98rem; }
.books span { color: var(--muted); font-size: .9rem; }
.resource { padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.resource h4 { margin: 0 0 .35rem; font-size: 1.1rem; }
.resource h4 a { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.resource .by { color: var(--muted); font-weight: 600; font-weight: 600; }

/* Lists of groups, plans */
.list-cards { display: grid; gap: 1rem; }
@media (min-width: 760px) { .list-cards { grid-template-columns: repeat(3, 1fr); } }
.list-cards .card { border-top: 5px solid var(--yellow); }
.download { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; min-height: 44px; }

/* Video */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Scripture */
.verses { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 760px) { .verses { grid-template-columns: repeat(3, 1fr); } }
.verse { background: var(--char); color: var(--white); border-radius: var(--radius); padding: 1.5rem; font-size: 1.15rem; font-weight: 600; }
.verse cite { display: block; color: var(--yellow); font-style: normal; font-size: .9rem; margin-top: .75rem; letter-spacing: .06em; }

/* Beliefs */
.toc { columns: 2 220px; padding-left: 1.1rem; margin: 0 0 2rem; }
.toc a { display: inline-block; padding: .2rem 0; }
.belief { padding: 1.75rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.listen { font-size: .95rem; color: var(--muted); margin: 0; }
.listen a { font-weight: 700; color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
details.long { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.25rem; background: var(--white); margin-top: 1.5rem; }
details.long summary { cursor: pointer; font-weight: 800; padding: 1rem 0; min-height: 44px; }
details.long[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 1rem; }

/* Archives */
.entry { padding: 2rem 0; border-bottom: 1px solid var(--line); }
.entry h2 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .06em; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; }
.form input, .form textarea, .form select { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1.5px solid #cfcabd; border-radius: 8px; background: var(--white); color: var(--ink); min-height: 48px; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--char); outline: 3px solid rgba(255,221,46,.6); outline-offset: 0; }
.form .note { font-size: .9rem; color: var(--muted); margin: 0; }
.form-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,.08); border: 1px solid var(--line); }
@media (min-width: 600px) { .form-card { padding: 2rem; } }

/* Callout */
.callout { border-radius: var(--radius); padding: 2rem; display: grid; gap: 1rem; align-items: center; }
@media (min-width: 760px) { .callout { grid-template-columns: 1fr auto; } }
.callout h2 { margin: 0; }
.callout p { margin: .4rem 0 0; color: #e9e6df; }

/* Footer */
.site-footer { background: var(--char) url(img/texture.jpg); background-size: 440px; color: #ece9e2; padding: 3.5rem 0 2rem; font-size: 1rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.footer-brand svg { width: 64px; height: 64px; margin-bottom: .75rem; }
.footer-brand p { color: #cfcbc2; max-width: 30ch; }
.site-footer h2 { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); margin-bottom: .75rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .time { font-weight: 800; color: var(--white); font-size: 1.05rem; }
.site-footer .links { list-style: none; padding: 0; margin: 0; }
.site-footer .links a { display: inline-block; padding: .3rem 0; }
.footer-cta { display: inline-block; margin-top: .5rem; font-weight: 700; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: #bdb8ae; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-bottom: 1rem; }
