/* =========================
   Base Reset & Defaults
   ========================= */

* {
  box-sizing: border-box;
}

html {
  font-size: 18px; /* night-friendly base size */
}

body {
  background-color: #11131a; /* warmer than pure dark */
  color: #d8dce3; /* soft light, not pure white */
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    system-ui,
    sans-serif;
  line-height: 1.75;
  letter-spacing: 0.01em;
  margin: 0;
  padding: 0;
}

main {
  max-width: 640px; /* ideal reading width */
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

/* =========================
   Typography
   ========================= */

h1 {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  color: #eef1f6;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-top: 2.4rem;
  margin-bottom: 0.75rem;
  color: #e4e8ee;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1.4rem;
  color: #cfd4dd;
  font-size: 1rem;
  text-wrap: pretty;
}

/* =========================
   Links
   ========================= */

a {
  color: #9fb4ff;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* =========================
   Navigation
   ========================= */

nav {
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

nav a {
  margin-right: 1rem;
}

/* =========================
   Related Section
   ========================= */

.related {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.related ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.related li {
  margin-bottom: 0.6rem;
}

/* =========================
   Forms (Contact Page)
   ========================= */

form {
  margin-top: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #ccc;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 1rem;
  background: #161922;
  border: 1px solid #2a2d35;
  color: #e6e6e6;
  border-radius: 4px;
  font-size: 0.95rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #9aa7ff;
}

button {
  padding: 10px 16px;
  background: #2a2d35;
  color: #e6e6e6;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
}

button:hover {
  background: #34384a;
}

/* =========================
   Ad Slot
   ========================= */

.ad-slot {
  margin: 3rem 0;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}

.ad-slot::before {
  content: "Sponsored";
  display: block;
  font-size: 0.7rem;
  color: #8c93a3;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

/* =========================
   Footer & Meta
   ========================= */

footer {
  margin-top: 4rem;
  font-size: 0.85rem;
  color: #9aa1ad;
  text-align: center;
}

.page-meta {
  font-size: 0.85rem;
  color: #9aa1ad;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* =========================
   Accessibility & Comfort
   ========================= */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 17px;
  }

  main {
    padding-top: 2.5rem;
  }
}

@media (prefers-color-scheme: light) {
  body {
    background: #ffffff;
    color: #222;
  }

  h1,
  h2 {
    color: #000;
  }

  p {
    color: #333;
  }

  a {
    color: #4a5cff;
  }

  .related {
    border-top: 1px solid #ddd;
  }

  input,
  textarea {
    background: #f6f6f6;
    border: 1px solid #ccc;
    color: #222;
  }

  button {
    background: #e0e0e0;
    color: #000;
  }

  button:hover {
    background: #d0d0d0;
  }

  .ad-slot {
    background: rgba(0, 0, 0, 0.04);
  }

  .ad-slot::before {
    color: #666;
  }

  footer,
  .page-meta {
    color: #666;
  }
}