/**
 * NextBio Website - Common Styles
 * 디자인 시스템 기반 공통 스타일
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

html {
    font-size: 16px;
    font-family: 'SUIT', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'SUIT', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    padding-top: 90px;
}

/* 메인페이지는 패딩 제거 (비주얼이 헤더 위에 표시) */
body.main-page {
    padding-top: 0;
}

/* 서브페이지 비주얼이 있는 경우 패딩 제거 (비주얼에서 처리) */
body.has-sub-visual {
    padding-top: 0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Typography */
h1 {
    font-family: var(--title-48-font-family);
    font-size: var(--title-48-font-size);
    line-height: var(--title-48-line-height);
    font-weight: var(--title-48-font-weight);
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

h2 {
    font-family: var(--title-32-font-family);
    font-size: var(--title-32-font-size);
    line-height: var(--title-32-line-height);
    font-weight: var(--title-32-font-weight);
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

h3 {
    font-family: var(--p-24-font-family);
    font-size: var(--p-24-font-size);
    line-height: var(--p-24-line-height);
    font-weight: var(--p-24-font-weight);
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

h4 {
    font-family: var(--p-20-sb-font-family);
    font-size: var(--p-20-sb-font-size);
    line-height: var(--p-20-sb-line-height);
    font-weight: var(--p-20-sb-font-weight);
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

h5 {
    font-family: var(--p-18-sb-font-family);
    font-size: var(--p-18-sb-font-size);
    line-height: var(--p-18-sb-line-height);
    font-weight: var(--p-18-sb-font-weight);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

h6 {
    font-family: var(--p-16-sb-font-family);
    font-size: var(--p-16-sb-font-size);
    line-height: var(--p-16-sb-line-height);
    font-weight: var(--p-16-sb-font-weight);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

p {
    font-family: var(--p-16-r-font-family);
    font-size: var(--p-16-r-font-size);
    line-height: var(--p-16-r-line-height);
    font-weight: var(--p-16-r-font-weight);
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-base);
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Header는 header.css로 이동 */
/* Footer는 footer.css로 이동 */

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}
