@font-face {
  font-family: "Cascadia Mono";
  src: url("/assets/fonts/CascadiaMono.ttf") format("truetype");
  font-weight: 200 700;
  font-display: block;
}

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #777;
  --line: #262626;
  --mono: "Cascadia Mono", "BIZ UDGothic", "Yu Gothic", "Hiragino Sans", monospace;
  --frame: 960px;
}
@media (max-width: 999px) {
  :root { --frame: 360px; }
}

* { box-sizing: border-box; }
/* スクロールバーの有無でカラム位置が動くと ASCII とずれるので、幅を常に確保する */
html { background: var(--bg); scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  font-variant-ligatures: none;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; font-weight: 400; }

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

.site-header {
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.logo { font-weight: 700; letter-spacing: 0.04em; }
.site-header nav { display: flex; gap: 24px; color: var(--muted); }

.hero {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0 48px;
}
.avatar { display: block; width: 400px; height: 400px; }
.hero h1 { font-size: 72px; line-height: 88px; font-weight: 700; }
.handle { color: var(--muted); margin-top: 8px; }
.lead { font-size: 22px; line-height: 32px; margin-top: 40px; }

/* 見出しを左の列に置き、中身を右に。どの段も同じ間隔で積む */
.block { display: grid; grid-template-columns: 160px 1fr; align-items: baseline; padding: 24px 0; }
.block h2 { color: var(--muted); font-size: 16px; }
.block > :not(h2) { grid-column: 2; }
#games h2 { align-self: start; }

/* 項目と値の並び（sns と about で共通）。項目は薄く、値は白。1 行に 1 つ */
.kv li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 4px 0; }
.kv .k { color: var(--muted); }
.kv a.v { justify-self: start; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.kv a.v:hover { text-decoration-color: var(--fg); }

/* games: /games/games.json から組み立てるカード（画像は og.png、1200×630） */
.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.games a { display: block; }
.games img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border: 1px solid var(--line); }
.games .t { display: block; margin-top: 12px; }
.games .d { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 22px; }
.games-more { margin-top: 32px; color: var(--muted); }


.site-footer { padding: 72px 0 48px; color: var(--muted); }

@media (max-width: 999px) {
  .site-header { height: 56px; }
  .site-header nav { gap: 16px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 32px; }
  .block { grid-template-columns: 1fr; row-gap: 12px; padding: 20px 0; }
  .block > :not(h2) { grid-column: 1; }
  .avatar { width: 360px; height: 360px; }
  .hero h1 { font-size: 48px; line-height: 56px; }
  .lead { font-size: 18px; line-height: 28px; margin-top: 24px; }
  .games { grid-template-columns: 1fr; gap: 28px; }
  .kv li { grid-template-columns: 64px 1fr; }
}

/* 404 */
.notfound { min-height: calc(100svh - 72px - 48px); display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px 0; }
.notfound .code { color: var(--muted); }
.notfound h1 { font-size: 32px; line-height: 44px; font-weight: 700; }
.notfound a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 999px) {
  .notfound { min-height: calc(100svh - 56px - 48px); }
  .notfound h1 { font-size: 24px; line-height: 34px; }
}
