:root {
  color-scheme: light;
  --brand: #154db5;
  --accent: #1453bc;
  --ink: #292e38;
  --muted: #535c6c;
  --alternate: #f4f7fd;
  --header-height: 5.625rem;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; }
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
img { display: block; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.wrap { width: min(100% - 4rem, 74rem); 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 { position: absolute; z-index: 3; top: 1rem; left: 1rem; padding: .75rem; color: var(--brand); background: #fff; }
.site-header, .site-footer { background: var(--brand); color: #fff; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: var(--header-height);
}

.wordmark { display: inline-flex; align-items: center; gap: .28em; font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -.045em; text-decoration: none; }
.brand-symbol { position: relative; flex: none; width: .99em; height: 1em; }
.brand-symbol::before, .brand-symbol::after {
  content: '';
  position: absolute;
  aspect-ratio: 1;
  background: currentColor;
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}
.brand-symbol::before { inset: .17em auto auto 0; width: .8em; }
.brand-symbol::after { inset: 0 0 auto auto; width: .34em; color: #c4e4ff; }
.header-inner nav, .footer-inner nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; }
.header-inner nav a { text-transform: uppercase; font-weight: 700; font-size: .9rem; text-decoration: none; letter-spacing: .055em; padding-block: .55rem; }
.header-inner nav a:hover, .header-inner nav a[aria-current="page"] { text-decoration: underline; }

.home-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: clamp(25rem, 44vw, 42rem);
  background: #6bb9ee;
}

.banner-game, .game-art, .detail-art { position: relative; display: block; overflow: hidden; background: #d8e8fa; }
.banner-game:focus-visible, .game-art:focus-visible { z-index: 1; outline-offset: -5px; color: #fff; }
.banner-game { border-right: 2px solid #fff; }
.banner-game:last-child { border-right: 0; }
.game-scene { width: 100%; height: 100%; object-fit: cover; }
.banner-game .game-scene { position: absolute; inset: 0; object-position: 72% center; }
.game-logo { position: absolute; top: 10%; left: 6%; width: 46%; height: auto; }
.banner-game .game-logo { top: auto; bottom: 8%; left: 12%; width: 76%; filter: drop-shadow(0 .2rem .35rem #10213e79); }

.company-banner {
  min-height: clamp(21rem, 36vw, 35rem);
  display: grid;
  align-items: start;
  background: linear-gradient(180deg, #fff 3%, #ffffffed 25%, #ffffff00 67%), url('jiangnan-panorama.webp') center bottom / cover no-repeat, #f2f8ff;
}

.company-copy { padding: clamp(2.5rem, 5vw, 4.75rem) 0 10rem; text-align: center; }
.company-copy p { max-width: 46rem; margin: 1rem auto; font-size: clamp(1.1rem, 2.1vw, 1.4rem); line-height: 1.55; }
.about-page { min-height: clamp(27rem, 46vw, 44rem); }

.section-heading, .company-copy h1, .company-copy h2, .text-page h1 {
  color: var(--accent);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.035em;
}

.section-heading { padding: 3.2rem 1rem 1.1rem; text-align: center; }
.showcase { padding-block: clamp(2.5rem, 6vw, 5.25rem); }
.showcase:nth-of-type(even) { background: var(--alternate); }

.showcase-inner {
  display: grid;
  grid-template-columns: minmax(15rem, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
}

.game-copy { grid-column: 1; grid-row: 1; }
.game-art { grid-column: 2; grid-row: 1; aspect-ratio: 3 / 2; border-radius: .85rem; }
.showcase:nth-of-type(even) .showcase-inner { grid-template-columns: minmax(0, 1.2fr) minmax(15rem, .8fr); }
.showcase:nth-of-type(even) .game-copy { grid-column: 2; }
.showcase:nth-of-type(even) .game-art { grid-column: 1; }
.game-copy h3 { margin-bottom: 1rem; color: var(--accent); font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.13; letter-spacing: -.035em; }
.game-copy h3 a { text-decoration: none; }
.game-copy h3 a:hover { text-decoration: underline; }
.game-copy p, .text-page p { margin-bottom: 1rem; font-size: clamp(1.075rem, 1.7vw, 1.25rem); line-height: 1.55; }
.game-copy .game-status, .text-page .game-status { width: fit-content; padding: .32rem .7rem; border-radius: 1rem; color: #13458f; background: #e4efff; font-size: .875rem; font-weight: 700; }

.text-link { display: inline-block; color: var(--accent); font-weight: 700; }
.text-link:hover { color: #072b75; }
.text-page { max-width: 50rem; padding-block: clamp(3rem, 8vw, 7rem); }
.text-page h1 { margin-bottom: 1.25rem; }
.text-page .review-note { color: var(--muted); font-weight: 700; }
.detail-art { width: min(100%, 85rem); aspect-ratio: 16 / 8; margin-inline: auto; }
.detail-art .game-scene { position: absolute; }
.detail-art .game-logo { top: 12%; left: 8%; width: 39%; }
.detail-copy { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.detail-copy .text-link { margin-bottom: 1.25rem; }

.footer-inner { display: grid; justify-items: center; gap: 1.25rem; padding-block: 2.75rem; text-align: center; }
.footer-inner nav a { font-size: .95rem; }
.footer-inner p { font-size: .95rem; line-height: 1.45; }

@media (max-width: 50rem) {
  :root { --header-height: 4.5rem; }
  .wrap { width: calc(100% - 2rem); }
  .header-inner nav { gap: .85rem; }
  .header-inner nav a { font-size: .8rem; letter-spacing: 0; }
  .wordmark { font-size: 1.65rem; }
  .home-banner { min-height: clamp(13rem, 53vw, 26rem); }
  .banner-game .game-logo { left: 7%; width: 86%; }
  .showcase-inner, .showcase:nth-of-type(even) .showcase-inner { grid-template-columns: minmax(0, 1fr); gap: 1.45rem; }
  .game-copy, .showcase:nth-of-type(even) .game-copy { grid-column: 1; grid-row: 2; text-align: center; }
  .game-art, .showcase:nth-of-type(even) .game-art { grid-column: 1; grid-row: 1; width: min(100%, 35rem); justify-self: center; }
  .game-copy .game-status { margin-inline: auto; }
  .detail-art { aspect-ratio: 3 / 2; }
}

@media (max-width: 24rem) {
  .header-inner { flex-wrap: wrap; justify-content: center; gap: .4rem 1rem; padding-block: .7rem; }
  .header-inner nav { column-gap: 1rem; }
}
