:root{
  --bg: #0c0d0f;
  --ink: #f1ede4;
  --brass: #c6a15b;
  --brass-dim: #8a713f;
  --grid: #202327;
  --grid-strong: #2d3136;
  --muted: #7c8590;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}

body{
  font-family: 'IBM Plex Mono', monospace;
}

#stage{
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

.center{
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
  opacity: 0;
  animation: rise 1.4s cubic-bezier(.16,.9,.28,1) 0.5s forwards;
}

@keyframes rise{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}

h1{
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 9vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.domain{
  margin-top: 22px;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.domain a{
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-dim);
  padding-bottom: 2px;
  pointer-events: all;
  transition: color .2s ease, border-color .2s ease;
}
.domain a:hover{ color: var(--ink); border-color: var(--brass); }
.domain a:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  border-radius: 2px;
}

.rule{
  width: 44px;
  height: 1px;
  background: var(--brass-dim);
  margin: 26px 0;
  opacity: .7;
}

.readout{
  position: fixed;
  left: 24px;
  bottom: 22px;
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--muted);
  line-height: 1.7;
  pointer-events: none;
  opacity: 0;
  animation: fade-in .8s ease 1.4s forwards;
}
.readout span{ color: var(--brass); }

.compass{
  position: fixed;
  right: 24px;
  bottom: 22px;
  opacity: 0;
  animation: fade-in .8s ease 1.4s forwards;
}

@keyframes fade-in{ to{ opacity: .9; } }

@media (max-width: 560px){
  .readout{ display: none; }
  .compass{ display: none; }
}

@media (prefers-reduced-motion: reduce){
  .center{ animation: none; opacity: 1; }
  .readout, .compass{ animation: none; opacity: .9; }
}

/* 404 page reuses this sheet */
.error-page{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  overflow: hidden;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
}
.error-page .eyebrow{
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 18px;
}
.error-page h1{ font-size: clamp(2.2rem, 7vw, 4rem); }
.error-page p{ color: var(--muted); font-size: .85rem; letter-spacing: .05em; margin-top: 16px; }
.error-page a{
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid var(--brass-dim);
  padding-bottom: 2px;
}
.error-page a:hover{ color: var(--ink); border-color: var(--brass); }
