@font-face {
  font-family: "KenPixel";
  src: url("./assets/fonts/kenpixel.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --button: #c9c9c9;
  --button-light: #f4f4f4;
  --button-dark: #707070;
  --ink: #4e4e4e;
  --purple: #7346df;
  --yellow: #fff33d;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }

body {
  min-height: 100svh;
  background: #102c5b;
  color: #fff;
  font-family: "KenPixel", ui-monospace, Menlo, monospace;
}

.section-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 28px clamp(18px, 5vw, 72px) 60px;
}

.section-page::before,
.section-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.section-page::before {
  z-index: -2;
  background: #102c5b url("./assets/voxel-hero.jpg") center / cover no-repeat;
  transform: scale(1.01);
}

.section-page::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(1, 7, 18, .18), rgba(1, 7, 18, .28));
}

.section-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
  font-size: 10px;
  letter-spacing: .12em;
  text-shadow: 2px 2px 0 #111;
}

.section-nav a { color: #fff; text-decoration: none; }
.section-nav a:hover { color: var(--yellow); }

.section-header {
  max-width: 860px;
  margin: clamp(48px, 7vh, 78px) auto 30px;
  text-align: center;
}

.section-header__eyebrow {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 10px;
  letter-spacing: .15em;
  text-shadow: 2px 2px 0 #111;
}

.section-header h1 {
  margin: 0;
  color: #d8d8d8;
  font-size: clamp(70px, 10vw, 130px);
  font-weight: 400;
  line-height: .8;
  letter-spacing: -.04em;
  -webkit-text-stroke: 3px #111;
  text-shadow: 0 3px 0 #fff, 0 7px 0 #8d8d8d, 0 11px 0 #111, 7px 15px 18px rgba(0, 0, 0, .55);
}

.section-header p:last-child {
  display: inline-block;
  max-width: 660px;
  margin: 27px 0 0;
  padding: 7px 11px;
  background: rgba(8, 8, 8, .7);
  color: #fff;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  text-shadow: none;
}

.section-list {
  display: grid;
  gap: 10px;
  width: min(650px, 92vw);
  margin: 0 auto;
}

.section-card {
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 142px;
  padding: 19px 24px;
  border: 3px solid #101010;
  background: var(--button);
  box-shadow: inset 3px 3px 0 var(--button-light), inset -3px -3px 0 var(--button-dark), 5px 6px 0 rgba(0, 0, 0, .66);
  color: var(--ink);
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, .48);
  transition: transform 80ms ease, background 80ms ease, color 80ms ease;
}

.section-card:hover,
.section-card:focus-visible {
  transform: translateX(5px);
  outline: 3px solid #fff;
  outline-offset: 2px;
  background: var(--purple);
  box-shadow: inset 3px 3px 0 #a888ff, inset -3px -3px 0 #42209b, 5px 6px 0 rgba(0, 0, 0, .7);
  color: #fff;
  text-shadow: 2px 2px 0 #321777;
}

.section-card > div:first-child { align-self: center; }

.section-card__index {
  display: block;
  margin-bottom: 8px;
  font-size: 9px;
  letter-spacing: .12em;
  opacity: .68;
}

.section-card h2 {
  margin: 0 0 7px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: clamp(22px, 2.8vw, 33px);
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.section-card p {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  opacity: .78;
}

.section-card__action {
  display: grid;
  place-items: center;
  min-width: 120px;
  margin-left: 18px;
  padding-left: 18px;
  border-left: 2px solid rgba(45, 45, 45, .22);
  font-size: 10px;
}

.section-card__action span:last-child { font-size: 29px; }

@media (max-width: 720px) {
  .section-page { padding: 22px 14px 48px; overflow-y: auto; }
  .section-nav span { display: none; }
  .section-header { margin-top: 52px; }
  .section-header h1 { font-size: clamp(64px, 21vw, 94px); -webkit-text-stroke-width: 2px; }
  .section-list { width: 100%; }
  .section-card { min-height: 150px; padding: 18px; }
  .section-card__action { min-width: 78px; }
  .section-card__action span:first-child { display: none; }
}

@media (max-width: 470px) {
  .section-card { grid-template-columns: 1fr 38px; }
  .section-card__action { min-width: 38px; margin-left: 8px; padding-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
