:root {
  color-scheme: light;
  --ink: #202c3f;
  --muted: #52657c;
  --blue: #184bb2;
  --navy: #142a52;
  --pale: #edf4ff;
  --line: #d7e0ed;
  --white: #fff;
  font-family: "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4, p, ul, figure, dl, dd { margin: 0; }
a { color: inherit; }
ul { list-style: none; padding: 0; }
img { display: block; width: 100%; height: auto; }
:focus-visible { outline: 3px solid #6798f4; outline-offset: 4px; }
section { scroll-margin-top: 1rem; }

.frame {
  width: min(calc(100% - 5rem), 74rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 5;
  top: .5rem;
  left: .5rem;
  padding: .6rem 1rem;
  transform: translateY(-200%);
  background: var(--white);
}

.skip:focus { transform: translateY(0); }

.site-header {
  border-top: .28rem solid var(--blue);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 4.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.37rem;
  letter-spacing: -.05em;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
}

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  flex: none;
  background:
    linear-gradient(#fff, #fff) center 56% / 2px 53% no-repeat,
    linear-gradient(#fff, #fff) center 41% / 47% 2px no-repeat,
    var(--blue);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0 clamp(.8rem, 2.45vw, 2.35rem);
  margin-right: auto;
}

.site-header nav a,
.header-link,
.section-link,
.footer-links a { text-decoration: none; font-weight: 700; }

.site-header nav a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  white-space: nowrap;
}

.site-header nav a:hover,
.header-link:hover,
.section-link:hover,
.footer-links a:hover { text-decoration: underline; text-underline-offset: .25em; }

.header-link {
  flex: none;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  color: var(--blue);
  font-size: .94rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: clamp(1rem, 2vw, 1.8rem);
}

.hero-cover {
  position: relative;
  min-height: clamp(18.75rem, 29vw, 26.5rem);
  display: flex;
  align-items: end;
  isolation: isolate;
  background: var(--navy);
  color: var(--white);
}

.hero-cover img,
.hero-cover::after { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-cover img {
  object-fit: cover;
  object-position: center 41%;
  z-index: -2;
}

.hero-cover::after {
  content: "";
  z-index: -1;
  background: linear-gradient(26deg, #101c35 4%, #151f38da 31%, #15234225 77%);
}

.hero-copy { padding: clamp(1.25rem, 4.4vw, 3.25rem); }

.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.05rem, 4.25vw, 3.95rem);
  line-height: 1.1;
  letter-spacing: -.07em;
  font-weight: 800;
}

.hero-copy p {
  color: #eef3ff;
  margin-top: .75rem;
  font-size: clamp(.95rem, 1.45vw, 1.12rem);
}

.hero-service {
  align-content: center;
  color: var(--white);
  background: linear-gradient(150deg, #1f52b8, #143984);
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.hero-service h2 {
  color: #d9e8ff;
  font-size: 1.1rem;
  font-weight: 750;
  margin-bottom: .45rem;
}

.hero-service dl div {
  display: flex;
  align-items: baseline;
  gap: clamp(.5rem, 1vw, .9rem);
  border-bottom: 1px solid #ffffff50;
  padding: .35rem 0 .5rem;
}

.hero-service dt { color: #e7f0ff; font-size: .96rem; }
.hero-service dd {
  font-size: clamp(1.7rem, 3.15vw, 2.85rem);
  font-weight: 800;
  line-height: 1.27;
  letter-spacing: -.065em;
}

.hero-service > p { margin-top: .72rem; color: #eef4ff; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: .52rem .85rem;
  text-decoration: none;
  text-align: center;
  font-weight: 750;
}

.button.primary { background: var(--blue); color: var(--white); }
.button.primary:hover { background: var(--navy); }
.hero-service .primary { background: var(--white); color: var(--blue); }
.hero-service .primary:hover { background: #dbeaff; }
.hero-service .secondary { border-color: #ffffff70; color: var(--white); }
.hero-service .secondary:hover { background: #ffffff22; }

.section { padding-block: clamp(3rem, 6vw, 5.5rem); }

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .45rem 1rem;
  margin-bottom: 1.35rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.45vw, 2.7rem);
  line-height: 1.2;
  letter-spacing: -.06em;
}

.service-table {
  width: 100%;
  border-top: .18rem solid var(--blue);
  border-collapse: collapse;
  text-align: left;
  font-size: 1rem;
}

.service-table :is(th, td) {
  padding: .84rem clamp(.6rem, 2vw, 1.45rem);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.service-table thead { background: var(--pale); color: var(--navy); }
.service-table thead th:first-child { width: 22%; }
.service-table thead th:nth-child(2) { width: 35%; }
.service-table tbody th { color: var(--navy); }
.service-table tbody tr:nth-child(even) { background: #f7faff; }
.service-detail { display: block; color: var(--muted); font-size: .94rem; }
.service-detail a { color: var(--blue); }

.next-gen-title {
  margin: 2.4rem 0 .95rem;
  font-size: 1.42rem;
  letter-spacing: -.045em;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  display: flex;
  min-height: 7.5rem;
  border: 1px solid var(--line);
}

.service-card img {
  align-self: stretch;
  width: 33%;
  height: auto;
  object-fit: cover;
}

.service-copy { padding: .9rem .75rem .9rem .9rem; }
.service-copy h4 { font-size: 1.09rem; line-height: 1.25; letter-spacing: -.03em; margin-bottom: .25rem; }
.service-copy p { color: var(--muted); }
.service-copy .service-time { color: var(--blue); font-weight: 750; }
.section-link { color: var(--blue); }

.sermons { background: #f0f5fc; }
.sermon-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }

.sermon-list li:first-child { grid-row: span 2; }
.sermon-list li:first-child a {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: repeat(3, auto);
  align-content: center;
  padding: clamp(1.15rem, 2.5vw, 2rem);
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.sermon-list li:first-child h3 { font-size: clamp(1.23rem, 2.4vw, 1.85rem); }
.sermon-list li:first-child :is(.sermon-date, .sermon-verse) { color: #dbe7fa; }

.sermon-list a {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: .15rem .7rem;
  padding: .85rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
}

.sermon-list a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.sermon-list h3 { font-size: 1.1rem; line-height: 1.3; letter-spacing: -.042em; }
.sermon-date, .sermon-verse { color: var(--muted); font-size: .93rem; }
.sermon-list a > :is(.sermon-date, h3, .sermon-verse) { grid-column: 1; }

.play {
  display: flex;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  align-self: center;
  justify-content: center;
  grid-column: 2;
  grid-row: 1 / 4;
  background: var(--pale);
  color: var(--blue);
}

.play::after {
  content: "";
  margin-left: .1rem;
  border-left: .48rem solid currentColor;
  border-top: .34rem solid transparent;
  border-bottom: .34rem solid transparent;
}

.vision .frame {
  display: grid;
  grid-template-columns: minmax(0, .64fr) minmax(0, 1.36fr);
  gap: .5rem clamp(1.5rem, 5vw, 4.5rem);
  align-items: start;
}

.vision .section-head { grid-column: 1 / -1; margin-bottom: .75rem; }

.vision-lead {
  padding: clamp(1.05rem, 3.35vw, 2rem);
  border-left: .24rem solid var(--blue);
  background: var(--pale);
}

.vision-lead h3 { font-size: clamp(1.37rem, 2.9vw, 2.35rem); letter-spacing: -.06em; }
.values { color: var(--navy); margin-top: .45rem; font-weight: 700; }
.values li + li { margin-top: .38rem; }
.vision-feature img { aspect-ratio: 2.32; object-fit: cover; }
.vision-copy { margin-top: 1rem; color: var(--muted); }
.vision-copy .welcome { font-weight: 800; font-size: 1.22rem; color: var(--ink); }
.vision-copy p + p { margin-top: .55rem; }

.contact { background: #f6f8fc; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  background: var(--white);
  border: 1px solid var(--line);
}

.location { align-self: center; padding: clamp(1.15rem, 3.45vw, 2.75rem); }
.location address { font-style: normal; margin-bottom: 1rem; }
.location address strong, .location address span { display: block; }
.location address strong { font-size: 1.28rem; margin-bottom: .35rem; }
.location address a { font-weight: 700; color: var(--blue); }
.contact-grid iframe { width: 100%; height: 100%; min-height: 17.5rem; border: 0; background: #e3e9f2; }

.transport { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, .85fr); gap: 1rem; margin-top: 1rem; }
.transport article { background: var(--white); border: 1px solid var(--line); padding: 1rem; }
.transport h3 { font-size: 1.09rem; margin-bottom: .35rem; }
.transport p + p { margin-top: .42rem; }

.site-footer { padding-block: 2.05rem; color: #edf3ff; background: #182945; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2.5rem; }
.site-footer .brand { color: var(--white); margin-bottom: .45rem; }
.site-footer p { font-size: .95rem; }
.site-footer .copyright { color: #b9c8df; margin-top: .45rem; font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; }

@media (max-width: 52rem) {
  .frame { width: min(calc(100% - 2rem), 74rem); }
  .hero { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .service-card img { width: 30%; }
}

@media (max-width: 39rem) {
  .header-inner { flex-wrap: wrap; gap: .15rem .45rem; padding-top: .6rem; }
  .site-header nav { order: 2; justify-content: space-between; width: 100%; border-top: 1px solid var(--line); }
  .site-header nav a { font-size: .9rem; }
  .hero { grid-template-columns: 1fr; gap: .6rem; }
  .hero-cover { min-height: clamp(13.5rem, 58vw, 18.75rem); }
  .hero-service { padding: 1.05rem 1.15rem 1.2rem; }
  .hero-service dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .hero-service dl div { gap: .45rem; }
  .hero-service dd { font-size: clamp(1.35rem, 5.85vw, 2rem); }
  .service-table { font-size: .88rem; }
  .service-table :is(th, td) { padding: .6rem .37rem; }
  .service-detail { font-size: .83rem; }
  .service-grid,
  .sermon-list,
  .vision .frame,
  .contact-grid,
  .transport { grid-template-columns: 1fr; }
  .service-card { min-height: 6.5rem; }
  .service-card img { width: 28%; }
  .sermon-list li:first-child { grid-row: auto; }
  .vision .frame { gap: .95rem; }
  .contact-grid iframe { height: 15.5rem; min-height: 0; }
}

@media (max-width: 23rem) {
  .site-header nav { gap: 0 .45rem; }
  .site-header nav a { font-size: .83rem; }
}
