/* GYEOL — 토큰, 리셋, 기본 타이포그래피 */
:root {
  color-scheme: light;
  --white: #FFFFFF;
  --charcoal: #242521;
  --earth: #59483B;
  --green: #8A9770;
  --line: rgba(36, 37, 33, .16);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --display: "Cormorant Garamond", "Pretendard Variable", Pretendard, Georgia, serif;
  --gutter: clamp(20px, 3.4vw, 56px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(112px, 15vw, 240px);
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .21, 1);
}

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

html {
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 40px;
}
html.menu-open { overflow: hidden; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .55s; animation-timing-function: var(--ease); }

body {
  margin: 0;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { outline: none; animation: page-in .7s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--charcoal); outline-offset: 3px; }

.label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--earth);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--white); padding: 8px 12px; }
.skip-link:focus { top: 12px; }

/* 스크롤 리빌: 느린 페이드 */
.motion [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 1.3s var(--ease), transform 1.3s var(--ease); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}
