/* desk.moghalis.com. Developed by Mohamed Moghalis (https://moghalis.com). */

@font-face {
  font-family: "Readex Pro";
  src: url("fonts/ReadexPro-Variable.ttf") format("truetype");
  font-weight: 160 700;
  font-display: swap;
}

:root {
  --canvas: #130f0c;
  --surface: #1d1712;
  --surface-2: #2a2119;
  --ink: #f7efe4;
  --ink-2: #aa9a89;
  --ink-3: #948576;
  --line: rgba(247, 239, 228, 0.1);
  --line-strong: rgba(247, 239, 228, 0.18);
  --signal: #ffb23e;
  --signal-hover: #ffc160;
  --on-signal: #1a1005;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Readex Pro", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

/* ---------------------------------------------------------------- top bar */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img { width: 30px; height: 30px; border-radius: 8px; }

.lang {
  color: var(--ink-2);
  font-size: 15px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.lang:hover { color: var(--ink); border-color: var(--line-strong); }

/* ---------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-block: 40px 72px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero .lede {
  margin: 0 0 30px;
  color: var(--ink-2);
  font-size: clamp(18px, 2.1vw, 21px);
  max-width: 34ch;
}

.orbit {
  position: relative;
  justify-self: center;
  width: min(380px, 80vw);
  aspect-ratio: 1;
}

.orbit::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 178, 62, 0.28), rgba(255, 178, 62, 0) 70%);
  filter: blur(18px);
}

.orbit img {
  position: relative;
  width: 100%;
  height: 100%;
  animation: settle 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes settle {
  from { opacity: 0; transform: rotate(-24deg) scale(0.92); }
  to { opacity: 1; transform: none; }
}

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

/* ---------------------------------------------------------------- downloads */

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.download {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.download h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.download .meta {
  margin: 0 0 12px;
  color: var(--ink-3);
  font-size: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--signal);
  color: var(--on-signal);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover { background: var(--signal-hover); }

.button svg { width: 20px; height: 20px; flex: none; }

/* ---------------------------------------------------------------- sections */

section { padding-block: 56px; border-top: 1px solid var(--line); }

section > h2 {
  margin: 0 0 28px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts h3 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.facts p { margin: 0; color: var(--ink-2); font-size: 16px; }

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.steps h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }

.steps ol {
  margin: 0;
  padding-inline-start: 22px;
  color: var(--ink-2);
  font-size: 16px;
}

.steps li + li { margin-top: 6px; }

.steps li::marker { color: var(--signal); font-weight: 600; }

/* ---------------------------------------------------------------- footer */

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
}

footer a { color: var(--ink-2); }
footer a:hover { color: var(--signal); }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-block: 16px 48px; }
  .orbit { order: -1; width: min(240px, 60vw); }
  .downloads, .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
}
