/* Shared editorial treatment for the /web/ aggregation page. */
:root {
  --web-stage: #0b1217;
  --web-stage-ink: #f6f1e8;
  --web-stage-muted: #a5afb0;
  --web-stage-line: rgba(246, 241, 232, 0.18);
  --web-accent: #df8154;
  --web-acid: #ced985;
  --web-paper: #eeeae1;
  --web-ink: #172027;
  --web-muted: #6d7779;
  --web-line: rgba(23, 32, 39, 0.18);
}

html {
  background: var(--web-stage);
  scroll-behavior: smooth;
}

body {
  color: var(--web-ink);
  background: var(--web-paper);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(17, 28, 34, 0.04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(17, 28, 34, 0.028) 0 1px, transparent 1px 48px);
}

.shell {
  width: min(1320px, calc(100% - 48px));
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  padding: 14px max(24px, calc((100vw - 1320px) / 2));
  border: 0;
  border-bottom: 1px solid var(--web-stage-line);
  background: rgba(11, 18, 23, 0.94);
  color: var(--web-stage-ink);
  box-shadow: 0 12px 32px rgba(7, 12, 15, 0.18);
  backdrop-filter: blur(18px) saturate(120%);
  z-index: 10;
}

.brand {
  color: var(--web-stage-ink);
}

.mark {
  width: 44px;
  height: 44px;
  border: 1px solid var(--web-accent);
  border-radius: 0;
  background: transparent;
  color: var(--web-stage-ink);
  box-shadow: 5px 5px 0 var(--web-accent);
  font-size: 0;
}

.mark .lucide {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.nav-links {
  gap: 2px;
  color: var(--web-stage-muted);
}

.nav-links a {
  min-height: 42px;
  border-radius: 0;
  padding: 0 12px;
  transition: color 220ms ease, background 220ms ease;
}

.nav-links a:hover {
  color: var(--web-stage-ink);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  min-height: 790px;
  padding: 156px 0 88px;
  overflow: hidden;
  color: var(--web-stage-ink);
  background-color: var(--web-stage);
  background-image:
    repeating-linear-gradient(90deg, transparent 0 118px, var(--web-stage-line) 119px 120px),
    repeating-linear-gradient(0deg, transparent 0 118px, rgba(246, 241, 232, 0.08) 119px 120px);
  border-bottom: 1px solid var(--web-stage-line);
}

.hero::before {
  position: absolute;
  top: 144px;
  left: max(24px, calc((100vw - 1320px) / 2));
  color: var(--web-accent);
  content: "INDEX / 00";
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  writing-mode: vertical-rl;
}

.hero::after {
  position: absolute;
  top: 14%;
  right: -2vw;
  color: transparent;
  content: "62";
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: clamp(260px, 40vw, 650px);
  font-weight: 900;
  line-height: 0.75;
  -webkit-text-stroke: 1px var(--web-stage-line);
  opacity: 0.72;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.8fr);
  gap: clamp(36px, 7vw, 104px);
  padding-top: 42px;
}

.hero-grid > div:first-child {
  max-width: 720px;
}

.eyebrow {
  color: var(--web-accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0;
}

.eyebrow::before {
  width: 24px;
  background: currentColor;
}

h1 {
  max-width: 760px;
  color: var(--web-stage-ink);
  font-family: "Arial Narrow", "Microsoft YaHei", sans-serif;
  font-size: clamp(54px, 8vw, 118px);
  line-height: 0.86;
  text-wrap: balance;
}

.hero-copy {
  max-width: 620px;
  color: var(--web-stage-muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  gap: 8px;
}

.btn {
  min-height: 46px;
  border-radius: 0;
  border-color: var(--web-stage-line);
  background: transparent;
  color: var(--web-stage-ink);
  box-shadow: none;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.btn.primary {
  color: var(--web-stage);
  border-color: var(--web-accent);
  background: var(--web-accent);
  box-shadow: 5px 5px 0 var(--web-acid);
}

.btn:hover {
  color: var(--web-stage);
  border-color: var(--web-stage-ink);
  background: var(--web-stage-ink);
  box-shadow: none;
  transform: translateY(-2px);
}

.btn.primary:hover {
  color: var(--web-stage);
  background: var(--web-stage-ink);
  box-shadow: 2px 2px 0 var(--web-acid);
  transform: translate(3px, 3px);
}

.showcase {
  min-height: 570px;
  border: 1px solid var(--web-stage-line);
  border-radius: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 56px, rgba(246, 241, 232, 0.12) 57px 58px),
    repeating-linear-gradient(0deg, transparent 0 56px, rgba(246, 241, 232, 0.1) 57px 58px),
    var(--web-stage);
  box-shadow: none;
}

.showcase::before {
  inset: 24px;
  border: 1px solid var(--web-stage-line);
  border-radius: 0;
}

.orbit-card {
  width: 240px;
  padding: 18px;
  border: 1px solid var(--web-stage-line);
  border-radius: 0;
  background: rgba(11, 18, 23, 0.78);
  box-shadow: 8px 8px 0 rgba(223, 129, 84, 0.12);
}

.orbit-card strong {
  color: var(--web-stage-ink);
}

.orbit-card span {
  color: var(--web-stage-muted);
}

.orbit-card:nth-child(1) { border-top: 3px solid var(--web-accent); }
.orbit-card:nth-child(2) { border-top: 3px solid #6da2dd; }
.orbit-card:nth-child(3) { border-top: 3px solid #b9cf74; }
.orbit-card:nth-child(4) { border-top: 3px solid #d5b06b; }

.centerpiece {
  width: 220px;
  height: 144px;
  border: 1px solid var(--web-accent);
  border-radius: 0;
  background: var(--web-stage);
  color: var(--web-stage-ink);
  box-shadow: 8px 8px 0 var(--web-accent);
  transform: translate(-50%, -50%) rotate(-4deg);
}

.stats {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: -1px;
  border: 0;
  border-bottom: 1px solid var(--web-stage-line);
  border-radius: 0;
  background: var(--web-stage);
  box-shadow: none;
}

.stat {
  min-height: 142px;
  padding: 26px 24px 22px;
  border-right: 1px solid var(--web-stage-line);
  background: transparent;
  color: var(--web-stage-ink);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  color: var(--web-stage-ink);
  font-family: "Arial Narrow", "Microsoft YaHei", sans-serif;
  font-size: clamp(32px, 4vw, 56px);
}

.stat span {
  color: var(--web-stage-muted);
}

.section {
  padding: 92px 0;
  background: var(--web-paper);
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2,
.section-head p {
  color: var(--web-ink);
}

.section-head p {
  color: var(--web-muted);
}

.featured-section,
.software-section {
  padding-bottom: 0;
}

.featured-card,
.software-band,
.software-card,
.site-card,
.process {
  border-radius: 0;
  box-shadow: none;
}

.featured-card {
  min-height: 230px;
  padding: 22px;
  border-color: var(--web-line);
  background: transparent;
}

.featured-card:hover {
  border-color: var(--web-accent);
  box-shadow: 8px 8px 0 rgba(223, 129, 84, 0.14);
}

.featured-card span,
.tag {
  border-radius: 0;
  color: var(--web-muted);
  background: transparent;
}

.featured-card strong,
.software-card strong,
.site-card h3,
.process strong {
  color: var(--web-ink);
}

.featured-card p,
.software-card p,
.site-card p,
.process p {
  color: var(--web-muted);
}

.software-band {
  border-color: var(--web-line);
  background: transparent;
  box-shadow: none;
}

.software-intro {
  border-right-color: var(--web-line);
  background: #e4dfd4;
}

.software-intro p,
.software-metric span {
  color: var(--web-muted);
}

.software-metric {
  border-top-color: var(--web-line);
}

.software-grid {
  background: #f6f2eb;
}

.software-card {
  border-color: var(--web-line);
  background: transparent;
}

.software-card:hover {
  border-color: var(--software-accent);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--software-accent) 18%, transparent);
}

.toolbar {
  position: sticky;
  top: 74px;
  z-index: 4;
  padding: 12px 0;
  border-top: 1px solid var(--web-line);
  border-bottom: 1px solid var(--web-line);
  background: rgba(238, 234, 225, 0.92);
  backdrop-filter: blur(14px);
}

.chip,
.search,
.clear-search {
  border-radius: 0;
  border-color: var(--web-line);
  background: transparent;
  color: var(--web-ink);
}

.chip.active {
  border-color: var(--web-accent);
  background: var(--web-ink);
}

.grid {
  gap: 0;
  border-top: 1px solid var(--web-line);
  border-left: 1px solid var(--web-line);
}

.site-card {
  min-height: 250px;
  padding: 22px;
  border: 0;
  border-right: 1px solid var(--web-line);
  border-bottom: 1px solid var(--web-line);
  background: transparent;
  transition: background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.site-card:hover {
  border-color: var(--web-line);
  background: #e4dfd4;
  box-shadow: inset 0 4px 0 var(--web-accent);
  transform: translateY(-3px);
}

.icon {
  width: 46px;
  height: 46px;
  border-radius: 0;
  background: var(--web-ink);
  color: var(--web-stage-ink);
  font-size: 0;
}

.icon .lucide {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
}

.site-card[data-tone="blue"] .icon,
.site-card[data-tone="teal"] .icon,
.site-card[data-tone="green"] .icon,
.site-card[data-tone="red"] .icon,
.site-card[data-tone="gold"] .icon {
  background: var(--web-ink);
}

.card-foot {
  border-top: 1px solid var(--web-line);
  padding-top: 16px;
}

.path {
  color: var(--web-muted);
}

.visit {
  min-height: 38px;
  border-radius: 0;
  background: var(--web-ink);
  color: var(--web-stage-ink);
}

.visit:hover {
  background: var(--web-accent);
}

.process {
  border-left-width: 3px;
  border-color: var(--web-accent);
  background: #e4dfd4;
}

.footer {
  border-top: 1px solid var(--web-stage-line);
  background: var(--web-stage);
  color: var(--web-stage-muted);
}

.record {
  color: var(--web-stage-ink);
}

.back-to-top {
  width: 44px;
  height: 44px;
  border: 1px solid var(--web-accent);
  border-radius: 0;
  background: var(--web-accent);
  color: var(--web-stage);
  font-size: 0;
  box-shadow: 5px 5px 0 var(--web-acid);
}

.back-to-top .lucide {
  width: 18px;
  height: 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .showcase {
    max-width: none;
  }

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

@media (max-width: 720px) {
  .shell {
    width: min(100% - 32px, 1320px);
  }

  .nav {
    position: fixed;
    padding: 10px 16px;
  }

  .nav-links {
    max-width: 52%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .hero-grid {
    padding-top: 28px;
  }

  h1 {
    font-size: 54px;
  }

  .showcase {
    min-height: 500px;
  }

  .orbit-card {
    position: relative;
    inset: auto !important;
    width: auto;
    margin: 14px;
  }

  .centerpiece {
    display: none;
  }

  .stats,
  .grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--web-stage-line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 64px 0;
  }

  .toolbar {
    top: 64px;
  }

  .search-wrap {
    width: 100%;
    margin-left: 0;
  }
}
