:root {
  --mango-primary: #ff6b35;
  --mango-primary-light: #ff8c5a;
  --mango-primary-dark: #e5551f;
  --mango-secondary: #ffa726;
  --mango-accent: #ffcc80;
  --mango-gradient: linear-gradient(135deg, #ff6b35 0%, #ffa726 50%, #ffcc80 100%);
  --mango-gradient-dark: linear-gradient(135deg, #e5551f 0%, #ef6c00 50%, #ff8f00 100%);
  --mango-bg: #fefaf6;
  --mango-bg-alt: #fff5ee;
  --mango-card-bg: rgba(255, 255, 255, 0.72);
  --mango-card-border: rgba(255, 107, 53, 0.12);
  --mango-glass: rgba(255, 255, 255, 0.55);
  --mango-glass-border: rgba(255, 255, 255, 0.35);
  --mango-text: #2d1b0e;
  --mango-text-secondary: #6b4c3b;
  --mango-text-muted: #9e7b6a;
  --mango-shadow-sm: 0 2px 8px rgba(255, 107, 53, 0.08);
  --mango-shadow-md: 0 4px 20px rgba(255, 107, 53, 0.12);
  --mango-shadow-lg: 0 8px 40px rgba(255, 107, 53, 0.16);
  --mango-shadow-glow: 0 0 30px rgba(255, 107, 53, 0.2);
  --mango-radius-sm: 8px;
  --mango-radius-md: 16px;
  --mango-radius-lg: 24px;
  --mango-radius-xl: 32px;
  --mango-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --mango-transition-fast: all 0.2s ease;
  --mango-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mango-font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --mango-max-width: 1200px;
  --mango-header-height: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --mango-bg: #1a1210;
    --mango-bg-alt: #231916;
    --mango-card-bg: rgba(45, 27, 14, 0.65);
    --mango-card-border: rgba(255, 107, 53, 0.18);
    --mango-glass: rgba(35, 25, 22, 0.6);
    --mango-glass-border: rgba(255, 107, 53, 0.15);
    --mango-text: #f5ede6;
    --mango-text-secondary: #d4b8a8;
    --mango-text-muted: #a08070;
    --mango-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --mango-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --mango-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --mango-shadow-glow: 0 0 30px rgba(255, 107, 53, 0.15);
  }
}

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

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

body {
  font-family: var(--mango-font);
  background: var(--mango-bg);
  color: var(--mango-text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse 600px 400px at 10% 0%, rgba(255, 107, 53, 0.06), transparent),
    radial-gradient(ellipse 500px 500px at 90% 20%, rgba(255, 167, 38, 0.05), transparent),
    radial-gradient(ellipse 700px 500px at 50% 100%, rgba(255, 107, 53, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

::selection {
  background: rgba(255, 107, 53, 0.25);
  color: var(--mango-text);
}

a {
  color: var(--mango-primary);
  text-decoration: none;
  transition: var(--mango-transition-fast);
  position: relative;
}

a:hover {
  color: var(--mango-primary-dark);
}

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

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

ul,
ol {
  list-style: none;
}

/* ===== HEADER ===== */
header[role="banner"] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--mango-header-height);
  background: var(--mango-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--mango-glass-border);
  transition: var(--mango-transition);
}

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

header[role="banner"] nav > a:first-child {
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--mango-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

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

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

header[role="banner"] nav ul li a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mango-text-secondary);
  border-radius: var(--mango-radius-sm);
  white-space: nowrap;
  transition: var(--mango-transition-fast);
}

header[role="banner"] nav ul li a:hover {
  color: var(--mango-primary);
  background: rgba(255, 107, 53, 0.08);
}

/* ===== MAIN ===== */
main {
  position: relative;
  z-index: 1;
  padding-top: var(--mango-header-height);
}

section {
  max-width: var(--mango-max-width);
  margin: 0 auto;
  padding: 64px 24px;
}

section + section {
  border-top: 1px solid var(--mango-card-border);
}

/* ===== HERO ===== */
#hero {
  position: relative;
  padding-top: 80px;
  padding-bottom: 64px;
  text-align: center;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, rgba(255, 167, 38, 0.06) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: heroPulse 8s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  100% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

#hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: var(--mango-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 0.8s ease both;
}

#hero > p {
  max-width: 720px;
  margin: 0 auto 16px;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--mango-text-secondary);
  line-height: 1.85;
  animation: fadeInUp 0.8s ease 0.15s both;
}

#hero > p:last-of-type {
  margin-bottom: 40px;
  animation-delay: 0.25s;
}

#hero figure {
  margin: 40px auto;
  border-radius: var(--mango-radius-lg);
  overflow: hidden;
  box-shadow: var(--mango-shadow-lg), var(--mango-shadow-glow);
  animation: fadeInUp 0.8s ease 0.35s both;
  transition: var(--mango-transition);
  max-width: 1000px;
}

#hero figure:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 12px 50px rgba(255, 107, 53, 0.22), var(--mango-shadow-glow);
}

#hero figure svg {
  display: block;
  width: 100%;
  height: auto;
}

#hero figcaption {
  padding: 12px 20px;
  font-size: 0.85rem;
  color: var(--mango-text-muted);
  background: var(--mango-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

#hero nav[aria-label="面包屑导航"] {
  margin-top: 32px;
  animation: fadeInUp 0.8s ease 0.45s both;
}

#hero nav[aria-label="面包屑导航"] ol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--mango-text-muted);
}

#hero nav[aria-label="面包屑导航"] ol li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--mango-text-muted);
  opacity: 0.5;
}

#hero nav[aria-label="面包屑导航"] ol li[aria-current="page"] {
  color: var(--mango-primary);
  font-weight: 600;
}

/* ===== SECTION HEADINGS ===== */
section > h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 16px;
  color: var(--mango-text);
}

section > h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 4px;
  background: var(--mango-gradient);
  border-radius: 2px;
  transition: width 0.5s ease;
}

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

/* ===== ARTICLES & CARDS ===== */
article {
  background: var(--mango-card-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--mango-card-border);
  border-radius: var(--mango-radius-md);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--mango-shadow-sm);
  transition: var(--mango-transition);
  position: relative;
  overflow: hidden;
}

article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--mango-gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 0 2px 2px 0;
}

article:hover {
  transform: translateY(-3px);
  box-shadow: var(--mango-shadow-md);
  border-color: rgba(255, 107, 53, 0.22);
}

article:hover::before {
  opacity: 1;
}

article h3 {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--mango-text);
  letter-spacing: -0.01em;
}

article h3 + p {
  margin-top: 0;
}

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

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

article strong {
  color: var(--mango-primary-dark);
  font-weight: 700;
}

/* ===== BLOCKQUOTE ===== */
blockquote {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.06), rgba(255, 167, 38, 0.04));
  border-left: 4px solid var(--mango-primary);
  border-radius: 0 var(--mango-radius-sm) var(--mango-radius-sm) 0;
  padding: 20px 24px;
  margin: 16px 0;
  position: relative;
  transition: var(--mango-transition);
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 16px;
  font-size: 3rem;
  line-height: 1;
  color: var(--mango-primary);
  opacity: 0.15;
  font-family: Georgia, serif;
}

blockquote:hover {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 167, 38, 0.06));
  transform: translateX(4px);
}

blockquote p {
  color: var(--mango-text-secondary);
  font-style: italic;
  margin: 0;
  padding-left: 8px;
  position: relative;
  z-index: 1;
}

/* ===== TIME ===== */
time {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--mango-text-muted);
  background: rgba(255, 107, 53, 0.06);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* ===== LISTS IN SECTIONS ===== */
section ol {
  counter-reset: step-counter;
  padding-left: 0;
}

section ol > li {
  counter-increment: step-counter;
  position: relative;
  padding: 16px 20px 16px 64px;
  margin-bottom: 12px;
  background: var(--mango-card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--mango-card-border);
  border-radius: var(--mango-radius-sm);
  transition: var(--mango-transition);
  color: var(--mango-text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

section ol > li::before {
  content: counter(step-counter);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mango-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
  transition: var(--mango-transition);
}

section ol > li:hover {
  transform: translateX(6px);
  box-shadow: var(--mango-shadow-sm);
  border-color: rgba(255, 107, 53, 0.2);
}

section ol > li:hover::before {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}

section ol > li strong {
  color: var(--mango-primary-dark);
}

/* ===== DETAILS (FAQ) ===== */
details {
  background: var(--mango-card-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--mango-card-border);
  border-radius: var(--mango-radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--mango-transition);
  box-shadow: var(--mango-shadow-sm);
}

details:hover {
  border-color: rgba(255, 107, 53, 0.25);
  box-shadow: var(--mango-shadow-md);
}

details[open] {
  border-color: rgba(255, 107, 53, 0.3);
  box-shadow: var(--mango-shadow-md);
}

details summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--mango-text);
  cursor: pointer;
  position: relative;
  padding-right: 52px;
  list-style: none;
  transition: var(--mango-transition-fast);
  user-select: none;
}

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

details summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.1);
  color: var(--mango-primary);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  transition: var(--mango-transition);
  line-height: 1;
}

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

details summary:hover {
  color: var(--mango-primary);
  background: rgba(255, 107, 53, 0.04);
}

details[open] summary {
  color: var(--mango-primary);
  border-bottom: 1px solid var(--mango-card-border);
}

details > p {
  padding: 16px 24px 20px;
  color: var(--mango-text-secondary);
  font-size: 0.92rem;
  line-height: 1.85;
  animation: fadeIn 0.3s ease;
}

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

/* ===== CONTACT ===== */
#contact address {
  font-style: normal;
  background: var(--mango-card-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--mango-card-border);
  border-radius: var(--mango-radius-md);
  padding: 32px;
  box-shadow: var(--mango-shadow-sm);
  display: grid;
  gap: 12px;
  transition: var(--mango-transition);
}

#contact address:hover {
  box-shadow: var(--mango-shadow-md);
  border-color: rgba(255, 107, 53, 0.2);
}

#contact address p {
  color: var(--mango-text-secondary);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
}

#contact address strong {
  color: var(--mango-text);
  font-weight: 700;
  min-width: 5.5em;
  flex-shrink: 0;
}

#contact address a {
  font-weight: 500;
  border-bottom: 1px dashed rgba(255, 107, 53, 0.3);
  padding-bottom: 1px;
}

#contact address a:hover {
  border-bottom-style: solid;
  border-bottom-color: var(--mango-primary);
}

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

#sitemap nav ul li a,
#links ul li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--mango-text-secondary);
  background: var(--mango-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--mango-card-border);
  border-radius: 50px;
  transition: var(--mango-transition);
}

#sitemap nav ul li a:hover,
#links ul li a:hover {
  color: #fff;
  background: var(--mango-gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

/* ===== AUTHOR INFO ===== */
#author-info p {
  color: var(--mango-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 8px;
  padding: 10px 16px;
  background: var(--mango-card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--mango-radius-sm);
  border: 1px solid var(--mango-card-border);
  transition: var(--mango-transition);
}

#author-info p:hover {
  border-color: rgba(255, 107, 53, 0.2);
  transform: translateX(4px);
}

#author-info strong {
  color: var(--mango-primary-dark);
}

/* ===== FOOTER ===== */
footer[role="contentinfo"] {
  position: relative;
  z-index: 1;
  background: var(--mango-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--mango-glass-border);
  padding: 48px 24px 32px;
  text-align: center;
  margin-top: 32px;
}

footer[role="contentinfo"] > p {
  color: var(--mango-text-muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

footer[role="contentinfo"] > p:nth-child(2) {
  font-weight: 600;
  color: var(--mango-text-secondary);
  font-size: 0.92rem;
}

footer[role="contentinfo"] nav {
  margin: 24px 0;
}

footer[role="contentinfo"] nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

footer[role="contentinfo"] nav ul li a {
  font-size: 0.85rem;
  color: var(--mango-text-muted);
  position: relative;
}

footer[role="contentinfo"] nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--mango-gradient);
  border-radius: 1px;
  transition: width 0.3s ease;
}

footer[role="contentinfo"] nav ul li a:hover {
  color: var(--mango-primary);
}

footer[role="contentinfo"] nav ul li a:hover::after {
  width: 100%;
}

footer[role="contentinfo"] > p:last-child a {
  font-size: 0.85rem;
  color: var(--mango-primary);
  font-weight: 500;
}

/* ===== SCROLL ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@supports (animation-timeline: view()) {
  article,
  details,
  blockquote,
  section ol > li,
  #contact address,
  #author-info p {
    animation: fadeInUp 0.6s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }

  section > h2 {
    animation: fadeInLeft 0.6s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 40%;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  section {
    padding: 48px 20px;
  }

  header[role="banner"] nav {
    padding: 0 16px;
  }

  header[role="banner"] nav ul li a {
    padding: 5px 9px;
    font-size: 0.8rem;
  }
}

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

  header[role="banner"] nav {
    flex-direction: column;
    height: auto;
    padding: 10px 16px;
    gap: 8px;
  }

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

  header[role="banner"] nav ul {
    justify-content: center;
    gap: 2px;
  }

  header[role="banner"] nav ul li a {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  header[role="banner"] {
    height: auto;
    position: fixed;
  }

  main {
    padding-top: 110px;
  }

  html {
    scroll-padding-top: 120px;
  }

  section {
    padding: 40px 16px;
  }

  section > h2 {
    margin-bottom: 28px;
  }

  article {
    padding: 22px 20px;
  }

  #hero {
    padding-top: 48px;
    padding-bottom: 40px;
  }

  #hero figure {
    margin: 28px auto;
    border-radius: var(--mango-radius-md);
  }

  blockquote {
    padding: 16px 18px;
  }

  #contact address {
    padding: 24px 20px;
  }

  #contact address p {
    flex-direction: column;
    gap: 2px;
  }

  #contact address strong {
    min-width: auto;
  }

  section ol > li {
    padding: 14px 16px 14px 56px;
  }

  section ol > li::before {
    left: 12px;
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }

  details summary {
    padding: 15px 18px;
    padding-right: 48px;
    font-size: 0.9rem;
  }

  details summary::after {
    right: 14px;
    width: 26px;
    height: 26px;
    font-size: 1.05rem;
  }

  details > p {
    padding: 14px 18px 18px;
  }

  footer[role="contentinfo"] {
    padding: 36px 16px 24px;
  }
}

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

  header[role="banner"] nav ul {
    gap: 1px;
  }

  header[role="banner"] nav ul li a {
    padding: 3px 6px;
    font-size: 0.7rem;
    border-radius: 6px;
  }

  main {
    padding-top: 100px;
  }

  html {
    scroll-padding-top: 110px;
  }

  section {
    padding: 32px 12px;
  }

  #hero h1 {
    font-size: 1.45rem;
    margin-bottom: 16px;
  }

  #hero > p {
    font-size: 0.9rem;
  }

  article {
    padding: 18px 16px;
    border-radius: var(--mango-radius-sm);
  }

  article h3 {
    font-size: 1rem;
  }

  article p {
    font-size: 0.88rem;
  }

  section > h2 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    padding-bottom: 12px;
  }

  section > h2::after {
    width: 40px;
    height: 3px;
  }

  #sitemap nav ul li a,
  #links ul li a {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  footer[role="contentinfo"] nav ul {
    gap: 6px 14px;
  }

  footer[role="contentinfo"] nav ul li a {
    font-size: 0.8rem;
  }

  blockquote::before {
    font-size: 2.2rem;
    top: 4px;
    left: 10px;
  }

  #contact address {
    padding: 20px 16px;
  }

  #author-info p {
    font-size: 0.88rem;
    padding: 8px 12px;
  }
}

@media (max-width: 360px) {
  header[role="banner"] nav ul li a {
    padding: 2px 5px;
    font-size: 0.65rem;
  }

  main {
    padding-top: 95px;
  }

  html {
    scroll-padding-top: 105px;
  }
}

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

  #hero::before {
    animation: none;
  }
}

/* ===== PRINT ===== */
@media print {
  header[role="banner"],
  footer[role="contentinfo"] {
    position: static;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body::before {
    display: none;
  }

  article,
  details {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }
}

/* ===== HOVER SUPPORT ===== */
@media (hover: hover) {
  #hero figure:hover {
    transform: translateY(-4px) scale(1.005);
  }
}

@media (hover: none) {
  article:hover {
    transform: none;
  }

  #sitemap nav ul li a:hover,
  #links ul li a:hover {
    transform: none;
  }

  section ol > li:hover {
    transform: none;
  }
}