:root {
  --brand: #e0245e;
  --brand-dark: #b81a4a;
  --brand-light: #ff5c8a;
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --bg: #f7f5f8;
  --bg-alt: #ffffff;
  --bg-soft: #f0edf3;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --border: rgba(20, 10, 30, 0.08);
  --border-strong: rgba(20, 10, 30, 0.14);
  --text: #1c1420;
  --text-soft: #5a4f5f;
  --text-mute: #8b7f90;
  --shadow-sm: 0 2px 8px rgba(28, 20, 32, 0.06);
  --shadow-md: 0 8px 28px rgba(28, 20, 32, 0.10);
  --shadow-lg: 0 18px 48px rgba(28, 20, 32, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --grad-hero: linear-gradient(135deg, #e0245e 0%, #7c3aed 52%, #06b6d4 100%);
  --grad-brand: linear-gradient(135deg, #ff5c8a 0%, #e0245e 100%);
  --grad-soft: linear-gradient(135deg, rgba(224, 36, 94, 0.10), rgba(124, 58, 237, 0.10));
  --maxw: 1180px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0a12;
    --bg-alt: #15101b;
    --bg-soft: #1a1322;
    --surface: rgba(30, 22, 40, 0.62);
    --surface-solid: #1c1526;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #f3eef7;
    --text-soft: #c2b6cc;
    --text-mute: #8d7f99;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.6);
    --grad-soft: linear-gradient(135deg, rgba(255, 92, 138, 0.14), rgba(124, 58, 237, 0.14));
  }
}

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

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 88% -8%, rgba(224, 36, 94, 0.14), transparent 62%),
    radial-gradient(900px 480px at -6% 6%, rgba(124, 58, 237, 0.13), transparent 60%),
    radial-gradient(760px 420px at 50% 108%, rgba(6, 182, 212, 0.10), transparent 65%);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover,
a:focus-visible {
  color: var(--brand-dark);
}

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

ul,
ol {
  padding-left: 1.35em;
  margin: 0 0 1em;
}

li {
  margin-bottom: 0.35em;
}

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

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

h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.9rem);
}

h2 {
  font-size: clamp(1.35rem, 2.9vw, 2rem);
  position: relative;
  padding-bottom: 0.5em;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
}

h3 {
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  margin-top: 1.4em;
}

h4 {
  font-size: 1rem;
}

::selection {
  background: rgba(224, 36, 94, 0.22);
  color: var(--text);
}

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

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-light), var(--accent));
  border-radius: var(--radius-pill);
  border: 3px solid var(--bg);
}

/* ============ HEADER ============ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  min-height: var(--header-h);
  padding: 12px clamp(16px, 4vw, 40px);
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

header > a[href="#top"] {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: transparent;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  padding: 6px 4px;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}

header > a[href="#top"]::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--grad-brand);
  box-shadow: 0 0 0 4px rgba(224, 36, 94, 0.16);
  animation: pulse 2.4s ease-in-out infinite;
}

header > a[href="#top"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(224, 36, 94, 0.16); }
  50% { box-shadow: 0 0 0 8px rgba(224, 36, 94, 0.04); }
}

header nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

header nav a:hover,
header nav a:focus-visible {
  color: var(--brand);
  background: var(--grad-soft);
  transform: translateY(-2px);
}

/* ============ MAIN LAYOUT ============ */
main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(16px, 3.5vw, 36px) clamp(16px, 4vw, 40px) 40px;
}

main > section {
  margin-bottom: clamp(20px, 3.5vw, 34px);
  padding: clamp(20px, 3.6vw, 40px);
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  animation: rise 0.7s var(--ease) both;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}

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

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

main > section:nth-of-type(1) { animation-delay: 0.02s; }
main > section:nth-of-type(2) { animation-delay: 0.06s; }
main > section:nth-of-type(3) { animation-delay: 0.10s; }
main > section:nth-of-type(4) { animation-delay: 0.14s; }
main > section:nth-of-type(5) { animation-delay: 0.18s; }
main > section:nth-of-type(6) { animation-delay: 0.22s; }
main > section:nth-of-type(7) { animation-delay: 0.26s; }
main > section:nth-of-type(8) { animation-delay: 0.30s; }
main > section:nth-of-type(9) { animation-delay: 0.34s; }
main > section:nth-of-type(10) { animation-delay: 0.38s; }
main > section:nth-of-type(11) { animation-delay: 0.42s; }
main > section:nth-of-type(12) { animation-delay: 0.46s; }
main > section:nth-of-type(13) { animation-delay: 0.50s; }
main > section:nth-of-type(14) { animation-delay: 0.54s; }
main > section:nth-of-type(15) { animation-delay: 0.58s; }
main > section:nth-of-type(16) { animation-delay: 0.62s; }
main > section:nth-of-type(17) { animation-delay: 0.66s; }
main > section:nth-of-type(18) { animation-delay: 0.70s; }

/* ============ BREADCRUMB ============ */
main > nav[aria-label="面包屑"] {
  margin-bottom: clamp(14px, 2.4vw, 22px);
  padding: 10px 18px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

main > nav[aria-label="面包屑"] ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-mute);
}

main > nav[aria-label="面包屑"] li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

main > nav[aria-label="面包屑"] a {
  color: var(--text-soft);
  padding: 2px 4px;
  border-radius: 6px;
}

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

/* ============ HERO ============ */
#hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--grad-hero);
  background-size: 200% 200%;
  animation: rise 0.7s var(--ease) both, heroShift 14s ease infinite;
  border: none;
  padding: clamp(28px, 5vw, 56px);
}

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

#hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}

#hero::after {
  content: "";
  position: absolute;
  inset: auto auto -50% -8%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: float 11s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-18px, 22px, 0) scale(1.06); }
}

#hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
  margin-bottom: 0.5em;
}

#hero p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.94);
  max-width: 74ch;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

#hero a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 12px 0 0;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#hero a:first-of-type {
  background: #fff;
  color: var(--brand-dark);
  border-color: #fff;
}

#hero a:hover,
#hero a:focus-visible {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

#hero a:first-of-type:hover,
#hero a:first-of-type:focus-visible {
  background: #fff;
  color: var(--brand-dark);
}

/* ============ ARTICLES & NEWS CARDS ============ */
#news,
#articles {
  display: block;
}

#news article,
#articles article {
  position: relative;
  margin: 0 0 16px;
  padding: clamp(16px, 2.6vw, 24px);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

#news article::before,
#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);
}

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

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

#news article:last-of-type,
#articles article:last-of-type {
  margin-bottom: 0;
}

#news article h3,
#articles article h3 {
  margin-top: 0;
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  transition: color 0.3s var(--ease);
}

#news article:hover h3,
#articles article:hover h3 {
  color: var(--brand);
}

#news article p:first-of-type,
#articles article p:first-of-type {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  background: var(--grad-soft);
  border-radius: var(--radius-pill);
}

#news article p,
#articles article p {
  margin-bottom: 0.7em;
}

#news article a,
#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  color: var(--brand);
  background: var(--grad-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease);
}

#news article a::after,
#articles article a::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

#news article a:hover,
#articles article a:hover {
  color: #fff;
  background: var(--grad-brand);
  transform: translateX(2px);
}

#news article a:hover::after,
#articles article a:hover::after {
  transform: translateX(4px);
}

/* ============ FAQ ============ */
#faq dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

#faq dt {
  position: relative;
  padding: 14px 18px 14px 46px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

#faq dt::before {
  content: "Q";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 7px;
}

#faq dd {
  margin: 0 -1px;
  padding: 14px 18px 16px 46px;
  font-size: 0.94rem;
  color: var(--text-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: background 0.3s var(--ease);
}

#faq dt:hover {
  background: var(--grad-soft);
  color: var(--brand);
}

#faq dt:hover + dd {
  background: var(--bg-alt);
}

/* ============ HOWTO ============ */
#howto ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: grid;
  gap: 10px;
}

#howto ol li {
  position: relative;
  counter-increment: step;
  margin: 0;
  padding: 14px 18px 14px 56px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 0.94rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

#howto ol li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(224, 36, 94, 0.32);
}

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

/* ============ TEAM / CONTACT / SITEMAP / LINKS ============ */
#contact address {
  font-style: normal;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 0 1.2em;
}

#contact address p {
  margin: 0;
  padding: 14px 18px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

#contact address p:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: var(--shadow-sm);
}

#contact address p:first-child {
  font-weight: 700;
  color: var(--text);
}

#sitemap ul,
#links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#sitemap li,
#links li {
  margin: 0;
}

#sitemap a,
#links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease),
    background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 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 8px 20px rgba(224, 36, 94, 0.3);
}

/* ============ FOOTER ============ */
footer {
  margin-top: clamp(24px, 4vw, 44px);
  padding: clamp(28px, 4.5vw, 52px) clamp(16px, 4vw, 40px) 32px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-hero);
  background-size: 200% 100%;
  animation: heroShift 10s ease infinite;
}

footer > section {
  max-width: var(--maxw);
  margin: 0 auto 22px;
  padding: clamp(16px, 2.6vw, 24px);
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

footer > section:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

footer h2 {
  font-size: 1.02rem;
  margin-bottom: 0.5em;
  padding-bottom: 0.45em;
}

footer h2::after {
  width: 40px;
  height: 3px;
}

footer p {
  font-size: 0.88rem;
  margin: 0;
  color: var(--text-mute);
}

footer > p {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

footer > p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
    color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

footer > p a::before {
  content: "↑";
}

footer > p a:hover {
  color: #fff;
  background: var(--grad-brand);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(224, 36, 94, 0.32);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  header {
    justify-content: center;
  }

  header nav {
    flex: 1 1 100%;
    justify-content: center;
  }

  header nav ul {
    justify-content: center;
  }

  header nav a {
    font-size: 0.84rem;
    padding: 6px 10px;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 58px;
  }

  body {
    font-size: 15px;
  }

  header {
    gap: 8px;
    padding: 10px 14px;
  }

  header > a[href="#top"] {
    font-size: 1.06rem;
  }

  header nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }

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

  header nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  header nav a {
    font-size: 0.82rem;
    padding: 6px 10px;
    background: var(--bg-soft);
  }

  main {
    padding: 14px 12px 28px;
  }

  main > section {
    padding: 20px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
  }

  main > nav[aria-label="面包屑"] {
    padding: 8px 14px;
    border-radius: var(--radius);
  }

  #hero {
    padding: 28px 18px;
    border-radius: var(--radius);
  }

  #hero a {
    display: flex;
    width: 100%;
    margin: 8px 0 0;
  }

  #hero a + a {
    margin-top: 10px;
  }

  h2::after {
    width: 44px;
    height: 3px;
  }

  #faq dt,
  #faq dd {
    padding-left: 42px;
    padding-right: 14px;
  }

  #faq dt {
    font-size: 0.92rem;
  }

  #howto ol li {
    padding-left: 50px;
  }

  #contact address {
    grid-template-columns: 1fr;
  }

  #news article,
  #articles article {
    padding: 16px 14px;
  }

  #sitemap a,
  #links a {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  footer {
    padding: 26px 12px 24px;
  }

  footer > section {
    padding: 16px 14px;
  }
}

@media (max-width: 400px) {
  header nav a {
    font-size: 0.78rem;
    padding: 5px 8px;
  }

  #hero h1 {
    font-size: 1.5rem;
  }
}

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

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

/* ============ PRINT ============ */
@media print {
  header,
  footer > p,
  #hero::before,
  #hero::after {
    display: none;
  }

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

  main > section,
  footer > section {
    box-shadow: none;
    border: 1px solid #ddd;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: none;
  }

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