/* The site's gate (D628): one page in the site's look, Arabic first with its English line, light and dark by the
   visitor's system. The colours and fonts are the site's own (the Brand System's tokens). */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --glow: rgba(30, 190, 187, 0.14);
  --text: #14191d;
  --muted: #5a6671;
  --steam: #1ebebb;
  --button: #1ebebb;
  --button-hover: #17a9a6;
  --button-text: #14191d;
  --ring: #0e7a77;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1215;
    --glow: rgba(63, 211, 207, 0.12);
    --text: #f2f5f6;
    --muted: #b7c2c9;
    --steam: #3fd3cf;
    --button: #3fd3cf;
    --button-hover: #62dcd9;
    --button-text: #0e1215;
    --ring: #3fd3cf;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: radial-gradient(60rem 36rem at 50% 38%, var(--glow), transparent 70%), var(--bg);
  color: var(--text);
  font-family: Tajawal, "Titillium Web", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-inline-size: 40rem;
}

.logo img {
  display: block;
  block-size: 36px;
  inline-size: auto;
}

/* Three wisps of steam rising over the line: the kitchen at work. Still for a visitor who asks for less motion. */
.steam {
  display: flex;
  gap: 10px;
  block-size: 56px;
  align-items: flex-end;
  margin-block: 48px 8px;
}

.steam span {
  inline-size: 6px;
  block-size: 30px;
  border-radius: 999px;
  background: linear-gradient(to top, var(--steam), transparent);
  opacity: 0;
  animation: rise 2.4s ease-in-out infinite;
}

.steam span:nth-child(2) {
  block-size: 40px;
  animation-delay: 0.4s;
}

.steam span:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes rise {
  0% {
    transform: translateY(12px) scaleY(0.6);
    opacity: 0;
  }
  35% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-14px) scaleY(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steam span {
    animation: none;
    opacity: 0.7;
  }
}

h1 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.5rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.en {
  margin: 12px 0 0;
  font-family: "Titillium Web", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 3vw, 1.4rem);
  color: var(--muted);
}

.signin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-block-start: 40px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-text);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.signin:hover {
  background: var(--button-hover);
}

.signin:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

.signin [lang="en"] {
  font-family: "Titillium Web", system-ui, sans-serif;
  font-weight: 600;
}

.signin .sep {
  opacity: 0.55;
}
