/* Include padding & border in the set width/height */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
}

:root {
  --bg: #f6f8ff;
  --ink: #1a1a1a;
  --brand: #3a6df0;
  --muted: #6b7280;
  --surface: #ffffff;
  --border: #e5e7eb;
}

body { background: var(--bg); }

/* NAV (will become flex later) */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px; /* padding is inside the border */
}
.site-nav .brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  margin-right: 12px;
}
.site-nav .menu {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0; /* margin sits outside the border */
}
.site-nav .menu li { margin: 4px 0; }
.site-nav .menu a {
  text-decoration: none;
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 6px;
}
.site-nav .menu a:hover { background: #eef2ff; }

.flex-row {
  display: flex;           /* turn on flex layout */
  flex-direction: row;     /* main axis = left→right */
  align-items: center;     /* center on cross axis (vertical) */
  gap: 12px;               /* space between children */
}

.site-nav .brand { margin-right: auto; } /* pushes menu to the right */
.site-nav .menu { margin: 0; }           /* reset margin for flex row */
.site-nav .menu li { margin: 0; }        /* gap handles spacing now */
.site-nav .menu { display: flex; gap: 8px; }

/* MAIN */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}

.intro {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.cards { /* will become flex later */ }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.card .btn {
  display: inline-block;
  background: var(--brand);
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 8px;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 24px;
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
}