/* Lakeview Community Church — colours from their logo: sunset orange, lake blue, shore green */
:root {
  --orange: #f16623;
  --orange-dark: #b9480e;
  --blue: #0072b9;
  --blue-dark: #0b4f80;
  --navy: #15304f;
  --green: #1f7638;
  --sky: #dbe7f3;
  --paper: #fbf9f6;
  --ink: #1f2933;
  --muted: #52606d;
  --line: #e3e0da;
  --radius: 14px;
  --wrap: 1120px;
  --font: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", 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; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.2rem; }
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; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { min-width: 0; display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand img { flex: none; width: 52px; height: 42px; border-radius: 4px; }
.brand strong { display: block; font-size: 1.1rem; line-height: 1.15; }
.brand span { display: block; font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.nav-toggle { display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; font: inherit; font-size: .95rem; color: var(--navy); cursor: pointer; min-height: 44px; }
.nav-toggle svg { width: 20px; height: 20px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(21,48,79,.08); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.site-nav a { display: block; padding: .7rem .25rem; text-decoration: none; color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--line); }
.site-nav a[aria-current="page"] { color: var(--orange-dark); }
.site-nav li:last-child a { border-bottom: 0; }
.site-nav .give a { color: var(--orange-dark); }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; gap: .15rem; padding: 0; align-items: center; }
  .site-nav a { border: 0; padding: .5rem .7rem; border-radius: 8px; font-size: .97rem; }
  .site-nav a:hover { background: var(--sky); color: var(--navy); }
  .site-nav .give a { background: var(--orange-dark); color: #fff; margin-left: .4rem; padding-inline: 1rem; }
  .site-nav .give a:hover { background: var(--navy); color: #fff; }
}

/* Hero: their logo's sunset over the lake */
.hero { position: relative; color: #fff; background: linear-gradient(180deg, #f16623 0%, #f3843f 42%, #f7a865 58%, #0072b9 58.4%, #0b5f9c 100%); overflow: hidden; }
.hero::after { content: ""; position: absolute; left: -5%; right: 35%; bottom: -1px; height: 26%; background: var(--green); clip-path: ellipse(70% 100% at 10% 100%); opacity: .95; }
.hero .clouds { position: absolute; inset: 0; pointer-events: none; }
.hero .clouds svg { position: absolute; fill: #fff; opacity: .92; }
.hero-inner { position: relative; z-index: 2; margin: clamp(2.5rem, 8vw, 5rem) 0 clamp(5.5rem, 14vw, 8.5rem); padding: clamp(1.4rem, 4vw, 2.5rem); max-width: 700px; background: rgba(21,48,79,.62); border-radius: 18px; }
.hero .eyebrow { display: inline-block; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; background: rgba(255,255,255,.16); padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1rem; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 7vw, 4rem); text-shadow: 0 2px 18px rgba(80,30,0,.35); }
.hero p { font-size: clamp(1.1rem, 2.4vw, 1.3rem); max-width: 34em; text-shadow: 0 1px 10px rgba(80,30,0,.4); }
.page-hero { background: linear-gradient(135deg, var(--navy), #2a5d8f 70%, var(--blue)); color: #fff; padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2rem, 6vw, 3.5rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--orange) 0 55%, var(--blue) 55% 85%, var(--green) 85%); }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { margin: .6rem 0 0; max-width: 40em; font-size: 1.1rem; opacity: .95; }
.crumbs { font-size: .9rem; margin-bottom: .6rem; opacity: .9; }
.crumbs a { color: #fff; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; background: var(--navy); color: #fff; border: 2px solid var(--navy); font-size: 1rem; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn.ghost:hover { background: rgba(255,255,255,.15); color: #fff; }
.btn.outline { background: transparent; color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: #fff; }
.btn.give { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn.give:hover { background: var(--navy); border-color: var(--navy); }

/* Sections */
section { padding: clamp(3rem, 8vw, 5rem) 0; }
section.tint { background: #fff; border-block: 1px solid var(--line); }
section.sky { background: var(--sky); }
.kicker { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--orange-dark); margin-bottom: .5rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
a.card { display: block; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(21,48,79,.1); color: var(--ink); }
a.card .more { color: var(--blue-dark); font-weight: 700; }
.card .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .9rem; background: var(--sky); color: var(--blue-dark); }
.card .icon svg { width: 24px; height: 24px; }
.card.orange .icon { background: #fde6d8; color: var(--orange-dark); }
.card.green .icon { background: #dcefe1; color: var(--green); }

/* Pastor's welcome letter */
.letter { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(1.5rem, 5vw, 3rem); position: relative; }
.letter::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: var(--radius) 0 0 var(--radius); background: linear-gradient(var(--orange) 0 60%, var(--blue) 60% 88%, var(--green) 88%); }
.letter p { font-size: 1.1rem; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--navy); margin: 1.5rem 0 0; }
.signature small { display: block; font-family: var(--font); font-style: normal; font-size: .9rem; color: var(--muted); }

blockquote.pull { margin: 0; font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.4; color: var(--navy); border-left: 5px solid var(--orange); padding-left: 1.25rem; }

/* Lists of values / beliefs */
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.values li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem 1rem 3rem; position: relative; }
.values li::before { content: ""; position: absolute; left: 1.15rem; top: 1.35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px #fde6d8; }
.beliefs { counter-reset: b; display: grid; gap: 1rem; }
.belief { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.4rem; }
.belief h2 { font-size: 1.2rem; margin-bottom: .4rem; color: var(--blue-dark); }
.belief p { margin: 0; }
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.meta { font-size: .9rem; color: var(--muted); margin-top: -.3rem; }

/* Archive posts */
details.post { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 1rem; }
details.post > summary { cursor: pointer; padding: 1.1rem 1.3rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
details.post > summary::-webkit-details-marker { display: none; }
details.post > summary::after { content: "+"; font-size: 1.5rem; color: var(--orange-dark); line-height: 1; }
details.post[open] > summary::after { content: "–"; }
details.post summary h2 { font-size: 1.15rem; margin: 0; }
details.post summary .meta { margin: .2rem 0 0; }
details.post .body { padding: 0 1.3rem 1.3rem; }
details.post .body > :last-child { margin-bottom: 0; }

/* Sermons */
.listen { display: flex; flex-wrap: wrap; gap: .75rem; }
.listen a { display: inline-flex; align-items: center; gap: .6rem; min-height: 52px; padding: .6rem 1.2rem; border-radius: 12px; text-decoration: none; font-weight: 700; color: #fff; background: #111; }
.listen a.spotify { background: #146c34; }
.listen a.rss { background: var(--orange-dark); }
.listen a:hover { filter: brightness(1.15); color: #fff; }
.listen svg { width: 22px; height: 22px; flex: none; }
.sermon-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.sermon-list li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); }
.sermon-list li:last-child { border-bottom: 0; }
.sermon-list strong { color: var(--navy); }
.sermon-list .sub { grid-column: 1; font-size: .9rem; color: var(--muted); }
.sermon-list .len { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .92rem; }

/* Books */
.books { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.book { display: flex; flex-direction: column; gap: .6rem; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
.book img, .book .cover { width: 104px; height: 160px; object-fit: cover; border-radius: 4px; box-shadow: 0 6px 14px rgba(0,0,0,.15); margin: 0 auto; }
.book .cover { display: grid; place-items: center; text-align: center; padding: .6rem; font-family: var(--serif); font-size: .9rem; line-height: 1.25; color: #fff; background: linear-gradient(160deg, var(--navy), var(--blue)); }
.book strong { color: var(--navy); line-height: 1.3; font-size: .98rem; }
.book span { font-size: .9rem; color: var(--muted); }
a.book:hover strong { color: var(--orange-dark); }

/* Link directory */
.links-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.links-grid a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--navy); min-height: 64px; }
.links-grid a:hover { border-color: var(--blue); color: var(--blue-dark); }
.links-grid a::after { content: "↗"; color: var(--orange-dark); }

/* Media */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.embed iframe { display: block; width: 100%; height: 560px; border: 0; }
.map iframe { height: 380px; }
.split { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 880px) { .split { grid-template-columns: 1.15fr .85fr; gap: 3rem; } .split.even { grid-template-columns: 1fr 1fr; } }
.logo-badge { width: 120px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: .5rem; }

/* Forms */
form[data-hp-form] { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; color: var(--navy); font-size: .95rem; }
.field input, .field textarea, .field select { font: inherit; width: 100%; padding: .75rem .9rem; border: 1.5px solid #c9cfd6; border-radius: 10px; background: #fff; color: var(--ink); min-height: 48px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(0,114,185,.2); outline-offset: 0; }
.row2 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.req { color: var(--orange-dark); }

/* CTA band */
.band { background: linear-gradient(120deg, var(--navy), var(--blue-dark)); color: #fff; border-radius: var(--radius); padding: clamp(1.75rem, 5vw, 3rem); display: grid; gap: 1rem; align-items: center; }
.band h2 { color: #fff; margin: 0; }
.band p { margin: 0; opacity: .95; }
@media (min-width: 800px) { .band { grid-template-columns: 1fr auto; } .band .btns { margin: 0; } }

/* Footer: the one place for address, phone, email, times and video links */
.site-footer { background: var(--navy); color: #d9e2ec; padding: 3.5rem 0 1.5rem; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffc49e; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1000px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .times strong { color: #fff; }
.foot-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.foot-brand img { width: 56px; height: 46px; border-radius: 4px; }
.foot-brand strong { color: #fff; font-size: 1.1rem; display: block; line-height: 1.2; }
.foot-brand span { font-size: .9rem; }
.foot-big { font-size: 1.2rem; font-weight: 700; }
.social { display: flex; gap: .6rem; margin-top: .4rem; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; min-height: 40px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; text-decoration: none; font-size: .95rem; }
.social svg { width: 18px; height: 18px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; align-items: center; font-size: .9rem; padding-bottom: 1.5rem; }
.foot-bottom img { width: 40px; height: 40px; border-radius: 6px; background: #fff; }
.efca { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }

.notfound { text-align: center; padding: 5rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
