/* Hallmark · shape: game showcase · genre: playful · theme: custom · hero: heading above a full-width gameplay gallery · nav: studio wordmark · signature: pixel corners frame the sea
 * axes: light/grotesk-heavy/warm · v2.0.0 */
/* Hallmark · pre-emit critique: concentrate the color and visual detail in the screenshots, with generous space for the studio mark and game name. */
/* Hallmark · dismissed 77 · The brief limits the home page to one game's description and screenshots. */

:root {
  color-scheme: light;
  --color-paper: #f9fbfa;
  --color-ink: #173b44;
  --color-text: #34515a;
  --color-accent: #e97662;
  --color-accent-ink: #102f36;
  --color-accent-focus: #aa4836;
  --color-board: #ecf3f2;
  --color-grid: #dfe9e8;
  --color-rule: #dce6e5;
  --color-frame: #24434a;
  --color-tile: #fbfdfc;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-latin: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --page-width: 74rem;
  --gutter: clamp(1.125rem, 5vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-body);
  scrollbar-color: var(--color-text) var(--color-paper);
}

::selection {
  color: var(--color-accent-ink);
  background: var(--color-accent);
}

.shell {
  width: min(var(--page-width), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.masthead {
  border-bottom: 1px solid var(--color-rule);
}

.masthead-inner {
  display: flex;
  align-items: center;
  min-height: 5.125rem;
}

.studio-logo {
  display: block;
  width: clamp(7.5rem, 12vw, 9.125rem);
  height: auto;
}

.showcase {
  padding-block: clamp(2.5rem, 4vw, 3.25rem) clamp(2.5rem, 4vw, 3.25rem);
}

.game-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 23rem);
  align-items: end;
  gap: 1.75rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.25rem);
}

h1 {
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.375rem, 7.1vw, 6.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.07em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.english-title {
  display: block;
  margin-top: 0.75rem;
  color: var(--color-text);
  font-family: var(--font-latin);
  font-size: clamp(1rem, 2vw, 1.375rem);
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: normal;
}

.game-description {
  position: relative;
  margin: 0 0 0.1875rem;
  padding-left: 1.125rem;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.85;
  text-wrap: balance;
}

.game-description::before {
  position: absolute;
  top: 0.675rem;
  left: 0;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-accent);
  content: "";
}

.gallery {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, calc(25% - 3.5rem));
  align-items: start;
  gap: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--color-rule);
  background-color: var(--color-board);
  background-image:
    linear-gradient(to right, var(--color-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-grid) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
}

.gallery::before,
.gallery::after {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--color-accent);
  content: "";
  pointer-events: none;
}

.gallery::before {
  top: -1px;
  right: -1px;
}

.gallery::after {
  bottom: -1px;
  left: -1px;
  background: var(--color-ink);
}

.game-screen {
  margin: 0;
  border: 1px solid var(--color-frame);
  background: var(--color-frame);
}

.game-screen img,
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.shot-list {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shot {
  display: block;
  padding: 0.3125rem;
  border: 1px solid var(--color-rule);
  color: var(--color-ink);
  background: var(--color-tile);
  text-decoration: none;
}

.shot span {
  display: block;
  padding: 0.25rem 0.25rem 0.125rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.shot:hover {
  border-color: var(--color-ink);
}

.shot:active {
  background: var(--color-board);
}

.shot[aria-current="true"] {
  border-color: var(--color-ink);
  box-shadow: inset 0 -3px var(--color-accent);
}

.shot[aria-current="true"] span {
  font-weight: 650;
}

.shot:focus-visible {
  outline: 2px solid var(--color-accent-focus);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

@media (max-width: 56rem) {
  .gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.875rem;
    padding: 0.875rem;
  }

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

@media (min-width: 56.0625rem) and (max-height: 50rem) {
  .showcase {
    padding-top: 2.125rem;
  }

  .game-intro {
    margin-bottom: 1.625rem;
  }

  h1 {
    font-size: clamp(3.375rem, 6.5vw, 5.5rem);
  }
}

@media (max-width: 40rem) {
  .masthead-inner {
    min-height: 4rem;
  }

  .game-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .game-description {
    padding-left: 1rem;
  }

  .gallery {
    gap: 0.625rem;
    padding: 0.625rem;
  }

  .shot {
    padding: 0.1875rem;
  }

  .shot span {
    padding-inline: 0.125rem;
  }
}
