@font-face {
  font-family: "Maven Pro";
  src: url("/maven-pro-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #111;
  --sans: "Maven Pro", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
}

html, body {
  margin: 0;
  height: 100%;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: default;
}

main {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding-bottom: 6vh;
}

h1 {
  margin: 0;
  line-height: 0;
}

.logo {
  width: clamp(250px, 60vw, 880px);
  height: auto;
  fill: var(--ink);
  /* 「Kinkaku」の文字を中央に置き、点滅する _ は右へはみ出させる。
     viewBox は x 75〜4372、文字の部分は 75〜3755.5。((75 + 4372) / 2 - (75 + 3755.5) / 2) / 4297 = 7.17% */
  transform: translateX(7.17%);
}

.cursor {
  animation: blink 1.06s steps(1, end) infinite;
}

.cursor.typing {
  animation: none;
}

@keyframes blink {
  50% { opacity: 0; }
}

nav {
  margin-top: clamp(36px, 5vw, 64px);
  display: flex;
  align-items: center;
  gap: 32px;
  pointer-events: auto;
}

nav a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.04em;
}

nav a[href]:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

nav a:not([href]) {
  opacity: 0.3;
  cursor: default;
}

#type {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  font-size: 16px;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
