/* 홍콩엘림교회 — Elim Oasis. Type: MaruBuri (display) + Pretendard (text). */
@font-face { font-family: "MaruBuri"; src: url("fonts/sub/MaruBuri-ExtraLight.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "MaruBuri"; src: url("fonts/sub/MaruBuri-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "MaruBuri"; src: url("fonts/sub/MaruBuri-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MaruBuri"; src: url("fonts/sub/MaruBuri-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("fonts/sub/Pretendard-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("fonts/sub/Pretendard-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("fonts/sub/Pretendard-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("fonts/sub/Pretendard-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Pretendard"; src: url("fonts/sub/Pretendard-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* colour: desert → oasis */
  --sand: #F7F6F2; --sand-2: #EEEDE7; --spring: #E6F0F5; --spring-2: #D6E6EE; --night: #0B2447;
  --orange: #EF8306; --orange-ink: #B45F00; --blue: #003A8F;
  --ink: #2A211F; --ink-2: #5F5450; --ink-3: #8A7F7A;
  --rule: rgba(42, 33, 31, .14); --rule-blue: rgba(0, 58, 143, .18); --rule-light: rgba(255, 255, 255, .22);
  /* type */
  --serif: "MaruBuri", "Noto Serif KR", serif;
  --sans: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  /* space: 8-based, three named distances */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 104px; --s7: 160px;
  --margin: clamp(20px, 6.6vw, 96px);
  --col: calc((100vw - 2 * var(--margin)) / 12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--sand); color: var(--ink); font: 400 17px/1.75 var(--sans); word-break: keep-all; overflow-wrap: anywhere;
  font-feature-settings: "ss06" 1; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
.num { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1; }
.wrap { padding-inline: var(--margin); }
.eyebrow { font: 500 13.5px/1.4 var(--sans); letter-spacing: .02em; color: var(--blue); display: flex; align-items: center; gap: 14px; }
.eyebrow::after { content: ""; width: 72px; height: 1px; background: currentColor; opacity: .35; }
.on-dark .eyebrow { color: rgba(255,255,255,.78); }
.display { font: 200 clamp(44px, 6.1vw, 92px)/1.12 var(--serif); letter-spacing: -.035em; }
.h1 { font: 300 clamp(34px, 3.9vw, 56px)/1.22 var(--serif); letter-spacing: -.03em; }
.h2 { font: 300 clamp(26px, 2.6vw, 38px)/1.3 var(--serif); letter-spacing: -.025em; }
.h3 { font: 400 clamp(19px, 1.5vw, 22px)/1.45 var(--serif); letter-spacing: -.015em; }
.lead { font: 400 clamp(17px, 1.25vw, 19px)/1.8 var(--sans); color: var(--ink-2); max-width: 34em; }
.small { font: 400 14px/1.6 var(--sans); color: var(--ink-3); }
.link { font: 500 15px/1.4 var(--sans); color: var(--blue); display: inline-flex; gap: 10px; align-items: center; }
.link::after { content: "→"; transition: transform .25s ease; }
.link:hover::after { transform: translateX(4px); }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 999px; background: var(--orange);
  color: var(--ink); font: 600 16px/1 var(--sans); letter-spacing: -.01em; transition: background .2s ease, transform .2s ease; }
.btn:hover { background: #F59322; transform: translateY(-1px); }

/* ---------- strip + header ---------- */
.strip { background: var(--blue); color: rgba(255,255,255,.88); font: 400 13px/1 var(--sans); padding: 11px var(--margin);
  display: flex; justify-content: space-between; gap: 16px; }
.strip .live { display: inline-flex; gap: 8px; align-items: center; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); display: inline-block; }
.dot.pulse { box-shadow: 0 0 0 0 rgba(239,131,6,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(239,131,6,0); } 100% { box-shadow: 0 0 0 0 rgba(239,131,6,0); } }
.header { position: sticky; isolation: isolate; top: 0; z-index: 20; background: rgba(247,246,242,.94); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule); }
.header-in { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px var(--margin); }
.lockup { display: flex; align-items: flex-end; gap: 10px; }
.lockup img { height: 40px; width: auto; }
.lockup b { font: 700 21px/1 var(--sans); letter-spacing: -.04em; display: block; }
.lockup small { font: 500 8.5px/1.6 var(--sans); color: var(--orange); letter-spacing: .02em; display: block; }
.nav { display: flex; gap: clamp(28px, 3.6vw, 56px); }
.nav > li { list-style: none; position: static; }
.nav > li > a { font: 500 16px/1 var(--sans); letter-spacing: -.01em; padding: 12px 0; display: block; position: relative; }
.nav > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--blue); transform: scaleX(0); transition: transform .3s ease; transform-origin: left; }
.nav > li:hover > a, .nav > li:focus-within > a { color: var(--blue); }
.nav > li:hover > a::after, .nav > li:focus-within > a::after { transform: scaleX(1); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--sand); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 48px var(--margin) 56px; display: grid; grid-template-columns: 3fr repeat(4, 2fr); gap: 48px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .22s ease, transform .22s ease, visibility .22s; }
.nav > li:hover .mega, .nav > li:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega h4 { font: 400 20px/1.4 var(--serif); color: var(--blue); padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--rule-blue); }
.mega ul { list-style: none; display: grid; gap: 8px; }
.mega ul a { font: 400 15.5px/1.5 var(--sans); }
.mega ul a:hover { color: var(--blue); }
.mega .intro .h2 { font-size: 40px; margin-bottom: 14px; }
.menu-btn { display: none; font: 600 15px/1 var(--sans); background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 10px 16px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 940px); color: #fff; overflow: hidden; display: grid; align-items: end; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 30% 18%, rgba(239,131,6,.18), transparent 60%),
              linear-gradient(180deg, rgba(8,18,36,.10) 0%, rgba(8,18,36,.18) 45%, rgba(8,18,36,.72) 100%); }
.hero-in { position: relative; padding: 0 var(--margin) clamp(120px, 14vh, 170px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.hero-copy { grid-column: 1 / span 8; }
.hero .kicker { font: 500 14px/1.4 var(--sans); letter-spacing: .02em; opacity: .85; margin-bottom: 28px; }
.hero .verse { font: 300 clamp(16px, 1.25vw, 19px)/1.75 var(--serif); opacity: .9; margin: 28px 0 0; max-width: 32em; }
.hero .verse cite { font-style: normal; font-family: var(--sans); font-size: 13px; letter-spacing: .08em; opacity: .75; display: block; margin-top: 6px; }
.now { grid-column: 9 / span 4; justify-self: end; text-align: right; border-top: 1px solid var(--rule-light); padding-top: 18px; min-width: 300px; }
.now .label { font: 500 13px/1 var(--sans); letter-spacing: .02em; opacity: .8; display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.now .what { font: 300 26px/1.35 var(--serif); margin: 12px 0 6px; letter-spacing: -.02em; }
.now .when { font: 400 15px/1.5 var(--sans); opacity: .85; }
.hero-actions { display: flex; gap: 28px; align-items: center; margin-top: 40px; }
.hero-actions .link { color: #fff; }
.water { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; }
.credit { position: absolute; right: var(--margin); bottom: 104px; font: 400 12px/1 var(--sans); color: rgba(255,255,255,.62); }

/* ---------- spring sections ---------- */
.spring { background: var(--spring); }
.spring-2 { background: var(--spring-2); }
.section { padding: var(--s6) var(--margin); }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: var(--s5); }
.sec-head .t { grid-column: 1 / span 7; display: grid; gap: 18px; }
.sec-head .d { grid-column: 9 / span 4; }

/* quick */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 var(--margin) var(--s5); }
.quick a { padding: 8px 32px 8px 0; display: grid; gap: 10px; align-content: start; }
.quick a + a { border-left: 1px solid var(--rule-blue); padding-left: 32px; }
.quick .n { font: 400 13px/1 var(--sans); color: var(--ink-3); letter-spacing: .08em; }
.quick .h3 { color: var(--blue); font-size: clamp(22px, 1.9vw, 28px); }
.quick p { font: 400 15.5px/1.6 var(--sans); color: var(--ink-2); }
.quick a:hover .h3 { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* ---------- the week: rhythm chart ---------- */
.week { --rows: 17; display: grid; grid-template-columns: 64px repeat(7, 1fr); position: relative; border-top: 1px solid var(--rule-blue); }
.week .day { font: 500 14px/1 var(--sans); padding: 18px 0 16px; text-align: center; letter-spacing: .06em; color: var(--ink-2); border-bottom: 1px solid var(--rule-blue); }
.week .day.today { color: var(--blue); }
.week .day.today b { display: block; font: 300 30px/1.1 var(--serif); margin-top: 6px; letter-spacing: -.02em; }
.week .day b { display: block; font: 300 30px/1.1 var(--serif); margin-top: 6px; color: var(--ink); letter-spacing: -.02em; }
.week .axis { grid-column: 1; position: relative; }
.week .col { position: relative; border-left: 1px solid var(--rule-blue); height: 680px; }
.week .col.today { background: linear-gradient(180deg, rgba(0,58,143,.06), rgba(0,58,143,.02)); }
.week .hr { position: absolute; left: 0; right: 0; border-top: 1px dashed rgba(0,58,143,.10); }
.week .tick { position: absolute; right: 12px; transform: translateY(-50%); font: 400 12px/1 var(--sans); color: var(--ink-3); }
.ev { position: absolute; left: 10px; right: 6px; transform: translateY(-50%); display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; padding: 1px 0 1px 10px; border-left: 2px solid var(--blue); }
.ev .t { font: 600 12.5px/1.2 var(--sans); color: var(--blue); }
.ev .n { font: 400 14px/1.2 var(--serif); color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.ev.sun { border-left-color: var(--orange); }
.ev.sun .t { color: var(--orange-ink); }
.ev.mtn { border-left-color: var(--night); }
.nowline { position: absolute; height: 0; border-top: 2px solid var(--orange); z-index: 2; }
.nowline::before { content: attr(data-label); position: absolute; left: 0; top: -22px; font: 600 12px/1 var(--sans); color: var(--orange-ink); background: var(--spring); padding-right: 8px; }
.week-legend { display: flex; gap: 28px; margin-top: 22px; font: 400 14px/1 var(--sans); color: var(--ink-2); }
.week-legend span { display: inline-flex; gap: 10px; align-items: center; }
.week-legend i { width: 14px; height: 2px; display: inline-block; }

/* ---------- sermon index ---------- */
.sermon-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: var(--s5); align-items: end; }
.sermon-top .feature { grid-column: 1 / span 6; display: grid; gap: 18px; }
.sermon-top figure { grid-column: 8 / span 5; }
.sermon-top figcaption { font: 400 13px/1.5 var(--sans); color: var(--ink-3); margin-top: 10px; }
.index-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--rule-blue); margin-bottom: 4px; }
.index-tabs a { font: 500 15px/1 var(--sans); padding: 14px 0; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.index-tabs a[aria-current] { color: var(--blue); border-color: var(--blue); }
.index { list-style: none; }
.index li a { display: grid; grid-template-columns: 120px 1fr 260px 120px 40px; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--rule-blue); transition: background .2s ease, padding .25s ease; }
.index li a:hover { background: rgba(255,255,255,.45); padding-inline: 14px; }
.index .date { font: 400 14px/1 var(--sans); color: var(--ink-3); }
.index .title { font: 400 21px/1.4 var(--serif); letter-spacing: -.015em; }
.index .pass { font: 400 14.5px/1.4 var(--sans); color: var(--ink-2); }
.index .who { font: 400 14px/1 var(--sans); color: var(--ink-3); }
.index .go { font: 500 14px/1 var(--sans); color: var(--blue); text-align: right; }
.count { display: flex; align-items: baseline; gap: 16px; margin-top: var(--s4); }
.count b { font: 200 64px/1 var(--serif); letter-spacing: -.04em; color: var(--blue); }

/* ---------- stories ---------- */
.stories { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px 24px; }
.story { display: grid; gap: 14px; align-content: start; }
.story .ph { overflow: hidden; }
.story img { width: 100%; aspect-ratio: var(--ar, 4/3); object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.story:hover img { transform: scale(1.03); }
.story .meta { display: flex; gap: 14px; font: 400 13px/1 var(--sans); color: var(--ink-3); letter-spacing: .04em; }
.story .meta .no { color: var(--blue); }
.s1 { grid-column: 1 / span 5; grid-row: span 2; --ar: 4/5; }
.s2 { grid-column: 7 / span 3; }
.s3 { grid-column: 10 / span 3; margin-top: 80px; }
.s4 { grid-column: 7 / span 3; }
.s5 { grid-column: 10 / span 3; }

/* ---------- mountain ---------- */
.mountain { position: relative; color: #fff; min-height: 680px; display: grid; align-items: end; overflow: hidden; }
.mountain > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mountain::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,20,40,.9) 0%, rgba(6,20,40,.7) 45%, rgba(6,20,40,.62) 100%), linear-gradient(0deg, rgba(6,20,40,.5), transparent 60%); }
.mountain-in { position: relative; padding: var(--s6) var(--margin); display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; }
.mountain .copy { grid-column: 1 / span 6; display: grid; gap: 22px; }

/* ---------- route ---------- */
.route { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: start; }
.route .map { grid-column: 1 / span 7; background: var(--sand); border: 1px solid var(--rule); }
.route ol { grid-column: 9 / span 4; list-style: none; counter-reset: step; }
.route li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 6px 0; padding: 22px 0; border-top: 1px solid var(--rule-blue); }
.route li::before { content: counter(step, decimal-leading-zero); font: 300 22px/1.2 var(--serif); color: var(--blue); grid-row: span 2; }
.route li b { font: 400 19px/1.4 var(--serif); }
.route li span { font: 400 15px/1.6 var(--sans); color: var(--ink-2); }
.contact { display: flex; gap: 48px; margin-top: var(--s4); }
.contact div { display: grid; gap: 4px; }
.contact b { font: 300 22px/1.3 var(--serif); }

/* ---------- news + paths ---------- */
.news { list-style: none; }
.news a { display: grid; grid-template-columns: 140px 1fr 40px; gap: 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--rule-blue); }
.news a:hover .h3 { color: var(--blue); }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.path { padding: var(--s6) var(--margin); display: grid; gap: 18px; align-content: start; }
.path.arrive { background: var(--sand); }
.path.leave { background: var(--night); color: #fff; }
.path ol { list-style: none; display: grid; gap: 10px; counter-reset: p; }
.path li { counter-increment: p; font: 400 17px/1.6 var(--serif); display: flex; gap: 16px; }
.path li::before { content: counter(p, decimal-leading-zero); font: 400 13px/2 var(--sans); opacity: .6; }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--night); color: #fff; overflow: hidden; }
.footer > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .09; mix-blend-mode: luminosity; }
.footer-in { position: relative; padding: var(--s6) var(--margin) 48px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.footer .brand { grid-column: 1 / span 6; }
.footer .motto { font: 200 clamp(32px, 3.4vw, 52px)/1.3 var(--serif); letter-spacing: -.03em; }
.footer .cols { grid-column: 8 / span 5; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; font: 400 14.5px/1.9 var(--sans); color: rgba(255,255,255,.82); }
.footer .cols h5, .footer .cols .fh { font: 500 13px/1 var(--sans); letter-spacing: .02em; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.footer .base { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--rule-light); padding-top: 24px; margin-top: var(--s5); font: 400 13px/1 var(--sans); color: rgba(255,255,255,.55); }
.footer .lockup { margin-bottom: 40px; }

.bar { display: none; }
.agenda { display: none; list-style: none; border-top: 1px solid var(--rule-blue); }
.agenda li { display: grid; grid-template-columns: 44px 1fr; padding: 16px 0; border-bottom: 1px solid var(--rule-blue); }
.agenda li.today { background: rgba(0,58,143,.06); margin-inline: calc(-1 * var(--margin)); padding-inline: var(--margin); }
.agenda .d { font: 300 22px/1.2 var(--serif); color: var(--blue); }
.agenda .e { display: grid; gap: 6px; }
.agenda .e span { font: 400 16px/1.4 var(--serif); padding-left: 12px; border-left: 2px solid var(--blue); }
.agenda .e span.sun { border-color: var(--orange); }
.agenda .e span.mtn { border-color: var(--night); }
.agenda b { font: 600 13px/1 var(--sans); color: var(--blue); margin-right: 10px; }
.agenda .sun b { color: var(--orange-ink); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  body { font-size: 16.5px; }
  .nav, .header .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .lockup img { height: 32px; } .lockup b { font-size: 18px; }
  .hero { min-height: 640px; }
  .hero-in { grid-template-columns: 1fr; padding-top: 96px; padding-bottom: 120px; }
  .hero-copy, .now { grid-column: 1; }
  .now { justify-self: stretch; text-align: left; min-width: 0; }
  .now .label { justify-content: flex-start; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-actions .btn { justify-content: center; }
  .credit { display: none; }
  .quick { grid-template-columns: 1fr 1fr; gap: 0; }
  .quick a { padding: 20px 16px 20px 0; }
  .quick a + a { padding-left: 16px; }
  .quick a:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-blue); }
  .quick a:nth-child(4) { border-top: 1px solid var(--rule-blue); }
  .sec-head, .sermon-top, .route, .mountain-in, .footer-in { grid-template-columns: 1fr; }
  .sec-head > *, .sermon-top > *, .route > *, .mountain-in > *, .footer-in > * { grid-column: 1 / -1 !important; }
  .week-scroll { display: none; }
  .agenda { display: block; }
  .contact { flex-wrap: wrap; gap: 20px 32px; }
  .contact b { font-size: 20px; white-space: nowrap; }
  .index li a { grid-template-columns: 1fr; gap: 6px; }
  .index .go { text-align: left; }
  .stories { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .s1 { grid-column: 1 / -1; grid-row: auto; }
  .s2, .s3, .s4, .s5 { grid-column: span 1; margin-top: 0; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .paths { grid-template-columns: 1fr; }
  .path { padding: 40px 24px; }
  .news a { grid-template-columns: 1fr; gap: 4px; }
  .bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(247,246,242,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom); }
  .bar a { text-align: center; padding: 18px 0; font: 600 15px/1 var(--sans); }
  .bar a:last-child { color: var(--blue); }
  body { padding-bottom: 64px; }
}
