:root {
  --rail-w: 76px;
  --max-w: 1280px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --deep-blue: #0A1A2F;
  --deep-blue-soft: #102A45;
  --electric-green: #39FF14;
  --amber: #FF6B00;
  --cream: #F5F1E8;
  --ink: #1B1B1B;
  --slate: #4A5568;
  --mist: #E2E8F0;
  --line: #C0C8D0;
  --font-head: 'Rajdhani', 'Arial Narrow', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-data: 'Rajdhani', 'DIN Alternate', 'Bahnschrift', 'Arial Narrow', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 16px 40px rgba(10, 26, 47, .12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-left: var(--rail-w);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

#main-content {
  scroll-margin-top: 7rem;
  outline: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 .65em;
  font-family: var(--font-head);
  line-height: 1.12;
  color: var(--ink);
}

p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

a {
  color: var(--deep-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

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

button {
  font: inherit;
}

address {
  font-style: normal;
}

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

::selection {
  background: var(--electric-green);
  color: var(--deep-blue);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

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

.section {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
}

.section--tight {
  padding-block: 2rem;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--deep-blue);
}

.section-intro {
  margin: 0;
  max-width: 56ch;
  color: var(--slate);
}

.eyebrow {
  display: inline-block;
  padding: .2rem .55rem;
  background: var(--deep-blue);
  color: var(--electric-green);
  font-family: var(--font-data);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: var(--gutter);
  grid-template-columns: repeat(12, 1fr);
}

.grid--7-5 {
  grid-template-columns: 7fr 5fr;
}

.grid--8-4 {
  grid-template-columns: 8fr 4fr;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  color: var(--slate);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: .4rem;
  color: var(--line);
}

.breadcrumbs a {
  color: var(--deep-blue);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: var(--amber);
}

.breadcrumbs [aria-current="page"] {
  color: var(--slate);
  font-weight: 400;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.25rem;
  background: var(--cream);
  border: 1px solid var(--deep-blue);
  color: var(--deep-blue);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

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

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: var(--cream);
}

.button--primary:hover {
  background: var(--electric-green);
  border-color: var(--electric-green);
  color: var(--deep-blue);
}

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

.button--ghost:hover {
  background: transparent;
  border-color: var(--amber);
  color: var(--amber);
}

.card {
  padding: 1.25rem;
  background: var(--mist);
  border: 1px solid var(--line);
}

.card--dark {
  background: var(--deep-blue);
  border-color: var(--deep-blue);
  color: #fff;
}

.card__title {
  margin: 0 0 .5rem;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
}

.card__body {
  color: var(--slate);
  font-size: .95rem;
}

.card--dark .card__body {
  color: rgba(255, 255, 255, .72);
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  margin: 2em 0 .75em;
  padding-bottom: .35em;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.8rem;
}

.prose h3 {
  margin: 1.6em 0 .6em;
}

.prose p {
  margin: .75em 0;
  line-height: 1.9;
  color: var(--slate);
}

.prose ul {
  margin: 1em 0;
  padding-left: 1.4rem;
  list-style: square;
}

.prose li {
  margin: .35em 0;
  color: var(--slate);
}

.media-frame {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-soft) 70%);
  border: 1px solid var(--line);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(255, 107, 0, .18) 58.2% 59.2%, transparent 59.4%),
    linear-gradient(25deg, transparent 0 42%, rgba(57, 255, 20, .12) 42.2% 42.8%, transparent 43%);
}

.media-frame::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -10%;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, rgba(57, 255, 20, .18), transparent 68%);
}

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

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

.media-frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__label {
  position: relative;
  z-index: 1;
  padding: .4rem .65rem;
  border-top: 1px solid rgba(255, 255, 255, .45);
  border-bottom: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  font-family: var(--font-head);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.data-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .55rem;
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--deep-blue);
  font-family: var(--font-data);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.data-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate);
}

.data-pill--hot {
  color: var(--amber);
  border-color: rgba(255, 107, 0, .35);
  background: rgba(255, 107, 0, .06);
}

.data-pill--hot::before {
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.data-grid__cell {
  min-width: 0;
  padding: 1rem;
  background: var(--cream);
}

.data-grid__cell--hot .data-grid__value {
  color: var(--amber);
}

.data-grid__value {
  display: block;
  color: var(--deep-blue);
  font-family: var(--font-data);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
}

.data-grid__label {
  display: block;
  margin-top: .3rem;
  color: var(--slate);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 220;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--electric-green), var(--amber));
  pointer-events: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: calc(var(--rail-w) + 12px);
  z-index: 300;
  padding: .75rem 1.25rem;
  background: var(--electric-green);
  color: var(--deep-blue);
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-220%);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

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

.brand-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 160;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: var(--rail-w);
  padding: 1.25rem 0 .75rem;
  background: var(--deep-blue);
  border-right: 1px solid rgba(57, 255, 20, .18);
}

.brand-rail__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--electric-green);
  border-radius: 2px 12px 2px 12px;
  color: var(--electric-green);
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
}

.brand-rail__text {
  writing-mode: vertical-rl;
  color: rgba(255, 255, 255, .66);
  font-family: var(--font-head);
  font-size: .7rem;
  letter-spacing: .35em;
  text-transform: uppercase;
}

.brand-rail__rule {
  width: 1px;
  height: 3rem;
  background: linear-gradient(to bottom, var(--electric-green), transparent);
}

.brand-rail__live {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: var(--electric-green);
  font-family: var(--font-data);
  font-size: .65rem;
  letter-spacing: .15em;
}

.brand-rail__dot,
.status-indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric-green);
  box-shadow: 0 0 12px var(--electric-green);
  animation: status-pulse 2s infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--deep-blue);
  color: #fff;
  border-bottom: 1px solid rgba(57, 255, 20, .24);
  box-shadow: 0 8px 30px rgba(10, 26, 47, .35);
}

.site-header__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 .5rem;
}

.masthead__aside {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}

.masthead__aside--left {
  justify-self: start;
}

.masthead__aside--right {
  align-items: flex-end;
  justify-self: end;
  text-align: right;
}

.masthead__kicker {
  color: var(--electric-green);
  font-family: var(--font-head);
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.masthead__date {
  color: rgba(255, 255, 255, .62);
  font-family: var(--font-data);
  font-size: .78rem;
}

.version-flag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .55rem;
  background: rgba(255, 107, 0, .12);
  border: 1px solid rgba(255, 107, 0, .3);
  color: var(--amber);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.version-flag__pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.masthead__sync {
  color: rgba(255, 255, 255, .55);
  font-size: .72rem;
}

.brand {
  display: grid;
  justify-items: center;
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
}

.brand:hover .brand__name {
  color: var(--electric-green);
}

.brand__symbol {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: .15rem;
  border: 1px solid rgba(57, 255, 20, .4);
  border-radius: 50% 50% 8px 50%;
  color: var(--electric-green);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
}

.brand__name {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  letter-spacing: .08em;
  transition: color .2s var(--ease);
}

.brand__rule {
  width: 4rem;
  height: 2px;
  margin: .25rem 0;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.brand__baseline {
  color: rgba(255, 255, 255, .62);
  font-size: .7rem;
  letter-spacing: .3em;
  white-space: nowrap;
}

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 48px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.primary-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .15rem;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .65rem .8rem;
  color: rgba(255, 255, 255, .76);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  right: .8rem;
  bottom: .35rem;
  left: .8rem;
  height: 2px;
  background: var(--electric-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.nav-link:hover {
  color: var(--electric-green);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  background: rgba(57, 255, 20, .08);
  color: var(--electric-green);
}

.nav-bar__meta {
  margin-left: auto;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .2rem .6rem;
  border: 1px solid rgba(57, 255, 20, .25);
  background: rgba(57, 255, 20, .05);
  color: rgba(255, 255, 255, .65);
  font-family: var(--font-data);
  font-size: .7rem;
  letter-spacing: .1em;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: .4rem;
  padding: .45rem .6rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--electric-green);
  color: var(--electric-green);
}

.nav-toggle__icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 12px;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.nav-toggle__icon::before {
  top: 0;
  box-shadow: 0 5px 0 currentColor;
}

.nav-toggle__icon::after {
  top: 10px;
}

.site-header[data-nav-open="true"] .nav-toggle__icon::before {
  top: 5px;
  box-shadow: none;
  transform: rotate(45deg);
}

.site-header[data-nav-open="true"] .nav-toggle__icon::after {
  top: 5px;
  transform: rotate(-45deg);
}

.site-footer {
  background: var(--deep-blue);
  color: #fff;
  border-top: 3px solid var(--electric-green);
}

.site-footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 3rem var(--gutter) 1.5rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr .8fr 1.2fr;
  gap: 2rem;
}

.footer-block--brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: .75rem;
}

.footer-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--electric-green);
  border-radius: 1px 12px 1px 12px;
  color: var(--electric-green);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
}

.footer-brand-name {
  margin: 0;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.footer-brand-slogan {
  margin: 0;
  color: var(--electric-green);
  font-size: .75rem;
  letter-spacing: .16em;
}

.footer-trust {
  grid-column: 1 / -1;
  margin: .75rem 0 0;
  padding-left: .75rem;
  border-left: 2px solid var(--amber);
  color: rgba(255, 255, 255, .58);
  font-size: .8rem;
  line-height: 1.8;
}

.footer-title {
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: var(--electric-green);
  font-family: var(--font-head);
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: .55rem;
}

.footer-links a {
  color: rgba(255, 255, 255, .72);
  font-size: .92rem;
  text-decoration: none;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}

.footer-links a:hover {
  padding-left: .35rem;
  color: var(--electric-green);
}

.footer-note {
  display: inline-block;
  margin-top: 1rem;
  padding: .2rem .5rem;
  border: 1px solid rgba(255, 107, 0, .3);
  color: var(--amber);
  font-family: var(--font-data);
  font-size: .75rem;
  letter-spacing: .1em;
}

.footer-address {
  display: grid;
  gap: .6rem;
  color: rgba(255, 255, 255, .72);
  font-size: .88rem;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .52);
  font-size: .75rem;
}

.footer-quote {
  margin: 0;
  color: rgba(255, 255, 255, .5);
}

.footer-quote::before {
  content: "// ";
  color: var(--amber);
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(57, 255, 20, .5);
  }
  50% {
    opacity: .7;
    box-shadow: 0 0 0 5px rgba(57, 255, 20, 0);
  }
}

@media (max-width: 1100px) {
  :root {
    --rail-w: 64px;
    --gutter: 1rem;
  }
}

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

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 220;
    margin-left: auto;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 210;
    display: block;
    width: min(78vw, 20rem);
    margin: 0;
    padding: 5rem 1.5rem 2rem;
    background: var(--deep-blue);
    border-left: 1px solid rgba(57, 255, 20, .3);
    box-shadow: -18px 0 48px rgba(0, 0, 0, .35);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s;
  }

  .site-header[data-nav-open="true"] .primary-nav {
    transform: translateX(0);
    visibility: visible;
  }

  .primary-nav::before {
    content: "MENU / 目录";
    display: block;
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: var(--electric-green);
    font-family: var(--font-head);
    font-size: .72rem;
    letter-spacing: .25em;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: .15rem;
  }

  .nav-link {
    padding: .9rem .75rem;
    border-left: 2px solid transparent;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link[aria-current="page"] {
    border-left-color: var(--electric-green);
    background: rgba(57, 255, 20, .06);
  }

  .masthead__aside--left {
    display: none;
  }

  .version-flag {
    font-size: .7rem;
  }

  .masthead__sync {
    display: none;
  }

  .grid--7-5,
  .grid--8-4,
  .grid--4-4-4 {
    grid-template-columns: 1fr;
  }

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

  .footer-block--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --rail-w: 0px;
  }

  .brand-rail {
    display: none;
  }

  .masthead__aside--right {
    display: none;
  }

  .masthead {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand__baseline {
    font-size: .6rem;
    letter-spacing: .14em;
  }

  .brand__name {
    font-size: 1.2rem;
  }

  .site-header__inner {
    padding-inline: .75rem;
  }

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

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

@media (max-width: 420px) {
  .nav-toggle__text {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
