/* ============================================
   HTML Artifacts — Base Layer
   Reset · Layout Grid · Responsive · Animation Primitives · Material Symbols
   Shared by all themes. Theme-independent.
   ============================================ */

/* === CSS Variables (Layout & Spacing — theme-independent) === */
:root {
  /* Spacing & Layout */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --content-padding: 24px;

  /* Font stacks (theme can override sizes) */
  --font-family-heading: 'Noto Serif SC', 'Playfair Display', serif;
  --font-family-heading-en: 'Playfair Display', 'Noto Serif SC', serif;
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-family-code: "SF Mono", "Fira Code", Menlo, Consolas, monospace;
}

/* === Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

/* === Layout Grid === */
.container {
  max-width: var(--max-width, 880px);
  margin: 0 auto;
  padding: var(--content-padding);
}

.section-inner {
  max-width: var(--max-width, 880px);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

/* === Responsive Breakpoints === */
@media (max-width: 768px) {
  :root {
    --content-padding: 16px;
  }
}

/* === Animation Primitives === */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.slide-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.stagger-1 { transition-delay: 0.15s; }
.stagger-2 { transition-delay: 0.30s; }
.stagger-3 { transition-delay: 0.45s; }
.stagger-4 { transition-delay: 0.60s; }

/* Verdict line stagger (for final-verdict) */
.line-stagger-1 { transition-delay: 0.3s; }
.line-stagger-2 { transition-delay: 0.6s; }
.line-stagger-3 { transition-delay: 0.9s; }

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-in-up,
  .slide-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* === Material Symbols Base === */
.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;
  vertical-align: -0.15em;
  font-size: 1.1em;
}

.icon-sm .material-symbols-outlined,
.material-symbols-outlined.icon-sm {
  font-size: 18px;
}

/* === Utility Classes === */
.text-center { text-align: center; }
.hidden { display: none !important; }
