/* blackfridayads.live. The look is the sale tag: tag yellow, black ink, heavy narrow letters, and store-sign red for
   what is live. One typeface (Archivo) at two widths: narrow and heavy for times and headings, normal for reading. */
:root {
  --tag: #FFD21F;
  --tag-deep: #F2BE00;
  --ink: #17130E;
  --paper: #FFFFFF;
  --band: #F3F2EE;
  --muted: #625C53;
  --live: #C8201A;
  --line: #17130E;
  --narrow: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --read: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--read); font-size: 1.0625rem; line-height: 1.5; }
a { color: inherit; text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 68rem; margin: 0 auto; padding-inline: 1.25rem; }
.skip { position: absolute; left: -999rem; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--ink); color: var(--paper); padding: 0.5rem 0.75rem; }

/* ── The top: the tag ── */
.top { background: var(--tag); border-bottom: 4px solid var(--ink); padding-block: 2rem 2.25rem; }
.top-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2rem; align-items: end; }
.brand { margin: 0 0 1.25rem; font-weight: 700; letter-spacing: 0.01em; }
h1 { margin: 0; font-family: var(--narrow); font-stretch: 62%; font-weight: 900; font-size: clamp(2.6rem, 7.2vw, 5.25rem); line-height: 0.94; letter-spacing: -0.01em; text-wrap: balance; }
.lede { margin: 1.1rem 0 0; max-width: 34rem; font-size: 1.125rem; }
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.25rem 0 0; font-weight: 700; }
.jump b { display: inline-block; min-width: 1.6em; margin-left: 0.3em; padding: 0 0.35em; background: var(--ink); color: var(--tag); text-align: center; border-radius: 2px; font-weight: 800; }

.next { background: var(--ink); color: var(--paper); padding: 1.25rem 1.4rem 1.4rem; min-width: 0; }
.next p { margin: 0; }
.next-label { font-weight: 700; color: var(--tag); }
.next-count { font-family: var(--narrow); font-stretch: 62%; font-weight: 900; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; margin-block: 0.15em 0.2em !important; font-variant-numeric: tabular-nums; }
.next-what { font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.next-when { color: #D9D4C8; margin-top: 0.35rem !important; font-size: 0.95rem; }

/* ── The scrolling feed ── */
.feed { display: flex; align-items: stretch; background: var(--ink); color: var(--paper); border-bottom: 4px solid var(--ink); }
.feed-pause { flex: none; border: 0; border-right: 1px solid #4A443B; background: var(--ink); color: var(--tag); font: inherit; font-weight: 700; padding: 0.6rem 1rem; cursor: pointer; }
.feed-pause:hover { background: #2A251E; }
.feed-pause:focus-visible { outline-color: var(--tag); outline-offset: -4px; }
.feed-window { overflow: hidden; flex: 1; min-width: 0; }
.feed-track { display: flex; width: max-content; animation: feed 80s linear infinite; }
.feed:hover .feed-track, .feed:focus-within .feed-track, .feed.is-paused .feed-track { animation-play-state: paused; }
.feed-list { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.feed-item { flex: none; padding: 0.6rem 1.4rem; white-space: nowrap; border-right: 1px solid #4A443B; }
.feed-item b { color: var(--tag); font-weight: 800; margin-right: 0.35em; }
.feed-item.is-pick b { background: var(--tag); color: var(--ink); padding: 0 0.4em; border-radius: 2px; }
.feed-item i { font-style: normal; color: #BDB6A8; margin-left: 0.4em; }
@keyframes feed { to { transform: translateX(-50%); } }

/* ── Sections ── */
main { padding-block: 1.5rem 4rem; }
.zone { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.95rem; }
section { margin-top: 3rem; scroll-margin-top: 1rem; }
h2 { margin: 0 0 0.25rem; font-family: var(--narrow); font-stretch: 62%; font-weight: 900; font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1; }
.sub { margin: 0.4rem 0 1.25rem; color: var(--muted); max-width: 44rem; }
.empty { color: var(--muted); }

/* Coming up: a day, then the times down a rail */
.day { margin-top: 1.75rem; }
.day-title { margin: 0; padding: 0.45rem 0.75rem; background: var(--tag); border: 2px solid var(--ink); font-size: 1.0625rem; font-weight: 800; }
.slot { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 0 1.5rem; padding-block: 1.1rem 0.4rem; border-bottom: 2px solid var(--ink); }
.slot-when { display: flex; flex-direction: column; align-self: start; position: sticky; top: 0.75rem; }
.slot-time { font-family: var(--narrow); font-stretch: 62%; font-weight: 900; font-size: 2.75rem; line-height: 0.95; font-variant-numeric: tabular-nums; }
.slot-whose { color: var(--muted); font-size: 0.875rem; margin-top: 0.3rem; }
.slot-away { margin-top: 0.4rem; font-weight: 800; }

.rows { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 0.1rem 1.25rem; padding-block: 0.6rem; border-top: 1px solid #D8D4CA; }
.rows > .row:first-child { border-top: 0; }
.who { font-weight: 800; font-size: 1.125rem; line-height: 1.3; }
.what { font-weight: 600; }
.more, .src { grid-column: 2; color: var(--muted); font-size: 0.925rem; }
.src a { color: var(--muted); }
.row.k-drop .what::before, .row.k-sale .what::before { content: "Online"; display: inline-block; margin-right: 0.5em; padding: 0 0.4em; border: 1.5px solid var(--ink); border-radius: 2px; font-size: 0.8rem; font-weight: 800; vertical-align: 0.08em; }
.row.k-doors .what::before { content: "In store"; display: inline-block; margin-right: 0.5em; padding: 0 0.4em; background: var(--ink); color: var(--paper); border-radius: 2px; font-size: 0.8rem; font-weight: 800; vertical-align: 0.08em; }
#live .rows { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
#live h2::after { content: ""; display: inline-block; width: 0.42em; height: 0.42em; margin-left: 0.3em; background: var(--live); border-radius: 50%; vertical-align: 0.12em; }

/* Best value: price tags */
.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1rem; }
.pick { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 1rem 1rem; border: 2px solid var(--ink); background: var(--paper); box-shadow: 5px 5px 0 var(--tag); }
.pick-cut { align-self: flex-start; background: var(--tag); border: 2px solid var(--ink); padding: 0 0.5em; font-family: var(--narrow); font-stretch: 62%; font-weight: 900; font-size: 1.6rem; line-height: 1.25; }
.pick-name { font-weight: 800; line-height: 1.3; margin-top: 0.35rem; }
.pick-price b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.pick-price s { color: var(--muted); }
.pick .more, .pick .src { grid-column: auto; }
.pick .src { margin-top: auto; padding-top: 0.4rem; }

#about p { max-width: 44rem; }
.sources { columns: 2 14rem; padding-left: 1.2rem; max-width: 44rem; }
.plain { font: inherit; font-weight: 700; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 0.4rem 0.8rem; cursor: pointer; }
.plain:hover { background: var(--tag); }

/* ── Pop-ups ── */
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 10; width: min(22rem, calc(100vw - 2rem)); pointer-events: none; }
.toast { pointer-events: auto; position: relative; background: var(--paper); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 0.8rem 3.4rem 0.9rem 0.95rem; animation: rise 0.25s ease-out; }
.toast p { margin: 0; }
.toast-lead { font-family: var(--narrow); font-stretch: 62%; font-weight: 900; font-size: 1.5rem; line-height: 1.1; }
.toast-text { margin-top: 0.25rem !important; font-weight: 600; line-height: 1.35; }
.toast.is-live { background: var(--live); color: #FFFFFF; }
.toast.is-pick { background: var(--tag); }
.toast-close { position: absolute; top: 0.45rem; right: 0.5rem; font: inherit; font-size: 0.85rem; font-weight: 700; background: transparent; color: inherit; border: 0; text-decoration: underline; cursor: pointer; padding: 0.25rem; }
@keyframes rise { from { transform: translateY(0.75rem); opacity: 0; } }

@media (max-width: 46rem) {
  .top-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .slot { grid-template-columns: minmax(0, 1fr); }
  .slot-when { position: static; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.75rem; margin-bottom: 0.4rem; }
  .slot-time { font-size: 2.25rem; }
  .slot-whose, .slot-away { margin-top: 0; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .more, .src { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feed-track { animation: none; }
  .feed-window { overflow-x: auto; }
  .feed-list[aria-hidden="true"], .feed-pause { display: none; }
  .toast { animation: none; }
}
@media print {
  .feed, .toasts, .jump, .plain { display: none; }
  .top { border-bottom-width: 2px; }
  .slot-when { position: static; }
}
