/* Crazy Uncle's Card Notes — "card show case": slabs, binder pages, card backs */
:root {
  --case: #14171c;          /* display-case black */
  --case-2: #20252d;
  --page: #e6e8eb;          /* binder page gray */
  --stock: #fdfcf8;         /* card stock white */
  --acrylic: #c6cfda;       /* slab edge */
  --acrylic-2: #eef2f6;
  --ink: #1d2026;
  --ink-soft: #5a606b;
  --rule: #d3d8de;
  --red: #b3202a;           /* label red */
  --red-dark: #8a141c;
  --gold: #d7a83a;
  --back: #d9cfb6;          /* vintage card-back cardboard */
  --back-ink: #3a2f22;
  --mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  --head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --body: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--page);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(29,32,38,.08) 1px, transparent 1.4px);
  background-size: 18px 18px;
  color: var(--ink);
  font: 18px/1.62 var(--body);
}
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.strip { background: #000; color: #c9ced6; font: 12px/1.4 var(--mono); padding: 7px 16px; text-align: center; letter-spacing: .01em; }

/* masthead: a slab label on a black display case */
.masthead { background: var(--case); background-image: linear-gradient(180deg, var(--case-2), var(--case)); border-bottom: 4px solid var(--red); }
.mast-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 18px; padding-bottom: 16px; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: stretch; background: var(--stock); border-radius: 6px; padding: 4px; box-shadow: 0 0 0 3px #3a414c, 0 0 0 4px #59616d, 0 10px 22px -10px rgba(0,0,0,.8); }
.brand:hover { color: var(--ink); }
.brand .lbl { display: flex; flex-direction: column; justify-content: center; border-top: 5px solid var(--red); padding: 6px 14px 7px; }
.brand .lbl-top { font: 10.5px/1.2 var(--mono); letter-spacing: .14em; color: var(--ink-soft); text-transform: uppercase; }
.brand-name { font: 600 27px/1.05 var(--head); text-transform: uppercase; letter-spacing: .02em; margin: 2px 0 1px; }
.brand-sub { font: 12px/1.3 var(--mono); color: var(--ink-soft); }
.brand .bc { width: 64px; margin-left: 4px; border-left: 1px dashed var(--rule); background:
  repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px) center 10px / 46px 40px no-repeat; position: relative; }
.brand .bc::after { content: "REF 2026"; position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 9px/1 var(--mono); letter-spacing: .08em; color: var(--ink-soft); }
.nav { display: flex; flex-wrap: wrap; gap: 6px; font: 500 14px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; }
.nav a { color: #e7eaee; text-decoration: none; padding: 8px 11px; border: 1px solid #3a414c; border-radius: 4px; background: rgba(255,255,255,.03); }
.nav a:hover { border-color: #8c96a3; color: #fff; }
.nav a[aria-current="page"] { background: var(--red); border-color: var(--red); color: #fff; }

.page { padding-top: 30px; padding-bottom: 56px; }
h1, h2, h3, .sec { font-family: var(--head); font-weight: 600; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(32px, 5vw, 50px); text-transform: uppercase; letter-spacing: .005em; margin: 6px 0 10px; }
h2 { font-size: 25px; margin: 36px 0 12px; text-transform: uppercase; letter-spacing: .03em; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; flex: none; width: 6px; height: .95em; background: var(--red); border-radius: 1px; }
h3 { font-size: 20px; margin: 24px 0 6px; }
.kicker { font: 12.5px/1.4 var(--mono); color: var(--red); text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.kicker a { color: var(--red); }
.dek { font-size: 20px; color: var(--ink-soft); margin: 0 0 8px; }
.num, .mono, code { font-family: var(--mono); font-size: .93em; }

/* home hero with a slab illustration */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 36px; align-items: center; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 56px); }
.lede { font-size: 19px; max-width: 720px; }
.hero-art { justify-self: center; }
.slab { width: 230px; background: linear-gradient(160deg, #f9fbfd, #dfe6ee 55%, #f3f6f9); border-radius: 12px; padding: 10px; border: 1px solid #a9b4c1; box-shadow: inset 0 0 0 4px rgba(255,255,255,.8), inset 0 0 0 5px #c9d2dc, 0 18px 30px -16px rgba(20,23,28,.55), 0 2px 0 #9aa6b4; transform: rotate(3deg); }
.slab-l { background: #fff; border-top: 6px solid var(--red); border-radius: 3px; padding: 7px 9px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; font: 10px/1.25 var(--mono); color: var(--ink); }
.slab-l b { font: 600 15px/1.05 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.slab-l .g { grid-row: 1 / span 3; grid-column: 2; align-self: center; font: 600 34px/1 var(--head); }
.slab-l .bars { grid-column: 1; height: 14px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 6px, var(--ink) 6px 9px, transparent 9px 10px); }
.slab-w { margin-top: 9px; background: rgba(255,255,255,.55); border: 1px solid #c3ccd7; border-radius: 4px; padding: 12px; }
.mini { aspect-ratio: 5/7; background: var(--stock); border: 2px solid #fff; outline: 1px solid #b9c3cf; border-radius: 3px; padding: 8%; display: flex; flex-direction: column; box-shadow: 0 3px 8px -4px rgba(0,0,0,.35); }
.mini i { flex: 1; display: block; border-radius: 2px; background: radial-gradient(circle at 50% 40%, #f2c9a8 0 13%, transparent 14%), radial-gradient(ellipse at 50% 92%, var(--red) 0 34%, transparent 35%), linear-gradient(160deg, #6f8fb3, #2f4b6e); }
.mini s { display: block; text-decoration: none; margin-top: 7%; height: 15%; background: var(--case); border-radius: 2px; color: #fff; font: 600 9px/1 var(--head); letter-spacing: .1em; text-align: center; display: grid; place-items: center; }

.sec { font-size: 23px; text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin-top: 40px; }
.sec::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--ink), var(--ink) 40%, transparent); }
.secnote { color: var(--ink-soft); margin-top: 4px; }

/* binder page of slabs */
.cardgrid { list-style: none; padding: 18px; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; background: rgba(255,255,255,.35); border: 1px solid #c3cad3; border-radius: 6px; box-shadow: inset 0 1px 0 #fff; }
.cardgrid a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: linear-gradient(165deg, #fbfcfe, #e9eef3 60%, #f6f8fa); border: 1px solid #aeb9c6; border-radius: 10px; padding: 8px; box-shadow: inset 0 0 0 3px rgba(255,255,255,.9), inset 0 0 0 4px #d2dae3, 0 2px 0 #a3aebb, 0 12px 20px -14px rgba(20,23,28,.5); transition: transform .15s ease, box-shadow .15s ease; }
.cardgrid a:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 3px rgba(255,255,255,.9), inset 0 0 0 4px #d2dae3, 0 2px 0 var(--red), 0 18px 24px -14px rgba(20,23,28,.55); color: var(--ink); }
.cardgrid .lab { display: block; background: #fff; border-top: 5px solid var(--red); border-radius: 3px; padding: 8px 10px 9px; }
.cardgrid .tag { display: flex; justify-content: space-between; gap: 8px; font: 11px/1.3 var(--mono); color: var(--red); letter-spacing: .04em; }
.cardgrid .tag em { font-style: normal; color: var(--ink-soft); }
.cardgrid .gt { display: block; font: 600 19px/1.15 var(--head); text-transform: uppercase; margin: 5px 0 0; }
.cardgrid .win { display: block; flex: 1; margin-top: 8px; padding: 10px 11px; background: rgba(255,255,255,.6); border: 1px solid #c8d0da; border-radius: 4px; }
.cardgrid .gd { font-size: 15px; line-height: 1.45; color: var(--ink-soft); }

/* article in a card-stock panel */
.article { max-width: 820px; background: var(--stock); border: 1px solid #c9d0d8; border-radius: 6px; padding: 26px 34px 30px; box-shadow: 0 1px 0 #fff inset, 0 16px 30px -24px rgba(20,23,28,.6); }
.art-head { border-bottom: 3px solid var(--ink); margin-bottom: 20px; padding-bottom: 10px; position: relative; }
.art-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--red); }
.prose p, .prose li { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li::marker { color: var(--red); }
.note { background: #f3f5f8; border: 1px solid var(--rule); border-left: 5px solid var(--red); border-radius: 0 4px 4px 0; padding: 11px 15px; margin: 18px 0; font-size: 16px; }

/* card file = the back of a vintage card */
.factbox { background: var(--back); background-image: radial-gradient(rgba(58,47,34,.07) 1px, transparent 1.2px); background-size: 4px 4px; border: 2px solid var(--back-ink); border-radius: 8px; margin: 6px 0 24px; padding: 6px; color: var(--back-ink); box-shadow: 0 10px 22px -16px rgba(0,0,0,.6); }
.factbox-head { background: var(--red); color: #fff4e6; font: 600 15px/1 var(--head); text-transform: uppercase; letter-spacing: .16em; padding: 9px 12px; border-radius: 4px 4px 0 0; display: flex; justify-content: space-between; }
.factbox-head::after { content: "★ ★ ★"; letter-spacing: .3em; font-size: 11px; opacity: .85; }
.factbox dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(58,47,34,.45); border-top: 0; border-radius: 0 0 4px 4px; }
.factbox dl div { padding: 9px 12px; border-top: 1px dotted rgba(58,47,34,.55); border-right: 1px dotted rgba(58,47,34,.55); }
.factbox dt { font: 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--red-dark); }
.factbox dd { margin: 3px 0 0; font: 16.5px/1.35 var(--body); }

/* price-guide tables */
.tablewrap { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--ink); border-radius: 4px; background: #fff; }
table.ledger { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.4; }
table.ledger caption { caption-side: top; text-align: left; font: 12px/1.4 var(--mono); color: var(--ink-soft); padding: 8px 10px; border-bottom: 1px solid var(--ink); background: #f3f5f8; }
table.ledger th, table.ledger td { padding: 8px 11px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
table.ledger thead th { font: 600 13.5px/1.3 var(--head); text-transform: uppercase; letter-spacing: .06em; background: var(--case); color: #fff; border-bottom: 3px solid var(--red); }
table.ledger tbody th { font-weight: 600; }
table.ledger tbody tr:nth-child(even) { background: #f5f7f9; }
table.ledger tbody tr:hover { background: #fdf3f3; }
table.ledger.wide { min-width: 720px; }
table.mono-cols td, table.mono-cols tbody th { font-family: var(--mono); font-size: 14px; }

.related { margin-top: 30px; border-top: 1px solid var(--rule); }
.related h2, .sources h2 { font-size: 17px; letter-spacing: .1em; }
.related ul { padding-left: 1.2em; }
.sources { margin-top: 30px; border-top: 3px double var(--ink); font-size: 15px; }
.sources ol { padding-left: 1.6em; }
.sources li { margin: 4px 0; word-break: break-word; }
.checked { font: 12px/1.4 var(--mono); color: var(--ink-soft); }
.home-prose { max-width: 820px; }

.foot { background: var(--case); color: #aeb5bf; font-size: 14.5px; padding: 22px 0 30px; border-top: 4px solid var(--red); }
.foot a { color: #fff; }
.foot strong { color: #fff; }
.foot p { margin: 6px 0; max-width: 80ch; }
.foot .bcode { height: 22px; width: 150px; margin-top: 12px; opacity: .55; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px, #fff 8px 11px, transparent 11px 12px, #fff 12px 13px, transparent 13px 16px); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding: 0 14px; }
  .brand-name { font-size: 21px; }
  .brand .bc { display: none; }
  .nav { font-size: 13px; gap: 5px; }
  .nav a { padding: 7px 8px; }
  h2 { font-size: 21px; }
  .article { padding: 18px 16px 22px; border-radius: 4px; }
  .cardgrid { padding: 10px; gap: 12px; }
  .factbox dl { grid-template-columns: repeat(2, 1fr); }
  .page { padding-top: 18px; }
}
