/* Bill's Collectibills. Brand from the business card: a graded-card slab. Slab gray page, ink type, the grading
   label's red, gold for prices and the "GEM MINT 10" foil. Big Shoulders Display for the wordmark and headings,
   Barlow to read, IBM Plex Mono only inside slab labels (the way grading labels are printed). */
:root {
  --slab: #e9edf1;
  --surface: #f7f9fb;
  --ink: #121c26;
  --red: #b01e2a;
  --red-dark: #8f1722;
  --gold: #9a6f17;
  --gold-ink: #7a560e;
  --foil: #d8b55a;
  --line: #cfd7df;
  --muted: #56636f;
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", "sans-serif-condensed", "Helvetica Neue", Impact, sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 76rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--slab); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; }
a { color: var(--red-dark); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }
h1, h2, h3 { margin: 0; line-height: 1.05; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: .01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; max-width: 40rem; }

/* wordmark, as printed on the card: BILL'S in ink, COLLECTIBILLS in label red */
.brand, .mark { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .86; }
.brand .b, .mark .b { color: var(--ink); }
.brand .c, .mark .c { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.3rem;
  background: var(--red); color: #fff; border: 2px solid var(--red); border-radius: 10px;
  font-weight: 700; font-size: 1.02rem; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { min-height: 40px; padding: 0 .9rem; font-size: .95rem; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.top .brand { font-size: 1.9rem; text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 1.25rem; }
nav a:not(.btn) { color: var(--ink); font-weight: 600; text-decoration: none; }
nav a:not(.btn):hover { color: var(--red); text-decoration: underline; }

/* hero: the page opens as a graded slab */
.hero { padding: 2.5rem 0 3.5rem; }
.holder {
  position: relative; overflow: hidden; border-radius: 28px; padding: 1.1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, .25)), var(--slab);
  border: 3px solid var(--line);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .6), inset 0 0 0 10px var(--line), 0 24px 50px -30px rgba(18, 28, 38, .45);
}
/* the one moment: a light sheen crosses the slab once, the way it does when you tilt a real one */
.holder::after {
  content: ""; position: absolute; inset: -20% auto -20% -60%; width: 40%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .7) 45%, rgba(255, 255, 255, .15) 60%, transparent);
  transform: skewX(-12deg); opacity: 0;
  animation: sheen 1.6s ease-out .35s 1 forwards;
}
@keyframes sheen { 0% { left: -60%; opacity: 1; } 100% { left: 130%; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .holder::after { animation: none; } }

.label {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--red); color: #fff; border-radius: 14px; padding: 1rem 1.25rem;
}
.label::after { content: ""; position: absolute; inset: 6px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 9px; pointer-events: none; }
.label-lines { font-family: var(--mono); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: clamp(.78rem, 1.6vw, 1.15rem); line-height: 1.5; }
.grade { display: flex; align-items: center; gap: .5rem; color: var(--foil); font-family: var(--display); font-weight: 900; text-transform: uppercase; flex: none; }
.grade .gm { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: .92; text-align: right; letter-spacing: .04em; }
.grade .n { font-size: clamp(2.6rem, 5vw, 4rem); line-height: .9; }

.window { padding: clamp(1.5rem, 4vw, 3rem) clamp(.75rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.25rem); }
.mark { font-size: clamp(2.6rem, 12.5vw, 8.75rem); letter-spacing: .005em; }
.mark .b { display: block; font-size: .62em; }
.mark .c { display: block; margin-top: .04em; }
.tag { font-size: clamp(1.15rem, 2.4vw, 1.55rem); font-weight: 600; margin: 1.1rem 0 .5rem; }
.lede { color: var(--muted); font-size: 1.1rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

/* listed now: each listing is a slab of its own */
.listed { padding: 3.5rem 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head p { color: var(--muted); margin-top: .75rem; }
.lots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; margin-top: 2rem; }
.lot { display: grid; grid-template-rows: auto auto 1fr; background: #fff; border: 2px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 16px 36px -28px rgba(18, 28, 38, .5); }
.lot-label { display: flex; justify-content: space-between; align-items: stretch; background: var(--red); color: #fff; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; font-size: .82rem; font-weight: 600; }
.lot-label .who { padding: .7rem 1rem; align-self: center; }
.lot-grade { display: grid; place-content: center; text-align: center; padding: .35rem .9rem; background: rgba(0, 0, 0, .2); line-height: 1.05; color: #fff; }
.lot-grade strong { color: var(--foil); }
.lot-grade strong { font-family: var(--display); font-size: 1.6rem; font-weight: 900; }
.lot-face {
  display: grid; justify-items: start; align-content: center; gap: .15rem; padding: 1.25rem 1.25rem 1.1rem;
  background: repeating-linear-gradient(135deg, rgba(176, 30, 42, .05) 0 12px, transparent 12px 24px), var(--slab);
  border-bottom: 1px solid var(--line);
}
.lot-face .yr { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 6vw, 4.25rem); line-height: .9; color: var(--ink); }
.lot-face .fmt { font-weight: 600; color: var(--muted); }
.lot-body { display: flex; flex-direction: column; gap: .9rem; padding: 1.25rem; }
.lot-body .contents { flex: 1 0 auto; }
.contents { margin: 0; padding: 0; list-style: none; }
.contents li { padding: .4rem 0 .4rem 1.1rem; border-bottom: 1px solid var(--slab); position: relative; }
.contents li::before { content: ""; position: absolute; left: 0; top: .95rem; width: .45rem; height: .45rem; background: var(--red); border-radius: 2px; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .25rem; }
.price { margin: 0; font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.item-id { margin: 0; font-size: .9rem; color: var(--muted); }

/* how buying works */
.how { padding: 3.5rem 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 1.75rem; }
.how-grid > div { border-top: 4px solid var(--ink); padding-top: 1rem; }
.how-grid p { color: var(--muted); margin-top: .5rem; }

/* what we carry: printed like little grading labels */
.carry { padding: 0 0 3.5rem; }
.carry-lede { color: var(--muted); margin-top: .75rem; }
.kinds { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.kinds li { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.k-swatch { width: .8rem; height: .8rem; border-radius: 3px; flex: none; }
.k-sports { background: #1f5aa6; } .k-nonsports { background: #7a3e9d; } .k-tcg { background: #c8541c; } .k-wax { background: var(--red); }
.k-auto { background: var(--ink); } .k-coins { background: #8a6a1c; } .k-bullion { background: #6b7480; } .k-memo { background: #1c7a5a; }

/* contact: the back of the card */
.contact { padding: 0 0 4rem; }
.back { background: var(--surface); border: 2px solid var(--line); border-radius: 22px; overflow: hidden; max-width: 52rem; }
.band { background: var(--red); border-bottom: 6px solid var(--gold); color: #fff; padding: 1.4rem 1.75rem 1.25rem; }
.band .k { margin: 0; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; font-size: .9rem; opacity: .9; }
.band .v { margin: .2rem 0 0; font-family: var(--mono); font-weight: 600; font-size: clamp(1.4rem, 4vw, 2.1rem); }
.band .v a { color: #fff; text-decoration-thickness: 2px; }
.back-body { padding: 1.5rem 1.75rem 1.75rem; }
.back-body h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.rows { margin: 1rem 0 0; }
.rows div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: baseline; padding: .75rem 0; border-bottom: 2px solid var(--line); }
.rows dt { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 600; color: var(--muted); }
.rows dd { margin: 0; font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
.rows dd a { color: var(--ink); }
.rows dd a:hover { color: var(--red); }
.where { margin: 1rem 0 0; color: var(--muted); font-weight: 600; }

/* footer */
.foot { background: var(--ink); color: #c9d2da; padding: 1.75rem 0; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot .small-brand { font-size: 1.6rem; }
.foot .small-brand .b { color: #fff; }
.foot .small-brand .c { color: #ff6b74; }

/* 404 */
.lost { padding: 4rem 0; }
.lost .lede { margin-top: 1rem; }

@media (max-width: 860px) {
  .lots, .how-grid { grid-template-columns: 1fr; }
  nav a:not(.btn) { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .top .brand { font-size: 1.35rem; }
  .btn.small { padding: 0 .7rem; font-size: .9rem; }
  .mark { font-size: clamp(2.4rem, 12vw, 8.75rem); }
  .hero { padding-top: 1.25rem; }
  .holder { border-radius: 20px; padding: .6rem; }
  .label { padding: .8rem .9rem; }
  .cta-row .btn { flex: 1 1 100%; }
  .rows div { grid-template-columns: 1fr; gap: .15rem; }
  .band, .back-body { padding-left: 1.1rem; padding-right: 1.1rem; }
}
