/* ===== 1. Variables: change colors and sizes in one place ===== */
:root {
  --color-bg: #000000;          /* page background */
  --color-surface: #2a2b30;     /* cards, header */
  --color-text: #e6e8ef;        /* main text */
  --color-muted: #9aa0b0;       /* secondary text */
  --color-accent: #4567df;      /* links, button */
  --color-accent-hover: #8ba4ff;
  --color-border: #2a2e3b;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-code: "JetBrains Mono", Consolas, monospace;

  --max-width: 64rem;
  --radius: 8px;
}

/* ===== 2. Reset: make sizing predictable ===== */
*,
*::before,
*::after {
  box-sizing: border-box;   /* width includes padding and border */
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ===== 3. Shared elements ===== */
a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

code {
  font-family: var(--font-code);
  background: var(--color-surface);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Center content and keep lines readable */
.site-header,
main,
.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;           /* auto left/right margins center the block */
  padding: 0 1.5rem;
}

/* ===== 4. Header ===== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-text);
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--color-muted);
  font-weight: 500;
}

nav a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* ===== 5. Hero ===== */
.hero {
  text-align: center;
  padding: 5rem 0 4rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);  /* scales with screen width */
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero p {
  color: var(--color-muted);
  font-size: 1.2rem;
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.button {
  display: inline-block;    /* lets a link take padding like a button */
  background: var(--color-accent);
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.button:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
  text-decoration: none;
}

/* ===== 6. Feature cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* three equal columns */
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.card p {
  color: var(--color-muted);
  margin: 0;
}

/* ===== 7. Status ===== */
.status {
  padding-bottom: 4rem;
}

.status h2 {
  font-size: 1.5rem;
}

.status ul {
  list-style: none;         /* the emoji already act as bullets */
  padding: 0;
}

.status li {
  padding: 0.4rem 0;
}

.status p {
  color: var(--color-muted);
}

/* ===== 8. Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ===== 9. Phones: stack things vertically ===== */
@media (max-width: 700px) {
  .site-header {
    flex-direction: column;   /* logo above nav instead of beside it */
    gap: 0.75rem;
  }

  .features {
    grid-template-columns: 1fr;  /* one card per row */
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }
}