/* Global CSS - Root 변수 및 글로벌 스타일 */

/* 나눔스퀘어 네오 폰트 정의 */
@font-face {
  font-family: "Nanum Square";
  src: url("../font/NanumSquareNeo-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors */
  --color-black: #000;
  --color-white: #fff;
  --color-grey: #777;
  --color-light: #efefef;
  --color-menu: #484845;
  --color-menu-grey: #c2c2c2;
  --color-text: var(--color-black);
  --color-text-grey: var(--color-grey);
  --color-background: var(--color-white);
  --color-overlay: rgba(231, 231, 211, 0.8);

  /* Code Colors */
  --color-code-light-grey: #cacbd1;
  --color-code-comment: #a9aaad;
  --color-code-white: #c5c9c6;
  --color-code-red: #d16464;
  --color-code-orange: #de935f;
  --color-code-yellow: #f0c674;
  --color-code-green: #a7bd68;
  --color-code-aqua: #8abeb7;
  --color-code-blue: #7e9abf;
  --color-code-purple: #b294bb;

  /* Typography */
  --font-family-sans: "Nanum Square", sans-serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  /* Spacing */
  --padding: 1.5rem;
  --spacing-xs: 0.5rem;
  --spacing-s: 0.75rem;
  --spacing-m: 1rem;
  --spacing-l: 1.5rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 6rem;

  /* Layout */
  --max-width: 70rem;
  --grid-columns: 12;
  --grid-gutter: 3rem;

  /* Border */
  --border-width: 1px;
  --border-style: solid;
  --border-color: var(--color-text);
  --border: var(--border-width) var(--border-style) var(--border-color);

  /* Marker Color - 배경보다 명도가 조금 어두운 색 */
  --marker-color: #d4d4c0;
}

/* Base Styles */
html {
  font-family: "Nanum Square", sans-serif;
  font-style: normal;
  color: var(--color-text);
  background: var(--color-background);
  font-size: 14pt;
  line-height: 1.75;
}

body {
  font-family: "Nanum Square", sans-serif;
}

body {
  padding: var(--padding);
  max-width: var(--max-width);
  margin: 0 auto;
  background: #e7e7d3;
}

/* Typography */
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

/* Heading Reset - 모든 h 태그를 동일한 폰트 사이즈로 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1em;
  margin: 0;
  padding: 0;
}

/* Utility Classes */
.bg-light {
  background-color: var(--color-light);
}

.color-grey {
  color: var(--color-text-grey);
}

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