/**
 * Base Styles
 *
 * 기본 요소 스타일
 */

/* Typography */
h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
}

p {
  margin-bottom: var(--spacing-4);
}

small {
  font-size: var(--font-size-sm);
}

strong {
  font-weight: var(--font-weight-semibold);
}

/* Links */
a {
  color: var(--color-primary-600);
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-700);
}

/* Code */
code {
  font-family: var(--font-family-mono);
  font-size: 0.875em;
  padding: var(--spacing-1) var(--spacing-2);
  background-color: var(--color-neutral-100);
  border-radius: var(--radius-sm);
}

pre {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  padding: var(--spacing-4);
  background-color: var(--color-neutral-100);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
}

/* HR */
hr {
  border: none;
  border-top: 1px solid var(--color-neutral-200);
  margin: var(--spacing-6) 0;
}

/* Disabled state */
[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Hidden */
.hidden {
  display: none !important;
}

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