@font-face {
  font-family: "SI Wide";
  src: url("/assets/fonts/archivo-wide-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SI Label";
  src: url("/assets/fonts/archivo-wide-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SI JP";
  src: url("/assets/fonts/notosansjp-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050506;
  --ink: #f2f0ee;
  --ink-2: rgba(242, 240, 238, 0.78);
  --ink-3: rgba(242, 240, 238, 0.54);
  --gutter: clamp(16px, 3.2vw, 36px);
  --d: min(84vw, 50svh, 600px);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--ink);
  font-family: "SI JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
}

.t-wide {
  font-family: "SI Wide", "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
}
.t-label {
  font-family: "SI Label", "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
}
.t-jp {
  font-family: "SI JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-weight: 300;
}

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle var(--gr, 64vmin) at var(--gx, 50%) var(--gy, 42%),
    rgba(255, 44, 66, 0.25) 0%,
    rgba(214, 12, 46, 0.12) 24%,
    rgba(150, 0, 26, 0.045) 50%,
    rgba(150, 0, 26, 0) 74%
  );
  animation: si-glow 3.8s cubic-bezier(0.3, 0.6, 0.2, 1) 0.2s both;
}

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(var(--gutter) + env(safe-area-inset-top, 0px))
    calc(var(--gutter) + env(safe-area-inset-right, 0px)) 0
    calc(var(--gutter) + env(safe-area-inset-left, 0px));
}
.bar-bottom {
  padding-top: 0;
  padding-bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
}

.label {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.28em;
  color: var(--ink-3);
  white-space: nowrap;
}
.label-jp {
  letter-spacing: 0.42em;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: clamp(12px, 3svh, 40px) var(--gutter);
  text-align: center;
}

.stage {
  width: var(--d);
  height: var(--d);
}

.title {
  margin: clamp(20px, 4.4svh, 54px) 0 0;
  font-size: clamp(30px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  white-space: nowrap;
  color: var(--ink);
}

.tagline {
  margin: clamp(14px, 2.6svh, 26px) 0 0;
  font-size: clamp(15px, 1.8vw, 21px);
  line-height: 1.8;
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  color: var(--ink-2);
}
.nb {
  display: inline-block;
  white-space: nowrap;
}

.soon {
  margin: clamp(16px, 3svh, 30px) 0 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-left: 0.28em;
}
.soon::before,
.soon::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 240, 238, 0.28);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}
a:hover {
  border-bottom-color: currentColor;
}
a:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
}
.bar a {
  border-bottom: 0;
}

.page-404 .glow {
  opacity: 0.6;
  animation: none;
}
.code {
  margin: 0;
  font-size: clamp(56px, 12vw, 120px);
  line-height: 1;
  letter-spacing: 0.14em;
  padding-left: 0.14em;
  color: var(--ink);
}
.page-404 .tagline {
  margin-top: 22px;
  font-weight: 300;
}
.page-404 .soon::before,
.page-404 .soon::after {
  display: none;
}

.reveal {
  animation: si-rise 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.r1 {
  animation-delay: 0.3s;
}
.r2 {
  animation-delay: 1.5s;
}
.r3 {
  animation-delay: 2.1s;
}
.r4 {
  animation-delay: 2.6s;
}
.title.reveal {
  animation-name: si-title;
  animation-duration: 2.2s;
}

@keyframes si-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes si-title {
  from {
    opacity: 0;
    letter-spacing: 0.34em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.22em;
  }
}
@keyframes si-glow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .label {
    font-size: 10px;
    letter-spacing: 0.24em;
  }
  .label-jp {
    letter-spacing: 0.36em;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  :root {
    --d: min(56vw, 42svh, 600px);
  }
  .title {
    margin-top: 14px;
    font-size: clamp(26px, 4.2vw, 48px);
  }
  .tagline {
    margin-top: 10px;
  }
  .soon {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .title.reveal,
  .glow {
    animation: none;
  }
}

html.still .reveal,
html.still .title.reveal,
html.still .glow {
  animation: none;
}
