
/* ==========================================
   1. THEME VARIABLES
========================================== */

:root {
  color-scheme: dark;

  --bg: #12080a;
  --panel: #250f13;
  --red: #c32b3a;
  --text: #fff3f0;
  --muted: #c8a9ad;
}

/* ==========================================
   2. GLOBAL STYLES
========================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);

  /* Black background with subtle white grid */
  background-color: #000000;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.12) 1px,
      transparent 1px
    );

  background-size: 40px 40px;
}


/* ==========================================
   3. PAGE LAYOUT
========================================== */

.page {
  max-width: 1100px;
  margin: auto;
  padding: 54px 20px 28px;
}

/* ==========================================
   4. HEADER & LOGO
========================================== */

.masthead {
  text-align: center;
  margin-bottom: 38px;
}

.brand-logo {
  width: 100%;
  max-width: 250px;
  height: 120px;
  margin: 0 auto 15px;

  display: flex;
  justify-content: center;
  align-items: center;

  border-radius: 16px;
  overflow: hidden;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
}

.masthead h1 {
  margin: 8px 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.11em;
}

.intro {
  margin: 0;
  color: var(--muted);
}


/* ==========================================
   5. CARD GRID
========================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;

  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ==========================================
   6. TRADING CARD BASE
========================================== */

.trading-card {
  --accent: #e24b56;
  --accent2: #77212b;

  aspect-ratio: 5 / 7;
  min-width: 0;

  display: flex;
  flex-direction: column;

  padding: 10px;
  border: 2px solid #9b3b45;
  border-radius: 15px;

  background: linear-gradient(
    145deg,
    #5c2029,
    #1c0b11 45%,
    #4a1a22
  );

  box-shadow:
    0 14px 32px #0009,
    0 0 20px #bd283122;

  text-decoration: none;
  color: #fff;

  position: relative;
  isolation: isolate;
  overflow: hidden;

  transition:
    transform 0.22s,
    box-shadow 0.22s,
    border-color 0.22s;
}

/* Inner card border */

.trading-card::before {
  content: "";
  position: absolute;
  inset: 5px;

  border: 1px solid #ffffff45;
  border-radius: 10px;

  pointer-events: none;
}

/* Hover and keyboard focus */

.trading-card:hover,
.trading-card:focus-visible {
  transform: translateY(-8px) rotate(-1deg);
  border-color: var(--accent);

  box-shadow:
    0 24px 38px #000b,
    0 0 28px color-mix(
      in srgb,
      var(--accent),
      transparent 58%
    );
}

.trading-card:focus-visible {
  outline: 3px solid white;
  outline-offset: 4px;
}

/* ==========================================
   7. CARD HEADER
========================================== */

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 4px;

  padding: 7px 8px;

  font-size: clamp(0.48rem, 0.9vw, 0.68rem);
  font-weight: 800;
  letter-spacing: 0.13em;

  z-index: 1;
}

.card-top span:last-child {
  color: var(--accent);
}

/* ==========================================
   8. CARD ARTWORK
========================================== */


.art {
  flex: 1;
  min-height: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin: 3px 0;

  /* Remove the artwork frame */
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}


.emblem {
  font-size: clamp(2rem, 6vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.06em;

  color: #fff;
  text-shadow: 0 0 24px var(--accent);
}

.art-detail {
  font-size: clamp(0.55rem, 1vw, 0.75rem);
  letter-spacing: 0.24em;
  font-weight: 800;
  color: var(--accent);
}

/* ==========================================
   9. CARD FOOTER
========================================== */

.card-bottom {
  display: flex;
  flex-direction: column;
  gap: 5px;

  margin-top: 8px;
  padding: 11px 10px 12px;

  border-radius: 7px;
  border: 1px solid #ffffff30;

  background: linear-gradient(
    110deg,
    var(--accent2),
    #1b0d13
  );
}

.card-bottom strong {
  font-size: clamp(0.85rem, 1.8vw, 1.25rem);
}

.card-bottom small {
  font-size: clamp(0.58rem, 1vw, 0.78rem);
  color: #f1d9da;
}

/* ==========================================
   10. BRAND COLORS
========================================== */

/* TCGplayer */

.tcg {
  --accent: #3f9cf3;
  --accent2: #153c65;
}

/* eBay */

.ebay {
  --accent: #f4bf50;
  --accent2: #6e431d;
}

/* Instagram */

.instagram {
  --accent: #f16ca9;
  --accent2: #74224e;
}

/* YouTube */

.youtube {
  --accent: #ff4848;
  --accent2: #771e25;
}

/* TikTok */

.tiktok {
  --accent: #42e1e6;
  --accent2: #16545b;
}

/* Contact */

.contact {
  --accent: #e75d6c;
  --accent2: #6b2530;
}

/* ==========================================
   11. FOOTER
========================================== */

footer {
  text-align: center;
  color: #a67c82;

  font-size: 0.7rem;
  letter-spacing: 0.14em;

  margin-top: 42px;
}

/* ==========================================
   12. MOBILE RESPONSIVENESS
========================================== */


@media (max-width: 640px) {

  .page {
    padding: 30px 14px;
  }

  .masthead {
    margin-bottom: 28px;
  }

  .brand-logo {
    max-width: 180px;
    height: 90px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }

  .trading-card {
    padding: 6px;
    border-radius: 11px;
  }

  .card-top {
    padding: 6px 5px;
    font-size: 0.51rem;
  }

  .card-bottom {
    padding: 8px 7px;
  }

  .emblem {
    font-size: clamp(3.5rem, 15vw, 5rem);
  }
}


/* ==========================================
   13. EXTRA SMALL SCREENS
========================================== */



/* ==========================================
   14. ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
