/* 은혜와언약교회 홈페이지 — 새벽 하늘: 로고의 하늘색, 깊은 남색 글자, 해 뜨는 빛은 아주 조금 */
:root {
  --sky: #2193D1;        /* 로고 색 */
  --sky-deep: #0E639F;   /* 흰 바탕 위 링크·버튼 */
  --ink: #12324A;
  --ink-2: #4A6377;
  --mist: #EDF5FB;
  --paper: #FFFFFF;
  --line: #D5E3EE;
  --dawn: #F3B76B;       /* 해 뜨는 빛 — 강조선에만 */
  --serif: 'Gowun Batang', 'Nanum Myeongjo', 'AppleMyungjo', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --gut: clamp(20px, 5vw, 48px);
  font-size: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.7; letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-deep); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.35; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: var(--gut); }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; margin-top: 40px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s; }
.btn-fill { background: var(--sky-deep); color: #fff; }
.btn-fill:hover { background: var(--ink); }
.btn-paper { background: rgba(255, 255, 255, .86); color: var(--ink); border-color: rgba(18, 50, 74, .18); }
.btn-paper:hover { background: #fff; }
.btn-line { color: var(--sky-deep); border-color: currentColor; background: transparent; }
.btn-line:hover { background: var(--mist); }
.more { font-weight: 600; white-space: nowrap; }

/* 머리말 */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: var(--mist); }
.nav a[aria-current] { color: var(--sky-deep); box-shadow: inset 0 -3px 0 var(--dawn); border-radius: 0; }
.top-app { min-height: 42px; padding: 0 18px; font-size: .92rem; white-space: nowrap; }

/* 첫 화면 */
.hero { background: #DCEBF6 url('/img/hero.jpg') right bottom / cover no-repeat; }
.hero-in { min-height: min(78vh, 720px); display: flex; flex-direction: column; justify-content: center; padding-block: 72px 96px; }
.hero-church { font-weight: 600; color: var(--ink); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 6.2vw, 4rem); line-height: 1.28; max-width: 14em; }
.hero-verse { font-family: var(--serif); font-size: 1.1rem; margin-top: 20px; max-width: 30em; }
.hero-next { margin: 34px 0 0; padding-left: 16px; border-left: 3px solid var(--dawn); font-size: 1.12rem; font-weight: 600; }
.hero-next span { font-weight: 500; color: var(--ink-2); margin-right: 6px; }
.hero-act { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; }

/* 띠 구역 */
.band { padding-block: clamp(64px, 9vw, 112px); }
.band-tight { padding-block: clamp(40px, 6vw, 64px); }
.band-mist { background: var(--mist); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink a { color: #fff; }
.band-ink .btn-line { border-color: rgba(255, 255, 255, .5); }
.band-ink .btn-line:hover { background: rgba(255, 255, 255, .1); }
.band h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.band-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.sub-h { font-size: 1.3rem; margin: 56px 0 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px clamp(32px, 6vw, 88px); align-items: start; }
.split-h p { color: var(--ink-2); margin: 14px 0 0; }
.band-ink .split-h p { color: rgba(255, 255, 255, .78); }

/* 예배 시간 */
.times { margin: 0; border-top: 2px solid var(--ink); }
.times div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.times dt { font-family: var(--serif); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.55rem); }
.times dd { margin: 0; font-size: 1.08rem; font-weight: 600; color: var(--sky-deep); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 설교 */
.sermon-lead { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.lead-img { position: relative; display: block; border-radius: 6px; overflow: hidden; background: #0b1f2d; }
.lead-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.play { position: absolute; left: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: #fff; }
.play::after { content: ''; position: absolute; left: 24px; top: 19px; border-left: 18px solid var(--sky-deep); border-block: 11px solid transparent; }
.lead-d { color: var(--ink-2); font-weight: 600; margin-bottom: 10px; }
.lead-txt h3 { font-size: clamp(1.5rem, 3.2vw, 2.3rem); margin-bottom: 26px; }
.lead-txt h3 a { color: inherit; text-decoration: none; }
.lead-txt h3 a:hover { text-decoration: underline; }
.vids { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; margin-top: 48px; }
.vids-all { margin-top: 0; }
.vid { display: block; color: var(--ink); text-decoration: none; }
.vid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--line); }
.vid-t { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; line-height: 1.45; margin-top: 12px; }
.vid:hover .vid-t { text-decoration: underline; }
.vid-d { display: block; color: var(--ink-2); font-size: .92rem; margin-top: 4px; }
.player { position: relative; display: block; aspect-ratio: 16 / 9; background: #0b1f2d; border-radius: 6px; overflow: hidden; margin: 28px 0 16px; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 소식·일정 */
.news, .events { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.news a { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.news a:hover .news-t { text-decoration: underline; }
.news-c { color: var(--sky-deep); font-weight: 600; font-size: .94rem; }
.news-t { font-size: 1.1rem; font-weight: 600; }
.news-t small { font-weight: 500; color: var(--ink-2); margin-left: 6px; }
.news time, .events time { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.events li { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: baseline; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.events li > span:first-of-type { font-weight: 600; font-size: 1.06rem; }
.events time { min-width: 13em; }
.ev-p { color: var(--ink-2); }

/* 오시는 길 */
.visit-addr { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.45; margin-bottom: 10px; }
.visit-tel { font-size: 1.35rem; font-weight: 700; font-variant-numeric: tabular-nums; margin: 0; }
.visit-tel a { text-decoration: none; }
.visit-act { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.app-note p:first-child { font-size: 1.12rem; max-width: 30em; }
.prose { max-width: 36em; font-size: 1.06rem; }
.prose .btn { margin: 12px 6px 0 0; }

/* 안쪽 페이지 */
.page-h { background: linear-gradient(180deg, #DCEBF6 0%, var(--mist) 100%); padding-block: clamp(48px, 8vw, 88px) clamp(36px, 6vw, 56px); }
.page-h h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-h p { margin: 12px 0 0; color: var(--ink-2); font-size: 1.08rem; }
.crumb { margin-bottom: 18px; font-weight: 600; }
.art-h { font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
.art-d { color: var(--ink-2); margin: 10px 0 0; }
.art-img { border-radius: 6px; margin: 28px 0; }
.art-sum { font-weight: 600; }
.wrap.narrow .prose { margin-top: 28px; }

/* 바닥 */
.foot { background: var(--mist); border-top: 1px solid var(--line); padding-block: 48px 28px; font-size: .94rem; color: var(--ink-2); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.foot-name { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 1.08rem; margin-bottom: 6px; }
.foot a { color: inherit; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-content: flex-start; max-width: 26em; }
.foot-nav a { font-weight: 600; text-decoration: none; color: var(--ink); }
.foot-nav a:hover { text-decoration: underline; }
.foot-copy { margin: 32px auto 0; font-size: .86rem; }

@media (max-width: 860px) {
  :root { font-size: 17px; }
  .top-in { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .brand img { height: 34px; }
  .top-app { margin-left: auto; }
  .nav { order: 3; width: calc(100% + 2 * var(--gut)); margin: 6px calc(-1 * var(--gut)) 0; padding-inline: calc(var(--gut) - 12px); overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 12px 12px; }
  .hero { background-position: 72% bottom; }
  .hero-in { min-height: 0; padding-block: 56px 150px; }
  .split, .sermon-lead { grid-template-columns: minmax(0, 1fr); }
  .vids { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .vids:not(.vids-all) .vid:nth-child(3) { display: none; }
  .news a { grid-template-columns: minmax(0, 1fr) auto; }
  .news-c { grid-column: 1 / -1; margin-bottom: -10px; }
  .events time { min-width: 100%; }
}
@media (max-width: 420px) {
  .times div { flex-direction: column; gap: 2px; }
  .times dd { text-align: left; }
  .hero-act .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
