/* Top 10 Commander Deck Boxes - stylesheet
   Palette: near-black base + gold/parchment accents + a hint of the 5-color mana pie */

:root {
  --ink-black: #0e0b12;
  --panel: #17131d;
  --panel-light: #221c2b;
  --gold: #d8b768;
  --gold-bright: #f0d28a;
  --parchment: #efe6d3;
  --muted: #a99fb0;
  --border: #33293f;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --radius: 14px;

  /* mana-pie accent strip */
  --mana-w: #efe6d3;
  --mana-u: #4fa8d8;
  --mana-b: #6b5b7a;
  --mana-r: #d1553d;
  --mana-g: #4f8f5c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Georgia, "Times New Roman", serif;
  background: var(--ink-black);
  color: var(--parchment);
  line-height: 1.55;
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(180deg, #1c1522, var(--ink-black));
  border-bottom: 3px solid var(--gold);
  padding: 48px 0 40px;
  text-align: center;
  position: relative;
}

.site-header::after {
  content: "";
  display: block;
  height: 4px;
  margin: 0 auto;
  max-width: 860px;
  background: linear-gradient(90deg, var(--mana-w), var(--mana-u), var(--mana-b), var(--mana-r), var(--mana-g));
}

.site-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 10px;
}

.site-header h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold-bright);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.site-header .subtitle {
  margin: 0 auto;
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  font-family: "Segoe UI", sans-serif;
}

/* Intro */
.intro {
  padding: 32px 0 8px;
}

.intro p {
  color: var(--muted);
  font-size: 1.05rem;
  font-family: "Segoe UI", sans-serif;
}

/* Ad slots */
.ad-slot {
  margin: 28px 0;
  padding: 14px;
  border: 1px dashed #4a3d5c;
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
  list-style: none;
}

.ad-slot--inline {
  margin: 0;
}

.ad-label {
  display: block;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Product list */
.product-list {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

/* thin mana-colored edge, evokes a card frame */
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--gold), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: var(--panel-light);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.rank {
  position: absolute;
  top: -10px;
  left: -10px;
  background: var(--gold);
  color: var(--ink-black);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  font-family: "Segoe UI", sans-serif;
}

.product-body h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: var(--gold-bright);
}

.price {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--gold);
  font-family: "Segoe UI", sans-serif;
}

.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--ink-black);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 4px;
  font-family: "Segoe UI", sans-serif;
}

.product-body p {
  margin: 0 0 10px;
  color: var(--parchment);
  font-family: "Segoe UI", sans-serif;
}

.product-body .why {
  color: var(--muted);
  font-size: 0.95rem;
}

.product-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--gold-bright);
  font-weight: 700;
  text-decoration: none;
  font-family: "Segoe UI", sans-serif;
}

.product-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Buying guide */
.buying-guide {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  box-shadow: var(--shadow);
  font-family: "Segoe UI", sans-serif;
}

.buying-guide h2 {
  margin-top: 0;
  color: var(--gold-bright);
}

.buying-guide ul {
  margin: 0;
  padding-left: 20px;
  color: var(--parchment);
}

.buying-guide li {
  margin-bottom: 8px;
}

/* Footer */
.site-footer {
  background: #100c15;
  color: var(--muted);
  padding: 28px 0;
  margin-top: 40px;
  font-size: 0.85rem;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 4px 0;
}

/* Responsive */
@media (max-width: 560px) {
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-card img {
    height: 180px;
  }

  .rank {
    top: 10px;
    left: 10px;
  }
}
