:root {
  --brand-primary: #F5A623;
  --brand-primary-dark: #D98A0F;
  --brand-primary-light: #FFD98E;
  --brand-accent: #B5651D;
  --bg-base: #FFF7E6;
  --bg-elevated: #FFFFFF;
  --bg-soft: #FFEFD0;
  --text-primary: #2B1B0E;
  --text-secondary: #6B5440;
  --text-muted: #9A8268;
  --border-soft: rgba(181, 101, 29, 0.16);
  --shadow-sm: 0 2px 8px rgba(181, 101, 29, 0.08);
  --shadow-md: 0 8px 28px rgba(181, 101, 29, 0.14);
  --shadow-lg: 0 18px 48px rgba(181, 101, 29, 0.2);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.55);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 68px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-base: #14100B;
    --bg-elevated: #1D1710;
    --bg-soft: #241C12;
    --text-primary: #F6ECDD;
    --text-secondary: #C7B49A;
    --text-muted: #93806A;
    --border-soft: rgba(245, 166, 35, 0.18);
    --brand-primary-light: #FFCF7A;
    --glass-bg: rgba(36, 28, 18, 0.55);
    --glass-border: rgba(245, 166, 35, 0.16);
    --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);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(245, 166, 35, 0.16), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(255, 217, 142, 0.22), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(181, 101, 29, 0.1), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover,
a:focus-visible {
  color: var(--brand-primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

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

h1 {
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.6rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  bottom: 0.18em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-accent));
}

h3 {
  font-size: clamp(1.08rem, 0.95rem + 0.6vw, 1.28rem);
  color: var(--brand-accent);
}

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

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5em;
}

li::marker {
  color: var(--brand-primary-dark);
  font-weight: 700;
}

strong {
  color: var(--text-primary);
  font-weight: 700;
}

time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

figure {
  margin: 1.6em 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
}

figure svg {
  width: 100%;
  height: auto;
}

figcaption {
  padding: 12px 20px;
  font-size: 0.86rem;
  color: var(--text-muted);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

blockquote {
  margin: 0 0 1em;
  padding: 18px 22px 18px 26px;
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

blockquote p {
  margin: 0;
  color: var(--text-primary);
  font-style: italic;
}

address {
  font-style: normal;
  padding: 22px 26px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.4em;
}

address p {
  margin: 0 0 0.4em;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

details {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

details:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

details[open] {
  border-color: var(--brand-primary);
}

summary {
  cursor: pointer;
  padding: 16px 48px 16px 20px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  list-style: none;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  user-select: none;
}

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

summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--brand-accent);
  border-bottom: 2.5px solid var(--brand-accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

summary:hover {
  color: var(--brand-accent);
}

details > p {
  padding: 4px 20px 18px;
  margin: 0;
  animation: fadeSlide 0.4s var(--ease);
}

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

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(181, 101, 29, 0.08);
}

.brand-bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-bar > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.35s var(--ease);
}

.brand-bar > a:hover,
.brand-bar > a:focus-visible {
  transform: scale(1.03);
  text-decoration: none;
}

.brand-bar svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 4px 10px rgba(245, 166, 35, 0.4));
  transition: transform 0.5s var(--ease);
}

.brand-bar > a:hover svg {
  transform: rotate(-8deg) scale(1.06);
}

.brand-name {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, var(--brand-accent), var(--brand-primary) 60%, var(--brand-primary-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-accent);
}

.brand-slogan {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid var(--border-soft);
}

header nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--brand-primary) transparent;
  -webkit-overflow-scrolling: touch;
}

header nav::-webkit-scrollbar {
  height: 4px;
}

header nav::-webkit-scrollbar-thumb {
  background: var(--brand-primary);
  border-radius: var(--radius-pill);
}

header nav ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  flex-wrap: nowrap;
  min-width: max-content;
}

header nav li {
  margin: 0;
}

header nav a {
  display: inline-block;
  padding: 7px 15px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.28s var(--ease);
}

header nav a:hover,
header nav a:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  border-color: var(--brand-primary-dark);
  box-shadow: 0 6px 16px rgba(245, 166, 35, 0.35);
  transform: translateY(-2px);
  text-decoration: none;
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

main > section {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
  animation: riseIn 0.7s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 45%;
}

@supports not (animation-timeline: view()) {
  main > section {
    animation: riseIn 0.7s var(--ease) both;
  }
}

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

main > section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(245, 166, 35, 0.4);
}

main > section:hover::after {
  opacity: 1;
}

#intro {
  background:
    linear-gradient(135deg, rgba(245, 166, 35, 0.92), rgba(255, 217, 142, 0.88) 45%, rgba(255, 183, 51, 0.92)),
    var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-lg);
  color: #2B1B0E;
}

#intro h1 {
  color: #2B1B0E;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.35);
}

#intro h1::before {
  display: none;
}

#intro p {
  color: #4A3218;
  font-size: 1.02rem;
}

#intro figure {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

#intro figcaption {
  background: rgba(255, 255, 255, 0.5);
  color: #5A3D1C;
}

#history ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 14px;
}

#history ol li {
  counter-increment: step;
  position: relative;
  padding: 16px 20px 16px 62px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

#history ol li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

#history ol li:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  background: var(--bg-elevated);
}

#products h3,
#solutions h3,
#cases h3,
#knowledge h3,
#howto h3,
#contact h3,
#culture h3 {
  padding: 14px 18px;
  margin: 24px 0 12px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#products h3:hover,
#solutions h3:hover,
#cases h3:hover,
#knowledge h3:hover,
#howto h3:hover,
#contact h3:hover,
#culture h3:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

#products h3:first-of-type,
#solutions h3:first-of-type,
#cases h3:first-of-type,
#knowledge h3:first-of-type,
#howto h3:first-of-type,
#culture h3:first-of-type {
  margin-top: 8px;
}

#advantages ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

#advantages li {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 50px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

#advantages li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 22px;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--brand-primary-dark);
  border-bottom: 3px solid var(--brand-primary-dark);
  transform: rotate(-45deg);
  border-radius: 2px;
}

#advantages li:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
}

#reviews blockquote {
  margin-bottom: 14px;
}

#news article,
#articles article {
  position: relative;
  margin-bottom: 16px;
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}

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

#news article:hover,
#articles article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-primary);
  background: var(--bg-elevated);
}

#news article h3,
#articles article h3 {
  margin: 0 0 6px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  font-size: 1.08rem;
  color: var(--text-primary);
}

#news article h3::before,
#articles article h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

#articles article a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.3);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), filter 0.28s var(--ease);
}

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

#articles article a:hover,
#articles article a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 166, 35, 0.45);
  filter: brightness(1.05);
  text-decoration: none;
  color: #fff;
}

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

#howto ol {
  counter-reset: howto;
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
}

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

#howto ol li::before {
  content: counter(howto);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--brand-accent);
  background: var(--brand-primary-light);
  border-radius: 50%;
  border: 2px solid var(--brand-primary);
}

#howto ol li:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
}

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

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

#sitemap a,
#links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.28s var(--ease);
}

#sitemap a:hover,
#sitemap a:focus-visible,
#links a:hover,
#links a:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  border-color: var(--brand-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35);
  text-decoration: none;
}

footer[role="contentinfo"] {
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.08), rgba(181, 101, 29, 0.12));
  border-top: 1px solid var(--border-soft);
  padding: 48px 20px 32px;
  margin-top: 24px;
}

footer[role="contentinfo"] > section {
  max-width: var(--maxw);
  margin: 0 auto 20px;
  padding: 20px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

footer[role="contentinfo"] > section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

footer[role="contentinfo"] h2 {
  font-size: 1.02rem;
  padding-left: 14px;
  margin-bottom: 8px;
  color: var(--brand-accent);
}

footer[role="contentinfo"] h2::before {
  width: 4px;
}

footer[role="contentinfo"] p {
  font-size: 0.88rem;
  margin: 0 0 6px;
}

footer[role="contentinfo"] > p {
  max-width: var(--maxw);
  margin: 16px auto 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

footer[role="contentinfo"] > p:last-child {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-soft);
  font-weight: 600;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  :root {
    --header-h: 60px;
  }

  main {
    padding: 20px 14px 48px;
    gap: 20px;
  }

  main > section {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  .brand-bar {
    padding: 10px 14px;
    gap: 10px;
  }

  .brand-slogan {
    font-size: 0.76rem;
    padding: 3px 10px;
  }

  header nav {
    padding: 0 14px 8px;
  }

  header nav a {
    padding: 6px 12px;
    font-size: 0.82rem;
  }

  #advantages ul {
    grid-template-columns: 1fr;
  }

  footer[role="contentinfo"] {
    padding: 32px 14px 24px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
    line-height: 1.7;
  }

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

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

  .brand-name {
    font-size: 1.12rem;
  }

  .brand-slogan {
    width: 100%;
    text-align: center;
    margin-top: 2px;
  }

  main > section {
    padding: 20px 16px;
  }

  #history ol li,
  #howto ol li {
    padding-left: 52px;
  }

  #advantages li {
    padding-left: 44px;
  }

  #advantages li::before {
    left: 14px;
  }

  blockquote {
    padding: 14px 16px 14px 18px;
  }

  address {
    padding: 16px 18px;
  }

  details summary {
    padding: 14px 42px 14px 16px;
    font-size: 0.94rem;
  }

  details > p {
    padding: 4px 16px 16px;
  }

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

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

@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;
  }
}

@media print {
  header[role="banner"],
  footer[role="contentinfo"] {
    position: static;
    background: #fff;
    box-shadow: none;
  }

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

  main > section {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  details {
    open: true;
  }
}