/* N & W Warehouse
   Layout: one long page in bold bands. Auction-house red as the primary,
   clean white as the secondary, black as the accent for buttons, lot tags
   and the hazard-stripe edge. Condensed display type for dates and lot numbers. */
:root {
  --ground: #f7f5f5;      /* off-white page */
  --panel: #ffffff;       /* white cards */
  --ink: #141313;
  --muted: #5f5757;
  --rule: #e3dcdc;
  --red: #b3121c;         /* primary */
  --red-ink: #ffffff;
  --band-muted: rgba(255, 255, 255, 0.82);
  --band-rule: rgba(255, 255, 255, 0.3);
  --accent: #111111;      /* black accent */
  --accent-ink: #ffffff;
  --footer: #111111;
  --focus: #111111;
  --ph-bg: #fff3c4;       /* placeholder highlight */
  --ph-ink: #6b4d00;
  --ok: #1f6b3a;
  --err: #a1301b;

  --f-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --f-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.25rem, 5vw, 3.25rem);
  --step-4: clamp(2.75rem, 7vw, 4.75rem);
  --radius: 4px;
  --maxw: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #121010; --panel: #1c1919; --ink: #f3efef; --muted: #aaa0a0; --rule: #352d2d;
    --red: #b3121c; --red-ink: #ffffff; --accent: #f3efef; --accent-ink: #111111;
    --footer: #0a0909; --focus: #ffffff;
    --ph-bg: #3d3210; --ph-ink: #ffd968; --ok: #6fd391; --err: #ff8a70;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #121010; --panel: #1c1919; --ink: #f3efef; --muted: #aaa0a0; --rule: #352d2d;
  --red: #b3121c; --red-ink: #ffffff; --accent: #f3efef; --accent-ink: #111111;
  --footer: #0a0909; --focus: #ffffff;
  --ph-bg: #3d3210; --ph-ink: #ffd968; --ok: #6fd391; --err: #ff8a70;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(4.5rem + env(safe-area-inset-top, 0px)); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 30; background: var(--red);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.02; letter-spacing: 0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); text-transform: uppercase; }
h2 { font-size: var(--step-3); text-transform: uppercase; }
h3 { font-size: var(--step-2); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

.eyebrow {
  font-family: var(--f-mono); font-size: var(--step--1); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.fine { font-size: var(--step--1); color: var(--muted); }

/* Placeholder text Michael still needs to fill in */
.ph {
  background: var(--ph-bg); color: var(--ph-ink);
  outline: 1px dashed currentColor; outline-offset: 1px;
  padding: 0 .25em; border-radius: 2px; font-style: normal;
}

/* Top bar */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--red); color: var(--red-ink);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .65rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none; }
.brand__mark {
  font-family: var(--f-display); font-weight: 900; font-size: 1.6rem; line-height: 1;
  background: #ffffff; color: var(--red); padding: .15rem .45rem .05rem; border-radius: 2px;
}
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .06em; }
.nav { display: flex; gap: .25rem 1.1rem; align-items: center; flex-wrap: wrap; font-weight: 600; font-size: var(--step--1); }
.nav a { text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: #ffffff; }
.nav .nav__cta { background: #111111; color: #ffffff; padding: .4rem .8rem; border-radius: var(--radius); border: 0; }
@media (max-width: 560px) {
  .nav a:not(.nav__cta) { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 var(--step-0)/1 var(--f-body); text-decoration: none; cursor: pointer;
  padding: .85rem 1.25rem; border-radius: var(--radius); border: 2px solid transparent;
  min-height: 48px;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.hero .btn--primary, .ticket .btn--primary { background: #111111; color: #ffffff; }
.btn--primary:hover { filter: brightness(1.25); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn--block { width: 100%; }

/* Hero */
.hero { background: var(--red); color: var(--red-ink); position: relative; }
.hero .eyebrow { color: var(--band-muted); }
.hero :focus-visible, .topbar :focus-visible, .section--visit :focus-visible { outline-color: #ffffff; }
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.5rem; align-items: center; padding-block: 3.5rem 4rem;
}
.hero__copy { display: grid; gap: 1.25rem; min-width: 0; }
.lede { font-size: var(--step-1); max-width: 36ch; color: var(--band-muted); line-height: 1.5; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.tape {
  height: 14px;
  background: repeating-linear-gradient(-45deg, #111111 0 18px, #ffffff 18px 36px);
}
@media (max-width: 820px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); padding-block: 2.5rem 3rem; }
}

/* Next-auction ticket */
.ticket {
  background: var(--panel); color: var(--ink);
  border-radius: var(--radius); padding: 1.5rem; min-width: 0;
  box-shadow: 0 0 0 1px var(--rule), 0 18px 40px -18px rgba(0,0,0,.55);
  position: relative;
}
.ticket::before { /* punched hole, like a bid card */
  content: ""; position: absolute; top: 1.1rem; right: 1.1rem; width: 14px; height: 14px;
  border-radius: 50%; background: var(--red); box-shadow: inset 0 0 0 2px var(--rule);
}
.ticket__label { font-family: var(--f-mono); font-size: var(--step--1); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.ticket__body { display: grid; gap: .85rem; margin-top: .75rem; }
.ticket__date { display: flex; align-items: flex-end; gap: 1rem; }
.ticket__day { font-family: var(--f-display); font-weight: 900; font-size: 5.25rem; line-height: .8; }
.ticket__mo { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; line-height: 1; }
.ticket__wd { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.ticket__title { font-weight: 700; font-size: var(--step-1); line-height: 1.3; }
.ticket__meta { display: flex; flex-wrap: wrap; gap: .4rem .6rem; font-family: var(--f-mono); font-size: var(--step--1); }
.ticket__tbd { font-size: var(--step-1); font-weight: 600; }
.ticket .btn { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  padding: .2rem .55rem; border-radius: 2px; border: 1px solid var(--rule); background: var(--ground); color: var(--ink);
}
.chip--seller { background: var(--red); color: var(--red-ink); border-color: var(--red); }
.chip--sample { background: var(--ph-bg); color: var(--ph-ink); border-color: currentColor; border-style: dashed; }
.chip--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--err); }

/* Facts strip */
.facts { border-bottom: 1px solid var(--rule); background: var(--panel); }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: grid; gap: .15rem; padding: 1.1rem 1rem 1.1rem 0; }
.fact + .fact { padding-left: 1rem; border-left: 1px solid var(--rule); }
.fact__k { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.fact__v { font-weight: 700; }
@media (max-width: 720px) {
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* Sections */
.section { padding-block: 4rem; }
.section__head { display: grid; gap: .6rem; margin-bottom: 2rem; max-width: 46rem; }
.section__note { color: var(--muted); }
.empty { color: var(--muted); padding: 1.5rem 0; }

/* Auctions */
.auction-list { display: grid; gap: 2.5rem; }
.auction {
  background: var(--panel); border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--rule);
  overflow: hidden;
}
.auction__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: start;
  padding: 1.5rem; border-bottom: 1px solid var(--rule);
}
.datebox {
  display: grid; justify-items: center; align-content: center;
  width: 6.25rem; padding: .7rem .4rem .6rem; border-radius: var(--radius);
  background: var(--red); color: var(--red-ink); text-align: center;
}
.datebox__mo { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; line-height: 1; }
.datebox__day { font-family: var(--f-display); font-weight: 900; font-size: 3.4rem; line-height: .9; }
.datebox__wd { font-family: var(--f-mono); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.auction__title { display: grid; gap: .6rem; min-width: 0; }
.auction__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.auction__summary { color: var(--muted); max-width: 62ch; }
.details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0; margin: 0; border-bottom: 1px solid var(--rule);
}
.details > div { padding: 1rem 1.5rem; border-right: 1px solid var(--rule); border-top: 1px solid var(--rule); margin-top: -1px; }
.details dt { font-family: var(--f-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.details dd { margin: .2rem 0 0; font-weight: 600; }
.auction__terms { padding: 1rem 1.5rem; border-bottom: 1px solid var(--rule); font-size: var(--step--1); color: var(--muted); }
.auction__terms strong { color: var(--ink); }
.lots { padding: 1.5rem; display: grid; gap: 1rem; }
.lots__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.lots__head h4 { margin: 0; font-family: var(--f-display); font-size: 1.5rem; text-transform: uppercase; }
.lots__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
  gap: 1rem; list-style: none; margin: 0; padding: 0;
}
.lot { min-width: 0; }
.lot button {
  all: unset; box-sizing: border-box; cursor: zoom-in; display: grid; gap: .5rem; width: 100%;
  border-radius: var(--radius);
}
.lot button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.lot__img { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--ground); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--rule); }
.lot__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.lot button:hover .lot__img img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .lot__img img { transition: none; } }
.lot__no {
  position: absolute; left: .5rem; top: .5rem;
  font-family: var(--f-display); font-weight: 900; font-size: 1.05rem; line-height: 1;
  background: #111111; color: #ffffff; padding: .2rem .4rem .1rem; border-radius: 2px;
}
.lot__name { font-weight: 600; font-size: var(--step--1); line-height: 1.35; }
.lots__none { color: var(--muted); padding: 1rem; border: 1px dashed var(--rule); border-radius: var(--radius); }

.past { margin-top: 2.5rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.past summary { cursor: pointer; font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; }
.past__list { display: grid; gap: 2rem; margin-top: 1.5rem; }

/* Notify */
.section--notify { background: var(--panel); border-block: 1px solid var(--rule); }
.notify { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.notify__copy { display: grid; gap: 1rem; max-width: 34rem; }
.signup { display: grid; gap: 1.1rem; background: var(--ground); padding: 1.5rem; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule); min-width: 0; }
.field { display: grid; gap: .35rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: var(--step--1); padding: 0; }
.opt { color: var(--muted); font-weight: 400; }
.field input[type="email"], .field input[type="text"] {
  font: inherit; color: var(--ink); background: var(--panel);
  border: 2px solid var(--rule); border-radius: var(--radius); padding: .75rem .85rem; min-height: 48px; width: 100%;
}
.field input:focus { border-color: var(--ink); outline: none; }
.field input[aria-invalid="true"] { border-color: var(--err); }
.checks { gap: .5rem; }
.check { display: flex; gap: .6rem; align-items: center; font-weight: 500 !important; font-size: var(--step-0) !important; }
.check input { width: 1.2rem; height: 1.2rem; accent-color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup__status { min-height: 1.6em; font-weight: 600; }
.signup__status.is-ok { color: var(--ok); }
.signup__status.is-err { color: var(--err); }
@media (max-width: 820px) { .notify { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* Store */
.store { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.store__copy { display: grid; gap: 1rem; max-width: 38rem; }
.store__hours { display: grid; gap: 0; margin: .5rem 0 0; border-top: 3px solid var(--red); }
.store__hours > div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.store__hours dt { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding-top: .15rem; }
.store__hours dd { margin: 0; font-weight: 600; }
.store__aisles { background: var(--panel); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--rule); padding: 1.5rem; }
.store__aisles-h { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; margin-bottom: .75rem; }
.aisles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.aisles li { padding: .6rem 0; border-bottom: 1px dashed var(--rule); display: flex; gap: .75rem; align-items: baseline; }
.aisles li::before { content: counter(aisle, decimal-leading-zero); counter-increment: aisle; font-family: var(--f-mono); font-size: .75rem; color: var(--muted); }
.aisles { counter-reset: aisle; }
@media (max-width: 820px) { .store { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* Visit */
.section--visit { background: var(--red); color: var(--red-ink); }
.section--visit .eyebrow { color: var(--band-muted); }
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: end; }
.visit > div:first-child { display: grid; gap: 1rem; }
.contact { margin: 0; display: grid; border-top: 3px solid #111111; }
.contact > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--band-rule); }
.contact dt { font-family: var(--f-mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--band-muted); font-weight: 600; padding-top: .15rem; }
.contact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 820px) { .visit { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

/* Footer */
.footer { background: var(--footer); color: #ffffff; }
.footer__inner { display: grid; gap: .35rem; padding-block: 1.5rem 2rem; }
.footer .fine { color: rgba(255, 255, 255, 0.72); }

/* Lightbox */
.lightbox {
  border: 0; padding: 0; background: var(--footer); color: #ffffff;
  width: min(64rem, calc(100vw - 32px)); max-height: calc(100vh - 32px); border-radius: var(--radius);
}
.lightbox::backdrop { background: rgba(8, 11, 14, .82); }
.lightbox__fig { margin: 0; display: grid; gap: .5rem; }
.lightbox__fig img { width: 100%; max-height: calc(100vh - 11rem); object-fit: contain; background: #000000; }
.lightbox__fig figcaption { padding: 0 1rem; font-weight: 600; }
.lightbox__bar { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem 1rem; flex-wrap: wrap; }
.lb-btn { font: 600 var(--step--1)/1 var(--f-body); background: transparent; color: inherit; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius); padding: .6rem .9rem; min-height: 44px; cursor: pointer; }
.lb-btn:hover { border-color: #ffffff; }
.lb-count { font-family: var(--f-mono); font-size: var(--step--1); color: rgba(255, 255, 255, 0.72); flex: 1; text-align: center; }
.lb-close { background: var(--red); color: #ffffff; border-color: var(--red); }

/* Preview-only banner (only shows when the sign-up can't reach the server) */
.preview-note { margin-top: .25rem; font-size: var(--step--1); color: var(--muted); }
