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

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

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* hidden 屬性必須勝過任何 display 宣告。
   瀏覽器預設的 [hidden]{display:none} 是 UA 樣式，
   只要作者樣式設了 display（例如 .foo{display:grid}），
   hidden 就會失效 —— 元素看不見卻仍會攔截點擊。 */
[hidden] { display: none !important; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* --- 共用版面 ------------------------------------------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}
.container--wide {
  width: min(100% - var(--gutter) * 2, var(--container-wide));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(80px, 9vw, 180px);
}

/* --- 文字工具 ------------------------------------------- */
.eyebrow {
  font-size: var(--fs-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.section__title {
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section__lead {
  font-size: var(--fs-body-lg);
  color: var(--c-text-muted);
  max-width: 62ch;
}

/* --- 玻璃擬態（Figma Glass_effect, radius 20）----------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* --- 無障礙 --------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 999;
  padding: 12px 20px; background: var(--c-accent); color: var(--c-black);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

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