/* BlackFriday2026 Deals
   Direction: retail shelf-label vernacular. Cool paper, near-black bars, one signal yellow
   (the price tag). Deal status is shown by shape: filled = Confirmed, dashed = Expected,
   plain = Watching. Deals are ledger rows, not cards. */

:root {
  color-scheme: light dark;
  --paper: #f3f5f8;
  --surface: #ffffff;
  --ink: #10131a;
  --muted: #566070;
  --line: #d5d9e1;
  --tag: #ffd60a;
  --tag-ink: #10131a;
  --link: #0a4fd4;
  --focus: #0a4fd4;
  --bar: #10131a;
  --bar-ink: #f4f5f7;
  --bar-muted: #aeb5c2;
  --bar-line: #2a2f3a;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --measure: 68ch;
  --gut: clamp(1rem, 4vw, 1.75rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c0e13;
    --surface: #14171e;
    --ink: #eef0f4;
    --muted: #9ea6b5;
    --line: #2a2f3a;
    --link: #8db6ff;
    --focus: #ffd60a;
    --bar: #05060a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font);
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.masthead :focus-visible, .band :focus-visible, .foot :focus-visible { outline-color: var(--tag); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--tag); color: var(--tag-ink); padding: 0.6rem 1rem; font-weight: 700;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gut), 70rem); margin-inline: auto; }

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h1 {
  font-size: clamp(2.1rem, 1.2rem + 4.2vw, 3.9rem);
  font-weight: 800; letter-spacing: -0.035em; text-wrap: balance;
}
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; margin-bottom: 1rem; }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.2rem; max-width: var(--measure); }
.muted { color: var(--muted); }

/* ---------- masthead ---------- */
.masthead { background: var(--bar); color: var(--bar-ink); }
.masthead__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.9rem;
}
.brand {
  font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
  color: var(--bar-ink); text-decoration: none;
}
.brand span { color: var(--tag); }
.nav ul {
  display: flex; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0 0 0.7rem;
  overflow-x: auto; scrollbar-width: thin;
}
.nav a {
  display: block; padding: 0.4rem 0; white-space: nowrap;
  color: var(--bar-muted); text-decoration: none; font-size: 0.95rem; font-weight: 600;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--bar-ink); }
.nav a[aria-current="page"] { color: var(--bar-ink); border-color: var(--tag); }

.disclosure { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.disclosure p { margin: 0; padding-block: 0.55rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0.65rem 1.1rem;
  border: 2px solid var(--ink); border-radius: 0.3rem;
  font: inherit; font-size: 0.95rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.masthead .btn { white-space: nowrap; }
.btn--tag { background: var(--tag); color: var(--tag-ink); border-color: var(--tag-ink); }
.btn--tag:hover { filter: brightness(1.06); text-decoration: none; }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn--small { min-height: 2.25rem; padding: 0.4rem 0.85rem; font-size: 0.9rem; }
.btn--big { padding: 0.85rem 1.4rem; font-size: 1.05rem; }

/* ---------- hero + price tag ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.5rem); }
.hero__grid { display: grid; gap: 2.25rem; align-items: center; }
@media (min-width: 56rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
.hero h1 { margin-bottom: 1.25rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }

.tag {
  position: relative;
  background: var(--tag); color: var(--tag-ink);
  padding: 1.9rem 1.5rem 1.7rem 3.6rem;
  clip-path: polygon(2.4rem 0, 100% 0, 100% 100%, 2.4rem 100%, 0 50%);
}
.tag::before {
  content: ""; position: absolute; left: 2.15rem; top: 50%;
  width: 0.9rem; height: 0.9rem; margin-top: -0.45rem; border-radius: 50%;
  background: var(--paper);
}
.tag__label { margin: 0 0 0.6rem; font-size: 1.05rem; font-weight: 800; line-height: 1.3; }
.tag__digits { display: flex; gap: 1.4rem; margin: 0 0 0.8rem; }
.tag__digits[hidden] { display: none; }
.tag__digits span { display: flex; flex-direction: column; }
.tag__digits b {
  font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
}
.tag__digits small { font-size: 0.8rem; font-weight: 700; }
.tag__sub { margin: 0; font-size: 0.9rem; }

/* ---------- sections ---------- */
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.head { padding-block: clamp(1.75rem, 5vw, 3rem) 0.25rem; }
.head h1 { margin-bottom: 1rem; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.2rem); }
.crumbs ol {
  display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; list-style: none;
  margin: 0 0 1rem; padding: 0; font-size: 0.9rem; color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin-right: 0.6rem; }
.crumbs a { color: var(--muted); }
.updated { margin-bottom: 1.25rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- status marks ---------- */
.status {
  display: inline-block; margin: 0 0 0.35rem; padding: 0.15rem 0.6rem;
  border: 2px solid var(--ink); font-size: 0.85rem; font-weight: 800; line-height: 1.4;
}
.status--confirmed { background: var(--ink); color: var(--paper); }
.status--confirmed::before { content: "\2713"  / ""; margin-right: 0.35rem; }
.status--expected { border-style: dashed; }
.status--watching { border-color: var(--line); color: var(--muted); font-weight: 700; }

/* ---------- deal rows (ledger) ---------- */
.deals { border-top: 2px solid var(--ink); }
.deal { container-type: inline-size; border-bottom: 1px solid var(--line); }
.deal__grid {
  display: grid; gap: 0.9rem 1.5rem; padding-block: 1.25rem;
  grid-template-areas: "id" "proof" "offer" "act";
}
.deal__id { grid-area: id; }
.deal__proof { grid-area: proof; }
.deal__offer { grid-area: offer; }
.deal__act { grid-area: act; }

@container (min-width: 34rem) {
  .deal__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "id proof" "offer act";
    align-items: start;
  }
}
@container (min-width: 58rem) {
  .deal__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) 10.5rem auto;
    grid-template-areas: "id offer proof act";
  }
}

.deal__name { font-size: 1.25rem; }
.deal__who { margin: 0.25rem 0 0; font-size: 0.95rem; color: var(--muted); }
.deal__pending { margin: 0; font-size: 0.95rem; color: var(--muted); }
.deal__price { margin: 0 0 0.25rem; font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.deal__price s { margin-left: 0.4rem; font-size: 1rem; font-weight: 500; color: var(--muted); }
.deal__off {
  margin-left: 0.4rem; padding: 0.1rem 0.45rem; vertical-align: 0.2em;
  background: var(--tag); color: var(--tag-ink); font-size: 0.85rem; font-weight: 700;
}
.deal__summary { margin: 0 0 0.5rem; font-weight: 650; }
.deal__code { display: flex; align-items: center; gap: 0.5rem; margin: 0.5rem 0; }
.deal__code span { font-size: 0.85rem; color: var(--muted); }
.deal__code code {
  padding: 0.15rem 0.55rem; border: 2px dashed var(--ink); background: var(--surface);
  font: 700 1rem var(--mono); letter-spacing: 0.04em;
}
.copy {
  padding: 0.25rem 0.65rem; border: 2px solid var(--ink); border-radius: 0.25rem;
  background: transparent; color: var(--ink); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.copy:hover { background: var(--ink); color: var(--paper); }
.deal__fine { margin: 0; font-size: 0.9rem; color: var(--muted); }
.deal__note { margin: 0.5rem 0 0; font-size: 0.9rem; }
.deal__checked { margin: 0; font-size: 0.9rem; color: var(--muted); }
.deal__stale {
  display: inline-block; margin: 0.25rem 0 0; padding: 0 0.35rem;
  background: var(--tag); color: var(--tag-ink); font-size: 0.85rem; font-weight: 700;
}
.deal__source { margin: 0.25rem 0 0; font-size: 0.9rem; }

.empty { max-width: var(--measure); padding: 1.5rem; border: 2px dashed var(--ink); }
.empty h3 { margin-bottom: 0.5rem; font-size: 1.3rem; }
.empty p:last-child { margin-bottom: 0; }

/* ---------- category list, labels, chips ---------- */
.tiles {
  display: grid; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  border-top: 2px solid var(--ink);
}
.tile a {
  display: flex; flex-direction: column; gap: 0.2rem; height: 100%;
  padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none;
}
.tile__name { font-size: 1.2rem; font-weight: 800; }
.tile__count { font-size: 0.9rem; color: var(--muted); }
.tile a:hover .tile__name { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--tag); text-underline-offset: 0.2em; }

.labels { display: grid; gap: 1.25rem; margin: 0 0 1.5rem; }
@media (min-width: 48rem) { .labels { grid-template-columns: repeat(3, 1fr); } }
.labels dt { margin-bottom: 0.4rem; }
.labels dd { margin: 0; max-width: 40ch; color: var(--muted); }

.checks { max-width: var(--measure); margin: 0; padding-left: 1.25rem; }
.checks li { margin-bottom: 0.6rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; }
.chips a {
  display: inline-block; padding: 0.35rem 0.8rem; border: 2px solid var(--ink); border-radius: 0.25rem;
  color: var(--ink); font-size: 0.95rem; font-weight: 700; text-decoration: none;
}
.chips a:hover { background: var(--tag); color: var(--tag-ink); }
.group { margin: 1.25rem 0 0.6rem; font-size: 1rem; color: var(--muted); }

/* ---------- author, band, prose, signup ---------- */
.author { max-width: var(--measure); padding-left: 1.25rem; border-left: 6px solid var(--tag); }
.author__name { margin-bottom: 0.3rem; font-size: 1.15rem; font-weight: 800; }
.author p:last-child { margin-bottom: 0; }

.band { padding-block: clamp(2rem, 5vw, 3rem); background: var(--bar); color: var(--bar-ink); }
.band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.band h2 { margin-bottom: 0.4rem; }
.band p { max-width: 52ch; margin: 0; color: var(--bar-muted); }

.prose { max-width: var(--measure); }
.prose h2 { margin: 2.25rem 0 0.75rem; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .labels { grid-template-columns: 1fr; }

.alerts { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .alerts { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: start; } }
.signup { padding: 1.5rem; border: 2px solid var(--ink); background: var(--surface); }
.signup h2 { font-size: 1.4rem; }

/* ---------- footer ---------- */
.foot { padding-top: 2.5rem; background: var(--bar); color: var(--bar-muted); font-size: 0.95rem; }
.foot a { color: var(--bar-ink); }
.foot__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot__brand { margin-bottom: 0.5rem; color: var(--bar-ink); font-size: 1.2rem; font-weight: 800; }
.foot__brand span { color: var(--tag); }
.foot__h { margin-bottom: 0.5rem; color: var(--bar-ink); font-weight: 800; }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { margin-bottom: 0.35rem; }
.foot__fine { margin-top: 2rem; padding-block: 1.25rem; border-top: 1px solid var(--bar-line); font-size: 0.85rem; }
.foot__fine p { margin-bottom: 0.4rem; }

.sum { list-style: none; margin: 0 0 1rem; padding: 0; border-top: 1px solid var(--line, #ddd); }
.sum__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line, #ddd); }
.sum__row p { margin: 0; }
.sum__label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sum__name { font-weight: 700; font-size: 1.05rem; }
.sum__price { font-variant-numeric: tabular-nums; }
.sum__price s { color: var(--muted); margin-left: 0.3rem; }
.sum__off { font-size: 0.85rem; }
.sum__best { font-size: 0.9rem; color: var(--muted); }
.sum__note { font-size: 0.9rem; padding: 0.6rem 0.8rem; border-left: 4px solid var(--tag); background: rgba(127,127,127,.1); }
@media (max-width: 520px) { .sum__row { flex-direction: column; align-items: flex-start; } }

.soon { list-style: none; margin: 0 0 1rem; padding: 0; }
.soon li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid var(--line, #ddd); }
.soon__date { min-width: 4.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.soon__cat { color: var(--muted); font-size: 0.85rem; }
