@font-face {
  font-family: "Pretendard Variable";
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/PretendardVariable.woff2") format("woff2-variations");
}

:root {
  /* Palette: Deep Chalkboard Forest + Gallery Stone White + Brass Gold */
  --bg-page: #FAFBF9;
  --bg-surface: #F0F4F1;
  --bg-card: #FFFFFF;
  --bg-forest: #133E2B;
  --bg-forest-elevated: #194D36;

  --text-primary: #11221A;
  --text-muted: #4A5D53;
  --text-on-forest: #F7FAF8;
  --text-on-forest-muted: #C8D9CF;

  --accent: #1A583C;
  --accent-hover: #13422D;
  --accent-brass: #E5C97B;
  --accent-brass-ink: #7F631E;
  --danger: #B4412E;
  --danger-bg: #FDF2F0;

  --border-subtle: #DCE4DE;
  --border-strong: #B8C7BD;
  --border-forest: rgba(255, 255, 255, 0.18);

  /* Typography: Single Family + 3 Body Size Steps */
  --font-sans: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --text-heading: clamp(1.625rem, 2.7vw, 2.25rem);
  --text-body: 1.0625rem;
  --text-sm: 0.875rem;

  /* Motion & Radii */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-ui: 180ms;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --container-max: 1160px;
}

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

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

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  letter-spacing: -0.015em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.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;
}

.container {
  width: min(100% - 48px, var(--container-max));
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--container-max));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
