/**
 * Base Styles
 * 기본 Reset, Normalize, Typography
 */

/* ==========================================================================
   Box-sizing 및 기본 설정
   ========================================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scrollbar-gutter: stable; /* 스크롤바 공간 항상 예약 (레이아웃 시프트 방지) */
  overflow-x: hidden; /* 좌우 스크롤 방지 */
}

*,
*:before,
*:after {
  box-sizing: inherit;
}


/* ==========================================================================
   Body 기본 설정
   ========================================================================== */
body {
  margin: 0;
  padding: 0;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Neo Gothic', sans-serif;
  color: #111;
  perspective: 1000px; /* 3D 효과를 위한 perspective */
  transform-style: preserve-3d;
  overflow-x: hidden; /* 좌우 스크롤 방지 */
}


/* ==========================================================================
   리스트 초기화
   ========================================================================== */
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  & ul,
  & ol {
    margin-bottom: 0;
  }
}

dt {
  font-weight: bold;
}

dd {
  margin: 0 1.5em 1.5em;
}

dl {
  margin: 0;
}


/* ==========================================================================
   링크 기본 스타일
   ========================================================================== */
a {
  background-color: transparent;
  transition: all 0.3s;
  text-decoration: none;
  color: #003876;

  &:active,
  &:hover {
    outline: 0;
    text-decoration: none;
  }

  &:focus {
    outline: 0;
  }
}


/* ==========================================================================
   이미지 기본 설정
   ========================================================================== */
img {
  border: 0;
  display: block;
  height: auto;
  max-width: 100%;
}

figure {
  margin: 0;

  & img {
    width: var(--full-width);
    display: block;
  }
}

svg:not(:root) {
  overflow: hidden;
}


/* ==========================================================================
   Typography
   ========================================================================== */

/* 제목 기본 스타일 */
h1,
h2,
h3,
h4,
h5,
h6 {
  clear: both;
  color: #111;
  font-weight: 400;
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: 8px;
  letter-spacing: -0.04px;

  & a {
    font-weight: inherit;
    color: inherit;
  }
}

.hero-title {
  font-size: 96px;
  line-height: 110%;
}

h1 {
  font-size: 60px;
}

h2 {
  font-size: 48px;
}

h3 {
  font-size: 36px;
}

h4 {
  font-size: 28px;
}

h5 {
  font-size: 24px;
}

h6 {
  font-size: 18px;
}

/* 문단 스타일 */
p {
  font-family: 'Pretendard Variable', Pretendard, sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: #1C1E20;
}

/* 인용문 */
blockquote {
  background-color: transparent;
  padding-left: 12px;
  border-left: 3px solid #393A3D;
  margin: 20px 0;
  color: #333;
  font-style: normal;
  position: relative;

  &:before {
    color: #ddd;
    content: "";
    float: left;
  }

  & * {
    margin-bottom: 0;
  }

  & blockquote {
    margin-left: 1.5rem;
    margin-top: 1.5rem;
  }

  & cite {
    font-style: normal;
  }

  & p {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
  }
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
}

blockquote,
q {
  quotes: "" "";
}

/* 텍스트 포맷 */
dfn,
cite,
em,
i {
  font-style: italic;
}

cite {
  font-weight: bold;
}

b,
strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}

small {
  font-size: 90%;
}

big {
  font-size: 1.2rem;
}

sub,
sup {
  font-size: 80%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

mark,
ins {
  background: #eee;
  padding: 0.1rem;
  text-decoration: none;
}

abbr,
acronym {
  border-bottom: 1px dotted #222;
  cursor: help;
}

abbr[title] {
  border-bottom: 1px dotted;
}

address {
  margin: 0 0 1.5rem;
}

/* 코드 블록 */
pre {
  background: #eee;
  border-left: 1px solid #eee;
  max-width: 100%;
  overflow: auto;
  padding: 1.5rem;
}

code,
kbd,
pre,
samp {
  font-size: 1rem;
  font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}


/* ==========================================================================
   폼 요소
   ========================================================================== */
button,
input,
optgroup,
select,
textarea {
  border-radius: 0;
  color: inherit;
  font: inherit;
  margin: 0;
  line-height: 1.6;
}

button {
  overflow: visible;
  text-transform: none;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type="checkbox"],
input[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

input[type="search"] {
  -webkit-appearance: none;
  box-sizing: border-box;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

input[type="search"]:focus {
  box-shadow: none;
}

fieldset {
  border: 1px solid #eee;
  margin: 0;
  padding: 1rem;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
}

label {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

optgroup {
  font-weight: bold;
}


/* ==========================================================================
   테이블
   ========================================================================== */
table {
  border-collapse: collapse;
  border-spacing: 0;
  border-top: 1px solid #ddd;
  margin: 0 0 1.5rem;
  text-align: left;
  width: var(--full-width);
}

td,
th {
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
}

caption,
th {
  font-weight: bold;
  text-transform: uppercase;
}

caption {
  color: #777;
}

thead {
  background: #eee;
}


/* ==========================================================================
   기타 요소
   ========================================================================== */
hr {
  border: 0;
  height: 1px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

div:focus {
  outline: none;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
main,
menu,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden],
template {
  display: none;
}


/* ==========================================================================
   Clearfix
   ========================================================================== */
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
  content: '';
  display: table;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
  clear: both;
}


/* ==========================================================================
   반응형 - Mobile (480px 이하)
   ========================================================================== */
@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 48px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 28px;
  }

  h4 {
    font-size: 24px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 16px;
  }

  p {
    font-size: 16px;
  }
}
