@charset "UTF-8";

/* ==========================================================================
   00. 기본 박스 모델 및 HTML/타이포그래피/폼 초기화
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body,
h1,
h2,
h3,
p,
figure {
    margin: 0;
}

body {
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #202020;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    min-width: 0;
    border-radius: 0;
}

button {
    border: 0;
    color: inherit;
    cursor: pointer;
}

select {
    cursor: pointer;
}

textarea {
    resize: vertical;
}

img,
svg {
    display: block;
    max-width: 100%;
}

:focus-visible {
    outline: 2px solid #817255;
    outline-offset: 5px;
}

::selection {
    color: #ffffff;
    background: #555555;
}

[hidden] {
    display: none !important;
}

/* ==========================================================================
   01. 전역 디자인 토큰 (CSS 변수)
   ========================================================================== */
:root {
    --header-height: clamp(54px, 3.75vw, 72px);
    --site-gutter: max(24px, 16.145833vw);
    --site-content-width: 1300px;
}

/* ==========================================================================
   02. 공통 레이아웃 및 컨테이너
   ========================================================================== */
.container {
    width: min(calc(100% - var(--site-gutter) * 2), var(--site-content-width));
    margin-inline: auto;
}

.section {
    padding-block: clamp(85px, 7.2917vw, 140px);
    scroll-margin-top: 20px;
}

.section-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(32px, 2.0833vw, 40px);
    color: #888888;
    font-size: clamp(10px, 0.8333vw, 16px);
}

.section-meta > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.section-meta > span:first-child > span {
    color: #aaaaaa;
}

.section-meta i {
    width: 32px;
    height: 1px;
    background: #999999;
}

.section-meta > span:last-child {
    font-family: monospace;
    font-size: clamp(9px, 0.625vw, 12px);
    letter-spacing: 1px;
}

/* ==========================================================================
   03. 공통 타이포그래피
   ========================================================================== */
.eyebrow {
    font-family: monospace;
    font-size: clamp(12px, 1.0417vw, 20px);
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.6;
}

.eyebrow > span {
    margin-left: 12px;
}

h2 {
    font-size: clamp(28px, 1.875vw, 36px);
    line-height: 1.5;
    letter-spacing: -1.5px;
    font-weight: 700;
}

.section-heading > .eyebrow,
.about__copy > .eyebrow {
    margin-bottom: 22px;
}

.section-heading--center {
    text-align: center;
}

.body-copy {
    color: #999999;
    font-size: clamp(13px, 0.8333vw, 16px);
    line-height: 1.95;
    letter-spacing: -0.3px;
}

.section-heading .body-copy {
    margin-top: 25px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding-block: 14px;
    border-bottom: 1px solid #b5b5b5;
    font-size: 12px;
}

/* ==========================================================================
   04. 버튼 스타일
   ========================================================================== */
.button {
    min-height: 47px;
    padding: 15px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.button--white {
    color: #202020;
    background: #ffffff;
    border: 1px solid #ffffff;
}

.button--white:hover {
    color: #ffffff;
    background: #333333;
}

.button--black {
    color: #ffffff;
    background: #111111;
    border: 1px solid #111111;
}

.button--black:hover {
    background: #444444;
}

.button--outline {
    color: #ffffff;
    border: 1px solid #999999;
    background: transparent;
}

.button--outline:hover {
    background: #ffffff;
    color: #111111;
}

/* ==========================================================================
   04-1. 공통 SVG 아이콘
   ========================================================================== */
.icon-svg {
    display: block;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* ==========================================================================
   05. 접근성 및 유틸리티
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 10px;
    left: 10px;
    padding: 12px 20px;
    color: #ffffff;
    background: #111111;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ==========================================================================
   06. 퀵 메뉴 및 챕터 내비게이션
   ========================================================================== */
.quick-menu {
    position: fixed;
    right: 2.0833vw;
    bottom: 130px;
    z-index: 25;
    width: clamp(48px, 4.1667vw, 80px);
    padding: 10px 8px;
    border-radius: 44px;
    background: #050505;
    color: #ffffff;
}

.quick-menu a {
    display: grid;
    place-items: center;
    width: 100%;
    height: clamp(40px, 3.125vw, 60px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.2s;
}

.quick-menu a:hover {
    background: #444444;
}

.quick-menu a[aria-disabled='true'] {
    cursor: default;
}

.quick-menu a[aria-disabled='true']:hover {
    background: transparent;
}

.quick-menu svg {
    width: 24px;
    height: 24px;
}

.quick-menu a:nth-last-child(2) {
    border-bottom: 0;
}

.quick-menu a.quick-menu__top {
    position: absolute;
    left: 0;
    top: calc(100% + 14px);
    border: 0;
    color: #333333;
    font-size: 36px;
    background: #ffffff;
    border-radius: 50%;
}

.chapter-nav {
    position: fixed;
    left: 3.125vw;
    top: 50%;
    z-index: 20;
    display: grid;
    gap: 11px;
    mix-blend-mode: difference;
}

.chapter-nav a {
    display: block;
    width: 16px;
    height: 3px;
    padding-block: 2px;
    border-top: 1px solid #aaaaaa;
}

.chapter-nav a.is-active {
    width: 26px;
    border-color: #ffffff;
}

/* ==========================================================================
   07. 반응형 미디어 쿼리
   ========================================================================== */
@media (max-width: 1000px) {
    :root {
        --site-gutter: 5vw;
    }

    .chapter-nav {
        left: 12px;
    }
}

@media (max-width: 760px) {
    :root {
        --header-height: 64px;
        --site-gutter: 24px;
    }

    .section-meta {
        margin-bottom: 36px;
        font-size: 10px;
        gap: 15px;
    }

    .section-meta > span:last-child {
        font-size: 8px;
        letter-spacing: 0.3px;
    }

    .section-meta i {
        width: 18px;
    }

    .quick-menu {
        right: 10px;
        bottom: 65px;
        width: 40px;
        padding: 7px 4px;
    }

    .quick-menu a {
        height: 34px;
    }

    .quick-menu svg {
        width: 18px;
        height: 18px;
    }

    .quick-menu a.quick-menu__top {
        font-size: 26px;
        top: calc(100% + 8px);
    }

    .chapter-nav {
        display: none;
    }

    .body-copy {
        font-size: 13px;
    }
}
