/* =========================================================
   Galaxy Forge Gaming - styles.css
   One external stylesheet shared by every page.
   ========================================================= */

/* ---------- Color variables ---------- */
:root {
  --space: #141A3A;    /* deep navy, the "galaxy" */
  --sleeve: #2C3E8F;   /* card-sleeve blue */
  --gold: #F2B632;     /* foil gold accent */
  --paper: #F7F8FC;    /* light panel for reading */
  --ink: #2A2E45;      /* body text */
  --alert: #C0392B;    /* form errors */
}

/* ---------- Universal selector ----------
   Clears the browser's uneven default margins and padding so every
   element starts from the same spacing, then spacing is added back
   on purpose below. box-sizing keeps padding inside element widths. */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Page background + site font (body selector) ----------
   Navy background with two layers of small dots, like a starfield,
   to match the "Galaxy" theme. Content sits on a light panel (main)
   so text stays readable. */
body {
  background-color: var(--space);
  background-image:
    radial-gradient(rgba(247, 248, 252, 0.7) 1px, transparent 1.5px),
    radial-gradient(rgba(242, 182, 50, 0.5) 1px, transparent 1.5px);
  background-size: 90px 90px, 150px 150px;
  background-position: 0 0, 45px 70px;
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", Verdana, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ---------- Headings ---------- */
h1, h2, h3 {
  font-weight: 700;   /* Bootstrap lightens headings; keep them bold */
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  line-height: 1.2;
}

h1 {
  color: var(--sleeve);
  font-size: 2.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 4px solid var(--gold);
}

h2 {
  color: var(--sleeve);
  font-size: 1.5rem;
  margin: 2rem 0 0.75rem;
}

h3 {
  color: var(--space);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.5rem;
}

p { margin-bottom: 1rem; }

/* ---------- Bootstrap navbar (banner) ----------
   Bootstrap builds the layout and the mobile menu button;
   these rules put the site's navy and gold back on top. */
.site-navbar {
  background: var(--space);
  border-bottom: 4px solid var(--gold);
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--paper);
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Logo image: dashed gold border */
.brand img {
  width: 52px;
  height: 52px;
  padding: 2px;
  border: 2px dashed var(--gold);
  border-radius: 6px;
}

/* Menu button shown on small screens */
.site-navbar .navbar-toggler {
  border-color: var(--gold);
}

/* Descendant selector: space out the links so they are easy to click */
.site-navbar .nav-link {
  margin: 0.15rem 0.2rem;
  padding: 0.45rem 0.9rem;
  color: var(--paper);
  border-radius: 4px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

/* Pseudo-class: links grow slightly and change color on hover */
.site-navbar .nav-link:hover {
  background: var(--sleeve);
  color: var(--gold);
  transform: scale(1.08);
}

/* Highlights the page you are currently on */
.site-navbar .nav-link.active {
  background: var(--gold);
  color: var(--space);
  font-weight: 700;
}

/* Keyboard users see a clear outline when tabbing */
a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Main content panel ---------- */
main {
  max-width: 780px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--paper);
  border-radius: 8px;
}

main a { color: var(--sleeve); }
main a:hover { color: var(--space); }

main ul { margin: 0 0 1rem 1.5rem; }

/* Hero image: double gold border */
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 1.5rem;
  border: 6px double var(--gold);
  border-radius: 8px;
}

/* ---------- Class selector: .bio paragraphs on page1 ---------- */
.bio {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #3B4060;
}

/* UNIQUE RULE 1: related-links list.
   Each link gets a gold bar on the left so the list of outside
   resources scans quickly and reads as its own section. */
.link-list {
  list-style: none;
  margin-left: 0;
}

.link-list li {
  margin-bottom: 0.6rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--gold);
}

/* ---------- Contact form ----------
   Bootstrap's form-control, form-select, and validation classes do
   the layout and the red/green error styling. These rules only
   match the fonts and colors to the site. */
.form-label {
  font-weight: 700;
}

/* UNIQUE RULE 2: focused fields glow gold instead of Bootstrap's
   default blue, so the form matches the site's colors. */
.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(242, 182, 50, 0.35);
}

/* Recolor Bootstrap's primary button to the site's blue */
.btn-primary {
  --bs-btn-bg: var(--sleeve);
  --bs-btn-border-color: var(--sleeve);
  --bs-btn-hover-bg: var(--space);
  --bs-btn-hover-border-color: var(--space);
  --bs-btn-active-bg: var(--space);
  --bs-btn-active-border-color: var(--space);
  font-weight: 700;
  padding: 0.6rem 1.4rem;
}

/* ---------- ID selector: footer ----------
   Styled differently from the rest of the page: smaller, italic,
   gold text in the heading font. */
#site-footer {
  background: #0D1230;
  border-top: 4px solid var(--gold);
  color: var(--gold);
  font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 1rem;
}

#site-footer p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
  main {
    margin: 1rem 0;
    padding: 1.25rem;
  }

  h1 { font-size: 1.8rem; }
}

/* Respect visitors who turn off animations */
@media (prefers-reduced-motion: reduce) {
  .site-navbar .nav-link { transition: none; }
  .site-navbar .nav-link:hover { transform: none; }
}
