@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  font-family: 'IBM Plex Sans', sans-serif;
  color: #f2eee4;
  background: #0e0e0d;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --amber: #e0a83a;
  --muted: #89877f;
  --line: #282722;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px), #0e0e0d;
  background-size: 72px 72px;
}

body::before {
  position: fixed;
  inset: 0;
  content: '';
  pointer-events: none;
  background: radial-gradient(circle at 50% 45%, rgb(14 14 13 / 0%) 0 20%, #0e0e0d 68%);
}

.coming-soon,
.not-found {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 4vw, 56px);
}

.not-found {
  grid-template-rows: auto 1fr;
}

.brand {
  width: fit-content;
  color: inherit;
  font:
    500 28px/1 'IBM Plex Mono',
    monospace;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.brand span,
h1 span {
  color: var(--amber);
}

.message {
  align-self: center;
  width: min(100%, 920px);
  margin: 5vh auto;
}

.eyebrow,
.status {
  color: var(--amber);
  font:
    500 12px/1.4 'IBM Plex Mono',
    monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
}

.eyebrow::before {
  width: 32px;
  height: 1px;
  content: '';
  background: currentcolor;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font:
    500 clamp(58px, 11vw, 144px) / 0.9 'IBM Plex Mono',
    monospace;
  letter-spacing: -0.075em;
}

.note {
  margin: clamp(28px, 5vw, 48px) 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: none;
}

.status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgb(224 168 58 / 12%);
}

.back {
  display: inline-flex;
  gap: 10px;
  margin-top: 40px;
  color: #f2eee4;
  font:
    500 14px/1.4 'IBM Plex Mono',
    monospace;
  text-underline-offset: 5px;
}

.back:hover {
  color: var(--amber);
}

.brand:focus-visible,
.back:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--amber);
  outline-offset: 6px;
}

@media (max-width: 600px) {
  body {
    background-size: 48px 48px;
  }

  .coming-soon,
  .not-found {
    padding: 24px;
  }

  .message {
    margin-block: 48px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .status span {
    animation: pulse 2.4s ease-in-out infinite;
  }

  @keyframes pulse {
    50% {
      opacity: 0.45;
      box-shadow: 0 0 0 8px rgb(224 168 58 / 4%);
    }
  }
}
