:root {
  color-scheme: dark;
  --ink: #05050a;
  --panel: #121016;
  --line: #272232;
  --grape: #a855f7;
  --text: #f4f2f8;
  --muted: rgba(244, 242, 248, 0.45);
  --body: rgba(244, 242, 248, 0.75);
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #ffffff;
  --panel: #f7f8fa;
  --line: #e5e7eb;
  --grape: #16a34a;
  --text: #111827;
  --muted: rgba(17, 24, 39, 0.45);
  --body: rgba(17, 24, 39, 0.75);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(90% 45% at 50% 0%, rgba(124, 58, 237, 0.16), transparent 60%),
    radial-gradient(70% 40% at 90% 20%, rgba(59, 130, 246, 0.1), transparent 65%),
    var(--ink);
  -webkit-font-smoothing: antialiased;
}

html[data-theme="light"] body {
  background:
    radial-gradient(90% 45% at 50% 0%, rgba(22, 163, 74, 0.1), transparent 60%),
    var(--ink);
}

.wrap {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
}

.home {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.home:hover {
  color: var(--text);
}

main {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--body);
  text-wrap: pretty;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

p,
ul,
ol {
  margin: 0 0 0.75rem;
}

ul,
ol {
  padding-inline-start: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--grape);
}

a:hover {
  opacity: 0.85;
}

.muted {
  color: var(--muted);
  font-size: 0.75rem;
}

.card {
  margin: 0.75rem 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}

.card h2 {
  margin-top: 0;
}

.steps {
  list-style: none;
  padding: 0;
}

.steps li {
  margin: 0.5rem 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}

.email {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  margin-top: 2.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.links a:hover {
  color: var(--text);
}

.links span {
  opacity: 0.5;
}
