/* ==========================================================================
   House16 — Reset + 基礎排版
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 錨點跳轉時避開吸頂導覽 */
  scroll-padding-top: 6rem;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-cjk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: var(--lh-tight);
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

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

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

/* 鍵盤操作看得見焦點；滑鼠點擊不顯示 */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

/* --- 版面容器 ------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
  position: relative;
}

/* --- 排版工具 ------------------------------------------------------------ */

/* 西文小標：全大寫 + 寬字距，YSL 的招牌手法 */
.eyebrow {
  font-family: var(--font-latin);
  font-size: var(--fs-micro);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-latin);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 var(--sp-3);
}

/* 小標前的色條 —— 全站彩色多半只出現在這種尺寸 */
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: var(--line-w);
  background: var(--red);
  flex: none;
}
.eyebrow--blue::before   { background: var(--blue); }
.eyebrow--yellow::before { background: var(--yellow); }
.eyebrow--ink::before    { background: var(--ink); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.85;
  color: var(--ink-70);
  max-width: var(--maxw-text);
}

.muted { color: var(--grey); }

.latin {
  font-family: var(--font-latin);
  text-transform: uppercase;
  letter-spacing: var(--ls-latin);
}

/* 價格用等寬數字，避免不同數字寬度造成跳動 */
.price {
  font-family: var(--font-latin);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
}
.skip-link:focus { top: 0.5rem; }
