/*
  The look of both pages, in one file because there are two of them: the
  placeholder and the 404 that stands beside it share a header, a footer and a
  palette, and a second copy of any of that is a second thing to keep true.

  The palette is the product's own: every value below is a token from
  packages/ui/src/themes/light.json, and page.test.ts fails if one drifts.
*/
:root {
  --navy: #0d2b6b;
  --navy-deep: #0b1f3d;
  --navy-mid: #123764;
  --gold: #f4b63d;
  --gold-soft: #f9c567;
  --on-brand: #ffffff;
  --on-brand-muted: #dde8f7;
  --display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --edge: clamp(20px, 6vw, 64px);
}

* {
  box-sizing: border-box;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--edge);
  gap: clamp(24px, 6vh, 56px);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(244, 182, 61, 0.16), transparent 60%),
    radial-gradient(100% 80% at 100% 100%, rgba(18, 55, 100, 0.9), transparent 65%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--on-brand);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

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

.lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  /* The 404 makes the lockup a link home; it must not read as body copy in
     link blue with an underline through the wordmark. */
  color: inherit;
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--on-brand);
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.wordmark {
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wordmark b {
  color: var(--gold);
  font-weight: 700;
}

.langs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(221, 232, 247, 0.25);
  border-radius: 999px;
  background: rgba(11, 31, 61, 0.35);
}

.langs button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-brand-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.langs button[aria-pressed='true'] {
  background: var(--gold);
  color: var(--navy-deep);
}

.langs button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin: 0 0 20px;
  padding: 7px 16px;
  border: 1px solid rgba(244, 182, 61, 0.45);
  border-radius: 999px;
  background: rgba(244, 182, 61, 0.12);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 7.5vw, 62px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.rule {
  width: 72px;
  height: 5px;
  margin: 24px 0;
  border-radius: 999px;
  background: var(--gold);
}

.lead {
  margin: 0;
  max-width: 60ch;
  color: var(--on-brand-muted);
  font-size: clamp(16px, 2.2vw, 19px);
  font-weight: 400;
  line-height: 1.6;
}

.worlds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.worlds li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid rgba(221, 232, 247, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
  font-weight: 600;
}

.worlds span[aria-hidden='true'] {
  font-size: 17px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--on-brand-muted);
  font-size: 13px;
  font-weight: 400;
}

footer p {
  margin: 0;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow::before {
    animation: none;
  }
}

/* The 404's one addition: the way back. */
.home {
  align-self: flex-start;
  margin-top: 32px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.home:hover {
  background: var(--gold-soft);
}
