/* 디자인 토큰 · 리셋 · 글자 · 공통 부품 (모바일 우선 : 768 / 1024 / 1440)
   화이트 + 차콜 + 잉크 네이비 한 가지. 산세리프 80 : 명조 20 (Hero 둘째 줄 · 프로젝트 한 줄 메시지 · About 제목) */

:root {
    --bg: #FFFFFF;
    --bg-subtle: #F7F8FA;
    --ink: #1F1F1F;
    --ink-2: #666A70;           /* 보조 글자 (흰 바탕 5.4) */
    --ink-3: #8A8F96;           /* 장식 전용 (3.3 : 작은 글자에 쓰지 않는다) */
    --line: #E4E6E8;
    --accent: #2F4A67;          /* ink navy : 라벨 · 활성 메뉴 · 영문 키워드 · 작은 선 · hover (흰 바탕 9.2) */
    --accent-on-dark: #9DB4CC;  /* 차콜 바탕 위 (7.7) */

    --f-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    --f-serif: "Noto Serif KR", "Apple Myungjo", serif;

    --fs-label: 0.75rem;
    --fs-body: 1rem;
    --fs-lead: clamp(1rem, .96rem + .25vw, 1.125rem);
    --fs-h2: clamp(1.75rem, 1.3rem + 2vw, 3rem);
    --fs-hero: clamp(2.5rem, 1.2rem + 5.6vw, 6.5rem);

    --gutter: 20px;
    --max: 1280px;
    --sec: 96px;
    --hd-h: 60px;
    --radius: 4px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 40px; --sec: 128px; } }
@media (min-width: 1024px) { :root { --gutter: 56px; --sec: 152px; --hd-h: 72px; } }
@media (min-width: 1440px) { :root { --gutter: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hd-h); }
body { font-family: var(--f-sans); font-size: var(--fs-body); line-height: 1.7; color: var(--ink); background: var(--bg); word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: inherit; font-size: inherit; }
svg path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--radius); background: var(--ink); color: #fff; font-size: .875rem; transition: top .2s; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec) 0; }
.serif { font-family: var(--f-serif); font-weight: 500; letter-spacing: -0.03em; }

/* 작은 라벨 : 앞에 짧은 네이비 선 + 번호 */
.label { display: inline-flex; align-items: center; font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.sec-num { display: inline-flex; align-items: center; gap: 10px; margin-right: 10px; color: var(--accent); }
.sec-num::before { content: ""; width: 20px; height: 1px; background: var(--accent); }

/* 섹션 머리 : 데스크톱은 왼쪽 3칸 라벨, 오른쪽 9칸 제목 (첫 번째 편집 버전의 그리드) */
.sec-head { display: grid; gap: 18px; margin-bottom: 56px; }
.sec-title { font-size: var(--fs-h2); font-weight: 700; line-height: 1.28; letter-spacing: -0.035em; }
.sec-title.serif { font-weight: 500; }
.sec-lead { max-width: 34em; margin-top: 18px; font-size: var(--fs-lead); color: var(--ink-2); }

@media (min-width: 1024px) {
    .sec-head { grid-template-columns: repeat(12, 1fr); column-gap: 32px; margin-bottom: 88px; }
    .sec-head > .label { grid-column: 1 / span 3; align-self: start; padding-top: .95em; }
    .sec-head > :not(.label) { grid-column: 4 / span 9; }
}

/* 텍스트 링크 : 밑줄 + 화살표 (큰 버튼 대신). hover · tap 때 네이비 밑줄이 왼쪽에서 오른쪽으로 그려지고 화살표가 3~4px 움직인다 */
.tlink { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; font-size: .9375rem; font-weight: 600;
    background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat, linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 1px no-repeat;
    transition: color .25s, background-size .45s var(--ease); }
.tlink svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.tlink::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }   /* 글자는 그대로, 터치 영역만 44px */
.tlink:active, .tlink:focus-visible { color: var(--accent); background-size: 100% 1px, 100% 1px; }
.tlink:active svg, .tlink:focus-visible svg { transform: translateX(4px); }
.tlink--down:active svg, .tlink--down:focus-visible svg { transform: translateY(4px); }
.tlink--out:active svg, .tlink--out:focus-visible svg { transform: translate(3px, -3px); }
@media (hover: hover) {   /* 터치 기기에서는 탭한 뒤 hover 상태가 남지 않게 */
    .tlink:hover { color: var(--accent); background-size: 100% 1px, 100% 1px; }
    .tlink:hover svg { transform: translateX(4px); }
    .tlink--down:hover svg { transform: translateY(4px); }
    .tlink--out:hover svg { transform: translate(3px, -3px); }
}

/* 태그 : 테두리 없는 작은 글자 */
.tags { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tags li { font-size: .8125rem; font-weight: 500; color: var(--ink-2); }
.tags li::before { content: "#"; margin-right: 2px; color: var(--ink-3); }

/* 등장 : JS 가 있을 때만 잠깐 숨겼다가 화면에 들어오면 짧게 */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
