/* ==========================================================================
   Base / Reset
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }

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

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

body{
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: -0.01em;
  word-break: keep-all; /* Korean: wrap at word (어절) boundaries, never mid-syllable-block */
  overflow-wrap: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, p, figure, blockquote{ margin: 0; }

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

input, textarea{ font: inherit; }

/* Focus visibility — accessible + on-brand (accent outline) */
:focus-visible{
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection{
  background: var(--color-accent);
  color: var(--color-accent-on-accent);
}

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

.eyebrow{
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-muted);
}
[data-theme="dark"] .eyebrow{ color: var(--color-muted-on-dark); }

/* glyph span used by text-pressure reveal.
   display:inline (not inline-block) — atomic inline-block boxes give the
   browser a break opportunity between every letter even without whitespace,
   which caused mid-word line breaks. Plain inline glyphs follow normal
   UAX#14 wrapping (breaks only at real space text nodes) while opacity and
   font-variation-settings still animate correctly. */
.char{
  display: inline;
  will-change: font-variation-settings, opacity;
  font-variation-settings: 'wght' var(--wght, 300);
}
