@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

:root {
  --display: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", Arial, sans-serif;
}

.brand {
  width: 25px;
  height: 44px;
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

/* 큰 제목 */
.hero h1,
.page-intro h1,
.works-intro h1,
.contact h1,
.case-head h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 80px;
  line-height: .98;
  letter-spacing: -.05em;
}

/* 중간 제목 */
.section-title h2,
.work-list h2,
.story h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 36px;
  line-height: 1.02;
  letter-spacing: -.05em;
}

/* 강조 본문 */
.hero-art > p,
.profile-copy,
.case-head > div:first-child > p:last-child,
.contact-action > a {
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0;
}

/* 카드·작품 제목 */
.card h3,
.series-meta strong,
.viewer-toolbar strong,
.case-nav strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

/* 기본 본문 */
body {
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

/* 첫 화면 소개글 */
.lead,
.page-intro > p:last-child,
.works-intro > p:last-child,
.contact > div:first-child > p:last-child {
  font-family: var(--display);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.35;
  letter-spacing: 0;
}

/* 라벨 */
.label,
.viewer-toolbar small {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: .12em;
}

/* 메뉴·버튼·메타 정보 */
header nav a,
.menu,
.under,
.button,
.site-footer,
.card p,
.work-list span,
.work-list time,
.work-list h2 small,
.case-head dt,
.case-head dd,
figcaption,
.series-meta small,
.series-meta em,
.viewer-note,
.viewer-toolbar button,
.contact-action button,
.status,
.brand small {
  font-family: var(--display);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0;
}

/* 메인에 남는 빈 공간 제거 */
.hero {
  grid-template-columns: 1fr;
  min-height: clamp(560px, calc(82vh - 76px), 760px);
}

.hero-copy {
  max-width: 900px;
  padding-left: 0;
}

.profile.profile-text-only {
  display: block;
}

.profile.profile-text-only .profile-copy {
  max-width: 980px;
}

.portrait {
  width: min(100%, 360px);
  justify-self: center;
  background: #ececeb;
}

.portrait img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

@media (max-width: 820px) {
  .hero h1,
  .page-intro h1,
  .works-intro h1,
  .contact h1,
  .case-head h1 {
    font-size: 64px;
  }

  .section-title h2,
  .work-list h2,
  .story h2 {
    font-size: 30px;
  }

  .hero-art > p,
  .profile-copy,
  .case-head > div:first-child > p:last-child,
  .contact-action > a {
    font-size: 28px;
  }

  .card h3,
  .series-meta strong,
  .viewer-toolbar strong,
  .case-nav strong {
    font-size: 18px;
  }

  body {
    font-size: 15px;
  }

  .lead,
  .page-intro > p:last-child,
  .works-intro > p:last-child,
  .contact > div:first-child > p:last-child {
    font-size: 15px;
  }

  .label,
  .viewer-toolbar small {
    font-size: 12px;
  }

  header nav a,
  .menu,
  .under,
  .button,
  .site-footer,
  .card p,
  .work-list span,
  .work-list time,
  .work-list h2 small,
  .case-head dt,
  .case-head dd,
  figcaption,
  .series-meta small,
  .series-meta em,
  .viewer-note,
  .viewer-toolbar button,
  .contact-action button,
  .status,
  .brand small {
    font-size: 11px;
  }

  .hero {
    min-height: calc(100svh - 64px);
  }

  .portrait {
    width: min(78vw, 320px);
  }
}
