/* ============================================================
   BASE / GLOBAL DESIGN SYSTEM
   Shared reset, typography, and premium UI primitives loaded
   on every page, ahead of header/footer/page-specific styles.
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Heiti SC', sans-serif;
  line-height: 1.7;
  color: #1c1c1c;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2 {
  font-family: 'Playfair Display', 'Songti SC', 'PingFang SC', 'Microsoft YaHei', serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3, h4, h5, h6 {
  font-family: inherit;
  font-weight: 600;
  line-height: 1.3;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--gold, #FFD700);
  color: var(--china-blue, #0a2a66);
}

:focus-visible {
  outline: 2px solid var(--gold, #FFD700);
  outline-offset: 3px;
}

/* ================= PREMIUM BUTTON BASELINE =================
   Layers a refined transition/shadow/lift feel underneath every
   page's own .btn color rules, so buttons feel consistent and
   tactile everywhere without each page redefining it. */
.btn {
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s ease,
              color 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px);
}
