:root {
  --paper: #f2efe6;
  --ink: #171a15;
  --muted: #797c72;
  --line: rgba(23, 26, 21, .14);
  --accent: #b74a32;
  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
h1, p { margin: 0; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ------------------------------ sky */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.sky i {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(58px);
  will-change: transform;
}
.sky i:first-child {
  width: min(72vw, 980px);
  aspect-ratio: 1;
  right: -14vw;
  top: -26vh;
  background: radial-gradient(circle at 35% 35%, #cbd9c3 0%, #e6dfce 52%, rgba(230, 223, 206, 0) 72%);
  opacity: .85;
  animation: drift-a 24s ease-in-out infinite alternate;
}
.sky i:last-child {
  width: min(48vw, 640px);
  aspect-ratio: 1;
  left: -15vw;
  bottom: -30vh;
  background: radial-gradient(circle at 60% 40%, #e8c8b5 0%, #f1e0d1 55%, rgba(241, 224, 209, 0) 74%);
  opacity: .58;
  animation: drift-b 31s ease-in-out infinite alternate;
}
@keyframes drift-a {
  to { transform: translate3d(-4vw, 5vh, 0) scale(1.07); }
}
@keyframes drift-b {
  to { transform: translate3d(4vw, -4vh, 0) scale(1.05); }
}

/* ------------------------------ grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

/* ------------------------------ frame */
.top,
.bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--gutter);
}
.top { padding-block: clamp(1.3rem, 3vw, 2rem); }
.bottom {
  padding-block: clamp(1.3rem, 3vw, 2rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.brand {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.025em;
}
.brand span { color: var(--muted); }
.year {
  color: var(--muted);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .14em;
}

/* ------------------------------ stage */
.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem var(--gutter) clamp(4rem, 10vh, 7rem);
  text-align: center;
}

.kanji {
  margin-bottom: clamp(1.1rem, 3vh, 1.9rem);
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .55em;
  text-indent: .55em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(5.5rem, 23vw, 18rem);
  font-weight: 300;
  line-height: .86;
  letter-spacing: -.075em;
}
h1 .dev {
  display: inline-block;
  margin-left: .06em;
  color: var(--muted);
  font-size: .18em;
  font-weight: 400;
  letter-spacing: -.02em;
  vertical-align: .95em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: clamp(1.4rem, 4vh, 2.4rem);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: breathe 3.4s ease-in-out infinite;
}
@keyframes breathe {
  50% { opacity: .35; transform: scale(.8); }
}

/* ------------------------------ 404 */
.back {
  display: inline-block;
  margin-top: clamp(1.6rem, 4vh, 2.4rem);
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--line);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .25s, border-color .25s;
}
.back:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 540px) {
  .bottom { font-size: .6rem; }
  h1 { font-size: clamp(5rem, 23vw, 8rem); }
  .kanji { font-size: .66rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sky i, .dot { animation: none; }
}
