/* =========================================================
   MOUX – Global Styles
   Dark/Light Theme with toggle
   ========================================================= */

:root {
  --bg: #0d0e11;
  --fg: #e9ecf1;
  --muted: #aab4c0;
  --card: #151821;
  --border: #2a3042;
  --accent: #67e8f9;
  --radius: 14px;
  --container: 980px;
  --btn-bg: #111425;
  --btn-fg: #e9ecf1;
  --btn-border: var(--border);
}

/* Light theme overrides */
body.light {
  --bg: #f7f9fc;
  --fg: #0d0e11;
  --muted: #555;
  --card: #ffffff;
  --border: #d0d6e0;
  --accent: #0066cc;
  --btn-bg: #eef2f8;        /* light button */
  --btn-fg: #0d0e11;        /* dark text */
  --btn-border: #cfd7e6;
}

/* Reset + Base */
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  transition: background 0.3s, color 0.3s;
}
h1, h2, h3 { margin: 0; }
a { color: var(--fg); }

/* Layout */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 16px;
  text-align: center;
}

/* Logo + Titles */
.logo {
  display: block;
  width: 120px;         /* or 100%, or use media queries */
  height: auto;
  margin: 2rem auto 0 auto; /* pulls it up + centers it */
  padding: 0;
  line-height: 0;
}
.logo-wrapper {
  margin-top: 0rem;        /* Tweak to taste, only needed if spacing persists */
}

/* Default is dark mode */
.logo-dark {
  display: none;
}
.logo-light {
  display: none;
}

/* Only switch to light mode when system prefers light */
@media (prefers-color-scheme: light) {
  .logo-dark {
    display: none;
  }
  .logo-light {
    display: block;
  }
}

h1 {
  margin: 4px 0;
  font-size: 34px;
}
.subtitle {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 18px;
}

/* Intro */
.intro {
  max-width: 760px;
  margin: 0 auto 26px;
}
.intro p { margin: 10px 0; }

.intro_copy {
  font-size: 20px;
  font-weight: 150;
}
/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px auto;
  max-width: 600px;
}
.divider_trans {
  border: none;
  border-top: 0px solid var(--border);
  margin: 32px auto;
  max-width: 600px;
}
/* Toolkit Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .2s ease;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.tile:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.tile .cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.tile .cta::after {
  content: "→";
  transition: transform .15s ease;
}

.tile:hover .cta::after {
  transform: translateX(2px);
}
/* Buttons */
.btn{
  margin-top: auto;
  align-self: flex-start;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}

/* Make the entire tile clickable */
.tile-link {
  text-decoration: none;           /* remove underline */
  color: inherit;                  /* keep text color */
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .2s ease;
}

/* Hover lift + nicer border */
.tile-link:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

/* Keyboard focus ring */
.tile-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* CTA line inside the tile */
.tile-link .cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--fg);
  opacity: .95;
}

/* add arrow automatically */
.tile-link .cta::after {
  content: "→";
  transform: translateX(0);
  transition: transform .15s ease;
}

.tile-link:hover .cta::after {
  transform: translateX(2px);
}

/* Contact form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span { font-size: 14px; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #10121a;
  color: var(--fg);
}
body.light .field input, body.light .field textarea { background: #fff; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Light theme tweak so arrow/text stay readable */
body.light .tile-link .cta { color: var(--fg); }
.btn:hover{
  border-color: var(--accent);
}

button.btn,
.actions button {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  padding: 10px 14px;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.actions button:hover {
  border-color: var(--accent);
}

/* Donation */
.donation {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}
.donation h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.donation-copy {
  margin: 0 auto 16px;
  color: var(--muted);
  line-height: 1.6;
}

/* Footer */
.foot {
  margin: 28px 0 6px;
  color: var(--muted);
  font-size: 14px;
}

/* Theme Toggle */
.theme-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--fg);
  transition: border 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); }

/* Responsive */
@media (max-width: 640px) {
  h1 { font-size: 28px; }