/* common_new1/css/style.css
 * KVIC MarketWatch shared design tokens and base styles
 */

:root {
  /* KVIC official colors */
  --kvic-sky: #3f9eca;
  --kvic-navy: #283e81;
  --kvic-indigo: #083b76;
  --kvic-gray: #8c8f89;
  --kvic-gray-70: rgba(140, 143, 137, 0.7);
  --kvic-gray-30: rgba(140, 143, 137, 0.3);

  /* Semantic colors */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f6f7;
  --surface-3: #eceff2;
  --border: #d9d9d6;
  --border-strong: #b7bab6;
  --border-light: #e8e9e7;
  --ink-strong: #141414;
  --ink: #303030;
  --ink-sub: #626262;
  --ink-faint: #787b77;
  --ink-invert: #ffffff;
  --accent: var(--kvic-navy);
  --accent-hover: var(--kvic-indigo);
  --accent-metal: var(--kvic-sky);
  --hint-navy: var(--kvic-navy);
  --hint-green: var(--kvic-navy);
  --hint-yellow: var(--kvic-sky);
  --hint-blue: var(--kvic-sky);

  /* Shape and depth */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-xs: 0 1px 2px rgba(8, 24, 40, 0.05);
  --shadow-sm: 0 6px 18px rgba(8, 24, 40, 0.08);
  --shadow-md: 0 12px 28px rgba(8, 24, 40, 0.1);
  --shadow-lg: 0 20px 48px rgba(8, 24, 40, 0.14);

  /* Layout and motion */
  --header-h: 72px;
  --max-w: 1200px;
  --content-width: 1200px;
  --ease: 0.2s ease;
  --ease-slow: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "Pretendard Variable", "Pretendard", "Noto Sans KR",
          -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* image-grid.css(.ig__caption) 호환 토큰 */
  --color-text: var(--ink);
  --fs-08: 0.75rem;
  --fs-09: 0.8rem;
  --fs-10: 0.85rem;
  --lh-12: 1.25;
  --lh-14: 1.4;
  --lh-16: 1.6;
  --ls-08: 0.01em;
}

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

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

body {
  min-height: 100vh;
  padding-top: 0;
  overflow-x: hidden;
  visibility: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.is-loaded { visibility: visible; }

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol { list-style: none; }
address { font-style: normal; }

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(63, 158, 202, 0.25);
  color: var(--ink-strong);
}

:focus-visible {
  outline: 3px solid var(--kvic-sky);
  outline-offset: 3px;
}

.swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  box-sizing: content-box;
}

.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.site-header.is-scrolled,
.page-sub .site-header {
  border-bottom-color: var(--border-light);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-xs);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

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

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
