/* Base Styles */

/* ===== Font Face ===== */
@font-face {
  font-family: "Pretendard";
  font-weight: 400;
  font-style: normal;
  src: url("/fonts/Pretendard-Regular.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  font-weight: 500;
  font-style: normal;
  src: url("/fonts/Pretendard-Medium.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  font-weight: 700;
  font-style: normal;
  src: url("/fonts/Pretendard-Bold.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "NanumMyeonjo";
  font-weight: 400;
  font-style: normal;
  src: url("/fonts/NanumMyeongjo.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "NanumMyeonjo";
  font-weight: 700;
  font-style: normal;
  src: url("/fonts/NanumMyeongjoBold.woff2") format("woff2");
  font-display: swap;
}

.nanum-myeongjo {
  font-family: "NanumMyeonjo";
}

/* ===== HTML & Body ===== */
html {
  scroll-behavior: smooth;
  font-size: 100%;
  height: 100%;
}

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

body {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: var(--font-weight-regular);
  color: var(--black);
  background-color: #fff;
  letter-spacing: var(--letter-spacing-ko); /* 기본 한글 */
  word-break: keep-all;
  word-wrap: break-word;
  overflow-x: hidden;
  min-width: 320px;
  height: 100%;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html,
body {
  -ms-overflow-style: none; /* IE 및 구형 Edge */
  scrollbar-width: none; /* Firefox */
}

/* 한글 텍스트 letter-spacing */
.ko {
  letter-spacing: var(--letter-spacing-ko);
}

/* 영문 텍스트 letter-spacing */
.en {
  letter-spacing: var(--letter-spacing-en);
}

/* Font Weight */
.font-regular {
  font-weight: var(--font-weight-regular);
}
.font-bold {
  font-weight: var(--font-weight-bold);
}

/* ===== Links ===== */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* a:hover {
  color: var(--brand-primary);
}

a:active {
  color: var(--brand-secondary);
} */

/* ===== Strong & Emphasis ===== */
strong,
b {
  font-weight: var(--font-weight-bold);
}
em,
i {
  font-style: italic;
}

/* ===== Code ===== */
code {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  background-color: var(--gray-250);
  border-radius: var(--radius-sm);
}
pre {
  font-family: "Courier New", Courier, monospace;
  padding: var(--spacing-md);
  background-color: var(--bg-gray-250);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

/* ===== Selection ===== */
::selection {
  background-color: var(--brand-tertiary);
  color: var(--black);
}
::-moz-selection {
  background-color: var(--brand-tertiary);
  color: var(--black);
}

/* ===== Scrollbar (Webkit) ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--gray-250);
}
::-webkit-scrollbar-thumb {
  background: var(--gray-550);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gray-750);
}

/* ===== Utility Classes ===== */
.d-none {
  display: none !important;
}
.d-block {
  display: block !important;
}
.d-inline {
  display: inline !important;
}
.d-inline-block {
  display: inline-block !important;
}
.d-flex {
  display: flex !important;
}

.hidden {
  visibility: hidden;
}
.invisible {
  opacity: 0;
}

.overflow-hidden {
  overflow: hidden;
}
.overflow-auto {
  overflow: auto;
}

.is-mobile {
  display: flex;
}

.is-tablet,
.is-desktop,
.without-mobile {
  display: none;
}

button {
  color: black;
}

@media (min-width: 800px) {
  .is-tablet {
    display: flex;
  }

  .without-mobile {
    display: flex;
  }

  .is-mobile,
  .is-desktop {
    display: none;
  }
}

@media (min-width: 1280px) {
  .is-desktop {
    display: flex;
  }

  .without-mobile {
    display: flex;
  }

  .is-mobile,
  .is-tablet {
    display: none;
  }
}

@media (max-width: 374.98px) {
  html {
    font-size: 80%;
  }
}
