
/* 1. CSS Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 2. 루트 & Body 설정 */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
  background-color: #fafafa;
  word-break: keep-all;
  overflow-wrap: break-word;
  min-height: 100vh;
}

/* 3. 컨테이너 */
.container {
  max-width: 680px;
  margin: 0 auto;
  background-color: #fff;
  min-height: 100vh;
}

/* 4. 헤더 */
.header {
  padding: 32px 16px 24px;
  text-align: center;
  border-bottom: 2px solid #e0e0e0;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}

.logo img {
  max-width: 240px;
  height: auto;
  display: block;
}

/* 5. 메인 콘텐츠 영역 */
.content {
  padding: 40px 16px;
}

/* 사이트 소개 섹션 */
.site-intro {
  margin-bottom: 40px;
  text-align: center;
}

.site-intro h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  line-height: 1.3;
}

.site-intro p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 8px;
}

/* 6. 링크 목록 */
.content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content li {
  margin-bottom: 12px;
}

.content a {
  display: block;
  padding: 16px 20px;
  background-color: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 6px;
  border-left: 4px solid #1a73e8;
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.content a:hover {
  background-color: #1a73e8;
  color: #fff;
  transform: translateX(4px);
}

.content a:focus {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

.content a:active {
  transform: translateX(2px);
}

/* 7. 푸터 */
.footer {
  padding: 32px 16px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.footer p {
  margin-bottom: 8px;
}

.footer a {
  color: #1a73e8;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.footer a:hover {
  color: #0d47a1;
}

.footer a:focus {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
  border-radius: 2px;
}

/* 8. 섹션 제목 */
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

/* 9. 데스크톱 최적화 */
@media (min-width: 768px) {
  .header {
    padding: 48px 32px 32px;
  }
  
  .logo img {
    max-width: 280px;
  }
  
  .content {
    padding: 48px 32px;
  }
  
  .site-intro h1 {
    font-size: 2.2rem;
  }
  
  .site-intro p {
    font-size: 1.05rem;
  }
  
  .content a {
    padding: 18px 24px;
    font-size: 1.1rem;
  }
  
  .footer {
    padding: 40px 32px;
  }
}

/* 10. 모바일 최적화 */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  
  .header {
    padding: 24px 16px 20px;
  }
  
  .logo img {
    max-width: 200px;
  }
  
  .site-intro h1 {
    font-size: 1.6rem;
  }
  
  .content {
    padding: 32px 16px;
  }
  
  .content a {
    padding: 14px 16px;
    font-size: 1rem;
  }
}

/* 11. 접근성 - 화면 리더 전용 텍스트 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 12. 인쇄 스타일 */
@media print {
  body {
    background-color: #fff;
  }
  
  .container {
    max-width: 100%;
  }
  
  .footer {
    display: none;
  }
}
