/* ========================================
   CMatrixGame — Swiss Style
   国际主义设计风格
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: #1a1a1a;
  background-color: #fafafa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  line-height: 1.4;
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8vw;
  position: relative;
}

/* Geometric accent lines */
.grid-line {
  height: 1px;
  background-color: #1a1a1a;
  width: 64px;
}

.grid-line--top {
  margin-bottom: clamp(1.5rem, 3vh, 3rem);
}

.grid-line--bottom {
  margin-top: clamp(1.5rem, 3vh, 3rem);
  align-self: flex-end;
  width: 96px;
}

/* Large headline — asymmetric Swiss typography */
.headline {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  max-width: 16em;
  color: #1a1a1a;
  line-height: 1.15;
}

/* --- Footer --- */
.footer {
  padding: 1.2rem 8vw;
  border-top: 1px solid #e0e0e0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.8rem;
  color: #888;
}

.footer-inner a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-inner a:hover {
  color: #1a1a1a;
}

.footer-icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
  vertical-align: -2px;
}

.footer-divider {
  width: 24px;
  height: 1px;
  background-color: #ccc;
  display: none;
}

.footer-brand {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #bbb;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .footer-divider {
    display: block;
  }
}
