/* ============================================================
   Teli teri — 디자인 시스템 (Museum / White Cube)
   조용한 갤러리 문법: 순백 캔버스 · 잉크 · 단일 클레이 액센트
   헤어라인 · 여백 · 타이포로 위계. 그림자/라운드 최소화.
   ============================================================ */

/* 폰트는 각 HTML <head> 에서 preconnect + <link> 로 병렬 로드합니다.
   (CSS @import 는 site.css 로드 후에야 폰트를 받는 직렬 구조라 렌더가 늦어짐) */

/* 한글은 디스플레이/본문 모두 Pretendard 로 통일.
   라틴 디스플레이(teli teri 워드마크 · Intelligence of Interior Design)는
   명조(Iowan/Georgia)를 유지하기 위해, 한글 코드포인트만 Pretendard 로 매핑한다.
   → --serif 스택 맨 앞에 두면 한글은 Pretendard, 라틴은 뒤의 명조로 떨어진다. */
@font-face {
  font-family: 'PretendardKR';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/variable/woff2/PretendardVariable.woff2') format('woff2-variations');
  unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7A3, U+D7B0-D7FF, U+FF00-FFEF;
}

:root {
  /* ---- color tokens — near-monochrome greige, 미술관/화이트큐브 ---- */
  --bg:       oklch(97.8% 0.0035 90);
  --surface:  oklch(100% 0 0);
  --raise:    oklch(96.4% 0.004 90);
  --fg:       oklch(26% 0.006 60);
  --muted:    oklch(54% 0.006 60);
  --faint:    oklch(68% 0.005 60);
  --border:   oklch(90% 0.004 80);
  --hairline: oklch(88% 0.004 80);
  --accent:   oklch(44% 0.012 55);   /* 거의 무채색의 따뜻한 스톤 — 강조가 아니라 위계용 */
  --accent-ink: oklch(34% 0.010 55);

  /* photographic placeholder tones — 전부 따뜻한 스톤 그레이로 톤다운 */
  --ph-1: oklch(86% 0.005 80);
  --ph-2: oklch(81% 0.007 65);
  --ph-3: oklch(89% 0.004 90);
  --ph-4: oklch(77% 0.006 70);
  --ph-5: oklch(83% 0.008 55);

  /* ---- type ---- */
  --serif: 'PretendardKR', 'Iowan Old Style', Georgia, serif;
  --sans:  'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* ---- metrics ---- */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 420;
  letter-spacing: -0.003em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* 화면엔 숨기되 스크린리더·검색엔진엔 노출되는 제목용 */
.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;
}

/* ---- layout helpers ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: 1520px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }

.section-rule {
  border: none;
  border-top: 1px solid var(--hairline);
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: none;
  transition: background 0.45s ease, border-color 0.45s ease;
}
.nav__inner {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.006em;
  word-spacing: 0.04em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.brand small {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  margin-left: 10px;
  transform: translateY(-1px);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fg);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.62;
}
.nav__links a:not(.nav__cta) { opacity: 0.62; }
.nav__links a:hover { color: var(--fg); opacity: 1; }
.nav__links a.is-active { color: var(--fg); opacity: 1; }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}
.nav__cta {
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  color: var(--fg) !important;
  opacity: 1 !important;
  transition: color 0.2s;
}
.nav__cta:hover { color: var(--accent) !important; }
.nav__cta::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__cta:hover::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border: none; background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav__burger span {
  display: block; height: 1.5px; width: 24px;
  background: var(--fg);
  transition: transform 0.3s, opacity 0.2s;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   PHOTO PLACEHOLDER (인테리어 사진 자리)
   ========================================================= */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--ph-1);
  background-image:
    linear-gradient(135deg,
      color-mix(in oklab, var(--ph-tone, var(--ph-1)) 100%, transparent),
      color-mix(in oklab, var(--ph-tone, var(--ph-1)) 70%, #fff 30%));
}
.photo[data-tone="2"] { --ph-tone: var(--ph-2); }
.photo[data-tone="3"] { --ph-tone: var(--ph-3); }
.photo[data-tone="4"] { --ph-tone: var(--ph-4); }
.photo[data-tone="5"] { --ph-tone: var(--ph-5); }
.photo::after {
  content: attr(data-label);
  position: absolute;
  left: 16px; bottom: 13px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--fg) 34%, transparent);
  font-family: var(--sans);
}
.photo--ratio { display: block; aspect-ratio: var(--ar, 4 / 3); }

/* ---- real photography (사진 삽입 시) ---- */
.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(1.005);
  transition: transform 1.4s cubic-bezier(.22,.61,.21,1), opacity 0.6s ease;
}
.photo.has-img { display: block; background: var(--raise); }
.photo.has-img::after { display: none; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  background: var(--fg);
  color: var(--bg);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, background 0.2s, color 0.2s;
}
.btn:hover { opacity: 0.88; }
.btn--ghost {
  background: transparent;
  color: var(--fg);
}
.btn--ghost:hover { background: var(--fg); color: var(--bg); opacity: 1; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--fg);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 3px;
  transition: border-color 0.2s;
}
.link-arrow:hover { border-color: var(--accent); }
.link-arrow .arrow { transition: transform 0.2s; }
.link-arrow:hover .arrow { transform: translateX(3px); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--hairline);
  margin-top: clamp(80px, 12vw, 160px);
  padding-block: clamp(48px, 7vw, 80px) 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer__brand .serif { font-size: 28px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 34ch; }
.footer h4 {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint); font-weight: 500; margin-bottom: 16px;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer ul a:hover { color: var(--fg); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: clamp(40px, 6vw, 64px); padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 12px; color: var(--faint); letter-spacing: 0.02em;
}

/* 사업자 정보 콜로폰 — about / index 공통 */
.colophon-biz {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 12px; line-height: 1.65; color: var(--faint);
  letter-spacing: 0.02em;
}
.colophon-biz p { margin: 0; }
.colophon-biz .sep { margin: 0 9px; opacity: 0.42; }
.colophon-biz a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.25s; }
.colophon-biz a:hover { border-bottom-color: currentColor; }
.colophon-biz .tag { letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.colophon-biz .tag .ko { text-transform: none; letter-spacing: 0.02em; }

/* =========================================================
   REVEAL animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(9px); transition: opacity 1.1s cubic-bezier(.22,.61,.21,1), transform 1.1s cubic-bezier(.22,.61,.21,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE — mobile menu
   ========================================================= */
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    max-height: calc(100dvh - var(--nav-h));
    overflow: auto;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a,
  .nav__links a:not(.nav__cta) {
    width: 100%;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--fg);
    opacity: 1;
  }
  .nav__links a.is-active::after { display: none; }
  .nav__cta {
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 14px 0 !important;
    color: var(--accent) !important;
  }
  .nav__cta::after { display: none !important; }
  .nav__cta:hover { background: none; color: var(--accent) !important; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
