:root {
  --brand: #f5a623;
  --brand-deep: #e8890c;
  --brand-soft: #ffd27a;
  --accent: #ff6b5b;
  --bg: #fbf7f1;
  --bg-alt: #ffffff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --text: #241c12;
  --text-soft: #5c5245;
  --text-mute: #8a7f70;
  --line: rgba(36, 28, 18, 0.1);
  --line-strong: rgba(36, 28, 18, 0.16);
  --shadow-sm: 0 2px 8px rgba(80, 55, 20, 0.06);
  --shadow-md: 0 10px 30px rgba(80, 55, 20, 0.1);
  --shadow-lg: 0 24px 60px rgba(80, 55, 20, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 132px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-hero: linear-gradient(135deg, #ffb84d 0%, #f5a623 38%, #ff7a4d 78%, #ff5f6d 100%);
  --grad-brand: linear-gradient(120deg, #f5a623, #ff7a4d);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.45));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14100b;
    --bg-alt: #1c1610;
    --surface: rgba(38, 30, 22, 0.68);
    --surface-solid: #221b13;
    --text: #f7efe2;
    --text-soft: #cfc2ae;
    --text-mute: #9c8f7b;
    --line: rgba(255, 240, 220, 0.12);
    --line-strong: rgba(255, 240, 220, 0.2);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.62);
    --grad-hero: linear-gradient(135deg, #7a4a12 0%, #b06a14 40%, #8c3a24 80%, #5e1f2c 100%);
    --grad-glass: linear-gradient(135deg, rgba(60, 46, 32, 0.75), rgba(30, 24, 18, 0.5));
  }
}

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

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

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 8% -10%, rgba(245, 166, 35, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(255, 107, 91, 0.12), transparent 55%),
    radial-gradient(800px 600px at 50% 120%, rgba(245, 166, 35, 0.08), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand-deep);
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.9rem);
}

h2 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
}

h3 {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1em;
  color: var(--text-soft);
}

blockquote {
  margin: 0;
  padding: 1.1em 1.3em;
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0;
}

time {
  color: var(--text-mute);
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}

/* ============ Header ============ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px clamp(14px, 4vw, 40px);
  background: var(--grad-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand search"
    "nav nav";
  gap: 10px 20px;
  align-items: center;
}

.brand-bar {
  grid-area: brand;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  min-width: 0;
}

.brand-bar a {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

.brand-bar a:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.1);
}

.brand-bar span {
  font-size: 0.82rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

#site-header nav {
  grid-area: nav;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin: 0 calc(clamp(14px, 4vw, 40px) * -1);
  padding: 0 clamp(14px, 4vw, 40px);
}

#site-header nav::-webkit-scrollbar {
  display: none;
}

#site-header nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

#site-header nav a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: all 0.28s var(--ease);
}

#site-header nav a:hover {
  color: var(--text);
  background: rgba(245, 166, 35, 0.14);
  border-color: rgba(245, 166, 35, 0.35);
  transform: translateY(-2px);
}

.search-box {
  grid-area: search;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.search-box:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.16), var(--shadow-sm);
}

.search-box label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.search-box input {
  flex: 1 1 auto;
  min-width: 0;
  width: 180px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 6px 0;
}

.search-box input::placeholder {
  color: var(--text-mute);
}

.search-box input:focus {
  outline: none;
}

.search-box button {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--grad-brand);
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

.search-box button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.45);
}

.search-box button:active {
  transform: translateY(0) scale(0.97);
}

/* ============ Main layout ============ */
main {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(18px, 3.5vw, 40px) clamp(14px, 4vw, 40px) clamp(40px, 6vw, 80px);
}

main > section,
main > nav,
main > aside {
  margin-bottom: clamp(22px, 3.5vw, 42px);
}

/* ============ Hero ============ */
#hero {
  margin-top: clamp(4px, 1vw, 12px);
}

#hero .banner {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px) clamp(22px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background: var(--grad-hero);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: heroShift 16s ease-in-out infinite alternate;
}

#hero .banner::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%);
  pointer-events: none;
  animation: floatBlob 12s ease-in-out infinite alternate;
}

#hero .banner::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -10%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 65%);
  pointer-events: none;
  animation: floatBlob 14s ease-in-out infinite alternate-reverse;
}

#hero .banner > * {
  position: relative;
  z-index: 1;
}

#hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(120, 60, 0, 0.35);
  max-width: 22ch;
}

#hero p {
  color: rgba(255, 255, 255, 0.94);
  max-width: 68ch;
  font-size: clamp(0.94rem, 1.4vw, 1.05rem);
  margin-bottom: 1.4em;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.hero-facts span:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.3);
}

/* ============ Breadcrumb ============ */
main > nav[aria-label="面包屑导航"] ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-mute);
}

main > nav[aria-label="面包屑导航"] li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-mute);
  opacity: 0.6;
}

main > nav[aria-label="面包屑导航"] a {
  color: var(--text-soft);
}

main > nav[aria-label="面包屑导航"] a:hover {
  color: var(--brand-deep);
}

main > nav[aria-label="面包屑导航"] [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ============ Aside meta ============ */
main > aside[aria-label="页面信息"] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

main > aside[aria-label="页面信息"] p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-mute);
}

/* ============ Card sections ============ */
main > section:not(#hero) {
  position: relative;
  padding: clamp(22px, 3.6vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

main > section:not(#hero):hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}

main > section:not(#hero) > h2 {
  position: relative;
  padding-bottom: 0.55em;
  margin-bottom: 1.1em;
}

main > section:not(#hero) > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  box-shadow: 0 2px 10px rgba(245, 166, 35, 0.45);
}

main > section h3 {
  margin-top: 1.6em;
  color: var(--text);
}

main > section h3:first-of-type {
  margin-top: 0.4em;
}

main > section h4 {
  margin-top: 1.2em;
  color: var(--text);
}

/* ============ Products advantage grid ============ */
#products {
  display: block;
}

#products h4 {
  padding: 14px 18px 4px;
  margin-top: 1.4em;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.12), transparent);
  border: 1px solid var(--line);
  border-bottom: 0;
  transition: background 0.3s var(--ease);
}

#products h4 + p {
  margin-top: 0;
  padding: 0 18px 16px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: rgba(245, 166, 35, 0.04);
  font-size: 0.94rem;
}

#products h4:hover {
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.22), transparent);
}

/* ============ Cases / testimonials ============ */
#cases blockquote {
  margin: 12px 0;
  font-style: normal;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#cases blockquote:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

#cases blockquote p {
  color: var(--text-soft);
}

/* ============ News list ============ */
#news ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#news li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 0.94rem;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#news li::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.15);
  align-self: center;
}

#news li:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 166, 35, 0.4);
  box-shadow: var(--shadow-md);
}

#news li time {
  flex: 0 0 auto;
  font-weight: 600;
  color: var(--brand-deep);
}

/* ============ Articles ============ */
#articles > article {
  position: relative;
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}

#articles > article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-brand);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

#articles > article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 166, 35, 0.35);
}

#articles > article:hover::before {
  transform: scaleY(1);
}

#articles > article h3 {
  margin-top: 0;
  margin-bottom: 0.35em;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

#articles > article h3 + p {
  margin-bottom: 0.8em;
}

#articles > article > p:last-child {
  margin-bottom: 0;
}

#articles > article a[href="#articles"] {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-deep);
  padding: 4px 0;
  transition: gap 0.3s var(--ease), color 0.25s var(--ease);
}

#articles > article a[href="#articles"]::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

#articles > article a[href="#articles"]:hover {
  gap: 8px;
  color: var(--accent);
}

#articles > article a[href="#articles"]:hover::after {
  transform: translateX(2px);
}

/* ============ FAQ ============ */
#faq details {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

#faq details[open] {
  border-color: rgba(245, 166, 35, 0.45);
  box-shadow: var(--shadow-md);
}

#faq details:hover {
  border-color: rgba(245, 166, 35, 0.35);
}

#faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  user-select: none;
}

#faq summary::-webkit-details-marker {
  display: none;
}

#faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--brand-deep);
  background: rgba(245, 166, 35, 0.14);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq details[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
  background: var(--grad-brand);
  color: #fff;
}

#faq summary:hover {
  background: rgba(245, 166, 35, 0.08);
  color: var(--brand-deep);
}

#faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.94rem;
  color: var(--text-soft);
  animation: fadeSlide 0.4s var(--ease);
}

/* ============ Howto / knowledge ============ */
#howto h4 {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(245, 166, 35, 0.14);
  color: var(--brand-deep);
  font-size: 0.92rem;
}

#knowledge p {
  padding-left: 18px;
  border-left: 3px solid rgba(245, 166, 35, 0.4);
}

/* ============ Contact ============ */
#contact p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}

#contact p:last-child {
  border-bottom: 0;
  margin-top: 0.6em;
  color: var(--text-soft);
}

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}

#sitemap a:hover,
#links a:hover {
  color: #fff;
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.35);
}

/* ============ Footer ============ */
footer {
  padding: clamp(28px, 4vw, 48px) clamp(14px, 4vw, 40px) clamp(20px, 3vw, 32px);
  background: linear-gradient(180deg, transparent, rgba(245, 166, 35, 0.08));
  border-top: 1px solid var(--line);
}

footer section {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px 40px;
}

footer h2 {
  font-size: 1.2rem;
  margin-bottom: 0.6em;
  grid-column: 1 / -1;
  padding-bottom: 0.4em;
  border-bottom: 1px solid var(--line);
}

footer h3 {
  font-size: 0.98rem;
  margin-top: 1em;
  margin-bottom: 0.3em;
  color: var(--brand-deep);
}

footer h3 + p {
  font-size: 0.88rem;
  color: var(--text-mute);
  margin-bottom: 0.8em;
}

footer section > p:last-child {
  grid-column: 1 / -1;
  margin-top: 1.4em;
  padding-top: 1.2em;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--text-mute);
  text-align: center;
}

/* ============ Animations ============ */
@keyframes heroShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 40px) scale(1.15); }
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-driven reveal (progressive enhancement) */
@supports (animation-timeline: view()) {
  main > section:not(#hero),
  main > aside,
  #articles > article,
  #news li,
  #faq details {
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
  }
}

/* ============ Responsive ============ */
@media (min-width: 760px) {
  #site-header {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav search";
    gap: 16px 24px;
  }

  #site-header nav {
    margin: 0;
    padding: 0;
    justify-self: center;
  }

  footer section {
    grid-template-columns: 1fr 1fr;
  }

  footer h2,
  footer section > p:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  #site-header {
    padding: 14px 40px;
  }

  .search-box input {
    width: 200px;
  }

  #products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    align-items: start;
  }

  #products > h2,
  #products > p {
    grid-column: 1 / -1;
  }

  #products h4 {
    margin-top: 0;
  }

  #products h4 + p {
    margin-bottom: 20px;
  }

  #articles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  #articles > h2,
  #articles > p {
    grid-column: 1 / -1;
  }

  #articles > article {
    margin-bottom: 0;
  }

  #faq {
    columns: 2;
    column-gap: 16px;
  }

  #faq > h2 {
    column-span: all;
  }

  #faq details {
    break-inside: avoid;
  }

  #sitemap ul,
  #links ul {
    gap: 12px;
  }
}

@media (min-width: 1280px) {
  #articles {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  #site-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "search"
      "nav";
  }

  .brand-bar {
    justify-content: center;
    text-align: center;
  }

  .brand-bar span {
    flex-basis: 100%;
  }

  .search-box {
    width: 100%;
  }

  .search-box input {
    width: 100%;
  }

  #hero .banner {
    border-radius: var(--radius-md);
  }

  .hero-facts span {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  main > section:not(#hero) {
    border-radius: var(--radius-md);
  }

  #articles > article {
    padding: 18px;
  }

  #faq summary {
    padding-right: 46px;
  }
}

/* ============ Motion & contrast preferences ============ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(36, 28, 18, 0.35);
    --line-strong: rgba(36, 28, 18, 0.5);
    --text-soft: #3a3025;
    --text-mute: #5c5245;
  }
}

/* ============ Print ============ */
@media print {
  #site-header,
  .search-box,
  .hero-facts,
  #sitemap,
  #links {
    display: none !important;
  }

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

  main > section:not(#hero) {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}