:root{
  /* Primary */
  --garnet:#660000;
  --gold:#F0B323;

  /* Secondary */
  --red:#A61A32;
  --green:#007680;
  --purple:#470A68;
  --blue:#00538E;
  --gold2:#B58500;

  /* Grays */
  --gray1:#EAEAEA;
  --gray2:#888B8D;
  --gray3:#D8CFC9;
  --gray4:#958A82;
  --gray5:#8B7E7A;

  --ink:#111;
  --bg:#fff;
}

/* Base */
*{box-sizing:border-box}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:linear-gradient(180deg, var(--gray1), #fff 320px);
  color:var(--ink);
  max-width:900px;
  margin:40px auto;
  padding:0 16px;
}
a{color:var(--blue)}
a:hover{opacity:.9}

/* Header band */
.qp-header{
  background:var(--garnet);
  color:#fff;                 /* WHITE text on garnet */
  border-radius:14px;
  padding:16px 16px;
  box-shadow:0 6px 18px rgba(0,0,0,.12);
  margin-bottom:16px;
}
.qp-header h1{margin:0; font-size:28px; letter-spacing:.2px}
.qp-header .sub{margin-top:6px; color:rgba(255,255,255,.85)}

/* Cards */
.card{
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  padding:14px;
  margin:14px 0;
  background:rgba(255,255,255,.92);
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}

/* Buttons */
.button,
button.button{
  display:inline-block;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.18);
  text-decoration:none;
  font-weight:600;
  cursor:pointer;
  transition:transform .03s ease, opacity .15s ease;
}
.button:active{transform:translateY(1px)}

/* Primary action: Gold background, BLACK text */
.button.primary{
  background:var(--gold);
  color:#000;                 /* BLACK text on gold */
  border-color:rgba(0,0,0,.25);
}

/* Secondary action: Garnet background, WHITE text */
.button.garnet{
  background:var(--garnet);
  color:#fff;                 /* WHITE text on garnet */
  border-color:rgba(255,255,255,.20);
}

/* Neutral action */
.button.neutral{
  background:#fff;
  color:var(--ink);
}

/* Small UI helpers */
.row{display:flex; gap:10px; flex-wrap:wrap}
.muted{color:var(--gray2); font-size:.92em}
input, textarea{
  width:100%;
  padding:10px;
  border:1px solid rgba(0,0,0,.18);
  border-radius:10px;
  font-size:16px;
  background:#fff;
}
textarea{min-height:160px}
code{
  background:var(--gray1);
  padding:2px 6px;
  border-radius:8px;
  word-break:break-all;
}
table{width:100%; border-collapse:collapse;}
td,th{padding:8px; border-bottom:1px solid rgba(0,0,0,.08); text-align:left;}
hr{border:none; border-top:1px solid rgba(0,0,0,.10); margin:16px 0}
