:root {
  --primary: #7c5cff;
  --primary-dark: #5a3fd6;
  --primary-light: #a88bff;
  --accent: #ff6b9d;
  --accent-light: #ff9ec0;
  --bg: #f5f3ff;
  --bg-alt: #ede9fe;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --surface-hover: rgba(255, 255, 255, 0.92);
  --text: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888a8;
  --border: rgba(124, 92, 255, 0.12);
  --border-strong: rgba(124, 92, 255, 0.24);
  --shadow-sm: 0 2px 8px rgba(124, 92, 255, 0.08);
  --shadow-md: 0 8px 24px rgba(124, 92, 255, 0.12);
  --shadow-lg: 0 16px 48px rgba(124, 92, 255, 0.16);
  --shadow-glow: 0 0 32px rgba(124, 92, 255, 0.24);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #7c5cff 0%, #a855f7 50%, #ff6b9d 100%);
  --gradient-banner: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 35%, #7c5cff 70%, #ff6b9d 100%);
  --gradient-card: linear-gradient(135deg, rgba(124, 92, 255, 0.06) 0%, rgba(255, 107, 157, 0.06) 100%);
  --gradient-text: linear-gradient(135deg, #7c5cff, #ff6b9d);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --max-width: 1200px;
  --header-height: 72px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f1a;
    --bg-alt: #1a1a2e;
    --surface: rgba(30, 30, 50, 0.72);
    --surface-solid: #1e1e32;
    --surface-hover: rgba(40, 40, 65, 0.92);
    --text: #e8e6f0;
    --text-secondary: #b8b4d0;
    --text-muted: #7a7694;
    --border: rgba(124, 92, 255, 0.16);
    --border-strong: rgba(124, 92, 255, 0.32);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 32px rgba(124, 92, 255, 0.32);
    --gradient-banner: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 35%, #3d2a8a 70%, #7c5cff 100%);
    --gradient-card: linear-gradient(135deg, rgba(124, 92, 255, 0.08) 0%, rgba(255, 107, 157, 0.08) 100%);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(124, 92, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(255, 107, 157, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(168, 85, 247, 0.06) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(124, 92, 255, 0.3);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(124, 92, 255, 0.3);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(124, 92, 255, 0.5);
  background-clip: content-box;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

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

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== HEADER ===== */
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

header[role="banner"] nav {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

header[role="banner"] nav > a:first-child {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  position: relative;
}

header[role="banner"] nav > a:first-child::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

header[role="banner"] nav > a:first-child:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

header[role="banner"] nav > a:first-child:hover::after {
  width: 100%;
}

header[role="banner"] nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

header[role="banner"] nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  position: relative;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

header[role="banner"] nav ul li a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: -1;
}

header[role="banner"] nav ul li a:hover {
  color: #fff;
  transform: translateY(-2px);
}

header[role="banner"] nav ul li a:hover::before {
  opacity: 1;
}

/* ===== MAIN ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

main > article > h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  padding: 48px 40px;
  background: var(--gradient-banner);
  background-size: 200% 200%;
  color: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  animation: bannerShift 8s ease infinite;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

main > article > h1::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(255, 107, 157, 0.2) 0%, transparent 45%);
  animation: bannerGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}

main > article > h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: bannerLine 3s ease-in-out infinite;
}

@keyframes bannerShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes bannerGlow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
  100% { transform: translate(5%, 5%) scale(1.1); opacity: 1; }
}

@keyframes bannerLine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

main > article > p:first-of-type {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
  padding: 28px 32px;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  position: relative;
}

main > article > p:first-of-type::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

/* ===== SECTIONS ===== */
section {
  margin-bottom: 48px;
  padding: 36px 32px;
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.15s; }
section:nth-child(4) { animation-delay: 0.2s; }
section:nth-child(5) { animation-delay: 0.25s; }
section:nth-child(6) { animation-delay: 0.3s; }
section:nth-child(7) { animation-delay: 0.35s; }
section:nth-child(8) { animation-delay: 0.4s; }
section:nth-child(9) { animation-delay: 0.45s; }
section:nth-child(10) { animation-delay: 0.5s; }
section:nth-child(11) { animation-delay: 0.55s; }
section:nth-child(12) { animation-delay: 0.6s; }
section:nth-child(13) { animation-delay: 0.65s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

section h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  padding-bottom: 16px;
  position: relative;
  color: var(--text);
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

section:hover h2::after {
  width: 96px;
}

section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
  padding-left: 16px;
  position: relative;
  transition: color var(--transition-fast);
}

section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(124, 92, 255, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

section h3:hover {
  color: var(--primary);
}

section h3:hover::before {
  transform: translateY(-50%) scale(1.4);
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.8);
}

section p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

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

/* ===== ARTICLE CARDS (inside #articles) ===== */
#articles {
  display: flex;
  flex-direction: column;
  gap: 0;
}

#articles article {
  padding: 24px 28px;
  margin: 0 -8px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
}

#articles article + article {
  margin-top: 4px;
}

#articles article:hover {
  background: var(--gradient-card);
  border-color: var(--border);
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

#articles article h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

#articles article p:first-of-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

#articles article p:last-of-type a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(124, 92, 255, 0.08);
  transition: all var(--transition-fast);
}

#articles article p:last-of-type a::after {
  content: "→";
  transition: transform var(--transition-fast);
}

#articles article p:last-of-type a:hover {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

#articles article p:last-of-type a:hover::after {
  transform: translateX(4px);
}

/* ===== FAQ ===== */
#faq dl {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#faq dt {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 14px 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
  padding-left: 44px;
  cursor: default;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

#faq dt::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(124, 92, 255, 0.4);
}

#faq dd {
  padding: 14px 20px 18px 44px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  position: relative;
  margin-bottom: 0;
  transition: border-color var(--transition-fast);
}

#faq dd::before {
  content: "A";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent);
  background: rgba(255, 107, 157, 0.12);
  border-radius: 50%;
}

#faq dt + dd {
  margin-top: -12px;
}

#faq dt:hover {
  border-color: var(--border-strong);
}

#faq dt:hover + dd {
  border-color: var(--border-strong);
}

/* ===== HOWTO ===== */
#howto ol {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}

#howto ol li {
  counter-increment: step;
  padding: 16px 20px 16px 64px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(124, 92, 255, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

#howto ol li:hover {
  transform: translateX(6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

#howto ol li:hover::before {
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.5);
}

/* ===== CONTACT ===== */
#contact p {
  padding: 12px 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  font-size: 0.95rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

#contact p:hover {
  transform: translateX(6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

/* ===== SITEMAP & LINKS ===== */
#sitemap ul,
#links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap ul li a,
#links ul li a {
  display: inline-block;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

#sitemap ul li a::before,
#links ul li a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: -1;
}

#sitemap ul li a:hover,
#links ul li a:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

#sitemap ul li a:hover::before,
#links ul li a:hover::before {
  opacity: 1;
}

/* ===== LEGAL ===== */
#legal h2 {
  margin-top: 32px;
}

#legal h2:first-child {
  margin-top: 0;
}

#legal p {
  padding: 16px 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

/* ===== EEAT ===== */
#eeat p {
  padding: 12px 20px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  font-size: 0.9rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

#eeat p:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

/* ===== FOOTER ===== */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 48px;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.8;
}

footer p:first-child {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

footer p:first-child a {
  color: var(--primary);
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root {
    --max-width: 100%;
  }

  main {
    padding: 24px 20px 48px;
  }

  section {
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  header[role="banner"] nav {
    padding: 0 16px;
    gap: 12px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-height);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  header[role="banner"] nav > a:first-child {
    font-size: 1.15rem;
  }

  header[role="banner"] nav ul {
    gap: 2px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 4px;
  }

  header[role="banner"] nav ul::-webkit-scrollbar {
    display: none;
  }

  header[role="banner"] nav ul li a {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  main {
    padding: 16px 14px 40px;
  }

  main > article > h1 {
    padding: 32px 24px;
    font-size: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
  }

  main > article > p:first-of-type {
    padding: 20px 20px 20px 24px;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    margin-bottom: 28px;
  }

  section {
    padding: 22px 18px;
    margin-bottom: 28px;
    border-radius: var(--radius-md);
  }

  section h2 {
    font-size: 1.2rem;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }

  section h3 {
    font-size: 1.05rem;
    margin-top: 22px;
  }

  section p {
    font-size: 0.9rem;
  }

  #articles article {
    padding: 18px 16px;
    margin: 0 -4px;
  }

  #articles article:hover {
    transform: translateX(3px);
  }

  #faq dt {
    padding: 12px 16px 12px 40px;
    font-size: 0.9rem;
  }

  #faq dt::before {
    left: 12px;
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }

  #faq dd {
    padding: 12px 16px 16px 40px;
    font-size: 0.85rem;
  }

  #faq dd::before {
    left: 12px;
    top: 14px;
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
  }

  #howto ol li {
    padding: 14px 16px 14px 56px;
    font-size: 0.9rem;
  }

  #howto ol li::before {
    left: 12px;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  #sitemap ul li a,
  #links ul li a {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  #contact p,
  #eeat p {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  footer {
    padding: 32px 16px 40px;
  }

  footer p {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  main > article > h1 {
    padding: 24px 18px;
    font-size: 1.3rem;
  }

  section {
    padding: 18px 14px;
  }

  section h2 {
    font-size: 1.1rem;
  }

  section h3 {
    font-size: 0.95rem;
    padding-left: 12px;
  }

  #articles article h3 {
    font-size: 0.95rem;
  }

  #articles article p:last-of-type a {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}

/* ===== ACCESSIBILITY ===== */
@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;
  }

  section {
    opacity: 1;
    transform: none;
  }
}

/* ===== PRINT ===== */
@media print {
  header[role="banner"],
  footer {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  section {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
    opacity: 1;
    transform: none;
  }

  main > article > h1 {
    background: #000;
    color: #fff;
    box-shadow: none;
  }
}