/* ============================================================
   TXTUR — Black Friday block on the home page (Arden's design, Nov 2026)
   Loaded only on the home page, only while content/site.json -> promo.black_friday is true.
   Everything is scoped under .bf so the rest of the site is unaffected.
   Markup: src/templates/_black_friday.html
   ============================================================ */
.bf {
  --ink: #343333;
  --paper: #ffffff;
  --line-dark: rgba(255,255,255,.55);
  --line-light: rgba(52,51,51,.75);
  --sans: "Open Sans", Helvetica, Arial, sans-serif;
  --serif: "Baskerville", "Libre Baskerville", "Baskerville Old Face", Georgia, serif;
  --cols: 6;
  --row: clamp(90px, 12vw, 180px);
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: var(--sans); -webkit-font-smoothing: antialiased;
}
.bf *, .bf *::before, .bf *::after { box-sizing: border-box; }
.bf a { color: inherit; text-decoration: none; }
.bf img, .bf video { display: block; max-width: 100%; }
.bf .serif { font-family: var(--serif); font-weight: 400; }
.bf .caps { text-transform: uppercase; letter-spacing: .12em; }

/* grid-line backgrounds (matches the posters) */
.bf .grid-dark, .bf .grid-light { position: relative; }
.bf .grid-dark  { background-color: var(--ink); color: var(--paper);
  background-image:
    linear-gradient(to right, var(--line-dark) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-dark) 1px, transparent 1px);
  background-size: calc(100% / var(--cols)) var(--row); }
.bf .grid-light { background-color: var(--paper);
  background-image:
    linear-gradient(to right, var(--line-light) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-light) 1px, transparent 1px);
  background-size: calc(100% / var(--cols)) var(--row); }


/* ---------- hero (traced from the TXTUR design file) ---------- */
.bf-hero { background: var(--ink); line-height: 0; }
.bf-hero-art { width: 100%; height: auto; display: block; }
.bf-hero-art .gl line { stroke: #fff; stroke-opacity: .8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.bf-hero-art .ink path { fill: #fff; fill-rule: evenodd; }
.bf-hero-art.mob { display: none; }
.bf .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bf .btn { display: inline-block; padding: 14px 26px; font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; border: 1.5px solid var(--ink); }
.bf .btn.solid { background: var(--ink); color: var(--paper); }
.bf .btn:hover { background: var(--ink); color: var(--paper); }
.bf .btn.solid:hover { background: var(--paper); color: var(--ink); }

/* ---------- scrolling banner ---------- */
.bf-ticker { background: var(--paper); color: var(--ink); overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.bf-ticker .track { display: inline-flex; animation: bf-scroll 38s linear infinite; }
.bf-ticker:hover .track { animation-play-state: paused; }
.bf-ticker .set { display: inline-flex; align-items: baseline; }
.bf-ticker .item { display: inline-flex; align-items: baseline; gap: .4em; padding: 0 1.1em;
  font-size: clamp(18px, 2.2vw, 34px); line-height: 1; padding-block: .62em; }
.bf-ticker .item .serif { font-size: 1.35em; }
.bf-ticker .item b { font-weight: 800; letter-spacing: .06em; }
.bf-ticker .item .caps { font-size: .62em; letter-spacing: .16em; }
.bf-ticker .dot { width: .32em; height: .32em; border: 1.5px solid currentColor; transform: rotate(45deg);
  font-size: clamp(18px, 2.2vw, 34px); flex: none; align-self: center; }
@keyframes bf-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .bf-ticker .track { animation-duration: 120s; } }

/* ---------- details strip ---------- */
.bf-details { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); }
.bf-details div { padding: 34px clamp(16px, 2.4vw, 32px); border-right: 1px solid var(--line-dark); }
.bf-details div:last-child { border-right: 0; }
.bf-details .serif { font-size: clamp(30px, 3.4vw, 48px); display: block; line-height: 1.05; }
.bf-details .caps { font-size: 12px; display: block; margin-top: 10px; opacity: .85; }

/* ---------- showroom / made in USA ---------- */
.bf-visit { display: grid; grid-template-rows: repeat(4, var(--row)); justify-items: center; align-items: center;
  text-align: center; padding: 0 clamp(20px, 6vw, 80px); }
.bf-visit .eyebrow { font-size: 13px; }
.bf-visit h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 4.4vw, 64px);
  line-height: 1.1; margin: 0; max-width: 18ch; }
.bf-visit p { max-width: 54ch; margin: 0; font-size: 16px; line-height: 1.65; }
.bf-visit .btn { border-color: var(--paper); }
.bf-visit .btn:hover { background: var(--paper); color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 700px) {
  .bf-hero-art.desk { display: none; }
  .bf-hero-art.mob { display: block; }
}
@media (max-width: 860px) {
  .bf { --cols: 4; --row: 22vw; }
  .bf-details { grid-template-columns: 1fr 1fr; }
  .bf-details div:nth-child(2) { border-right: 0; }
  .bf-details div:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .bf-visit { grid-template-rows: var(--row) var(--row) calc(var(--row) * 2) var(--row); }
  .bf-visit p { font-size: 14px; }
}

/* ---------- fitting into txtur.com ---------- */
.bf { line-height: normal; font-size: 16px; }
.bf h2, .bf p { color: inherit; }
.bf .eyebrow { color: inherit; font-family: var(--sans); font-weight: 400; margin: 0; }
.bf-visit .eyebrow { font-size: 13px; letter-spacing: .12em; }
.bf .btn { background: transparent; color: inherit; border-radius: 0; line-height: normal; font-family: var(--sans); transition: background .2s, color .2s; }
.bf .btn:hover { transform: none; }
/* while the block is up, the home header is a solid dark bar above it instead of floating over the photo */
html:not(.bf-over) body.has-promo .site-header { position: relative; background: #343333; border-bottom: 1px solid rgba(255,255,255,.55); }
/* after the end date (set in site.json -> promo.ends) the block hides itself and the home page is back to normal */
html.bf-over .bf { display: none; }
