/* theme/assets/css/bye-summer.css
   Source 테마 위에 얹는 Bye, Summer 커스텀 스타일. screen.css 다음에 로드된다. */

/* 1. 서체: Pretendard를 제목·본문 기본으로 */
:root {
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --gh-font-heading: var(--font-sans);
  --gh-font-body: var(--font-sans);
}

body {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 2. 글 본문: 한글 기준 크기·줄간격 */
.gh-content {
  --content-font-size: 1.75rem;
  line-height: 1.8;
  letter-spacing: -0.01em;
}

.gh-content :is(h1, h2, h3) {
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.gh-article-title,
.gh-card-title,
.gh-container-title {
  letter-spacing: -0.02em;
}

/* 3. 저자 소개 (홈 상단, 가운데 정렬, 컴팩트) */
.gh-author-intro {
  margin-top: clamp(32px, 4vw, 48px);
}

.gh-author-intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.gh-author-intro-image {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
}

.gh-author-intro-name {
  font-size: calc(2.8rem * var(--factor, 1));
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.gh-author-intro-name a:hover {
  opacity: 0.8;
}

.gh-author-intro-bio {
  max-width: 560px;
  font-size: 1.65rem;
  line-height: 1.6;
  color: var(--color-secondary-text);
}

.gh-author-intro .gh-author-social {
  padding-left: 0;
  margin-top: 4px;
}

.gh-author-intro .gh-author-social:empty {
  display: none;
}

.gh-author-intro .gh-author-social-link svg {
  width: 20px;
  height: 20px;
}

/* 4. 최신 글 그리드: 데스크톱 3단 고정, 태그 표시, 이미지 없는 카드 */
.gh-author-intro + .gh-container {
  margin-top: clamp(40px, 5vw, 64px);
}

@media (min-width: 768px) {
  .home-template .gh-container.is-grid .gh-feed {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gh-container .gh-card-tag {
  display: block;
  font-weight: 650;
  color: var(--ghost-accent-color);
}

.gh-card-title {
  opacity: 1;
}

.gh-container.is-grid .gh-card:not(:has(.gh-card-image)) .gh-card-link {
  padding: 24px;
  height: 100%;
  background-color: var(--color-lighter-gray);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

/* 5. 더 보기 */
.gh-home-more {
  margin-top: 40px;
}

.gh-home-more .gh-inner {
  display: flex;
  justify-content: center;
}

.gh-home-more .gh-button svg {
  width: 14px;
  height: 14px;
}

/* 6. 구독 CTA: 푸터의 구독 블록을 키컬러 박스로 */
.gh-footer {
  margin-top: clamp(48px, 6vw, 80px);
}

.gh-footer-signup {
  gap: 28px;
  margin-bottom: clamp(48px, 6vw, 80px);
  padding: clamp(40px, 5vw, 64px) clamp(24px, 4vw, 56px);
  color: #fff;
  background-color: var(--ghost-accent-color);
  border-radius: 12px;
}

.gh-footer-signup-header {
  font-size: clamp(2.4rem, 1.2vw + 1.9rem, 3.2rem);
  letter-spacing: -0.02em;
}

.gh-footer-signup-subhead {
  margin-top: 0;
  font-size: 1.6rem;
  opacity: 0.85;
}

.gh-footer-signup .gh-form {
  background-color: #fff;
}

.gh-footer-signup .gh-form-input {
  color: #15171a;
}

.gh-footer-signup .gh-form-input::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.gh-footer-signup .gh-form .gh-button {
  color: #fff;
  background-color: #15171a;
}

.gh-footer-signup [data-members-error] {
  color: #fff;
}

.gh-footer-bar {
  margin-bottom: 48px;
}

/* 7. About 페이지: 소개 블록 아래 바로 본문. 사진은 홈보다 조금 크게 */
.page-template.page-about .gh-author-intro-image {
  width: 120px;
  height: 120px;
}

.gh-about-page {
  margin-top: clamp(32px, 4vw, 48px);
}

.gh-about-page .gh-content:only-child > :first-child:not(.kg-width-full) {
  margin-top: 0;
}

/* 8. 구독 박스 컴팩트화 + 모바일 폼 버튼 축소 (6번 규칙을 덮어쓴다) */
.gh-footer-signup {
  gap: 16px;
  padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 40px);
}

.gh-footer-signup-header {
  font-size: clamp(2.1rem, 1vw + 1.7rem, 2.6rem);
}

.gh-footer-signup-subhead {
  font-size: 1.5rem;
}

.gh-footer-signup .gh-form {
  margin-top: 16px;
}

/* 입력창 오른쪽에 버튼 폭만큼 여백을 줘서 안내 문구가 버튼 뒤로 숨지 않게 */
.gh-footer-signup .gh-form-input {
  padding-right: 150px;
}

@media (max-width: 576px) {
  .gh-footer-signup .gh-form {
    height: 50px;
    font-size: 1.5rem;
  }

  .gh-footer-signup .gh-form-input {
    padding-left: 18px;
    padding-right: 112px;
  }

  .gh-footer-signup .gh-form .gh-button {
    min-width: 0;
    height: 38px;
    padding-inline: 20px;
    font-size: 1.4rem;
  }
}

/* 9. "모든 글 보기" 버튼: 연한 인디고 배경 + 키컬러 글자 (아래 구독 박스와 대비) */
.gh-home-more .gh-button {
  color: var(--ghost-accent-color);
  background-color: #ecebf8; /* color-mix 미지원 브라우저용 */
  background-color: color-mix(in srgb, var(--ghost-accent-color) 10%, #fff);
}

.gh-home-more .gh-button:hover {
  background-color: color-mix(in srgb, var(--ghost-accent-color) 16%, #fff);
  opacity: 1;
}
