/* ==========================================================================
   leyu-shouji-entry.com.cn — 乐鱼赛场 共享外壳
   assets/site.css : reset / tokens / 中文排版 / header / footer / 通用组件
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, dl, dt, dd, figure, blockquote {
  margin: 0;
}

ul, ol { padding: 0; list-style: none; }

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

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

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

[id] { scroll-margin-top: 92px; }

/* ---------- 2. Tokens ---------- */
:root {
  --abyss: #061A2E;
  --deep: #0B2A45;
  --mid: #123E63;
  --aqua: #16E3B0;
  --aqua-soft: #7CF2D0;
  --coral: #FF7A59;
  --coral-soft: #FFB199;
  --frost: #E9F4FF;
  --mist: #9BB3C9;
  --kelp: #1E5A4A;
  --kelp-lit: #3AA687;
  --paper: #F4FAFF;

  --line: rgba(124, 242, 208, 0.14);
  --line-strong: rgba(124, 242, 208, 0.32);

  --shell-w: 1360px;
  --gutter: clamp(18px, 4vw, 44px);
  --step: clamp(48px, 6.4vw, 96px);
  --radius: 16px;

  --font-display: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 3. Base typography ---------- */
body {
  min-height: 100vh;
  background-color: var(--abyss);
  background-image: radial-gradient(120% 76% at 80% -12%, #10395A 0%, #0A2439 42%, #061A2E 80%);
  background-repeat: no-repeat;
  color: var(--frost);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--frost);
  text-wrap: balance;
}

h1 { font-size: clamp(44px, 7.2vw, 92px); }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; }
h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.3; letter-spacing: 0; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; color: var(--frost); }

a { color: var(--aqua-soft); text-decoration: none; }
a:hover { color: var(--frost); }

::selection { background: rgba(22, 227, 176, 0.32); color: var(--frost); }

/* ---------- 4. Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 14px;
  top: 10px;
  z-index: 99;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--aqua);
  color: #04202C;
  font-size: 14px;
  font-weight: 600;
  transform: translateY(-180%);
  transition: transform 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible { transform: translateY(0); color: #04202C; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.16s ease, box-shadow 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--aqua);
  color: #04202C;
  box-shadow: 0 12px 26px -16px rgba(22, 227, 176, 0.95);
}
.btn--primary:hover { background: var(--aqua-soft); color: #04202C; }

.btn--ghost {
  background: rgba(22, 227, 176, 0.07);
  border-color: var(--line-strong);
  color: var(--frost);
}
.btn--ghost:hover { border-color: var(--aqua); color: var(--aqua); }

.btn--coral {
  background: var(--coral);
  color: #2A0D06;
  box-shadow: 0 12px 26px -16px rgba(255, 122, 89, 0.95);
}
.btn--coral:hover { background: var(--coral-soft); color: #2A0D06; }

.btn--compact { padding: 9px 16px; font-size: 13px; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(11, 42, 69, 0.97) 0%, rgba(6, 26, 46, 0.94) 100%);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.site-header[data-stuck="true"] {
  box-shadow: 0 20px 44px -32px #000000;
  border-bottom-color: var(--line-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--frost);
  text-decoration: none;
}
.brand:hover { color: var(--frost); }

.brand-mark {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  right: 10px;
  background: linear-gradient(135deg, var(--aqua) 0%, var(--aqua-soft) 100%);
  clip-path: polygon(0 50%, 52% 0, 100% 50%, 52% 100%);
}
.brand-mark::after {
  content: "";
  position: absolute;
  right: 0;
  top: 5px;
  bottom: 5px;
  width: 9px;
  background: repeating-linear-gradient(180deg, var(--coral) 0 2px, transparent 2px 6px);
  opacity: 0.95;
}

.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--frost);
}
.brand-tagline {
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.17em;
  color: var(--mist);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(22, 227, 176, 0.08);
  color: var(--aqua-soft);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}
.nav-toggle:hover { border-color: var(--aqua); color: var(--aqua); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; width: 14px; }
.nav-toggle__bar {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(4.5px) 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(-4.5px) rotate(-45deg); }
.nav-toggle__label { line-height: 1; }

.site-nav { min-width: 0; margin-left: clamp(8px, 1.4vw, 20px); }

.nav-list { display: flex; align-items: center; flex-wrap: nowrap; gap: 2px; }
.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 9px;
  border-radius: 8px;
  color: var(--mist);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 5px;
  height: 1px;
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s ease;
}
.nav-link:hover { color: var(--frost); background: rgba(22, 227, 176, 0.08); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover .nav-link__idx { color: var(--aqua); }

.nav-link__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(124, 242, 208, 0.42);
  transition: color 0.18s ease;
}
.nav-link__name { position: relative; }

.nav-link[aria-current="page"] {
  color: var(--aqua);
  background: rgba(22, 227, 176, 0.13);
  box-shadow: inset 0 0 0 1px rgba(22, 227, 176, 0.42);
}
.nav-link[aria-current="page"]::after { transform: scaleX(0); }
.nav-link[aria-current="page"] .nav-link__idx { color: var(--aqua); }

.nav-utility { display: none; }

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex: 0 0 auto;
}

.status-lamp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--aqua-soft);
  white-space: nowrap;
}
.status-lamp__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 3px rgba(22, 227, 176, 0.18);
  animation: lamp-pulse 2.6s ease-in-out infinite;
}
@keyframes lamp-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 227, 176, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(22, 227, 176, 0.05); }
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.scroll-meter__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--aqua) 0%, var(--aqua-soft) 55%, var(--coral) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.12s linear;
}

.site-header[data-nav-open="true"] { box-shadow: 0 22px 44px -30px #000000; }

/* ---------- 7. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: linear-gradient(180deg, rgba(11, 42, 69, 0.72) 0%, #061A2E 60%, #04121F 100%);
  border-top: 1px solid var(--line);
  color: var(--frost);
}

.footer-band {
  position: relative;
  height: 3px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--aqua) 0%, var(--mid) 34%, var(--mid) 66%, var(--coral) 100%);
}
.footer-band__ticks {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(6, 26, 46, 0.62) 0 1px, transparent 1px 12px);
}

.footer-inner {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-block: clamp(34px, 4.6vw, 58px) 0;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4.5vw, 64px);
}

.footer-brand { display: grid; gap: 16px; align-content: start; }
.brand--footer .brand-mark { width: 36px; height: 36px; }
.brand--footer .brand-name { font-size: 19px; }

.footer-brand__note {
  max-width: 44ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist);
}

.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(124, 242, 208, 0.18);
  border-radius: 999px;
  background: rgba(18, 62, 99, 0.5);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: #B9CDE0;
}

.legend-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 2px;
  transform: rotate(45deg);
}
.legend-dot--aqua { background: var(--aqua); }
.legend-dot--coral { background: var(--coral); }
.legend-dot--kelp { background: var(--kelp-lit); }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.footer-col { display: grid; gap: 14px; align-content: start; }
.footer-col__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--aqua-soft);
}
.footer-col__title::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--aqua);
  transform: rotate(45deg);
}

.footer-links { display: grid; gap: 11px; }
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-link::before {
  content: "";
  width: 10px;
  height: 1px;
  background: rgba(124, 242, 208, 0.38);
  transition: width 0.22s ease, background-color 0.22s ease;
}
.footer-link:hover { color: var(--frost); }
.footer-link:hover::before { width: 20px; background: var(--coral); }

.footer-contact {
  margin-top: clamp(32px, 4.4vw, 54px);
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.footer-contact__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--mist);
}

.contact-ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}
.contact-ledger__row {
  display: grid;
  gap: 7px;
  padding: 15px 17px;
  background: linear-gradient(180deg, rgba(18, 62, 99, 0.55) 0%, rgba(9, 32, 52, 0.84) 100%);
}
.contact-ledger__key {
  font-size: 10.5px;
  letter-spacing: 0.15em;
  color: var(--mist);
}
.contact-ledger__val {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--frost);
  word-break: break-word;
}
.contact-ledger__val--mono {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.01em;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: clamp(26px, 3.4vw, 40px);
  padding-block: 20px;
  border-top: 1px solid rgba(124, 242, 208, 0.1);
  font-size: 12.5px;
  color: var(--mist);
}
.footer-base__copy { font-size: 12.5px; letter-spacing: 0.04em; margin: 0; }

.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal__link {
  position: relative;
  padding-bottom: 2px;
  font-size: 12.5px;
  color: var(--mist);
  text-decoration: none;
}
.footer-legal__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--aqua-soft);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.footer-legal__link:hover { color: var(--aqua-soft); }
.footer-legal__link:hover::after { transform: scaleX(1); }

.footer-icp {
  margin: 0;
  padding: 4px 10px;
  border: 1px solid rgba(124, 242, 208, 0.16);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.footer-update {
  max-width: 88ch;
  margin: 0;
  padding-bottom: 28px;
  font-size: 12.5px;
  color: rgba(155, 179, 201, 0.82);
}

/* ---------- 8. Layout & generic components ---------- */
.section { padding-block: var(--step); }
.section--tint {
  background: linear-gradient(180deg, rgba(18, 62, 99, 0.42) 0%, rgba(6, 26, 46, 0) 100%);
  border-top: 1px solid rgba(124, 242, 208, 0.08);
  border-bottom: 1px solid rgba(124, 242, 208, 0.08);
}

.chapter-band {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 22px);
  padding-block: 14px 16px;
  border-top: 1px solid var(--line-strong);
}
.chapter-band__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(22, 227, 176, 0.3);
}
.chapter-band__title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.chapter-band__note {
  margin-left: auto;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aqua-soft);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--aqua);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(22, 227, 176, 0.32);
  border-radius: 999px;
  background: rgba(22, 227, 176, 0.1);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.13em;
  color: var(--aqua-soft);
}
.tag--coral {
  border-color: rgba(255, 122, 89, 0.4);
  background: rgba(255, 122, 89, 0.12);
  color: var(--coral-soft);
}

.breadcrumbs {
  padding-block: 18px;
  font-size: 12.5px;
  color: var(--mist);
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: rgba(155, 179, 201, 0.45);
}
.breadcrumbs__link {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.18s ease;
}
.breadcrumbs__link:hover { color: var(--aqua-soft); }
.breadcrumbs__current { color: var(--frost); }

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.78;
  color: #C9DCEE;
}
.prose h2 {
  margin-top: 1.6em;
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--frost);
}
.prose h3 { margin-top: 1.4em; color: var(--frost); }
.prose p { margin-bottom: 1em; }
.prose a {
  color: var(--aqua-soft);
  text-decoration: underline;
  text-decoration-color: rgba(124, 242, 208, 0.45);
  text-underline-offset: 3px;
}
.prose a:hover { color: var(--frost); text-decoration-color: var(--coral); }
.prose ul { display: grid; gap: 9px; margin: 1em 0; }
.prose ul li { position: relative; padding-left: 20px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--aqua);
  transform: rotate(45deg);
  opacity: 0.8;
}
.prose hr { margin-block: 2em; border: 0; border-top: 1px solid var(--line); }

.paper-card {
  padding: clamp(22px, 3.6vw, 44px);
  border-radius: 18px;
  background: linear-gradient(180deg, #F4FAFF 0%, #E8F2FB 100%);
  color: #0C2740;
  box-shadow: 0 30px 60px -46px #000000, inset 0 0 0 1px rgba(11, 42, 69, 0.08);
}
.paper-card :where(h2, h3) { color: #08243C; }
.paper-card a {
  color: #0F6B56;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.paper-card a:hover { color: #0A4A3B; }
.paper-card .prose { max-width: none; color: #1B3855; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }

.panel {
  position: relative;
  padding: clamp(18px, 2.3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 62, 99, 0.55) 0%, rgba(9, 32, 52, 0.86) 100%);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.panel--lift:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 22px 44px -34px #000000;
}

.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--mid) 0%, var(--abyss) 72%);
}
.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame__caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(6, 26, 46, 0.74);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--aqua-soft);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.filter-shell { display: grid; gap: 20px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(22, 227, 176, 0.06);
  color: var(--mist);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.16s ease;
}
.filter-chip:hover { color: var(--frost); border-color: var(--aqua); }
.filter-chip[aria-pressed="true"] {
  background: var(--aqua);
  border-color: var(--aqua);
  color: #04202C;
  font-weight: 600;
}
.filter-chip:active { transform: translateY(1px); }
.filter-list { display: grid; gap: 14px; }
.filter-item[data-filter-hidden="true"] { display: none; }
.filter-empty {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  font-size: 14px;
  color: var(--mist);
}
.filter-empty[data-filter-hidden="true"] { display: none; }

/* ---------- 9. Focus & motion ---------- */
:where(a, button, [tabindex], summary):focus-visible {
  outline: 2px solid var(--aqua-soft);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 122, 89, 0.5);
  border-radius: 6px;
}

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

/* ---------- 10. Responsive ---------- */
@media (max-width: 1180px) {
  .brand-tagline { display: none; }
  .nav-link { padding: 10px 8px; font-size: 13.5px; }
}

@media (max-width: 1000px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 64px;
    padding-block: 10px;
  }
  .nav-toggle { display: inline-flex; order: 2; margin-left: auto; }
  .header-tools { order: 3; margin-left: 0; }
  .status-lamp { display: none; }

  .site-nav {
    order: 4;
    flex: 1 0 100%;
    display: block;
    margin: 10px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .site-nav[data-open="false"] { display: none; }

  .nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--mid) transparent;
  }
  .nav-list::-webkit-scrollbar { height: 4px; }
  .nav-list::-webkit-scrollbar-thumb { background: var(--mid); border-radius: 9px; }
  .nav-link {
    padding: 10px 12px;
    font-size: 14px;
    background: rgba(18, 62, 99, 0.55);
    box-shadow: inset 0 0 0 1px rgba(124, 242, 208, 0.1);
  }

  .nav-utility {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
  }
  .nav-utility__title {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: rgba(124, 242, 208, 0.5);
  }
  .nav-utility__link {
    padding: 5px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 12.5px;
    color: var(--mist);
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease;
  }
  .nav-utility__link:hover { color: var(--aqua); border-color: var(--aqua); }

  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--12 { grid-template-columns: 1fr; }
  .span-4,
  .span-5,
  .span-7,
  .span-8 { grid-column: 1 / -1; }
  .chapter-band__note { margin-left: 0; flex: 1 0 100%; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .prose { font-size: 16px; }
  .contact-ledger { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 16px; }
  .btn--compact { padding: 9px 14px; font-size: 12.5px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand__note { font-size: 14px; }
}
