:root {
  --bg: #f5f3ee;
  --ink: #131313;
  --muted: #686868;
  --line: rgba(20,20,20,.16);
  --brand: #7457ff;
  --accent: #59f1c8;
  --shell: min(1180px,calc(100% - 48px));
  font-family: "Segoe UI","Microsoft YaHei",sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

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

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

.shell {
  width: var(--shell);
  margin: auto;
}

.site-head {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(245,243,238,.9);
  backdrop-filter: blur(18px);
}

.nav {
  width: var(--shell);
  height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.brand span:last-child {
  display: grid;
}

.brand b {
  letter-spacing: .18em;
}

.brand small {
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
}

nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}

.menu {
  display: none;
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 11px 16px;
  border-radius: 99px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
}

h1,h2,p {
  margin-top: 0;
}

.primary {
  display: inline-flex;
  margin-top: 22px;
  padding: 14px 22px;
  background: var(--brand);
  color: #fff;
  border-radius: 99px;
  font-weight: 700;
}

.article-hero {
  padding: 100px max(24px,calc((100% - 1000px)/2));
  background: var(--brand);
  color: #fff;
}

.article-hero h1 {
  max-width: 900px;
  font-size: clamp(3rem,7vw,6rem);
  line-height: 1;
}

.article-hero>p:not(.eyebrow) {
  max-width: 720px;
  font-size: 19px;
  line-height: 1.8;
  opacity: .78;
}

.article-hero .eyebrow {
  color: var(--accent);
}

.article-hero>div {
  font-size: 12px;
  letter-spacing: .08em;
  opacity: .6;
}

.article-layout {
  width: min(1000px,calc(100% - 48px));
  margin: 80px auto 120px;
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 80px;
}

.article-layout aside {
  position: sticky;
  top: 30px;
  height: max-content;
  display: grid;
  gap: 14px;
  font-size: 13px;
}

.article-layout aside b {
  margin-bottom: 16px;
  letter-spacing: .16em;
}

.article-layout aside a {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.prose {
  font-family: Georgia,"Noto Serif SC",serif;
  font-size: 18px;
  line-height: 2;
}

.prose .lead {
  font-size: 24px;
}

.prose h2 {
  margin-top: 54px;
  font-size: 34px;
  line-height: 1.25;
}

.prose blockquote {
  margin: 50px 0;
  padding: 36px;
  border-left: 5px solid var(--accent);
  background: #fff;
  font-size: 30px;
  line-height: 1.5;
}

.article-card {
  display: flex;
  gap: 22px;
  margin: 48px 0;
  padding: 30px;
  background: var(--brand);
  color: #fff;
}

.article-card>span {
  font-size: 46px;
  font-weight: 900;
  color: var(--accent);
}

.site-footer {
  padding: 42px 0;
  background: #0e1114;
  color: #fff;
}

.footer-inner {
  width: var(--shell);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: #aaa;
  font-size: 13px;
}

.not-found {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}

.error-art {
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--accent);
  font-size: clamp(9rem,25vw,24rem);
  font-weight: 900;
  letter-spacing: -.1em;
}

.error-copy {
  padding: 9vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.error-copy h1 {
  font-size: clamp(3rem,6vw,6rem);
  line-height: 1;
}

.error-copy p {
  max-width: 520px;
  line-height: 1.8;
  color: var(--muted);
}

.error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.error-actions a {
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 99px;
}

.error-actions a:first-child {
  background: var(--brand);
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: .7s;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.console-hero {
  min-height: 720px;
  padding: 90px max(24px,calc((100% - 1180px)/2));
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 8vw;
  align-items: center;
  background: #0d0a1c;
  color: #fff;
}

.console-hero h1 {
  font-size: clamp(4rem,8vw,8rem);
  line-height: .88;
}

.console-hero>div>p:not(.eyebrow) {
  max-width: 570px;
  color: #aaa;
  line-height: 1.9;
}

.signal-board {
  padding: 28px;
  border: 1px solid #40366d;
  background: #17112c;
}

.signal-board>div {
  display: flex;
  justify-content: space-between;
}

.online {
  color: #59f1c8;
}

.signal-board img {
  margin: 22px 0;
  aspect-ratio: 1;
  object-fit: cover;
}

.signal-board dl {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}

.signal-board dl div {
  padding: 14px;
  background: #0d0a1c;
}

.signal-board dt {
  font-size: 11px;
  color: #888;
}

.signal-board dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  background: #fff;
}

.module-grid a {
  min-height: 280px;
  padding: 36px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.module-grid b {
  color: var(--brand);
}

.module-grid span {
  margin-top: auto;
  font-size: 28px;
  font-weight: 800;
}

.module-grid small {
  color: var(--muted);
}

@media(max-width:800px) {
  :root {
    --shell: min(100% - 28px,1180px);
  }

  .nav {
    height: 72px;
  }

  .nav nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .nav.open nav {
    display: flex;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    padding: 20px;
    background: #fff;
    color: #111;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.16);
  }

  .console-hero,.atlas-hero,.terminal-hero,.portfolio-hero {
    grid-template-columns: 1fr;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .signal-board {
    margin-top: 25px;
  }

  .module-grid,.timeline,.region-board,.checklist,.city-mosaic,.pledges,.route-steps,.house-matrix {
    grid-template-columns: 1fr;
  }

  .archive-cover,.gallery-hero,.journal-cover {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .archive-cover img,.gallery-hero img,.journal-cover img {
    height: 340px;
    width: 100%;
  }

  .archive-number {
    font-size: 5rem;
  }

  .gallery-hero .vertical,.journal-cover .volume {
    display: none;
  }

  .portfolio-hero img {
    grid-column: auto;
    grid-row: auto;
  }

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

  .headline {
    border-right: 0;
    padding-right: 0;
  }

  .article-layout {
    grid-template-columns: 1fr;
    margin-top: 50px;
  }

  .article-layout aside {
    position: static;
  }

  .not-found {
    grid-template-columns: 1fr;
  }

  .error-art {
    min-height: 36vh;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .orbit {
    margin-top: 20px;
  }

  .masthead h1 {
    font-size: 5rem;
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto!important;
    animation: none!important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

