/* ============================================================
   따사룸 — Base reset & typography
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 유동 기준 폰트: 360px→15px, 1440px+→16px */
  font-size: clamp(15px, 0.9375rem + 0.1vw, 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--fw-regular);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-break: keep-all;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: var(--fw-x);
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}

p { margin: 0; text-wrap: pretty; word-break: keep-all; overflow-wrap: break-word; }

/* 줄바꿈/오버플로 제어 유틸 */
.nowrap { white-space: nowrap; }
/* 전화번호·숫자 등 끊기면 안 되는 토큰 */
.tel, .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* PC 전용 줄바꿈: 좁은 화면에서는 공백으로 대체해 자연 줄바꿈에 맡김 */
.br-pc { display: inline; }
@media (max-width: 600px) {
  .br-pc { display: none; }
  /* br-pc 앞뒤가 붙지 않도록 */
  .br-pc + * { }
}

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

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

ul { margin: 0; padding: 0; list-style: none; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
  font-size: inherit;
}

/* Focus — always visible, never removed */
:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Eyebrow / small caps label */
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

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

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