/* True Light Christian Assembly — temporary site
   Layout: light menu bar, photo hero on the home page, simple reading pages for pastors and leadership */
:root {
  --bg: #f7f5f0; --surface: #ffffff; --ink: #1f1b16; --soft: #5f574d; --line: #e3ddd2; --tint: #fcefe1;
  --accent: #b5520c; --flame: #ef8a1f; --shadow: rgba(45,32,18,.12);
  --display: "Playfair Display", Georgia, serif; --body: "Hanken Grotesk", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #161412; --surface: #1f1c19; --ink: #f3efe8; --soft: #b8ae9f; --line: #3a342d; --tint: #2d2319; --accent: #f5a65a; --shadow: rgba(0,0,0,.4); color-scheme: dark; } }
:root[data-theme="dark"] { --bg: #161412; --surface: #1f1c19; --ink: #f3efe8; --soft: #b8ae9f; --line: #3a342d; --tint: #2d2319; --accent: #f5a65a; --shadow: rgba(0,0,0,.4); color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.05rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }
.wrap { max-width: 1040px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* Menu bar */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.2rem; flex-wrap: wrap; min-height: 64px; padding-block: .5rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; font: 700 1.15rem/1 var(--display); }
.brand img { width: 30px; height: 30px; }
.menu { display: flex; align-items: center; flex-wrap: wrap; gap: .2rem; }
.menu a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .45rem .75rem; border-radius: 8px; color: var(--soft); }
.menu a:hover { background: var(--tint); color: var(--ink); }
.menu a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--flame); border-radius: 0; }
.menu a.give { background: var(--flame); color: #1a1205; margin-left: .3rem; border-radius: 999px; padding-inline: 1rem; }
.menu a.give:hover { background: #ffa143; }
@media (max-width: 600px) { .topbar .wrap { justify-content: center; } .menu { justify-content: center; } .menu a { padding: .4rem .55rem; font-size: .9rem; } }

/* Home hero */
.hero { position: relative; isolation: isolate; min-height: clamp(440px, 66vh, 640px); display: flex; align-items: center; background: #14110e; color: #fff; text-align: center; overflow: hidden; }
.hero img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,11,8,.5), rgba(15,11,8,.4) 40%, rgba(15,11,8,.82)); }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; padding-block: 3rem 5.5rem; }
.logo { width: min(250px, 60vw); height: auto; filter: drop-shadow(0 4px 18px rgba(0,0,0,.45)); }
.hero h1 { margin: 0; font: 700 clamp(2rem, 1.3rem + 3vw, 3.3rem)/1.1 var(--display); text-wrap: balance; }
.hero h1 em { font-style: italic; font-weight: 600; color: #ffc274; }
.hero p { margin: 0; max-width: 46ch; color: rgba(255,255,255,.9); font-size: 1.1rem; }
.btns { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: .4rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-flame { background: var(--flame); color: #1a1205; }
.btn-flame:hover { background: #ffa143; }
.btn-light { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.15); }

/* Service times */
.times-wrap { margin-top: -3rem; position: relative; z-index: 2; }
.times { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px var(--shadow); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; }
.slot { padding: 1.4rem 1.3rem; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; }
.slot:first-child { border-left: 0; }
.day { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.time { font: 700 2rem/1.1 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.time small { font: 600 .9rem var(--body); color: var(--soft); margin-left: .2rem; }
.what { font-weight: 600; color: var(--soft); font-size: .95rem; }
.slot.main { background: var(--tint); box-shadow: inset 0 4px 0 var(--flame); }
.slot.main small { color: var(--accent); }
@media (max-width: 760px) { .times { grid-template-columns: repeat(2, minmax(0, 1fr)); } .slot:nth-child(3) { border-left: 0; } .slot:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 380px) { .slot { padding: 1.1rem; } .time { font-size: 1.6rem; } }


/* Sermons list */
.sermons { padding-block: 3.5rem 0; }
.sermons-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .8rem 2rem; margin-bottom: 1.4rem; }
.sermons-head h2 { margin: .3rem 0 0; font: 700 clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem)/1.15 var(--display); }
.sermons-head a { color: var(--accent); font-weight: 700; text-decoration: none; }
.sermons-head a:hover { text-decoration: underline; }
.sermon-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sermon-list a { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1rem .4rem; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.sermon-list a:hover { background: var(--tint); }
.sermon-list time { font: 700 1.35rem/1.1 var(--display); font-variant-numeric: lining-nums; }
.sermon-list time small { display: block; font: 600 .78rem var(--body); letter-spacing: .12em; color: var(--soft); margin-top: .15rem; }
.sermon-list .title { font-weight: 600; }
.sermon-list .watch { color: var(--accent); font-weight: 700; font-size: .92rem; white-space: nowrap; display: inline-flex; align-items: center; gap: .4rem; }
.sermon-list .watch svg { width: 22px; height: 22px; }
@media (max-width: 520px) { .sermon-list a { grid-template-columns: 5.6rem minmax(0, 1fr) auto; } .sermon-list .watch span { display: none; } .sermon-list time { font-size: 1.15rem; } }

/* Contact strip */
.visit { padding-block: 3rem 4rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.visit div { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.visit h2 { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.visit a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.visit a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 700px) { .visit { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; } }

/* Inner pages */
.page-head { border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); display: flex; flex-direction: column; gap: .6rem; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.page-head h1 { margin: 0; font: 700 clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem)/1.1 var(--display); }
.page-head p { margin: 0; color: var(--soft); max-width: 56ch; font-size: 1.1rem; }

.pastor { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: start; padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); border-bottom: 1px solid var(--line); }
.pastor:last-of-type { border-bottom: 0; }
.pastor figure { margin: 0; position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); }
.pastor figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; border-radius: 16px; background: var(--line); }
.pastor .role { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.pastor h2 { margin: .2rem 0 1rem; font: 700 clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem)/1.15 var(--display); }
.pastor .bio { display: flex; flex-direction: column; gap: 1rem; color: var(--soft); max-width: 66ch; }
.pastor .bio p { margin: 0; }
@media (max-width: 720px) { .pastor { grid-template-columns: minmax(0, 1fr); } .pastor figure { position: static; max-width: 260px; } }

.board { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2.2rem 1.2rem; }
.member { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; }
.member img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); margin-bottom: .8rem; background: var(--line); }
.member b { font: 700 1.2rem/1.25 var(--display); }
.member span { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.member.officer span { color: var(--ink); }
.note { color: var(--soft); padding-bottom: 3rem; }

footer { border-top: 1px solid var(--line); padding-block: 1.6rem 2.2rem; font-size: .9rem; color: var(--soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem; }
footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
footer a { text-decoration: none; font-weight: 600; color: var(--ink); }
footer a:hover { color: var(--accent); }
