/* 财神捕鱼全站共享样式 /assets/site.css */

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

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--color-night);
  color: var(--color-porcelain);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.375rem + 1vw, 1.125rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-lock {
  overflow: hidden;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--color-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

[hidden] {
  display: none !important;
}

:root {
  --color-night: #0A0E27;
  --color-gold: #F5C242;
  --color-red: #D32F2F;
  --color-coral: #FF6B6B;
  --color-ink: #111111;
  --color-porcelain: #F8F9FA;
  --color-paper: #FFF7E6;
  --color-violet: #7B5EA7;
  --color-teal: #1A8A7A;
  --bg-body: #0A0E27;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-display: "STKaiti", "Kaiti SC", "KaiTi", "Songti SC", serif;
  --font-numeric: "DIN Alternate", "Roboto Mono", "Menlo", monospace;
  --rail-width: 13.5rem;
  --header-h-mobile: 4.25rem;
  --page-gutter: clamp(1.25rem, 3vw, 2.5rem);
  --content-max: 78rem;
  --content-narrow: 46rem;
  --nav-z: 1000;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-gold);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}

p {
  text-wrap: pretty;
}

hr {
  border: 0;
  border-top: 1px solid rgba(245, 194, 66, 0.24);
  margin: 2rem 0;
}

::selection {
  background: var(--color-gold);
  color: var(--color-night);
}

:focus-visible {
  outline: 3px solid var(--color-coral);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

#main-content {
  min-height: 72vh;
  margin-left: var(--rail-width);
  outline: none;
  scroll-margin-top: 1.5rem;
}

#main-content [id] {
  scroll-margin-top: 1rem;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: calc(var(--rail-width) + 1rem);
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--color-gold);
  color: var(--color-night);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-260%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.3);
}

.skip-link:focus {
  transform: translateY(0);
}

/* 头部 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-width);
  z-index: var(--nav-z);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 30% 12%, rgba(245, 194, 66, 0.12), transparent 34%),
    radial-gradient(circle at 85% 85%, rgba(211, 47, 47, 0.09), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--color-night);
  border-right: 1px solid rgba(245, 194, 66, 0.2);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.28);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 194, 66, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 194, 66, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.4;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.5rem 1rem 1rem;
  border-bottom: 1px solid rgba(245, 194, 66, 0.14);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
}

.site-brand__seal {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-night);
  background: linear-gradient(145deg, var(--color-gold), #FFD978);
  border: 1px solid rgba(10, 14, 39, 0.2);
  box-shadow: 0 0 0 3px rgba(245, 194, 66, 0.12), 0 6px 18px rgba(0, 0, 0, 0.35);
}

.site-brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(245, 194, 66, 0.4);
  background: rgba(245, 194, 66, 0.08);
  color: var(--color-gold);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(245, 194, 66, 0.16);
}

.nav-toggle__box {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 1.25rem;
  height: 1rem;
}

.nav-toggle__bar {
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle__text {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.site-nav {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0.75rem 0.75rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 194, 66, 0.3) transparent;
}

.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 100%, rgba(26, 138, 122, 0.1), transparent 30%),
    radial-gradient(circle at 100% 20%, rgba(123, 94, 167, 0.08), transparent 26%);
}

.site-nav__heading {
  position: relative;
  margin: 0.75rem 0.5rem 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.32em;
  color: rgba(248, 249, 250, 0.45);
}

.site-nav__list {
  position: relative;
  display: grid;
  gap: 0.125rem;
}

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  color: rgba(248, 249, 250, 0.76);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav__link::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--color-teal);
  opacity: 0.5;
  transition: opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-nav__link:hover {
  color: var(--color-gold);
  background: rgba(245, 194, 66, 0.08);
}

.site-nav__link[aria-current="page"] {
  color: var(--color-gold);
  background: rgba(245, 194, 66, 0.12);
  box-shadow: inset 0 0 0 1px rgba(245, 194, 66, 0.26);
}

.site-nav__link[aria-current="page"]::before {
  background: var(--color-gold);
  opacity: 1;
  box-shadow: 0 0 10px rgba(245, 194, 66, 0.8);
}

.side-nav {
  position: relative;
  margin-top: auto;
  padding-top: 1.5rem;
}

.side-nav__label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(248, 249, 250, 0.45);
  margin-bottom: 0.5rem;
}

.side-nav__list {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(245, 194, 66, 0.18);
}

.side-nav__link {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: rgba(248, 249, 250, 0.62);
  font-size: 0.8125rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.side-nav__link:hover,
.side-nav__link.is-current {
  color: var(--color-gold);
  background: rgba(245, 194, 66, 0.1);
}

.nav-backdrop {
  display: none;
}

/* 页面骨架 */
.content-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) var(--page-gutter);
}

.content-narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 7vw, 6rem);
  padding-inline: var(--page-gutter);
}

.section--night {
  background: var(--color-night);
  color: var(--color-porcelain);
}

.section--porcelain {
  background: var(--color-porcelain);
  color: var(--color-ink);
}

.section--paper {
  background: var(--color-paper);
  color: var(--color-ink);
}

.section--porcelain h1,
.section--porcelain h2,
.section--porcelain h3,
.section--paper h1,
.section--paper h2,
.section--paper h3,
.card--paper h1,
.card--paper h2,
.card--paper h3,
.card--porcelain h1,
.card--porcelain h2,
.card--porcelain h3 {
  color: var(--color-ink);
}

.section--porcelain a,
.section--paper a,
.card--paper a,
.card--porcelain a {
  color: var(--color-red);
}

.cols-annotated {
  display: grid;
  grid-template-columns: minmax(11rem, 0.4fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.cols-annotated > .section-note {
  position: sticky;
  top: 2rem;
}

.section-note {
  font-size: 0.875rem;
  line-height: 1.85;
  color: rgba(248, 249, 250, 0.58);
  border-left: 2px solid var(--color-gold);
  padding-left: 1rem;
}

.section--porcelain .section-note,
.section--paper .section-note {
  color: rgba(17, 17, 17, 0.66);
  border-left-color: var(--color-red);
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  line-height: 1.06;
  letter-spacing: 0.02em;
  color: var(--color-gold);
  text-wrap: balance;
}

.display-title--center {
  text-align: center;
}

.display-title--ink {
  color: var(--color-ink);
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
  max-width: 48rem;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-teal);
  font-weight: 700;
}

.section--paper .eyebrow,
.section--porcelain .eyebrow {
  color: var(--color-red);
}

/* 网格与卡片 */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--color-porcelain);
  color: var(--color-ink);
  border-radius: 2rem;
  padding: 1.75rem;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.22);
}

.card--night {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  color: var(--color-porcelain);
  border: 1px solid rgba(245, 194, 66, 0.18);
}

.card--paper {
  background: var(--color-paper);
}

.card__title {
  margin-bottom: 0.5rem;
  color: inherit;
}

.card__text {
  opacity: 0.8;
}

/* 按钮与标签 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--color-gold);
  color: var(--color-night);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.6rem 1.4rem rgba(245, 194, 66, 0.25);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(245, 194, 66, 0.5);
  color: var(--color-gold);
}

.btn--red {
  background: var(--color-red);
  color: #fff;
  box-shadow: 0 0.5rem 1.2rem rgba(211, 47, 47, 0.22);
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(245, 194, 66, 0.14);
  color: var(--color-gold);
  border: 1px solid rgba(245, 194, 66, 0.3);
}

.tag--red {
  background: rgba(211, 47, 47, 0.14);
  color: #FF8A8A;
  border-color: rgba(211, 47, 47, 0.4);
}

.tag--teal {
  background: rgba(26, 138, 122, 0.16);
  color: #66E0CE;
  border-color: rgba(26, 138, 122, 0.4);
}

.chip {
  border: 1px solid rgba(245, 194, 66, 0.32);
  background: rgba(245, 194, 66, 0.08);
  color: var(--color-gold);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.chip[data-active="true"],
.chip[aria-pressed="true"] {
  background: var(--color-gold);
  color: var(--color-night);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 图片容器 */
.image-frame {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(245, 194, 66, 0.14), rgba(123, 94, 167, 0.1) 55%, rgba(26, 138, 122, 0.12));
  border: 1px solid rgba(245, 194, 66, 0.16);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, transparent 38%, rgba(245, 194, 66, 0.1) 50%, transparent 62%);
  opacity: 0.5;
  pointer-events: none;
}

.image-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame--16x9 {
  aspect-ratio: 16 / 9;
}

.image-frame--4x5 {
  aspect-ratio: 4 / 5;
}

.image-frame--square {
  aspect-ratio: 1 / 1;
}

.image-frame--wide {
  aspect-ratio: 21 / 9;
}

/* 表格 */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(245, 194, 66, 0.22);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 38rem;
}

.table-wrap th,
.table-wrap td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(248, 249, 250, 0.08);
}

.table-wrap th {
  color: var(--color-gold);
  font-weight: 600;
  background: rgba(245, 194, 66, 0.08);
}

.table-wrap tr:last-child td {
  border-bottom: none;
}

/* 时间轴 */
.timeline {
  position: relative;
  display: grid;
  gap: 2rem;
  padding: 0 0 0 1.75rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: linear-gradient(180deg, var(--color-gold), var(--color-violet), var(--color-teal));
}

.timeline__item {
  position: relative;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.2rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 4px rgba(245, 194, 66, 0.15);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(248, 249, 250, 0.6);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb li + li::before {
  content: "·";
  color: var(--color-violet);
}

.breadcrumb a {
  color: var(--color-gold);
  text-decoration: none;
}

.section--porcelain .breadcrumb,
.section--paper .breadcrumb {
  color: rgba(17, 17, 17, 0.62);
}

.section--porcelain .breadcrumb a,
.section--paper .breadcrumb a {
  color: var(--color-red);
}

/* 提示框 */
.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(255, 247, 230, 0.07);
  border: 1px solid rgba(245, 194, 66, 0.25);
  border-radius: 1.25rem;
  padding: 1rem 1.25rem;
  color: rgba(248, 249, 250, 0.9);
}

.notice__icon {
  color: var(--color-gold);
}

/* 页脚 */
.site-footer {
  position: relative;
  margin-left: var(--rail-width);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(245, 194, 66, 0.13), transparent 34%),
    radial-gradient(circle at 88% 100%, rgba(123, 94, 167, 0.12), transparent 38%),
    linear-gradient(180deg, #0A0E27, #070C22);
  border-top: 1px solid rgba(245, 194, 66, 0.22);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(245, 194, 66, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 194, 66, 0.03) 1px, transparent 1px);
  background-size: 22px 22px;
}

.site-footer__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.site-footer__decor::before {
  content: "";
  position: absolute;
  right: -3rem;
  bottom: -5rem;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  border: 1px solid rgba(245, 194, 66, 0.18);
  box-shadow:
    0 0 0 2rem rgba(245, 194, 66, 0.04),
    0 0 0 4rem rgba(245, 194, 66, 0.02);
}

.site-footer__decor::after {
  content: "";
  position: absolute;
  left: 18%;
  top: 0.5rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  border: 1px dashed rgba(123, 94, 167, 0.25);
}

.site-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3rem var(--page-gutter) 3.5rem;
}

.site-footer__brand {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.site-brand--footer .site-brand__seal {
  width: 3.25rem;
  height: 3.25rem;
  font-size: 1.75rem;
  border-radius: 1.15rem;
}

.site-brand--footer .site-brand__name {
  font-size: 1.75rem;
}

.site-footer__slogan {
  max-width: 28rem;
  color: rgba(248, 249, 250, 0.6);
  line-height: 1.8;
}

.site-footer__nav {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.site-footer__link {
  width: fit-content;
  color: var(--color-gold);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-footer__link:hover {
  border-bottom-color: currentColor;
}

.site-footer__info {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  color: rgba(248, 249, 250, 0.62);
  font-size: 0.875rem;
}

.site-footer__badge {
  width: fit-content;
  background: linear-gradient(90deg, rgba(245, 194, 66, 0.18), rgba(211, 47, 47, 0.14));
  border: 1px solid rgba(245, 194, 66, 0.35);
  color: var(--color-gold);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.site-footer__address {
  font-style: normal;
  line-height: 1.8;
}

.site-footer__copyright {
  margin-top: 0.75rem;
  color: rgba(248, 249, 250, 0.42);
}

.site-footer__icp {
  color: rgba(248, 249, 250, 0.35);
  font-size: 0.8125rem;
}

/* 移动端 */
@media (max-width: 899px) {
  :root {
    --rail-width: 0rem;
  }

  #main-content,
  .site-footer {
    margin-left: 0;
  }

  #main-content {
    padding-top: var(--header-h-mobile);
  }

  #main-content [id] {
    scroll-margin-top: calc(var(--header-h-mobile) + 1rem);
  }

  .skip-link {
    left: 0.75rem;
  }

  .site-header {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: var(--header-h-mobile);
    border-right: 0;
    border-bottom: 1px solid rgba(245, 194, 66, 0.25);
  }

  .site-header__inner {
    height: 100%;
    padding: 0 var(--page-gutter);
    border-bottom: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h-mobile);
    left: 0;
    bottom: 0;
    width: min(86vw, 21rem);
    z-index: calc(var(--nav-z) + 1);
    padding: 1.5rem var(--page-gutter) 2rem;
    visibility: hidden;
    transform: translateX(-102%);
    transition: transform 0.28s ease, visibility 0.28s ease;
    background:
      radial-gradient(circle at 0% 100%, rgba(26, 138, 122, 0.12), transparent 32%),
      radial-gradient(circle at 100% 0%, rgba(211, 47, 47, 0.1), transparent 28%),
      linear-gradient(180deg, #0B0F2B, #080C22);
    border-right: 1px solid rgba(245, 194, 66, 0.32);
    box-shadow: 16px 0 40px rgba(0, 0, 0, 0.4);
  }

  .site-nav[data-open] {
    visibility: visible;
    transform: translateX(0);
  }

  .nav-backdrop {
    position: fixed;
    top: var(--header-h-mobile);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--nav-z);
    display: none;
    background: rgba(2, 4, 14, 0.68);
    backdrop-filter: blur(2px);
  }

  .nav-backdrop[data-open] {
    display: block;
  }

  .site-nav__link {
    padding: 0.8rem 1rem;
    font-size: 1rem;
  }

  .site-nav__heading {
    margin-top: 0.25rem;
  }

  .cols-annotated {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cols-annotated > .section-note {
    position: static;
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-top: 2.5rem;
    padding-bottom: 2.75rem;
  }

  .site-footer__nav {
    grid-template-columns: repeat(3, max-content);
    gap: 1rem;
  }
}

@media (max-width: 699px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .nav-toggle__text {
    display: none;
  }

  .site-footer__nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
