/* ============================================================
   DJ Bank — Base: reset, typography, layout primitives
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;              /* keep Korean words intact on wrap */
  overflow-wrap: break-word;
}

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

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

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

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

/* ---- Headings ---- */
.h-hero {
  font-size: var(--fs-hero);
  line-height: var(--lh-title);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-title);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.h4 {
  font-size: var(--fs-h4);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---- Eyebrow (섹션 아이브로) : letter-spacing -1% ---- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dj-blue);
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  color: var(--ink-2);
}

.caption {
  font-size: var(--fs-caption);
  line-height: 1.55;
  color: var(--ink-3);
}

.text-muted { color: var(--ink-2); }
.text-blue { color: var(--dj-blue); }
.strong { font-weight: 700; }

/* ---- Layout primitives ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-gutter);
}
.container.narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--sp-section); }
.section.tight { padding-block: calc(var(--sp-section) * 0.7); }

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .h2 { margin-top: 12px; }
.section-head .lead { margin-top: 14px; }

.stack > * + * { margin-top: var(--stack, 16px); }

.grid { display: grid; gap: 20px; }
@media (min-width: 768px) {
  .grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Accessibility ---- */
.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 (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
