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

:root {
  --night: #08101f;
  --deep: #101c30;
  --cloud: #1b2c47;
  --ice: #63e6d6;
  --ice-soft: #b8f4ec;
  --gold: #e9b45c;
  --mist: #f4f7fb;
  --steel: #7d8ca3;
  --ink: #04070d;
  --line: #2c4058;
  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-threshold: 120px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

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

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

button:not(:disabled) {
  cursor: pointer;
}

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

img {
  height: auto;
}

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "zero" 1;
  letter-spacing: 0.04em;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-180%);
  padding: 10px 16px;
  border: 1px solid var(--ice);
  border-radius: 2px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 180ms ease;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  color: var(--mist);
  background:
    linear-gradient(180deg, rgba(8, 16, 31, 0.98) 0%, rgba(8, 16, 31, 0.78) 58%, rgba(8, 16, 31, 0) 100%);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
  transition:
    background 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 16, 31, 0.98);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 48px rgba(4, 7, 13, 0.34);
}

.scroll-meter {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 2;
  height: 2px;
  pointer-events: none;
  background: rgba(44, 64, 88, 0.38);
}

.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--ice), var(--gold));
  transition: transform 80ms linear;
}

.header-meta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--shell);
  max-height: 42px;
  margin-inline: auto;
  padding: 8px var(--gutter) 7px;
  overflow: hidden;
  border-bottom: 1px solid rgba(44, 64, 88, 0.52);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.12em;
  transition:
    max-height 200ms ease,
    opacity 200ms ease,
    padding 200ms ease,
    border-color 200ms ease;
}

.site-header.is-scrolled .header-meta {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  border-color: transparent;
}

.header-meta__group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-meta__label {
  color: var(--ice);
}

.header-meta__value {
  color: var(--ice-soft);
}

.header-meta__note {
  color: var(--steel);
  text-align: center;
  white-space: nowrap;
}

.header-meta__edition {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
  white-space: nowrap;
}

.header-meta__edition .mono {
  color: var(--gold);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 14px var(--gutter) 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-seal,
.footer-seal {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 74% 100%, 0 100%);
  background: var(--deep);
  color: var(--ice);
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
}

.brand-seal {
  width: 52px;
  height: 52px;
  border: 1px solid var(--ice);
  font-size: 24px;
  box-shadow: 4px 4px 0 rgba(99, 230, 214, 0.12);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  color: var(--mist);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.brand-note {
  color: var(--ice-soft);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.brand-ref {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--steel);
  font-size: 10px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 10px;
}

.header-entry {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 108px;
  padding: 10px 16px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--gold);
  color: var(--ink);
  line-height: 1.2;
  box-shadow: 4px 4px 0 rgba(99, 230, 214, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.header-entry:hover {
  transform: translateY(-1px);
  border-color: var(--ice-soft);
  background: var(--ice-soft);
  box-shadow: 5px 5px 0 rgba(99, 230, 214, 0.12);
}

.header-entry__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.header-entry__meta {
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 0.72;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(16, 28, 48, 0.9);
  color: var(--ice-soft);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.nav-toggle:hover,
.site-header[data-open] .nav-toggle {
  border-color: var(--ice);
  background: var(--cloud);
  color: var(--ice);
}

.nav-toggle__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.nav-toggle__icon {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__icon span {
  display: block;
  height: 1px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.site-header[data-open] .nav-toggle__icon span:first-child {
  transform: translateY(2.5px) rotate(45deg);
}

.site-header[data-open] .nav-toggle__icon span:last-child {
  transform: translateY(-2.5px) rotate(-45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 var(--gutter);
  border-top: 1px solid rgba(44, 64, 88, 0.34);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 12px 12px 11px;
  border-bottom: 2px solid transparent;
  color: var(--ice-soft);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.nav-link:hover {
  background: rgba(27, 44, 71, 0.36);
  color: var(--mist);
}

.nav-link[aria-current="page"] {
  border-bottom-color: var(--ice);
  background: rgba(27, 44, 71, 0.42);
  color: var(--ice);
}

.nav-link[aria-current="page"] .nav-index {
  color: var(--gold);
}

.nav-index {
  color: var(--steel);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.nav-label {
  display: inline-block;
}

.nav-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.nav-aside__label {
  color: var(--ice);
}

.nav-aside__value {
  color: var(--steel);
}

.section-band {
  padding-block: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--line);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.section-kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--ice);
}

.section-title {
  color: var(--mist);
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 38em;
  color: var(--ice-soft);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.9;
}

.annotation {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.12em;
}

.annotation--vertical {
  max-height: 240px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.data-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line);
  background: rgba(16, 28, 48, 0.72);
}

.data-strip__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.data-strip__item:last-child {
  border-right: 0;
}

.data-strip__label {
  color: var(--steel);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.data-strip__value {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
  box-shadow: 4px 4px 0 rgba(99, 230, 214, 0.16);
}

.button--gold:hover {
  border-color: var(--ice-soft);
  background: var(--ice-soft);
}

.button--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ice-soft);
}

.button--ghost:hover {
  border-color: var(--ice);
  color: var(--ice);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(99, 230, 214, 0.4);
  color: var(--ice);
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.text-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.breadcrumbs {
  padding-block: 12px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.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: var(--line);
}

.breadcrumbs__link {
  color: var(--ice-soft);
}

.breadcrumbs__link:hover {
  color: var(--ice);
}

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

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: var(--gutter);
}

.content-main {
  grid-column: 1 / span 7;
  min-width: 0;
}

.content-aside {
  grid-column: 9 / span 4;
  min-width: 0;
}

.archive-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--deep);
  box-shadow: 8px 8px 0 rgba(4, 7, 13, 0.32);
}

.archive-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--ice);
}

.archive-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.1em;
}

.archive-card__title {
  color: var(--mist);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.archive-card__body {
  color: var(--ice-soft);
  font-size: 14px;
  line-height: 1.8;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 31, 0.32);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.tag--cyan {
  border-color: rgba(99, 230, 214, 0.5);
  color: var(--ice);
}

.tag--gold {
  border-color: rgba(233, 180, 92, 0.5);
  color: var(--gold);
}

.image-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  background: var(--cloud);
  box-shadow: 8px 8px 0 rgba(4, 7, 13, 0.25);
}

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

.image-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184, 244, 236, 0.18);
  pointer-events: none;
}

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

.image-frame--tall {
  aspect-ratio: 3 / 4;
}

.image-frame__caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 1;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 31, 0.82);
  color: var(--ice-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.tabs {
  min-width: 0;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--steel);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.tab-button:hover {
  color: var(--ice-soft);
}

.tab-button[aria-selected="true"] {
  border-bottom-color: var(--ice);
  color: var(--ice);
}

.tab-panel {
  padding-top: 24px;
  animation: tab-in 180ms ease both;
}

.tab-panel[hidden] {
  display: none;
}

@keyframes tab-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 400ms ease,
    transform 400ms ease;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--mist);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(44, 64, 88, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(44, 64, 88, 0.22) 1px, transparent 1px);
  background-size: 72px 72px;
}

.footer-masthead,
.footer-grid,
.footer-legal,
.footer-bottom {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-block: 58px 34px;
  border-bottom: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.footer-seal {
  width: 64px;
  height: 64px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 28px;
  box-shadow: 5px 5px 0 rgba(233, 180, 92, 0.1);
}

.footer-brand__line {
  color: var(--mist);
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.footer-brand__note {
  margin-top: 5px;
  color: var(--steel);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

.footer-edition {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.footer-edition strong {
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.4fr;
  gap: clamp(28px, 5vw, 72px);
  padding-block: 44px 48px;
  border-bottom: 1px solid var(--line);
}

.footer-column {
  min-width: 0;
}

.footer-column__title,
.footer-contact__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--ice-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.footer-column__title .mono,
.footer-contact__title .mono {
  color: var(--gold);
  font-size: 11px;
}

.footer-links {
  display: grid;
  gap: 1px;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(44, 64, 88, 0.52);
  color: var(--ice-soft);
  font-size: 14px;
  line-height: 1.5;
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.footer-link::after {
  content: "›";
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 14px;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-link:hover {
  border-color: var(--ice);
  color: var(--ice);
}

.footer-link:hover::after {
  transform: translateX(2px);
  color: var(--gold);
}

.footer-contact {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--deep);
  box-shadow: 10px 10px 0 rgba(99, 230, 214, 0.08);
}

.footer-contact__list {
  display: grid;
  gap: 0;
  margin: 0;
}

.footer-contact__row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.footer-contact__label {
  padding-top: 2px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

.footer-contact__value {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ice-soft);
  font-size: 13px;
  line-height: 1.7;
}

.footer-contact__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 18px;
  padding: 8px 16px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.footer-contact__action:hover {
  transform: translateY(-1px);
  border-color: var(--ice-soft);
  background: var(--ice-soft);
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
  border-bottom: 1px solid rgba(44, 64, 88, 0.52);
}

.footer-legal__icp {
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.footer-legal__icp .mono {
  color: var(--ice);
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal__link {
  color: var(--ice-soft);
  font-size: 12px;
  line-height: 1.5;
  transition: color 180ms ease;
}

.footer-legal__link:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px 30px;
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.footer-copy,
.footer-bottom__meta {
  min-width: 0;
}

@media (max-width: 1100px) {
  .brand-ref {
    display: none;
  }

  .nav-aside {
    display: none;
  }

  .nav-link {
    padding-inline: 9px;
    font-size: 12px;
  }
}

@media (max-width: 960px) {
  .header-meta__note {
    display: none;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .content-main,
  .content-aside {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site-header {
    background: rgba(8, 16, 31, 0.94);
    backdrop-filter: blur(14px);
  }

  .header-meta {
    display: none;
  }

  .header-shell {
    padding-block: 12px;
  }

  .brand-seal {
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .brand-note {
    max-width: 150px;
  }

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

  .header-entry {
    min-width: 0;
    padding: 8px 12px;
  }

  .header-entry__meta {
    display: none;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: var(--gutter);
    left: var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: auto;
    max-height: calc(100dvh - 96px);
    margin: 0;
    padding: 8px;
    overflow: auto;
    border: 1px solid var(--line);
    background: rgba(8, 16, 31, 0.99);
    box-shadow: 0 24px 60px rgba(4, 7, 13, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--line);
  }

  .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-link {
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 12px;
    border-bottom: 0;
    background: transparent;
    font-size: 15px;
  }

  .nav-link[aria-current="page"] {
    border-left: 2px solid var(--ice);
    background: var(--cloud);
  }

  .nav-index {
    order: 2;
    font-size: 10px;
  }

  .nav-aside {
    display: none;
  }

  .footer-masthead {
    align-items: flex-start;
    padding-top: 46px;
  }

  .footer-brand__line {
    font-size: clamp(30px, 6vw, 40px);
  }
}

@media (max-width: 640px) {
  .header-shell {
    gap: 10px;
    padding-block: 10px;
  }

  .brand {
    gap: 9px;
  }

  .brand-seal {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .brand-name {
    font-size: 21px;
  }

  .brand-note {
    display: none;
  }

  .header-entry {
    padding: 7px 10px;
    box-shadow: none;
  }

  .header-entry__label {
    font-size: 12px;
  }

  .nav-toggle {
    min-height: 44px;
    padding: 0 9px;
  }

  .nav-toggle__label {
    display: none;
  }

  .data-strip {
    grid-template-columns: 1fr 1fr;
  }

  .data-strip__item {
    border-bottom: 1px solid var(--line);
  }

  .data-strip__item:nth-child(2n) {
    border-right: 0;
  }

  .footer-masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-block: 42px 28px;
  }

  .footer-edition {
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-block: 34px 38px;
  }

  .footer-contact {
    grid-column: auto;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-bottom: 26px;
  }
}

@media (max-width: 420px) {
  .header-entry {
    padding-inline: 8px;
  }

  .nav-toggle {
    padding-inline: 7px;
  }

  .footer-seal {
    width: 54px;
    height: 54px;
    font-size: 24px;
  }

  .footer-contact {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-meter__bar {
    transition: none;
  }
}
