/* ======================================================
   BloodBound — Core Styles
   Dark fantasy / clean UI
   ====================================================== */

:root {
  --bg: #0b0d12;
  --bg-soft: #11151c;
  --card: #151a23;
  --border: #232a36;

  --text: #e6e8ee;
  --muted: #9aa3b2;

  --accent: #b91c1c; /* blood red */
  --accent-soft: rgba(185, 28, 28, 0.15);

  --radius: 14px;
  --radius-sm: 10px;

  --max-width: 1200px;
}

/* ---------------- Reset ---------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -200px, #1a1f2b, var(--bg));
  color: var(--text);
  line-height: 1.6;
}

/* ---------------- Layout ---------------- */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

main.wrap {
  flex: 1;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------------- Typography ---------------- */

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

h2 {
  font-size: 1.25rem;
}

p {
  margin: 0.25rem 0 0.75rem;
}

.muted {
  color: var(--muted);
}

/* ---------------- Links ---------------- */

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: #fff;
}

/* ---------------- Header / Nav ---------------- */

.header {
  background: linear-gradient(to bottom, #0f131b, #0b0d12);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.nav a:hover {
  background: var(--accent-soft);
  color: #fff;
}

/* ---------------- Cards ---------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  background: linear-gradient(180deg, #171c26, var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(185, 28, 28, 0.08),
    transparent
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card strong {
  color: #fff;
}

/* ---------------- Footer ---------------- */

.footer {
  margin-top: auto;
  background: #0b0d12;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
  margin-left: 0.75rem;
}

.footer a:hover {
  color: #fff;
}

/* ---------------- Utilities ---------------- */

code {
  background: #0f131b;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #eab308;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 640px) {
  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
