:root {
  color-scheme: dark;
  background: #070c16;
  --background: #0a101d;
  --surface: #111b2d;
  --line: #293a53;
  --text: #f1f6ff;
  --muted: #a7b8d0;
  --quiet: #839ab7;
  --mint: #70f5d5;
  --blue: #a6b8ff;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --page-width: 48rem;
  --gutter: 1rem;
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
}

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

body {
  max-width: var(--page-width);
  margin: 0 auto;
  container-type: inline-size;
  background: radial-gradient(ellipse at 82% 0%, #122342 0, transparent 46rem), var(--background);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; flex: none; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

.shell {
  width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  padding: .7rem 1rem;
  background: var(--mint);
  color: #071621;
  border-radius: .5rem;
}

.site-header {
  border-bottom: 1px solid #223049;
  background: #0a101de6;
}

.header-inner, .footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.25rem;
  flex-wrap: wrap;
}

.header-inner { min-height: 4.5rem; padding-block: .55rem; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.12rem;
  font-weight: 740;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid #30615d;
  border-radius: .7rem;
  background: linear-gradient(145deg, #1b3d47, #12283a);
  color: var(--mint);
}

.primary-nav, .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .45rem;
  color: var(--muted);
  font-size: .87rem;
}

.primary-nav a, .footer-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .4rem;
  padding-inline: .65rem;
  border: 1px solid transparent;
  border-radius: .6rem;
  white-space: nowrap;
}

.primary-nav a:last-child { background: #152439; border-color: #2c405b; color: #d9e7fa; }
.primary-nav a:hover, .footer-nav a:hover, .brand:hover { color: var(--mint); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  margin-top: clamp(1.25rem, 4cqw, 3rem);
  overflow: hidden;
  border: 1px solid #334c6d;
  border-radius: clamp(1.15rem, 2.7cqw, 2rem);
  background:
    radial-gradient(ellipse at 90% 10%, #23365e 0%, transparent 64%),
    linear-gradient(120deg, #132439 0%, #101b30 53%, #111c38 100%);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(#86b4dc0e 1px, transparent 1px),
    linear-gradient(90deg, #86b4dc0e 1px, transparent 1px);
  background-size: 2.75rem 2.75rem;
  mask-image: linear-gradient(105deg, transparent 3%, #000 66%);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: clamp(1.65rem, 4.4cqw, 4.25rem) 0 clamp(1.65rem, 4.4cqw, 4.25rem) clamp(1.25rem, 4.4cqw, 4.25rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .52rem;
  color: var(--blue);
  font: 650 .72rem/1.45 var(--mono);
  letter-spacing: .12em;
}

.signal-dot {
  display: inline-block;
  flex: none;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 .8rem #70f5d58a;
}

.eyebrow-divider { width: 1px; height: .75rem; background: #6880a0; }

.hero h1 {
  margin-block: .55rem .7rem;
  font-size: clamp(2.6rem, 7.35cqw, 6.6rem);
  font-weight: 850;
  letter-spacing: -.065em;
  line-height: 1.12;
}

.hero h1 span { color: var(--mint); }
.hero-description { color: #c2d4eb; font-size: clamp(1rem, 1.8cqw, 1.3rem); }

.search-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  max-width: 28.5rem;
  margin-top: clamp(1.2rem, 3cqw, 2rem);
  padding: .32rem;
  border: 1px solid #3d5576;
  border-radius: .85rem;
  background: #0b1527;
}

.search-form:focus-within { border-color: var(--mint); }
.search-icon { padding-inline-start: .55rem; color: var(--quiet); }

.search-form input[type="search"] {
  min-width: 0;
  width: 100%;
  min-height: 2.75rem;
  padding: .15rem 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.search-form input::placeholder { color: var(--muted); opacity: 1; }

.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: .42rem .85rem;
  border: 0;
  border-radius: .55rem;
  background: var(--mint);
  color: #08241e;
  font-size: .88rem;
  font-weight: 760;
  white-space: nowrap;
  cursor: pointer;
}

.search-form button:hover { background: #a5ffe9; }

.hero-links { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; margin-top: .6rem; }

.hero-links a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.75rem;
  color: #c1d3ec;
  font-size: .83rem;
}

.hero-links a:hover { color: var(--mint); }
.hero-links svg { width: .88rem; }

.hero-visual {
  display: grid;
  min-width: 0;
  align-items: center;
  padding-inline: 0 clamp(.5rem, 2cqw, 1.75rem);
}

.hero-art { width: 100%; height: auto; max-height: 26rem; }

.page-section { margin-top: clamp(2.6rem, 6cqw, 5.3rem); scroll-margin-top: 1.25rem; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.05rem;
  padding-bottom: .95rem;
  border-bottom: 1px solid var(--line);
}

.section-kicker { color: var(--mint); }
.section-kicker > span { width: 1rem; height: 1px; background: #528883; }

.section-heading h2 {
  margin-top: .4rem;
  font-size: clamp(1.65rem, 3.25cqw, 2.45rem);
  line-height: 1.2;
}

.section-meta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .2rem 0;
  color: var(--muted);
  font: .77rem/1.6 var(--mono);
  white-space: nowrap;
}

.latest-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.16fr);
  gap: clamp(.75rem, 2cqw, 1.4rem);
}

.featured {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5.5rem;
  min-height: 19rem;
  overflow: hidden;
  padding: clamp(1.1rem, 3cqw, 2.1rem);
  border: 1px solid #3b5481;
  border-radius: 1.2rem;
  background:
    linear-gradient(0deg, #10192f 3%, #10192fd9 24%, transparent 74%),
    radial-gradient(ellipse at 73% 18%, #2d5184, #1b3159 38%, #142139 74%);
}

.featured:hover { border-color: var(--mint); }
.featured-index, .featured-content { position: relative; z-index: 1; }

.featured-index {
  align-self: start;
  padding: .35rem .6rem;
  border: 1px solid #48658e;
  border-radius: .35rem;
  background: #101d36e0;
  color: #d0def7;
  font: .74rem/1.45 var(--mono);
}

.featured-index span { color: var(--mint); }

.featured-art {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: 100%;
  height: 75%;
  pointer-events: none;
  background:
    repeating-radial-gradient(ellipse at 72% 34%, transparent 0 23px, #9fb5ff44 24px 25px, transparent 26px 41px),
    radial-gradient(circle at 73% 33%, #a6b8ff 0 3px, #a6b8ff26 4px 30px, transparent 32px),
    radial-gradient(circle at 41% 48%, #70f5d5 0 3px, transparent 4px),
    radial-gradient(circle at 93% 28%, #70f5d5 0 2px, transparent 3px);
  mask-image: linear-gradient(0deg, transparent, #000 46%);
}

.featured-content { display: grid; justify-items: start; gap: .65rem; }
.featured-category { color: var(--mint); font-size: .86rem; font-weight: 650; }

.featured strong {
  font-size: clamp(1.45rem, 3cqw, 2.45rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.featured-more { display: inline-flex; align-items: center; gap: .45rem; color: #bdceeb; font-size: .83rem; }
.featured:hover .featured-more { color: var(--mint); }

.latest-list {
  display: grid;
  align-content: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--surface);
}

.latest-list li + li { border-top: 1px solid var(--line); }

.latest-list a {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto 1rem;
  align-items: center;
  gap: clamp(.45rem, 1.3cqw, .9rem);
  height: 100%;
  min-height: 2.75rem;
  padding: .42rem clamp(.7rem, 1.8cqw, 1.15rem);
}

.latest-list a:hover, .latest-list a:focus-visible { background: #1b2b44; }
.latest-list a:focus-visible { outline-offset: -3px; }
.row-index { color: var(--quiet); font: .75rem/1.4 var(--mono); }
.row-title { overflow-wrap: anywhere; font-size: .91rem; font-weight: 590; }

.row-category {
  padding: .1rem .42rem;
  border-radius: .25rem;
  background: #20334e;
  color: #bfd1ed;
  font-size: .72rem;
  white-space: nowrap;
}

.latest-list svg { width: 1rem; color: var(--quiet); }
.latest-list a:hover .row-title, .latest-list a:hover svg { color: var(--mint); }

.channel-nav { margin-bottom: 1.05rem; }
.channel-nav ul { display: flex; flex-wrap: wrap; gap: .5rem; }

.channel-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: 100%;
  min-height: 2.75rem;
  padding-inline: .73rem;
  border: 1px solid #354765;
  border-radius: .55rem;
  background: #142036;
  color: #d3dff2;
  font-size: .82rem;
  white-space: nowrap;
}

.channel-nav a span { color: var(--quiet); font: .7rem/1.3 var(--mono); }
.channel-nav a:hover { border-color: var(--mint); color: var(--mint); }

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 2cqw, 1.35rem);
}

.channel-card {
  --channel-accent: var(--mint);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.15rem;
  scroll-margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: linear-gradient(153deg, #192842 0%, var(--surface) 67%);
}

.channel-card:nth-child(3n + 2) { --channel-accent: #b8a8ff; }
.channel-card:nth-child(3n) { --channel-accent: #92c8ff; }
.channel-card:target { border-color: var(--channel-accent); box-shadow: 0 0 0 2px #95ceff30; }

.channel-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  margin-bottom: .55rem;
}

.channel-number {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid #456082;
  border-radius: .65rem;
  background: #16243b;
  color: var(--channel-accent);
  font: 650 .78rem/1 var(--mono);
}

.channel-header h3 { font-size: 1.24rem; line-height: 1.3; }

.channel-header a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem;
  min-height: 2.75rem;
  color: var(--text);
}

.channel-header svg { color: var(--quiet); }
.channel-header a:hover, .channel-header a:hover svg { color: var(--channel-accent); }

.channel-articles {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  flex: 1;
  border-top: 1px solid var(--line);
}

.channel-articles li + li { border-top: 1px solid #253650; }

.channel-articles a {
  display: grid;
  grid-template-columns: .35rem minmax(0, 1fr);
  align-items: center;
  gap: .65rem;
  min-height: 2.65rem;
  height: 100%;
  padding: .45rem .15rem;
  color: #c7d5e9;
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.channel-articles a::before {
  width: .28rem;
  height: .28rem;
  border-radius: 50%;
  background: #617ca0;
  content: "";
}

.channel-articles a:hover { color: var(--channel-accent); }
.channel-articles a:hover::before { background: var(--channel-accent); }

.site-footer {
  margin-top: clamp(3rem, 7cqw, 6rem);
  padding-block: 1.35rem;
  border-top: 1px solid var(--line);
  background: #0b1424;
}

.footer-main { padding-bottom: 1rem; border-bottom: 1px solid #24344b; }
.copyright { margin-top: 1rem; color: var(--muted); font-size: .78rem; }

@media (max-width: 60rem) {
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 45rem) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-content { padding: 1.45rem 1.2rem 0; }
  .hero h1 { font-size: clamp(2.7rem, 11cqw, 5.2rem); }
  .hero-visual { justify-items: center; margin: -.2rem 0 .3rem; padding: 0 .75rem; }
  .hero-art { width: min(100%, 28rem); max-height: 11rem; }
  .latest-layout { grid-template-columns: minmax(0, 1fr); }
  .featured { min-height: 16rem; gap: 4rem; }
}

@media (max-width: 36rem) {
  .header-inner { min-height: 3.9rem; gap: .4rem .5rem; }
  .brand { gap: .43rem; font-size: 1rem; }
  .brand-mark { width: 2rem; height: 2rem; }
  .brand-mark svg { width: 1.25rem; height: 1.25rem; }
  .primary-nav { gap: .18rem; font-size: .77rem; }
  .primary-nav a { padding-inline: .42rem; }
  .primary-nav svg { display: none; }
  .channel-nav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .channel-nav a { padding-inline: .35rem; }
  .channel-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-nav a { padding-inline: .42rem; }
}

@media (max-width: 24rem) {
  .search-icon, .search-form button svg { display: none; }
  .search-form { grid-template-columns: minmax(0, 1fr) auto; padding-left: .65rem; gap: .35rem; }
  .latest-list a { grid-template-columns: 1.3rem minmax(0, 1fr) auto; }
  .latest-list svg { display: none; }
}
