/* Limited RNG: Remastered release countdown (owner's dev friend, 2026-11-14), served at /rng. */
/* Layout: full-bleed key art, darkened toward the left; a left-aligned column with the
   headline, a monospace countdown on a hairline grid, and one primary action. */
:root {
  --bg: #0c0b0a;
  --text: #f4f2ee;
  --dim: rgba(244, 242, 238, 0.62);
  --line: rgba(244, 242, 238, 0.18);
  --accent: #e9a93a; /* amber, taken from the key art */
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}

.art {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url('art.jpg') 70% center / cover no-repeat;
}
.art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(12, 11, 10, 0.97) 0%,
      rgba(12, 11, 10, 0.88) 38%,
      rgba(12, 11, 10, 0.45) 75%,
      rgba(12, 11, 10, 0.6) 100%
    ),
    linear-gradient(0deg, rgba(12, 11, 10, 0.9) 0%, transparent 35%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px clamp(16px, 5vw, 72px);
}

header,
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
header .brand {
  color: var(--text);
}

main {
  align-self: center;
  max-width: 760px;
  padding: 56px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}

h1 {
  margin: 0;
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 .sub {
  display: block;
  color: var(--dim);
  font-weight: 400;
  font-stretch: 100%;
}

.date {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--dim);
}
.date strong {
  color: var(--text);
  font-weight: 600;
}

.clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 640px;
}
.unit {
  padding: 18px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.unit + .unit {
  border-left: 1px solid var(--line);
  padding-left: clamp(12px, 2.5vw, 24px);
}
.num {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.status {
  display: none;
  margin: 0;
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(28px, 5vw, 44px);
  color: var(--accent);
}
body.is-live .clock {
  display: none;
}
body.is-live .status {
  display: block;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--text);
  color: #111;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s ease;
}
.btn:hover {
  background: var(--accent);
}
.btn:focus-visible,
.link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn svg {
  width: 14px;
  height: 14px;
}
.note {
  margin: 0;
  font-size: 14px;
  color: var(--dim);
  max-width: 38ch;
}

@media (max-width: 520px) {
  .art {
    background-position: 62% center;
  }
  .art::after {
    background: linear-gradient(
      0deg,
      rgba(12, 11, 10, 0.96) 0%,
      rgba(12, 11, 10, 0.82) 60%,
      rgba(12, 11, 10, 0.6) 100%
    );
  }
  header .meta {
    display: none;
  }
  .clock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .unit:nth-child(3) {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }
  .unit:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
