/* Grace Church of Temecula Valley */
:root {
  --ink: #1f1c18;
  --paper: #fffdf8;
  --sand: #f5efe4;
  --line: #d8cfc2;
  --muted: #5f574f;
  --gold: #8f6220;
  --gold-light: #e9c98f;
  --vine: #4a5527;
  --serif-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif-display); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 46rem; margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Eyebrow + flourish */
.eyebrow { font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6rem; }
.vine { width: 210px; margin: .25rem auto 0; opacity: .9; }
.center { text-align: center; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.brand img { width: 210px; }
.brand .tagline { font-family: var(--sans); font-size: .75rem; letter-spacing: .06em; color: var(--muted); margin-top: .2rem; }
.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .9rem;
  font: 600 .85rem var(--sans); letter-spacing: .08em; text-transform: uppercase;
  background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.nav-toggle .bars { width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.site-nav { display: none; }
.site-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(31,28,24,.08); max-height: calc(100vh - 80px); overflow-y: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { padding: .5rem 1.25rem 1.25rem; }
.site-nav a, .site-nav .group-label {
  display: block; padding: .65rem 0; min-height: 44px; text-decoration: none; color: var(--ink);
  font-family: var(--sans); font-size: .95rem;
}
.site-nav .group-label { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding-bottom: 0; min-height: 0; margin-top: .5rem; background: none; border: 0; cursor: default; }
.site-nav .sub a { padding-left: .9rem; }
.site-nav a[aria-current="page"] { color: var(--gold); font-weight: 600; }
.site-nav .nav-cta a { margin-top: .75rem; text-align: center; display: flex; color: var(--paper); padding: .6rem 1.3rem; font-weight: 600; }
.site-nav .nav-cta a:hover { color: #fff; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.open { display: block; position: static; box-shadow: none; border: 0; max-height: none; overflow: visible; background: none; }
  .site-nav > ul { display: flex; align-items: center; gap: .25rem; padding: 0; }
  .site-nav > ul > li { position: relative; }
  .site-nav a, .site-nav .group-label { padding: .6rem .8rem; min-height: 0; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
  .site-nav .group-label { margin: 0; color: var(--ink); cursor: pointer; display: flex; align-items: center; gap: .35rem; }
  .site-nav .group-label::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
  .site-nav .sub { position: absolute; left: 0; top: 100%; min-width: 15rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem; box-shadow: 0 16px 30px rgba(31,28,24,.1); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
  .site-nav li:hover > .sub, .site-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
  .site-nav .sub a { padding: .55rem .8rem; text-transform: none; letter-spacing: 0; font-size: .95rem; border-radius: 6px; }
  .site-nav .sub a:hover { background: var(--sand); }
  .site-nav .nav-cta a { margin: 0 0 0 .5rem; display: inline-flex; padding: .55rem 1.2rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.4rem;
  font: 600 .85rem var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn.light:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn.outline-light { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn.outline-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.center .btn-row, .btn-row.center { justify-content: center; }

/* Hero */
.hero { position: relative; min-height: min(78vh, 640px); display: grid; place-items: center; color: #fff; text-align: center; overflow: hidden; background: #3b3020; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(25,20,12,.35) 0%, rgba(25,20,12,.25) 45%, rgba(25,20,12,.6) 100%); }
.hero .inner { position: relative; z-index: 1; padding: 4rem 1.25rem; max-width: 46rem; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); margin: 0; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero h1 em { display: block; font-size: .62em; margin-top: .15em; }
.hero p.lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); margin: 1.2rem auto 1.8rem; max-width: 34rem; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero .btn-row { justify-content: center; }

/* Page header (inner pages) */
.page-head { text-align: center; padding: 3.5rem 0 1.5rem; }
.page-head .lede { color: var(--muted); max-width: 40rem; margin: 1rem auto 0; font-size: 1.1rem; }

/* Sections */
.section { padding: 3.5rem 0; }
.section.tint { background: var(--sand); }
.section.tight-top { padding-top: 1rem; }
.section-head { text-align: center; margin-bottom: 2.25rem; }
.prose p, .prose li { font-size: 1.08rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul { padding-left: 1.25rem; }

/* Pillars ("Equipping people to") */
.pillars { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.pillar { text-align: center; padding: 1.5rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pillar img { height: 110px; width: auto; margin: 0 auto 1rem; }
.pillar h3 { margin: 0; font-size: 1.3rem; }
@media (min-width: 720px) { .pillars { grid-template-columns: repeat(3, 1fr); } }

/* Cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards.two { grid-template-columns: repeat(2, 1fr); } .cards.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font: 600 .85rem var(--sans); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.card .more::after { content: " →"; white-space: pre; }
a.card { text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--gold); transform: translateY(-2px); color: inherit; }

/* Split (image + text) */
.split { display: grid; gap: 2rem; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 3rem; } .split.flip > :first-child { order: 2; } }

/* Elders */
.elder { display: grid; gap: 1.5rem; align-items: start; padding: 2rem 0; border-top: 1px solid var(--line); }
.elder:first-of-type { border-top: 0; }
.elder img { border-radius: var(--radius); width: 100%; }
.elder .role { font: 600 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
@media (min-width: 860px) { .elder { grid-template-columns: 5fr 6fr; gap: 2.5rem; } .elder:nth-of-type(even) img { order: 2; } }
.elder-mini { text-align: center; }
.elder-mini img { border-radius: var(--radius); margin-bottom: 1rem; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.elder-mini h3 { margin-bottom: .2rem; }
.elder-mini p { color: var(--muted); margin: 0; }

/* Distinctives */
.distinct { padding: 2rem 0; border-top: 1px solid var(--line); }
.distinct:first-child { border-top: 0; padding-top: 0; }
.distinct h3 { font-size: 1.2rem; font-style: italic; margin-top: 1.2rem; }

/* Partners */
.partner { display: grid; gap: 1.25rem; padding: 2rem 0; border-top: 1px solid var(--line); align-items: start; }
.partner:first-child { border-top: 0; }
.partner .logos { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.partner .logos img { max-height: 120px; width: auto; }
@media (min-width: 860px) { .partner { grid-template-columns: 2fr 1fr; gap: 2.5rem; } }

/* Confession */
.chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 640px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .chapters { grid-template-columns: repeat(3, 1fr); } }
.chapters a { display: flex; gap: 1rem; align-items: baseline; height: 100%; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.chapters a:hover { border-color: var(--gold); color: var(--ink); }
.chapters .num { font: 600 .78rem var(--sans); letter-spacing: .12em; color: var(--gold); min-width: 3.4rem; }
.chapter-text p { font-size: 1.08rem; }
.chapter-text p.para { position: relative; }
.chapter-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.chapter-nav a { font-family: var(--sans); font-size: .95rem; text-decoration: none; display: inline-flex; flex-direction: column; min-height: 44px; max-width: 48%; }
.chapter-nav a small { color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.chapter-nav .next { text-align: right; margin-left: auto; }
.crumb { font-family: var(--sans); font-size: .85rem; margin-bottom: 1rem; }
.crumb a { display: inline-flex; min-height: 32px; align-items: center; }

/* Search */
.search { display: block; width: 100%; max-width: 40rem; margin: 0 auto 2rem; padding: .9rem 1.1rem; font: 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.search:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(143,98,32,.2); }

/* Sermon archive */
.archive { max-width: 52rem; margin: 0 auto; }
.book { border-top: 1px solid var(--line); }
.book:last-child { border-bottom: 1px solid var(--line); }
.book summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem .25rem; cursor: pointer; min-height: 56px; }
.book summary::-webkit-details-marker { display: none; }
.book summary h2 { font-size: 1.6rem; margin: 0; }
.book summary .count { font: .85rem var(--sans); color: var(--muted); }
.book summary .icon { font: 1.6rem var(--sans); line-height: 1; color: var(--gold); }
.book[open] summary .icon { transform: rotate(45deg); }
.sermon-list { list-style: none; margin: 0 0 1.25rem; padding: 0; columns: 1; }
@media (min-width: 720px) { .sermon-list { columns: 2; column-gap: 2rem; } }
.sermon-list li { break-inside: avoid; border-bottom: 1px solid #eee6da; }
.sermon-list a { display: flex; align-items: center; gap: .6rem; padding: .55rem .25rem; min-height: 44px; color: var(--ink); text-decoration: none; }
.sermon-list a::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 5l8 5-8 5z' fill='%238f6220'/%3E%3C/svg%3E") center/14px no-repeat; }
.sermon-list a:hover { color: var(--gold); }
.series-links { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; list-style: none; padding: 0; }
.series-links a { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-family: var(--sans); font-size: .9rem; }
.series-links a:hover { border-color: var(--gold); }
.note { font-family: var(--sans); font-size: .85rem; color: var(--muted); text-align: center; }

/* Songs */
.songs { list-style: none; padding: 0; margin: 0 auto; max-width: 60rem; display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .songs { grid-template-columns: repeat(2, 1fr); } }
.song { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; }
.song h2 { font-size: 1.15rem; margin: 0 0 .5rem; }
.song .links { display: flex; flex-wrap: wrap; gap: .4rem; }
.song .links a { display: inline-flex; align-items: center; min-height: 32px; padding: .2rem .75rem; border-radius: 999px; background: var(--sand); color: var(--ink); text-decoration: none; font: .82rem var(--sans); }
.song .links a:hover { background: var(--ink); color: var(--paper); }
.empty { text-align: center; color: var(--muted); font-style: italic; }

/* Forms */
.form { display: grid; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.form .row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font: 600 .85rem var(--sans); margin-bottom: .35rem; }
.form label span { color: var(--muted); font-weight: 400; }
.form input, .form textarea { width: 100%; padding: .8rem .9rem; font: 1rem var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(143,98,32,.2); }
.form textarea { min-height: 160px; resize: vertical; }
.form .hint { font: .85rem var(--sans); color: var(--muted); margin: 0; }

/* Conference */
.event-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.schedule { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.schedule li { padding: .5rem 0; border-bottom: 1px solid #eee6da; }
.schedule strong { font-family: var(--sans); font-size: .9rem; display: inline-block; min-width: 9rem; }
.speakers { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .speakers { grid-template-columns: 1fr 1fr; } }
.speaker { display: flex; gap: 1rem; align-items: flex-start; }
.speaker img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: 0 0 96px; }
.banner { border-radius: var(--radius); width: 100%; }
.past { display: inline-block; font: 600 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; background: var(--sand); color: var(--muted); border-radius: 999px; padding: .35rem .9rem; }

/* Call to action band */
.cta-band { background: var(--ink); color: var(--paper); text-align: center; padding: 3.5rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e6ded1; max-width: 36rem; margin-inline: auto; }

/* Footer */
.site-footer { background: #191612; color: #e6ded1; padding: 3.5rem 0 2rem; font-family: var(--sans); font-size: .95rem; }
.site-footer a { color: #f3e3c4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-logo { width: 220px; filter: invert(1); opacity: .95; margin-bottom: 1rem; }
.site-footer h2 { font: 600 .78rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin: 0 0 .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 34px; }
.site-footer address { font-style: normal; }
.site-footer .times { margin: 0 0 .9rem; }
.site-footer .times strong { color: #fff; font-weight: 600; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #b8ae9f; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; padding-bottom: 1rem; }
