/* =========================================================================
   Cigarista — Status pages (maintenance, 404)
   Shared chrome for low-frequency "interruption" screens.
   Builds on assets/tokens.css.
   ========================================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
}

body {
  background: var(--surface-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-y: auto; /* scroll if a short viewport can't hold everything */
}

/* The signature brown→black ground, with a touch more brown up top
   because everything important sits in the upper half. */
.ground {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,
      rgba(45, 26, 6, 0.85) 0%,
      rgba(20, 10, 2, 0.6) 40%,
      transparent 75%),
    var(--gradient-screen);
  pointer-events: none;
}

/* A muted, low-opacity smoke layer that breathes. We re-use the site's
   smoke video but at a much lower volume than the marketing page. */
.smoke {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 35%, #000 35%, transparent 90%);
          mask-image: radial-gradient(ellipse 75% 60% at 50% 35%, #000 35%, transparent 90%);
}
.smoke video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 110%;
  min-height: 110%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: contrast(1.05) brightness(.9);
}

/* Faint film grain made of two stacked gradients — keeps the dark surface
   from feeling like a flat PNG without any actual texture asset. */
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0,0,0,.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 0%, transparent 50%, rgba(0,0,0,.5) 100%);
}

/* ─── Layout ─────────────────────────────────────────────────────── */

.stage {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 40px;
  gap: 20px;
}
@media (max-width: 720px) {
  .stage { padding: 20px 20px; gap: 16px; }
}

/* ─── Top bar — wordmark + a small status pill on the right ──────── */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: var(--type-wordmark-app-bar);
  color: var(--gold-yellow);
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border-radius: var(--radius-full);
  background: rgba(242, 191, 102, 0.04);
  border: 1px solid rgba(242, 191, 102, 0.18);
  font: var(--type-eyebrow);
  letter-spacing: var(--type-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--gold-yellow);
}

.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-yellow);
  box-shadow: 0 0 10px rgba(242, 191, 102, 0.7);
  animation: dot-pulse 2.6s var(--ease-smooth) infinite;
}
.status-dot.red {
  background: var(--status-error-soft);
  box-shadow: 0 0 10px rgba(229, 115, 115, 0.6);
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.85); }
}

/* ─── Centerpiece ────────────────────────────────────────────────── */

.center {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 16px;
}

.center-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 12px 0;
}

.eyebrow {
  font: var(--type-eyebrow);
  letter-spacing: var(--type-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--text-tan);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold-yellow);
  opacity: .55;
}

.headline {
  font-weight: 600;
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text-cream);
  text-wrap: balance;
}
.headline .gold {
  background: var(--gradient-headline);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
}

.lede {
  color: var(--text-tan);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  max-width: 52ch;
  text-wrap: pretty;
}

/* ─── Actions ────────────────────────────────────────────────────── */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  font: var(--type-label-l);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-smooth),
              color var(--dur-base) var(--ease-smooth),
              border-color var(--dur-base) var(--ease-smooth),
              transform var(--dur-fast) var(--ease-smooth);
  cursor: pointer;
}
.btn-primary {
  background: var(--gold-yellow);
  color: var(--text-on-gold);
}
.btn-primary:hover { background: var(--gold-warm); }
.btn-primary:active { background: var(--gold-dark); transform: translateY(1px); }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text-cream);
  border-color: rgba(255,255,255,0.10);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); }

.btn .arrow { transition: transform var(--dur-base) var(--ease-smooth); }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Foot — utility row at bottom of viewport ───────────────────── */

.foot {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  font: var(--type-body-s);
  color: var(--text-tan);
}

.foot .meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.foot .meta strong {
  color: var(--text-cream);
  font-weight: 500;
}

.foot .links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.foot .links a {
  color: var(--text-tan);
  text-decoration: none;
  transition: color var(--dur-base);
}
.foot .links a:hover { color: var(--gold-yellow); }

.foot .timecode {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-tan);
  opacity: .7;
}

/* ─── Reveal on load ─────────────────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fade-in 900ms var(--ease-smooth) forwards;
}
.fade-in.d1 { animation-delay: 120ms; }
.fade-in.d2 { animation-delay: 240ms; }
.fade-in.d3 { animation-delay: 360ms; }
.fade-in.d4 { animation-delay: 520ms; }
.fade-in.d5 { animation-delay: 720ms; }
@keyframes fade-in {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { animation: none; opacity: 1; transform: none; }
  .status-dot, .ember, .ring { animation: none !important; }
}

@media (max-width: 640px) {
  .foot { flex-direction: column; align-items: start; gap: 14px; }
  .foot .links { flex-wrap: wrap; }
}
