/* 디자인 토큰 및 기본 스타일 */
@font-face {
  font-family: 'WarhavenB';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2312-1@1.1/WarhavenB.woff2')
    format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-text: #333333;
  --color-heading: #111111;
  --color-gray: #666666;
  --color-muted: #888888;
  --color-line: #eeeeee;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-navy-deep: #050322;
  --color-navy: #0f0c3b;
  --color-gold: #c5a55a;
  --color-gold-line: #c2a671;
  --color-gold-light: #ffdb96;
  --color-gold-mark: rgba(171, 148, 108, 0.5);
  --color-badge: #2b1e09;
  --color-surface: #f7f7f7;
  /* 상단 메뉴: 마우스를 올리면 생기는 밑줄, 드롭다운 글자 (원본과 같은 색) */
  --color-nav-underline: #00950c;
  --color-nav-dropdown-hover: #050423;
  --color-surface-light: #fcfcfc;
  --color-surface-tint: #f6f7ff;
  --color-highlight: hsla(42, 67%, 87%, 0.8);
  --color-highlight-light: hsla(42, 67%, 87%, 0.3);

  --gradient-gold: linear-gradient(270deg, #eeb955, #ffe9be);
  --gradient-gold-deep: linear-gradient(-25deg, #e9df31, #b49115);

  --font-sans:
    'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo',
    'Noto Sans KR', 'Malgun Gothic', sans-serif;
  --font-serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --font-display: 'WarhavenB', sans-serif;

  --header-height: 60px;
  --container-width: 1370px;
  --container-narrow-width: 1170px;
  --gutter: 16px;

  /* 글자 크기 */
  --font-huge: 65px;
  --font-big: 55px;
  --font-h1: 45px;
  --font-h2: 35px;
  --font-h3: 28px;
  --font-h4: 24px;
  --font-h5: 20px;
  --font-body: 18px;
  --font-small: 14px;

  /* 줄 간격 */
  --line-display: 1.3;
  --line-h1: 1.4;
  --line-h2: 1.4;
  --line-h3: 1.3;
  --line-text: 1.7;
  --line-statement: 1.8;

  /* 요소 간 간격 */
  --space: 60px;
  --space-mini: 40px;
  --space-xs: 30px;
  --space-xxs: 20px;
  --space-xxxs: 10px;

  /* 섹션 상하 여백 */
  --section-padding: 130px;
  --section-padding-mini: 80px;
  --section-padding-large: 150px;
  --section-padding-xlarge: 220px;
}

/*
 * 1200px 이하에서는 글자·여백이 화면 폭에 비례한다.
 * --unit 은 "기준 폭에서의 1px" 에 해당하는 길이이며, 구간마다 기준 폭이 다르다.
 */
@media (max-width: 1200px) {
  :root {
    --unit: calc(100vw / 1200);
    --font-huge: calc(var(--unit) * 50);
    --font-big: calc(var(--unit) * 45);
    --font-h1: calc(var(--unit) * 45);
    --font-h2: calc(var(--unit) * 30);
    --font-h3: calc(var(--unit) * 28);
    --font-h4: calc(var(--unit) * 24);
    --font-h5: calc(var(--unit) * 20);
    --font-body: calc(var(--unit) * 18);
    --font-small: calc(var(--unit) * 15);

    --line-display: 1.1;
    --line-h1: 1.1;
    --line-h2: 1.3;
    --line-h3: 1.3;
    --line-text: 1.3;
    --line-statement: 1.3;

    --space: calc(var(--unit) * 60);
    --space-mini: calc(var(--unit) * 40);
    --space-xs: calc(var(--unit) * 30);
    --space-xxs: calc(var(--unit) * 20);
    --space-xxxs: calc(var(--unit) * 10);

    --section-padding: calc(var(--unit) * 50);
    --section-padding-mini: calc(var(--unit) * 60);
    --section-padding-large: calc(var(--unit) * 70);
    --section-padding-xlarge: calc(var(--unit) * 100);
  }
}

@media (max-width: 991px) {
  :root {
    --space-unit: calc(100vw / 992);
    --space: calc(var(--space-unit) * 60);
    --space-mini: calc(var(--space-unit) * 40);
    --space-xs: calc(var(--space-unit) * 30);
    --space-xxs: calc(var(--space-unit) * 20);
    --space-xxxs: calc(var(--space-unit) * 10);

    --section-padding: calc(var(--space-unit) * 80);
    --section-padding-mini: calc(var(--space-unit) * 60);
    --section-padding-large: calc(var(--space-unit) * 100);
    --section-padding-xlarge: calc(var(--space-unit) * 130);

    --header-height: 58px;
  }
}

@media (max-width: 767px) {
  :root {
    --unit: calc(100vw / 768);
    --font-huge: calc(var(--unit) * 45);
    --font-big: calc(var(--unit) * 40);
    --font-h1: calc(var(--unit) * 40);
    --font-h2: calc(var(--unit) * 28);
    --font-h3: calc(var(--unit) * 24);
    --font-h4: calc(var(--unit) * 20);
    --font-h5: calc(var(--unit) * 18);
    --font-body: calc(var(--unit) * 17);
    --font-small: calc(var(--unit) * 14);

    --space: calc(var(--unit) * 40);
    --space-mini: calc(var(--unit) * 30);
    --space-xs: calc(var(--unit) * 20);
    --space-xxs: calc(var(--unit) * 10);
    --space-xxxs: calc(var(--unit) * 5);

    --section-padding: calc(var(--unit) * 80);
    --section-padding-mini: calc(var(--unit) * 60);
    --section-padding-large: calc(var(--unit) * 100);
    --section-padding-xlarge: calc(var(--unit) * 130);

    --header-height: 53px;
  }
}

/* 원본 헤더는 768px 부터 로고·햄버거가 작아져 높이가 53px 이 된다. (다른 값은 767px 기준) */
@media (max-width: 768px) {
  :root {
    --header-height: 53px;
  }
}

@media (max-width: 500px) {
  :root {
    --unit: calc(100vw / 500);
    --font-huge: calc(var(--unit) * 45);
    --font-big: calc(var(--unit) * 40);
    --font-h1: calc(var(--unit) * 35);
    --font-h2: calc(var(--unit) * 30);
    --font-h3: calc(var(--unit) * 24);
    --font-h4: calc(var(--unit) * 20);
    --font-h5: calc(var(--unit) * 18);
    --font-body: calc(var(--unit) * 17);
    --font-small: calc(var(--unit) * 15);

    --space: calc(var(--unit) * 40);
    --space-mini: calc(var(--unit) * 40);
    --space-xs: calc(var(--unit) * 20);
    --space-xxs: calc(var(--unit) * 10);
    --space-xxxs: calc(var(--unit) * 5);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  /* em 단위라 요소마다 자신의 글자 크기를 기준으로 자간이 정해진다. */
  letter-spacing: -0.05em;
}

html {
  -webkit-text-size-adjust: 100%;
}

/*
 * 화면 스크롤바. 폭 6px 이 콘텐츠 폭에서 빠지므로, 화면 폭에 비례하는 요소들의 크기에도 영향을 준다.
 * (터치 기기처럼 스크롤바가 화면 위에 겹쳐 표시되는 환경에서는 적용되지 않는다.)
 */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button {
  height: 0;
}

html::-webkit-scrollbar-track,
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-track,
body::-webkit-scrollbar-corner {
  background-color: #111111;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  border: 1px solid var(--color-black);
  background: hsla(0, 0%, 48%, 0.7);
}

html::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:active {
  background: hsla(0, 0%, 48%, 0.9);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--font-body);
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
figure {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* 유틸리티 */
/* 키보드 사용자를 위한 본문 바로가기. 평소에는 숨기고 포커스를 받으면 보인다. */
.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 100002;
  padding: 8px 14px;
  color: var(--color-white);
  background-color: var(--color-black);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  padding: 0 15px;
}

@media (min-width: 768px) {
  .container {
    width: 750px;
  }
}

@media (min-width: 992px) {
  .container {
    width: 970px;
  }
}

@media (min-width: 1200px) {
  .container {
    width: var(--container-narrow-width);
  }
}

@media (min-width: 1370px) {
  .container:not(.container--narrow) {
    width: var(--container-width);
  }
}

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

.line {
  display: block;
}

/* 화면 크기별 줄바꿈 (콘텐츠의 [[d]], [[m]], [[s]] 표기) */
.br-mobile,
.br-small {
  display: none;
}

@media (max-width: 767px) {
  .br-desktop {
    display: none;
  }

  .br-mobile {
    display: inline;
  }
}

@media (max-width: 500px) {
  .br-small {
    display: inline;
  }
}

.font-extrabold {
  font-weight: 800;
}

.text-gold {
  display: inline-block;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-gold-light);
}

.text-gold-strong {
  background: var(--gradient-gold-deep);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--color-gold);
}

.section {
  padding: var(--section-padding) 0;
}

.section--mini {
  padding: var(--section-padding-mini) 0;
}

.section--large {
  padding: var(--section-padding-large) 0;
}

.section--xlarge {
  padding: var(--section-padding-xlarge) 0;
}

.section--flush-top {
  padding-top: 0;
}

/* 버튼 */
.button-row {
  font-size: var(--font-body);
  line-height: var(--line-text);
}

/* 버튼 글자의 자간은 버튼을 감싼 줄의 글자 크기를 기준으로 한다. */
.pill-button,
.pill-button strong {
  letter-spacing: inherit;
}

.pill-button {
  position: relative;
  display: inline-block;
  padding: 0 45px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  color: var(--color-white);
  font-weight: 400;
  line-height: 50px;
  text-align: center;
  overflow: hidden;
}

.pill-button strong {
  position: relative;
  z-index: 1;
  display: inline-block;
  vertical-align: middle;
}

/* 마우스를 올리면 가운데에서부터 색이 채워진다. */
.pill-button__fill {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 0;
  height: 0;
  border-radius: 50%;
  background-color: #e2c38d;
  transform: translate(-50%, -50%);
  transition:
    width 0.4s ease-in-out,
    height 0.4s ease-in-out;
}

.pill-button:hover {
  border-color: #e2c38d;
  box-shadow: 10px 23px 40px hsla(38, 59%, 72%, 0.2);
  color: var(--color-black);
}

.pill-button:hover .pill-button__fill {
  width: 225%;
  height: 562.5px;
}

.solid-button {
  position: relative;
  display: inline-block;
  font-size: var(--font-h5);
}

.solid-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 50%;
  height: 150%;
  border-radius: 100px;
  background-color: var(--color-navy);
  transform: translate3d(-50%, -50%, 0);
  animation: button-pulse 1.5s linear infinite;
}

.solid-button strong {
  position: relative;
  z-index: 3;
  display: inline-block;
  padding: 0 45px;
  border-radius: 50px;
  background-color: var(--color-navy);
  color: var(--color-white);
  font-weight: 800;
  line-height: 60px;
}

@keyframes button-pulse {
  from {
    width: 100%;
    height: 100%;
    opacity: 0.2;
  }

  to {
    width: 115%;
    height: 170%;
    opacity: 0;
  }
}

/* 스크롤 등장 효과 */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

[data-reveal='zoom'] {
  transform: scale(0.85);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 767px) {
  .pill-button {
    min-width: 120px;
    padding: 0 15px;
    font-size: 15px;
    line-height: 40px;
  }

  .solid-button strong {
    padding: 0 25px;
    line-height: 55px;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .solid-button::after {
    animation: none;
    opacity: 0;
  }
}
