/* ==============================
   Global Reset & Base
   ============================== */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: #111827;
  background-color: #ffffff;
  line-height: 1.65;
}

/* ==============================
   Layout
   ============================== */

main {
  max-width: 760px;
  margin: 64px auto;
  padding: 0 20px;
}

/* ==============================
   Typography
   ============================== */

h1 {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #111827;
}

p {
  font-size: 1rem;
  margin: 0 0 1.25rem 0;
  color: #374151;
}

/* ==============================
   Subtle Brand Accent
   ============================== */

h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background-color: #7c3aed; /* soft purple */
  margin-top: 12px;
  border-radius: 2px;
}

/* ==============================
   Links (if any later)
   ============================== */

a {
  color: #7c3aed;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==============================
   Footer (optional future)
   ============================== */

footer {
  margin-top: 64px;
  font-size: 0.875rem;
  color: #6b7280;
}

/* ==============================
   Mobile Optimization
   ============================== */

@media (max-width: 640px) {
  main {
    margin: 40px auto;
  }

  h1 {
    font-size: 1.9rem;
  }
}

/* ==============================
   Dark Mode (System Preference)
   ============================== */

@media (prefers-color-scheme: dark) {

  body {
    background-color: #0b0f19;
    color: #e5e7eb;
  }

  main {
    background-color: transparent;
  }

  h1 {
    color: #f9fafb;
  }

  h1::after {
    background-color: #a78bfa; /* softer purple for dark */
  }

  p {
    color: #c7cbd4;
  }

  a {
    color: #a78bfa;
  }

  footer {
    color: #9ca3af;
  }
}