/* ============================================================
   Advantage Sports Cards
   One stylesheet. Every colour and size is a token at the top —
   change a token here and it changes everywhere on the site.
   ============================================================ */

:root{
  /* This site is deliberately single-theme dark. Telling the browser so is what
     makes it paint its own furniture to match: scrollbars, form controls, the
     spinner in a number field, the default text-selection colour. Without it
     the browser assumes light and draws a pale scrollbar down a near-black
     page — which is the actual reason the scrollbar looked wrong, rather than
     anything to do with scrollbar CSS. */
  color-scheme: dark;

  /* surfaces, darkest to lightest */
  --bg:#14130F;
  --surface:#1C1B16;
  --surface-2:#24231C;
  --line:#302E25;
  --line-2:#4A4738;

  /* text, brightest to dimmest */
  --ink:#F0EDE4;
  --ink-2:#A9A493;
  --ink-3:#7C7767;

  /* the one accent — gold, used sparingly */
  --accent:#C9A45C;
  --accent-2:#AD8A45;
  --accent-ink:#14130F;
  --accent-wash:#26221A;

  /* The ground a panel sits on. Redefined inside alternating sections below,
     which is what lets one rule per component work on both grounds. */
  --panel:#1C1B16;

  /* placeholder panel where a photo is missing */
  --slab:linear-gradient(150deg,#282619 0%,#1A1913 100%);
  --slab-ink:#6E6857;

  --f-display:"Marcellus",Georgia,"Times New Roman",serif;
  --f-body:"Karla",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;

  --r:2px;
  --shadow:0 1px 2px rgba(0,0,0,.5), 0 18px 44px -26px rgba(0,0,0,1);
  --label-track:.22em;
  --wrap:1120px;
}

/* ---------------- scrollbars ----------------
   color-scheme above already makes these dark. This tints them to the palette
   so the bar reads as part of the page rather than as system chrome. The thumb
   is --line-2, not the accent: DESIGN.md spends gold on four things (a price, a
   rank, an active state, the mark) and a scrollbar is not one of them.
   Width is left at the browser default on purpose — "thin" is fashionable and
   shrinks the target you have to hit with a mouse. */
html{
  scrollbar-color: var(--line-2) var(--bg);
}

/* Safari below 26.2 does not support scrollbar-color. The @supports guard
   matters: without it these pseudo-elements override the standard property in
   browsers that understand both, and you end up maintaining two rules that
   disagree. */
@supports not (scrollbar-color: auto){
  ::-webkit-scrollbar{width:12px;height:12px}
  ::-webkit-scrollbar-track{background:var(--bg)}
  ::-webkit-scrollbar-thumb{
    background:var(--line-2);border-radius:99px;
    border:3px solid var(--bg);
  }
  ::-webkit-scrollbar-thumb:hover{background:var(--ink-3)}
  ::-webkit-scrollbar-corner{background:var(--bg)}
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--f-body);
  font-size:15.5px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit}
img{max-width:100%;display:block}
h1,h2,h3,h4{
  font-family:var(--f-display);font-weight:400;line-height:1.12;
  letter-spacing:.005em;margin:0;text-wrap:balance;
}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.label{
  font-family:var(--f-mono);font-size:10px;letter-spacing:var(--label-track);
  text-transform:uppercase;color:var(--ink-3);
}
.skip{
  position:absolute;left:-9999px;top:0;background:var(--accent);color:var(--accent-ink);
  padding:10px 16px;z-index:100;
}
.skip:focus{left:0}

/* ---------------- header ---------------- */
.topbar{border-bottom:1px solid var(--line);background:var(--surface);position:sticky;top:0;z-index:20}
.topbar-in{
  display:flex;align-items:center;justify-content:space-between;gap:22px;
  padding:14px 24px;max-width:var(--wrap);margin:0 auto;flex-wrap:wrap;
}
.mark{display:flex;align-items:center;gap:12px;text-decoration:none}
/* The badge is inline SVG so it inherits the tokens above — change --accent
   and the logo changes with the rest of the site. Geometry is the 32px
   drawing from tools/brand; do not swap in the 64px one, its rules are
   too fine at this size. */
.mark-badge{width:34px;height:34px;flex:none;display:block}
.mark-txt{display:block}
.mark-name{
  font-family:var(--f-display);font-size:16px;line-height:1;display:block;
  text-transform:uppercase;letter-spacing:.16em;
}
.mark-rule{display:block;height:1px;background:var(--line-2);margin-top:6px}
.mark-sub{
  font-family:var(--f-mono);font-size:8.5px;letter-spacing:.30em;
  text-transform:uppercase;color:var(--accent);display:block;margin-top:5px;
}
nav.pages{display:flex;gap:3px;flex-wrap:wrap}
nav.pages a{
  font-size:13.5px;font-weight:500;color:var(--ink-2);padding:7px 12px;
  border-radius:var(--r);text-decoration:none;
}
nav.pages a:hover{color:var(--ink);background:var(--surface-2)}
nav.pages a[aria-current="page"]{color:var(--accent);background:var(--accent-wash)}

/* ---------------- buttons ---------------- */
.btn{
  display:inline-flex;align-items:center;gap:8px;text-decoration:none;cursor:pointer;
  font-family:var(--f-body);font-size:13.5px;font-weight:600;
  padding:10px 17px;border-radius:var(--r);border:1px solid transparent;
  background:var(--accent);color:var(--accent-ink);
}
.btn:hover{background:var(--accent-2)}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line-2)}
.btn.ghost:hover{border-color:var(--accent);color:var(--accent);background:transparent}
.btn.sm{padding:7px 13px;font-size:12.5px}

/* ---------------- sections ---------------- */
/* No rule between sections. 52px of padding on each side of the join is 104px
   of space, which separates them on its own — the hairline was adding a line
   the eye had to account for without telling it anything the whitespace had
   not already said. The hairlines that remain are the ones doing real work:
   the header and footer edges, where chrome meets content, and the gap:1px
   grids where cells genuinely share a border. */
section{padding:40px 0}

/* Alternating grounds instead of a divider. This is how Apple separates
   sections — their homepage sections have zero padding and no rule, and the
   ground changes instead. Contrast and space are interchangeable, so buying
   the boundary with contrast lets the gap stay tight.
   --panel flips with it so cards never sit on their own colour. */
main > section:nth-of-type(even){
  background:var(--surface);
  --panel:var(--surface-2);
}
.sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.sec-head h2{font-size:clamp(21px,2.6vw,27px)}
.sec-intro{color:var(--ink-2);max-width:64ch;margin:0 0 26px}

/* ---------------- hero ---------------- */
.hero{padding:92px 0 78px}
.hero-grid{display:grid;gap:38px;grid-template-columns:1fr;align-items:center}
@media(min-width:900px){.hero-grid{grid-template-columns:1.15fr .85fr;gap:56px}
  /* No hero image yet: let the headline use the full width rather than
     leaving an empty column where a picture would go. */
  .hero-grid:has(.herofig[hidden]){grid-template-columns:1fr}
  .hero-grid:has(.herofig[hidden]) .lede{max-width:62ch}
  .hero-grid:has(.herofig[hidden]) .trust{max-width:760px}}
.hero h1{font-size:clamp(34px,5.8vw,56px);margin-bottom:16px}
.hero .lede{font-size:17px;color:var(--ink-2);max-width:47ch;margin:0 0 26px}
.hero-cta{display:flex;gap:11px;flex-wrap:wrap}
.hero-eyebrow{margin-bottom:14px;display:block}

.trust{
  display:grid;grid-template-columns:repeat(2,1fr);gap:1px;margin-top:36px;
  background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;
}
@media(min-width:620px){.trust{grid-template-columns:repeat(4,1fr)}}
.trust > div{background:var(--panel);padding:15px 16px}
.trust .n{
  font-family:var(--f-display);font-size:24px;line-height:1.1;color:var(--accent);
  font-variant-numeric:tabular-nums;display:block;
}
.trust .k{margin-top:6px;display:block}

.herofig-ph,.herofig img{
  aspect-ratio:4/5;width:100%;border-radius:var(--r);border:1px solid var(--line);
  background:var(--slab);box-shadow:var(--shadow);
}
.herofig-ph{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:28px}
.herofig-note{font-size:12.5px;color:var(--slab-ink);line-height:1.7;max-width:26ch}
.herofig img{object-fit:cover}

/* ---------------- rank band ---------------- */
.ranks{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;grid-template-columns:1fr}
@media(min-width:700px){.ranks{grid-template-columns:repeat(3,1fr)}}
.rank{background:var(--panel);padding:22px 22px 20px;display:flex;flex-direction:column;gap:5px}
.rank .pct{font-family:var(--f-display);font-size:32px;line-height:1;color:var(--accent);font-variant-numeric:tabular-nums}
.rank .cat{font-size:14.5px;font-weight:600;margin-top:5px}
.rank .fig{font-family:var(--f-mono);font-size:11px;color:var(--ink-3);font-variant-numeric:tabular-nums}
.src{margin-top:14px;display:block}

/* ---------------- why us ---------------- */
.whyus{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;grid-template-columns:1fr}
@media(min-width:760px){.whyus{grid-template-columns:repeat(2,1fr)}}
.why{background:var(--panel);padding:26px 26px 28px;display:flex;flex-direction:column;gap:9px}
.why h3{font-size:17px}
.why p{margin:0;font-size:14px;color:var(--ink-2);max-width:52ch}

/* ---------------- card grids ---------------- */
.grid{display:grid;gap:20px;grid-template-columns:repeat(2,1fr)}
@media(min-width:760px){.grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1000px){.grid{grid-template-columns:repeat(4,1fr)}}
.card{
  background:var(--panel);border:1px solid var(--line);border-radius:var(--r);
  overflow:hidden;display:flex;flex-direction:column;
  transition:transform .18s ease,border-color .18s ease;
}
.card:hover{transform:translateY(-3px);border-color:var(--line-2)}
.ph{
  position:relative;aspect-ratio:5/7;background:var(--slab);display:grid;place-items:center;
  padding:14px;border-bottom:1px solid var(--line);text-align:center;
}
.ph span{font-family:var(--f-mono);font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:var(--slab-ink);line-height:1.7}
.ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ph.hasimg span{display:none}
.card-b{padding:13px 14px 15px;display:flex;flex-direction:column;gap:7px;flex:1}
.card-set{font-family:var(--f-mono);font-size:9.5px;letter-spacing:.11em;text-transform:uppercase;color:var(--ink-3)}
.card-name{font-family:var(--f-display);font-size:15px;line-height:1.25}
.card-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:6px}
.price{font-family:var(--f-display);font-size:17px;color:var(--accent);font-variant-numeric:tabular-nums}
.grade-tag{
  font-family:var(--f-mono);font-size:9px;letter-spacing:.1em;text-transform:uppercase;
  padding:3px 7px;border-radius:var(--r);border:1px solid var(--line-2);color:var(--ink-2);white-space:nowrap;
}

/* ---------------- highlights ---------------- */
.highlights{display:grid;gap:20px;grid-template-columns:1fr;margin-bottom:34px}
@media(min-width:820px){.highlights{grid-template-columns:repeat(3,1fr)}}
.hl{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;display:flex;flex-direction:column}
.hl .ph{aspect-ratio:4/5}
.hl-b{padding:20px 22px 22px;display:flex;flex-direction:column;gap:7px;flex:1}
.hl-px{font-family:var(--f-display);font-size:28px;line-height:1;color:var(--accent);font-variant-numeric:tabular-nums}
.hl h3{font-size:17px}
.hl-set{font-family:var(--f-mono);font-size:10px;letter-spacing:.11em;text-transform:uppercase;color:var(--ink-3)}
.hl-spec{font-size:13.5px;font-weight:600;color:var(--ink)}
.hl p{margin:0;font-size:13.5px;color:var(--ink-2)}

/* ---------------- carry grid ---------------- */
.carry{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;grid-template-columns:1fr}
@media(min-width:700px){.carry{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1000px){.carry{grid-template-columns:repeat(3,1fr)}}
.carry-cell{background:var(--panel);padding:24px 24px 26px;display:flex;flex-direction:column;gap:8px}
.carry-cell h3{font-size:17px}
.carry-cell .sets{font-size:13.5px;color:var(--ink-2)}
.carry-cell .eg{
  font-family:var(--f-mono);font-size:10.5px;color:var(--ink-3);line-height:1.65;
  margin-top:4px;padding-top:10px;border-top:1px solid var(--line);
}

/* ---------------- steps ---------------- */
.steps{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;grid-template-columns:1fr}
@media(min-width:640px){.steps{grid-template-columns:repeat(2,1fr)}}
@media(min-width:980px){.steps{grid-template-columns:repeat(4,1fr)}}
.step{background:var(--panel);padding:26px 22px 24px;display:flex;flex-direction:column;gap:11px}
.step-ico{width:42px;height:42px;border-radius:var(--r);background:var(--accent-wash);color:var(--accent);display:grid;place-items:center;flex:none}
.step-ico svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.step-n{font-family:var(--f-mono);font-size:10px;letter-spacing:.14em;color:var(--ink-3)}
.step h3{font-size:16px}
.step p{margin:0;font-size:13.5px;color:var(--ink-2)}

/* ---------------- band ---------------- */
.band{
  background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:32px 34px;
  display:flex;gap:26px;flex-wrap:wrap;align-items:center;justify-content:space-between;
}
.band-t{max-width:56ch}
.band h2{font-size:clamp(19px,2.3vw,24px);margin-bottom:8px}
.band p{margin:0;color:var(--ink-2);font-size:14.5px}

/* ---------------- table ---------------- */
.tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r);background:var(--panel)}
table{border-collapse:collapse;width:100%;min-width:620px;font-size:14px}
th{
  text-align:left;font-family:var(--f-mono);font-size:9.5px;letter-spacing:.13em;text-transform:uppercase;
  color:var(--ink-3);font-weight:500;padding:11px 16px;border-bottom:1px solid var(--line);white-space:nowrap;
}
td{padding:12px 16px;border-bottom:1px solid var(--line);vertical-align:top}
tr:last-child td{border-bottom:none}
td.num{font-variant-numeric:tabular-nums;text-align:right;font-weight:600;color:var(--accent);white-space:nowrap}
td.sp{font-family:var(--f-mono);font-size:11.5px;color:var(--ink-3);white-space:nowrap}
a.itemlink{color:var(--ink);text-decoration:none;font-weight:600;border-bottom:1px solid transparent}
a.itemlink:hover{color:var(--accent);border-bottom-color:var(--accent)}
.tablefoot{display:flex;flex-wrap:wrap;gap:12px 22px;align-items:center;justify-content:space-between;margin-top:18px}

/* ---------------- testimonials ---------------- */
.quotes{display:grid;gap:18px;grid-template-columns:1fr}
@media(min-width:700px){.quotes{grid-template-columns:repeat(2,1fr)}}
.quote{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:20px 22px;display:flex;flex-direction:column;gap:11px;margin:0}
.stars{color:var(--accent);font-size:13px;letter-spacing:.14em}
.quote p{margin:0;font-size:14.5px;line-height:1.6}
.quote .by{font-family:var(--f-mono);font-size:10px;letter-spacing:.08em;color:var(--ink-3);margin-top:auto;line-height:1.7}

/* ---------------- shop tiles ---------------- */
.tiles{display:grid;gap:14px;grid-template-columns:repeat(2,1fr)}
@media(min-width:760px){.tiles{grid-template-columns:repeat(3,1fr)}}
.tile{
  display:flex;flex-direction:column;gap:6px;text-decoration:none;padding:20px;
  background:var(--panel);border:1px solid var(--line);border-radius:var(--r);transition:border-color .18s ease;
}
.tile:hover{border-color:var(--accent)}
/* Icon badge. Small and monochrome on purpose -- it is a scanning aid, not
   decoration competing with the card photos further down the page. */
.tile .tico{
  display:flex;align-items:center;justify-content:center;width:40px;height:40px;
  border-radius:9px;background:var(--accent-wash);border:1px solid var(--line-2);
  color:var(--accent);margin-bottom:4px;transition:all .18s ease;
}
.tile .tico svg{width:23px;height:23px;display:block}
.tile:hover .tico{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.tile .tname{font-family:var(--f-display);font-size:16px}
.tile .tmeta{font-size:13px;color:var(--ink-2)}
.tile .tgo{font-family:var(--f-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-top:6px}
.chips{display:flex;flex-wrap:wrap;gap:9px}
.qchip{
  display:inline-flex;align-items:center;text-decoration:none;
  font-family:var(--f-mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;
  padding:9px 15px;border-radius:99px;border:1px solid var(--line-2);color:var(--ink-2);
  background:var(--panel);transition:all .16s ease;
}
.qchip:hover{border-color:var(--accent);color:var(--accent)}
/* A group label sits between the page's h2 (21-27px) and the tile names it
   groups (16px). At 16px it was the same size as the tiles themselves, which
   inverted the hierarchy: the label looked like one more item rather than the
   heading over them. */
.grouphead{font-size:20px;margin-bottom:16px}
.grouphead + .tiles{margin-bottom:38px}

/* ---------------- prose / about ---------------- */
.prose{max-width:66ch}
.prose p{margin:0 0 16px;color:var(--ink-2)}
.prose p strong{color:var(--ink)}
.pull{border-left:2px solid var(--accent);padding-left:18px;margin:26px 0;font-size:17px;color:var(--ink)}
.bios{display:grid;gap:22px;grid-template-columns:1fr;margin-top:8px}
@media(min-width:760px){.bios{grid-template-columns:repeat(2,1fr)}}
.bio{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:24px}
.bio h3{font-size:19px;margin-bottom:3px}
.bio .role{display:block;margin-bottom:13px}
.bio p{margin:0 0 11px;font-size:14.5px;color:var(--ink-2)}
.bio ul{margin:0;padding-left:17px;font-size:13.5px;color:var(--ink-2)}
.bio li{margin-bottom:4px}

/* ---------------- contact ---------------- */
.contact{display:grid;gap:30px;grid-template-columns:1fr}
@media(min-width:820px){.contact{grid-template-columns:1fr 1fr;gap:48px}}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:15px}
.field label{font-family:var(--f-mono);font-size:9.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--ink-3)}
.field input,.field textarea{
  font-family:var(--f-body);font-size:14.5px;color:var(--ink);background:var(--bg);
  border:1px solid var(--line-2);border-radius:var(--r);padding:10px 12px;width:100%;
}
.field textarea{min-height:110px;resize:vertical}
.hp{position:absolute;left:-9999px}
.formnote{font-size:12.5px;color:var(--ink-3);margin:11px 0 0}
#contactSend[disabled]{opacity:.6;cursor:default}
.formstatus{
  margin-top:18px;padding:14px 16px;border-radius:var(--r);font-size:14px;line-height:1.55;
  border:1px solid var(--line);border-left-width:3px;background:var(--panel);
}
.formstatus.good{border-left-color:var(--accent);color:var(--ink)}
.formstatus.warn{border-left-color:var(--ink-2);color:var(--ink-2)}
.formstatus.bad{border-left-color:#B4553C;color:var(--ink)}
.deets{display:flex;flex-direction:column;gap:16px}
.deet{border-left:2px solid var(--accent);padding-left:14px}
.deet a{color:var(--accent);text-decoration:none;font-weight:600}
.deet a:hover{text-decoration:underline}

/* ---------------- legal pages ---------------- */
.legal{max-width:72ch}
.legal h3{font-size:17px;margin:28px 0 8px}
.legal p,.legal li{color:var(--ink-2);font-size:14.5px;margin:0 0 12px}
.legal ul{padding-left:20px}
.legal a{color:var(--accent)}

/* ---------------- footer ---------------- */
footer{border-top:1px solid var(--line);background:var(--surface);margin-top:0}
.foot{
  max-width:var(--wrap);margin:0 auto;padding:28px 24px 34px;
  display:flex;flex-wrap:wrap;gap:14px 34px;justify-content:space-between;align-items:center;
  font-size:13px;color:var(--ink-3);
}
.foot a{color:var(--ink-2);text-decoration:none}
.foot a:hover{color:var(--accent)}

@media (prefers-reduced-motion: reduce){*{transition:none !important;animation:none !important;scroll-behavior:auto}}

/* ---------------- mobile header ----------------
   At 375px the default header ate 225px — logo, a two-line nav and the
   eBay button each claimed their own row, so half the first screen was
   chrome. Logo and eBay button now share row one; the nav gets row two
   and scrolls sideways inside itself if it ever outgrows the width. */
@media (max-width: 720px){
  .topbar-in{padding:10px 16px;gap:8px 12px}
  .mark-badge{width:30px;height:30px}
  .mark-name{font-size:14px;letter-spacing:.14em}
  .mark-rule{margin-top:5px}
  .mark-sub{font-size:8px;margin-top:4px}
  .topbar .btn.sm{padding:6px 11px;font-size:12px}
  nav.pages{
    order:3;width:100%;margin:0 -8px;gap:0;
    flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;
  }
  nav.pages a{font-size:13px;padding:6px 8px;white-space:nowrap}
  .wrap{padding:0 18px}
  .hero{padding:48px 0 42px}
}

/* ---------------- empty photo slots ----------------
   Until the card photos are added, a bare panel reads as a broken image.
   A dashed inset and a legible label make it read as "photo goes here".
   All of this disappears on its own once images/<slug>.jpg exists. */
.ph span{font-size:10px;color:var(--ink-3)}
.hl .ph span{font-size:11.5px}
.ph:not(.hasimg)::after{
  content:"";position:absolute;inset:10px;
  border:1px dashed var(--line-2);border-radius:2px;pointer-events:none;
}
