/* Lighthouse Community — palette pulled from the logo (coffee brown + cream),
   plus the lighthouse's lamp (amber) and the bay (muted water blue). */
:root {
  --brown: #2b221a;
  --brown-2: #3a2e23;
  --cream: #faf3e6;
  --paper: #f4ead8;
  --ink: #2b221a;
  --ink-soft: #5b4b3c;
  --amber: #e0a645;
  --amber-deep: #b97d1e;
  --water: #3f6b70;
  --line: #e2d3ba;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --caps: "Alegreya Sans SC", "Alegreya Sans", system-ui, sans-serif;

  --wrap: 1120px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 64px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.15rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--water); text-underline-offset: 3px; }
a:hover { color: var(--brown); }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 640px; }
.center { text-align: center; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--brown); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
p { margin: 0 0 1em; }

.eyebrow, .kicker {
  font-family: var(--caps);
  font-weight: 700;
  letter-spacing: .14em;
  font-size: .95rem;
  margin-bottom: .8em;
}
.kicker { color: var(--amber-deep); }

/* Header */
.site-header { background: var(--brown); color: var(--cream); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-family: var(--caps); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; }
.brand img { width: 48px; height: 48px; border-radius: 8px; }
.brand em { font-style: normal; font-weight: 500; opacity: .8; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: var(--cream); text-decoration: none; font-weight: 500; opacity: .85; }
.site-header nav a:hover { opacity: 1; color: var(--amber); }
/* Language switch stays visible on phones, where the nav is hidden */
.lang { color: var(--cream); text-decoration: none; font-family: var(--caps); font-weight: 700; letter-spacing: .06em; font-size: .95rem; border: 1px solid rgba(250,243,230,.45); border-radius: 999px; padding: 4px 14px; white-space: nowrap; }
.lang:hover { color: var(--amber); border-color: var(--amber); }

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 78% 42%, rgba(224,166,69,.16), transparent 42%),
    var(--brown);
  color: var(--cream);
  padding: 72px 0 120px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .eyebrow { color: var(--amber); }
.lede { font-size: 1.3rem; max-width: 34ch; color: #efe3cf; }
.hero-art img { width: min(420px, 100%); margin-inline: auto; opacity: .95; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.waves { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 92px; display: block; }
.w-fill { fill: var(--cream); }
/* the hero can end mid-pixel; tuck the next section over that blended row */
.hero + .section { margin-top: -2px; position: relative; background: var(--cream); }
.w-line { fill: none; stroke: var(--amber); stroke-width: 2; opacity: .55; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-light { background: var(--amber); color: var(--brown); }
.btn-light:hover { background: #ebb85e; color: var(--brown); }
.btn-ghost { border-color: rgba(250,243,230,.55); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); background: rgba(250,243,230,.08); }
.btn-dark { background: var(--brown); color: var(--cream); margin-top: 8px; }
.btn-dark:hover { background: var(--brown-2); color: var(--amber); }

/* Sections */
.section { padding: 72px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 22px 60px;
  color: var(--ink-soft);
}
.steps li strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; }
.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  color: var(--amber-deep);
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  display: grid; place-items: center;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line);
}

.good-to-know {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin: 48px 0 0; padding-top: 10px; position: relative;
}
.good-to-know::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M0 9 C4 9 6 1 10 1 M6 9 C10 9 12 1 16 1' fill='none' stroke='%23b97d1e' stroke-width='1.6' stroke-linecap='round' opacity='.5'/%3E%3C/svg%3E") repeat-x left center; }
.good-to-know div { padding: 22px 24px 0 0; }
.good-to-know div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.good-to-know dt { font-family: var(--caps); font-weight: 700; letter-spacing: .1em; color: var(--water); font-size: .95rem; margin-bottom: 4px; }
.good-to-know dd { margin: 0; color: var(--ink-soft); }

/* Scripture */
.verse { background: var(--water); color: var(--cream); padding: 80px 0; }
.verse blockquote { margin: 0 auto; max-width: 820px; text-align: center; }
.verse p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.35; }
.verse cite { font-family: var(--caps); font-style: normal; letter-spacing: .14em; color: var(--amber); font-weight: 700; }

/* Find us */
address { font-style: normal; font-size: 1.25rem; margin: 0 0 1.2em; padding-left: 16px; border-left: 3px solid var(--amber); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); aspect-ratio: 4 / 3.4; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.band { background: var(--paper); }
.center .actions { justify-content: center; margin-top: 8px; }
.center .actions .btn-dark { margin-top: 0; }
.aside { font-size: 1rem; color: var(--ink-soft); font-style: italic; }

/* Footer */
.site-footer { background: var(--brown); color: #e7dac4; padding: 56px 0; font-size: 1.05rem; }
.footer-grid { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 48px; align-items: center; }
.footer-grid img { width: 130px; height: auto; border-radius: 12px; }
.foot-title { font-family: var(--caps); letter-spacing: .12em; color: var(--amber); font-weight: 700; margin-bottom: .3em; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--amber); }

/* Phone */
@media (max-width: 820px) {
  body { font-size: 1.08rem; }
  .site-header nav { display: none; }
  .hero { padding: 48px 0 100px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 150px; margin: 0; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .good-to-know { grid-template-columns: 1fr; }
  .good-to-know div, .good-to-know div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .section { padding: 56px 0; }
}

/* Photos */
.hero-photo { margin: 0; justify-self: center; transform: rotate(1.5deg); background: var(--cream); padding: 10px 10px 8px; border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.35); max-width: 520px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.hero-photo figcaption { color: var(--ink-soft); font-family: var(--serif); font-style: italic; font-size: 1rem; text-align: center; padding-top: 6px; }
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.photo-strip.three { grid-template-columns: repeat(3, 1fr); max-width: 900px; margin-inline: auto; }
.photo-strip figure { margin: 0; min-width: 0; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.photo-strip figcaption { font-family: var(--caps); font-weight: 700; letter-spacing: .1em; font-size: .85rem; color: var(--water); padding-top: 6px; }
.pastor { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.pastor-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.group-photo { width: 100%; max-width: 560px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); margin-top: 12px; }
@media (max-width: 820px) {
  .hero-photo { transform: none; max-width: 100%; order: 0; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .photo-strip.three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pastor { grid-template-columns: 1fr; gap: 24px; }
  .pastor-photo { max-width: 260px; }
}

/* Nautical touches */
.coords { font-family: var(--caps); letter-spacing: .16em; font-size: .9rem; color: var(--amber); margin-top: 22px; opacity: .9; font-variant-numeric: tabular-nums; }
.coords.dark { color: var(--water); display: inline-block; margin-top: 6px; font-size: .85rem; }
.site-footer .coords { color: #cdb894; font-size: .8rem; display: inline-block; margin-top: 6px; }
.steps li::before { box-shadow: inset 0 0 0 3px var(--cream), inset 0 0 0 4px rgba(185,125,30,.45); background: var(--cream); }
.verse { position: relative; overflow: hidden; }
.verse .wrap { position: relative; }
.compass { position: absolute; right: -60px; top: 50%; width: 340px; height: 340px; transform: translateY(-50%) rotate(12deg); color: var(--cream); opacity: .07; pointer-events: none; }
.arrive { display: grid; gap: 12px; margin: 4px 0 18px; }
.arrive-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--paper); }
.arrive-card p { margin: 0; color: var(--ink-soft); }
.arrive-card .arrive-title { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--ink); margin-bottom: 2px; }
.arrive-card.boat { background: var(--water); border-color: var(--water); position: relative; padding-left: 58px; }
.arrive-card.boat p { color: #e8efe9; }
.arrive-card.boat .arrive-title { color: var(--cream); }
.anchor { position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; color: var(--amber); }
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M0 9 C4 9 6 1 10 1 M6 9 C10 9 12 1 16 1' fill='none' stroke='%23b97d1e' stroke-width='1.6' stroke-linecap='round' opacity='.5'/%3E%3C/svg%3E") repeat-x left center; }
@media (max-width: 820px) { .compass { width: 240px; height: 240px; right: -70px; } }

/* Coming by boat */
.boat-band { background: var(--water); color: var(--cream); position: relative; }
.boat-band h2 { color: var(--cream); }
.boat-band .kicker { color: var(--amber); }
.boat-head { display: flex; gap: 20px; align-items: flex-start; max-width: 760px; }
.boat-icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--amber); color: var(--amber); display: grid; place-items: center; box-shadow: inset 0 0 0 4px var(--water), inset 0 0 0 5px rgba(224,166,69,.5); margin-top: 6px; }
.boat-icon svg { width: 28px; height: 28px; }
.boat-lede { color: #e3ece8; max-width: 58ch; }
.boat-steps { list-style: none; counter-reset: b; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.boat-steps li { counter-increment: b; background: rgba(250,243,230,.07); border: 1px solid rgba(250,243,230,.18); border-radius: var(--radius); padding: 18px 18px 20px; color: #e3ece8; min-width: 0; }
.boat-steps li::before { content: counter(b); display: block; font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--amber); line-height: 1; margin-bottom: 10px; }
.boat-steps li strong { display: block; color: var(--cream); font-family: var(--serif); font-size: 1.25rem; margin-bottom: 4px; }
.boat-fine { margin-top: 22px; font-size: 1rem; color: #cfdcd7; font-style: italic; max-width: 70ch; }
.boat-band .coords { color: var(--amber); margin-top: 6px; }
.arrive-card.boat a { color: var(--cream); }
@media (max-width: 820px) {
  .boat-steps { grid-template-columns: 1fr 1fr; }
  .boat-head { gap: 14px; }
  .boat-icon { width: 46px; height: 46px; }
}
@media (max-width: 460px) { .boat-steps { grid-template-columns: 1fr; } }

.scripture-credit { font-size: .8rem; opacity: .65; margin: 28px 0 0; line-height: 1.45; }
.site-credit { font-size: .8rem; opacity: .65; margin: 10px 0 0; }
.site-credit a { color: inherit; }
