/**
 * Base — 全局基础样式
 * 高端设计品牌官网：清晰层级、高对比可读、克制装饰
 */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-display);
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-3xl);
}

h2 {
  font-size: var(--font-size-2xl);
}

h3 {
  font-size: var(--font-size-xl);
}

h4 {
  font-size: var(--font-size-lg);
}

p {
  margin: 0 0 var(--space-md);
  max-width: var(--content-width);
}

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

a {
  color: var(--color-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--duration-fast) var(--ease-default);
}

a:hover {
  color: var(--color-accent-metal);
}

a:focus-visible {
  outline: 1px solid var(--color-accent-metal);
  outline-offset: 3px;
}

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

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.25em;
}

dl {
  margin: 0;
}

dt {
  margin-top: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

dt:first-child {
  margin-top: 0;
}

dd {
  margin: var(--space-xs) 0 0;
}

[lang="en"] {
  font-family: var(--font-en);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
