:root {
  --green-900: #0f5132;
  --green-700: #1a936f;
  --green-500: #2ebd8b;
  --green-300: #7fe0bd;
  --green-100: #d9f4ea;
  --green-50: #eaf7f1;
  --amber: #ffd166;
  --amber-deep: #f2b544;
  --ink-900: #10231c;
  --ink-700: #2a3d35;
  --ink-500: #4d6259;
  --ink-300: #8aa197;
  --surface: #ffffff;
  --surface-alt: #f4faf7;
  --surface-glass: rgba(255, 255, 255, 0.72);
  --border: rgba(15, 81, 50, 0.12);
  --shadow-sm: 0 2px 8px rgba(15, 81, 50, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 81, 50, 0.10);
  --shadow-lg: 0 22px 60px rgba(15, 81, 50, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green-900: #9fe8c8;
    --green-700: #4fd6a4;
    --green-500: #35c493;
    --green-300: #1f7d5f;
    --green-100: #123a2c;
    --green-50: #0e2a21;
    --amber: #ffd166;
    --amber-deep: #e6b552;
    --ink-900: #eaf5ef;
    --ink-700: #c6d9d0;
    --ink-500: #9db5aa;
    --ink-300: #6f8a7f;
    --surface: #0d1a15;
    --surface-alt: #10241c;
    --surface-glass: rgba(13, 26, 21, 0.68);
    --border: rgba(127, 224, 189, 0.16);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-700);
  background-color: var(--surface-alt);
  background-image:
    radial-gradient(1200px 600px at 90% -10%, rgba(46, 189, 139, 0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 209, 102, 0.12), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

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

h1 {
  font-size: clamp(1.7rem, 4.2vw, 2.75rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.95rem);
  position: relative;
  padding-left: 18px;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--green-500), var(--green-700));
}

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

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

li {
  margin-bottom: 0.45em;
}

ul li::marker {
  color: var(--green-700);
}

ol li::marker {
  color: var(--green-700);
  font-weight: 700;
}

blockquote {
  margin: 1.2em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--green-500);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  color: var(--ink-700);
}

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

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

::selection {
  background: var(--green-300);
  color: var(--ink-900);
}

/* ---------- Header & Navigation ---------- */

header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

header[role="banner"] nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

header[role="banner"] nav > a[aria-label] {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--green-900);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--green-100), var(--green-50));
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

header[role="banner"] nav > a[aria-label]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

header[role="banner"] nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
}

header[role="banner"] nav ul li {
  margin: 0;
}

header[role="banner"] nav ul a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-700);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

header[role="banner"] nav ul a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green-500), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

header[role="banner"] nav ul a:hover,
header[role="banner"] nav ul a:focus-visible {
  background: var(--green-50);
  color: var(--green-900);
  text-decoration: none;
  transform: translateY(-1px);
}

header[role="banner"] nav ul a:hover::after,
header[role="banner"] nav ul a:focus-visible::after {
  transform: scaleX(1);
}

header[role="banner"] form[role="search"] {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  flex: 0 1 300px;
}

header[role="banner"] form[role="search"] label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

header[role="banner"] form[role="search"] input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 16px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink-900);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

header[role="banner"] form[role="search"] input[type="search"]::placeholder {
  color: var(--ink-300);
}

header[role="banner"] form[role="search"] input[type="search"]:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(46, 189, 139, 0.18);
}

header[role="banner"] form[role="search"] button {
  padding: 9px 18px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease);
}

header[role="banner"] form[role="search"] button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  filter: brightness(1.06);
}

header[role="banner"] form[role="search"] button:active {
  transform: translateY(0);
}

/* ---------- Main layout ---------- */

main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 20px 40px;
}

main > nav[aria-label="面包屑导航"] ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 22px;
  padding: 8px 16px;
  font-size: 0.86rem;
  color: var(--ink-500);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  width: fit-content;
  max-width: 100%;
}

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

main > nav[aria-label="面包屑导航"] ol li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--ink-300);
}

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

/* ---------- Sections & cards ---------- */

main > section {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3.4vw, 40px);
  margin-bottom: 28px;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
  animation: rise 0.7s var(--ease) both;
}

main > section:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 189, 139, 0.3);
}

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

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

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

/* ---------- Hero ---------- */

section[aria-labelledby="hero-h1"] {
  background:
    linear-gradient(135deg, rgba(26, 147, 111, 0.92) 0%, rgba(15, 81, 50, 0.94) 55%, rgba(46, 189, 139, 0.9) 100%);
  color: #eaf7f1;
  border: none;
  overflow: hidden;
  isolation: isolate;
}

section[aria-labelledby="hero-h1"]::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.35), transparent 62%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

section[aria-labelledby="hero-h1"]::after {
  content: "";
  position: absolute;
  inset: auto auto -30% -8%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(127, 224, 189, 0.32), transparent 65%);
  filter: blur(6px);
  z-index: -1;
  pointer-events: none;
}

section[aria-labelledby="hero-h1"] h1 {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
  max-width: 22ch;
}

section[aria-labelledby="hero-h1"] p {
  color: rgba(234, 247, 241, 0.94);
  max-width: 68ch;
  font-size: clamp(0.98rem, 1.5vw, 1.08rem);
}

section[aria-labelledby="hero-h1"] figure {
  margin: 26px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.5s var(--ease);
}

section[aria-labelledby="hero-h1"] figure:hover {
  transform: translateY(-4px) scale(1.005);
}

section[aria-labelledby="hero-h1"] figure svg {
  width: 100%;
  height: auto;
  display: block;
}

section[aria-labelledby="hero-h1"] figcaption {
  padding: 12px 20px;
  font-size: 0.9rem;
  color: rgba(234, 247, 241, 0.9);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* ---------- Articles ---------- */

main article {
  position: relative;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  margin-bottom: 16px;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease), background 0.32s var(--ease);
}

main article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 189, 139, 0.36);
  background: var(--surface);
}

main article h3 {
  margin-top: 0;
}

main article h3 a {
  color: var(--ink-900);
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--green-500), var(--amber));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}

main article h3 a:hover,
main article h3 a:focus-visible {
  color: var(--green-700);
  background-size: 100% 2px;
  text-decoration: none;
}

main article > p:first-of-type {
  font-size: 0.84rem;
  color: var(--ink-300);
  margin-bottom: 0.5em;
}

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

main article > p:last-child a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  color: var(--green-900);
  background: var(--green-50);
  border: 1px solid var(--border);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

main article > p:last-child a::after {
  content: "→";
  transition: transform 0.25s var(--ease);
}

main article > p:last-child a:hover {
  background: var(--green-100);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

main article > p:last-child a:hover::after {
  transform: translateX(3px);
}

/* ---------- Details / FAQ ---------- */

details {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

details:hover {
  border-color: rgba(46, 189, 139, 0.34);
  box-shadow: var(--shadow-sm);
}

details[open] {
  background: var(--surface);
  border-color: rgba(46, 189, 139, 0.42);
  box-shadow: var(--shadow-md);
}

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

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

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

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

details summary:hover {
  color: var(--green-700);
}

details summary:focus-visible {
  outline-offset: -4px;
}

details > p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--ink-500);
  font-size: 0.95rem;
  animation: fadeIn 0.35s var(--ease) both;
}

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

/* ---------- Contact & lists ---------- */

section#contact ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

section#contact ul li {
  margin: 0;
  padding: 14px 18px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  color: var(--ink-700);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

section#contact ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(46, 189, 139, 0.34);
}

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

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

section#sitemap ul a,
section#links ul a {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-700);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

section#sitemap ul a:hover,
section#links ul a:hover {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

section#notes ul li {
  margin: 0;
  position: relative;
  padding: 14px 18px 14px 46px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

section#notes ul li::before {
  content: "!";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--ink-900);
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(242, 181, 68, 0.4);
}

section#notes ul li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

section#howto ol li,
section#howto ul li {
  padding-left: 4px;
}

section#howto ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

section#howto ol li {
  counter-increment: step;
  position: relative;
  padding: 12px 16px 12px 56px;
  margin-bottom: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

section#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.85rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(26, 147, 111, 0.3);
}

section#howto ol li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(46, 189, 139, 0.34);
}

/* ---------- Footer ---------- */

footer[role="contentinfo"] {
  background: linear-gradient(180deg, var(--green-900), #0a2e1e);
  color: rgba(234, 247, 241, 0.82);
  padding: clamp(28px, 4vw, 48px) 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(127, 224, 189, 0.2);
  position: relative;
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  footer[role="contentinfo"] {
    background: linear-gradient(180deg, #071a12, #04110b);
  }
}

footer[role="contentinfo"]::before {
  content: "";
  position: absolute;
  inset: -50% auto auto 60%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.14), transparent 65%);
  pointer-events: none;
}

footer[role="contentinfo"] section {
  max-width: var(--maxw);
  margin: 0 auto 22px;
  position: relative;
}

footer[role="contentinfo"] h2 {
  color: #eaf7f1;
  font-size: 1.05rem;
  margin-bottom: 0.5em;
  padding-left: 14px;
}

footer[role="contentinfo"] h2::before {
  width: 4px;
  background: linear-gradient(180deg, var(--amber), var(--green-300));
}

footer[role="contentinfo"] p {
  color: rgba(234, 247, 241, 0.72);
  font-size: 0.9rem;
  max-width: 80ch;
}

footer[role="contentinfo"] > p {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(127, 224, 189, 0.16);
  font-size: 0.82rem;
  color: rgba(234, 247, 241, 0.55);
  text-align: center;
  position: relative;
}

footer[role="contentinfo"] a {
  color: var(--green-300);
}

footer[role="contentinfo"] a:hover {
  color: var(--amber);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  header[role="banner"] nav {
    gap: 10px 14px;
  }

  header[role="banner"] form[role="search"] {
    flex: 1 1 100%;
    order: 3;
  }

  header[role="banner"] nav ul {
    order: 2;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 140px;
  }

  body {
    font-size: 15px;
    line-height: 1.72;
  }

  header[role="banner"] nav {
    padding: 10px 14px;
  }

  header[role="banner"] nav > a[aria-label] {
    font-size: 1.08rem;
    padding: 5px 12px;
  }

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

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

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

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

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

  h2 {
    padding-left: 14px;
  }

  h2::before {
    width: 5px;
  }

  main article {
    padding: 16px;
  }

  section#contact ul,
  section#notes ul {
    grid-template-columns: 1fr;
  }

  section[aria-labelledby="hero-h1"] figure {
    margin-top: 18px;
    border-radius: var(--radius-md);
  }

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

  details > p {
    padding: 0 16px 16px;
    font-size: 0.9rem;
  }

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

  blockquote {
    padding: 14px 16px;
  }

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

@media (max-width: 400px) {
  header[role="banner"] form[role="search"] button {
    padding: 9px 14px;
  }

  header[role="banner"] form[role="search"] input[type="search"] {
    padding: 9px 12px;
  }

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

@media (hover: none) {
  main article:hover,
  main > section:hover,
  section#contact ul li:hover,
  section#notes ul li:hover,
  section#howto ol li:hover {
    transform: none;
  }
}

@media print {
  header[role="banner"],
  footer[role="contentinfo"],
  section#sitemap,
  section#links {
    display: none;
  }

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

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