:root {
  color-scheme: light;
  --ink: #292039;
  --muted: #61566e;
  --accent: #5d367b;
  --accent-dark: #48255f;
  --soft: #f5effa;
  --line: #e5dbec;
  --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.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1, h2, h3, p, ul, figure { margin: 0; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid #a553c2; 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 { background: var(--white); }
.header-inner {
  min-height: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

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

.brand-mark {
  display: inline-block;
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) center 56% / 2px 52% no-repeat,
    linear-gradient(#fff, #fff) center 42% / 44% 2px no-repeat,
    var(--accent);
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .1rem clamp(1rem, 3vw, 2.5rem);
}

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

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

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

.header-link {
  flex: none;
  color: var(--accent-dark);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: .5rem 1rem;
  font-size: .9rem;
}

.header-link:hover { background: var(--line); }

.hero {
  background: radial-gradient(ellipse at 92% 5%, #e5d8f4, transparent 62%),
    linear-gradient(114deg, #f8f0f3, #f2ecfb);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2.5rem, 6vw, 5.4rem);
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 4.15vw, 4rem);
  line-height: 1.17;
  letter-spacing: -.07em;
  font-weight: 800;
}

.hero-copy h1 span { color: var(--accent); }

.hero-copy > p {
  color: var(--muted);
  margin-top: .9rem;
  font-family: Georgia, serif;
  font-size: clamp(1rem, 1.7vw, 1.32rem);
  font-style: italic;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  border: 1px solid transparent;
  padding: .6rem 1.22rem;
  text-decoration: none;
  text-align: center;
  font-weight: 700;
}

.button.primary { background: var(--accent); color: var(--white); }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { border-color: #b69bc8; background: #ffffff66; color: var(--accent-dark); }
.button.secondary:hover { background: var(--white); }

.hero-channel {
  display: inline-block;
  margin-top: 1rem;
  font-size: .93rem;
  color: var(--accent-dark);
}

.hero-photo {
  margin: 0 clamp(.25rem, 1.3vw, 1rem) .85rem 0;
  border-radius: 46% 46% 1.25rem 1.25rem / 64% 64% 1.25rem 1.25rem;
  background: #e7d9f2;
  box-shadow: .8rem .8rem 0 #d9c8eb;
  overflow: hidden;
}

.hero-photo img {
  aspect-ratio: 1.43;
  object-fit: cover;
  object-position: center 55%;
}

.section { padding-block: clamp(3.2rem, 7vw, 6.5rem); }
.section-head h2,
.vision-lead h3 { line-height: 1.22; letter-spacing: -.065em; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.65rem); }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin-bottom: 1.75rem;
}

.vision { text-align: center; }

.vision .section-head {
  justify-content: center;
  margin-bottom: .45rem;
}

.vision .section-head h2 {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 0;
}

.vision-lead h3 { font-size: clamp(2.55rem, 5vw, 4.3rem); }
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
  max-width: 58rem;
  margin: 1.8rem auto 0;
}

.values li {
  padding: 1rem .5rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  color: var(--accent-dark);
  background: var(--soft);
  font-size: clamp(.95rem, 2vw, 1.18rem);
  font-weight: 750;
}

.values li:nth-child(2) { background: #faeef1; border-color: #f0dfe5; }
.values li:nth-child(3) { background: #f0effa; border-color: #e4e1f4; }

.vision-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.6rem, 5vw, 4.7rem);
  margin-top: 3rem;
  text-align: left;
}

.vision-feature img { border-radius: 1.3rem; }
.vision-copy { max-width: 34rem; }
.vision-copy .welcome { color: var(--ink); font-size: clamp(1.18rem, 2.1vw, 1.65rem); font-weight: 800; letter-spacing: -.045em; }
.vision-copy p { color: var(--muted); }
.vision-copy p + p { margin-top: .65rem; }

.worship { background: #faf7fd; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  overflow: hidden;
}

.service-card img { aspect-ratio: 2; object-fit: cover; }
.service-card:first-child img { object-position: center 40%; }
.service-copy { padding: 1rem 1.1rem 1.25rem; }
.service-copy h3 { font-size: 1.12rem; letter-spacing: -.035em; }
.service-copy p { color: var(--muted); }
.service-copy .service-time { color: var(--accent-dark); font-weight: 700; }
.service-detail { margin-top: .4rem; font-size: .94rem; }

.section-link { color: var(--accent-dark); }
.sermon-list { border-top: 2px solid var(--accent); }
.sermon-list li { border-bottom: 1px solid var(--line); }

.sermon-list a {
  display: grid;
  grid-template-columns: 9.2rem minmax(0, 1fr) 10.2rem auto;
  align-items: center;
  gap: .75rem 1rem;
  min-height: 5.15rem;
  padding: .9rem 1.1rem;
  text-decoration: none;
}

.sermon-list a:hover { background: var(--soft); }
.sermon-list a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.sermon-list h3 { font-size: 1.11rem; letter-spacing: -.035em; }
.sermon-date, .sermon-verse { color: var(--muted); font-size: .94rem; }

.play {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
}

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

.contact { background: var(--soft); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--white);
  overflow: hidden;
}

.location { align-self: center; padding: clamp(1.25rem, 3.6vw, 2.7rem); }
.location address { font-style: normal; margin-bottom: 1.25rem; }
.location address strong, .location address span { display: block; }
.location address strong { font-size: 1.35rem; margin-bottom: .4rem; }
.location address a, .service-detail a { color: var(--accent-dark); font-weight: 700; }
.contact-grid iframe { width: 100%; height: 100%; min-height: 19.5rem; border: 0; background: #e6e1eb; }

.transport {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, .85fr);
  gap: 1rem;
  margin-top: 1rem;
}

.transport article { padding: 1.1rem 1.2rem; border-radius: .85rem; background: #fff; }
.transport h3 { margin-bottom: .4rem; font-size: 1.12rem; }
.transport p { color: var(--muted); }
.transport p + p { margin-top: .35rem; }

.site-footer { padding-block: 2.4rem; background: #2c2037; color: #f9f4fc; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; }
.footer-inner .brand { margin-bottom: .7rem; }
.footer-inner p { color: #e2d4ea; font-size: .94rem; }
.footer-inner .copyright { margin-top: .4rem; font-size: .86rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.15rem; }

@media (max-width: 64rem) {
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-inner { gap: 2rem; }
}

@media (max-width: 48rem) {
  .frame { width: min(calc(100% - 2rem), 74rem); }
  .header-inner { flex-wrap: wrap; padding-top: .8rem; gap: .35rem .75rem; }
  .site-header nav { order: 1; justify-content: flex-start; width: 100%; gap: .05rem clamp(.5rem, 3.5vw, 1.45rem); }
  .site-header nav a { font-size: .88rem; }
  .header-link { padding: .3rem .7rem; }
  .hero-inner, .vision-feature { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(2rem, 8vw, 3.4rem); }
  .hero-photo { width: min(100% - .8rem, 34rem); margin-inline: auto; }
  .hero-photo img { aspect-ratio: 1.6; }
  .vision-feature { margin-top: 2rem; }
  .vision-feature img { aspect-ratio: 1.6; object-fit: cover; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sermon-list a { grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .7rem; padding: .85rem .55rem .85rem .15rem; }
  .sermon-list a > :is(.sermon-date, h3, .sermon-verse) { grid-column: 1; }
  .sermon-list .play { grid-column: 2; grid-row: 1 / 4; }
  .contact-grid, .transport { grid-template-columns: 1fr; }
  .contact-grid iframe { height: 15rem; min-height: 0; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 23rem) {
  .service-grid { gap: .55rem; }
  .service-copy { padding: .65rem; }
  .values { gap: .4rem; }
  .values li { padding-inline: .2rem; }
}
