/* Black Friday 2026: the five landing pages (black-friday-*.html) and the cart when it is dressed like an ad.
   The look is the ads' own: one deep ground per ad, off-white type, a tight bold headline in capitals and the yellow
   tag in Instrument Serif Italic. Below the opening the page goes back to the kit site's paper and ink, with the ad's
   ground as its accent colour. Loaded after site.css. Colours measured: off-white on every ground is 9:1 or better. */

.bf, body[data-bf] {
  --ground: #183c31;
  --paper: #fffdf7;
  --paper-soft: rgba(255, 253, 247, .82);
  --tag: #ffda77;
  --tag-ink: #181714;
  --grotesk: "Urbanist", "Helvetica Neue", Arial, sans-serif;
  --accent: var(--ground);
  --accent-ink: var(--ground);
  --cta: var(--ground);
  --cta-hover: #0e0e10;
}

/* The yellow tag, as on the ads. */
.bf-tag { display: inline-block; margin: 0; padding: .04em .32em .1em; background: var(--tag); color: var(--tag-ink); font: italic 400 clamp(23px, 2.7vw, 36px)/1.05 var(--serif); letter-spacing: -.02em; white-space: nowrap; transform: rotate(-.65deg); }

/* Header on the ground colour. */
.bf .masthead { background: var(--ground); border-bottom-color: rgba(255, 253, 247, .16); -webkit-backdrop-filter: none; backdrop-filter: none; }
.bf .brand, .bf .masthead nav a, .bf .masthead nav a:hover { color: var(--paper); }
.bf .brand .mark { filter: brightness(0) invert(1); }
.bf .brand-product { color: var(--paper-soft); border-left-color: rgba(255, 253, 247, .3); }
.bf .masthead nav a.nav-buy, .bf .masthead nav a.nav-buy:hover { background: var(--tag); color: var(--tag-ink); }
.bf .masthead :focus-visible { outline-color: var(--paper); }

/* Opening: the ad. On a phone it stacks like the feed ad: headline, tag, photo, words, button. */
.bf-hero { background: var(--ground); color: var(--paper); overflow: hidden; }
.bf-hero-in { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); grid-template-areas: "top photo" "bottom photo"; grid-template-rows: auto 1fr; column-gap: clamp(24px, 4vw, 64px); padding-block: clamp(28px, 4.4vw, 64px) clamp(40px, 5vw, 76px); }
.bf-top { grid-area: top; align-self: end; container-type: inline-size; }
.bf-bottom { grid-area: bottom; align-self: start; }
/* Sized to its column so each line of the ad stays one line: --fit is the longest line's width in em (black-friday.js). */
.bf-hero h1 { margin: 0; color: var(--paper); font: 700 clamp(30px, calc(100cqi / var(--fit, 9.8)), 84px)/.9 var(--grotesk); letter-spacing: -.055em; text-transform: uppercase; }
.bf-hero h1 span { display: block; text-wrap: balance; }
.bf-hero h1 .bf-big { font-size: 1.37em; line-height: .89; }
.bf-hero .bf-tag { margin-top: 18px; }
.bf-hero .bf-tag-first { margin: 0 0 16px; }
.bf-kit { margin: 30px 0 6px; font: italic 700 clamp(17px, 1.5vw, 20px)/1.1 var(--grotesk); letter-spacing: -.02em; }
.bf-body { margin: 0; max-width: 29em; font: 500 clamp(18px, 1.7vw, 22px)/1.3 var(--grotesk); letter-spacing: -.015em; text-wrap: pretty; }
.bf-hero .actions { margin-top: 26px; }
.bf-ends { margin: 18px 0 0; max-width: 33em; font-size: 15.5px; line-height: 1.5; color: var(--paper-soft); text-wrap: pretty; }
.bf-ends b { color: var(--paper); font-weight: 600; }
.bf-photo { grid-area: photo; align-self: center; position: relative; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; }
.bf-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.bf-photo::after { content: ""; position: absolute; inset: -1px; pointer-events: none; background: linear-gradient(to right, var(--ground), transparent 16%, transparent 84%, var(--ground)), linear-gradient(to bottom, var(--ground), transparent 14%, transparent 84%, var(--ground)); }

/* Buttons and links on the ground colour. */
.bf-hero .button.primary, .bf-offer .button.primary, .bf-ended .button.primary { min-height: 56px; padding: 0 30px; background: var(--tag); color: var(--tag-ink); font-size: 17px; font-weight: 600; }
.bf-hero .button.primary:hover, .bf-offer .button.primary:hover, .bf-ended .button.primary:hover { background: #ffe49b; box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .7); }
.bf-hero .inline, .bf-offer .inline { color: var(--paper); text-decoration-color: rgba(255, 253, 247, .45); }
.bf-hero :focus-visible, .bf-offer :focus-visible, .bf-ended :focus-visible { outline-color: var(--paper); }

/* Sections on paper. */
.bf-section { padding-block: clamp(48px, 6.4vw, 92px) 0; }
.bf-section > .section-heading { max-width: 46em; }
.bf-section > .section-heading p { margin: 14px auto 0; font: 400 clamp(19px, 1.7vw, 22px)/1.42 var(--serif); max-width: 34em; text-wrap: pretty; }
.bf-section h2 em { color: var(--ground); }

/* A page from the kit, shown as it reads there. */
.kit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; margin-top: 32px; align-items: start; }
.kit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(18px, 2.4vw, 28px); }
.kit-card.wide { grid-column: 1 / -1; }
.kit-from { margin: 0 0 10px; font: 600 12px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ground); }
.kit-card h3 { margin: 0 0 12px; font: 600 clamp(20px, 2vw, 25px)/1.15 var(--sans); letter-spacing: -.022em; }
.kit-card h4 { margin: 18px 0 8px; font: 600 13px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.kit-card p { margin: 0 0 10px; font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.kit-card > :last-child { margin-bottom: 0; }
.kit-rows, .kit-list, .kit-chips, .lights, .bf-modules, .bf-steps, .bf-also { list-style: none; margin: 0; padding: 0; }
.kit-rows li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.4; }
.kit-rows li b { font: 600 14px/1.5 var(--sans); color: var(--ground); white-space: nowrap; }
.kit-list { counter-reset: k; }
.kit-list li { counter-increment: k; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.42; }
.kit-list li::before { content: counter(k); font: 600 14px/1.55 var(--sans); color: var(--ground); }
.kit-list.plain li { grid-template-columns: minmax(0, 1fr); }
.kit-list.plain li::before { content: none; }
.kit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-chips li { padding: 7px 13px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 14.5px; line-height: 1.25; }
.kit-say { margin: 12px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); font-size: 16px; line-height: 1.5; }
.kit-say:last-child { margin-bottom: 0; }
.kit-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 14px; margin-top: 16px; }
.kit-role { padding: 16px 16px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.kit-role h4 { margin: 0 0 6px; font: 600 17px/1.2 var(--sans); letter-spacing: -.015em; text-transform: none; color: var(--ink); }
.lights li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.lights li::before { content: ""; position: absolute; left: 0; top: 15px; width: 11px; height: 11px; border-radius: 50%; background: #1d8a4a; }
.lights li.ask::before { background: #d9820a; }
.lights li.no::before { background: #c4382d; }
.lights b { font-weight: 600; }

/* The six modules and the rest of the kit. */
.bf-modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); column-gap: 32px; margin-top: 30px; }
.bf-modules li { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.bf-modules b { font: 500 28px/1 var(--sans); letter-spacing: -.035em; }
.bf-modules b small { display: block; margin-top: 5px; font: 600 11px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--mute); }
.bf-modules h3 { margin: 0 0 5px; font: 600 18px/1.2 var(--sans); letter-spacing: -.015em; }
.bf-modules p { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--mute); }
.bf-also { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 10px 32px; margin-top: 28px; font-size: 16.5px; line-height: 1.4; }
.bf-also li { display: flex; align-items: flex-start; gap: 12px; }
.bf-also li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--ground) var(--tick) center / 13px no-repeat; }

/* After you pay. */
.bf-steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; margin-top: 30px; }
.bf-steps li { counter-increment: s; padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.bf-steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%; background: var(--ground); color: var(--paper); font: 600 15px/1 var(--sans); }
.bf-steps h3 { margin: 0 0 6px; font: 600 19px/1.2 var(--sans); letter-spacing: -.018em; }
.bf-steps p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--mute); }

/* The price panel. */
.bf-offer { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 60px); align-items: center; margin-top: var(--pad); padding: clamp(28px, 5vw, 68px); border-radius: var(--r-lg); background: var(--ground); color: var(--paper); }
.bf-offer h2 { margin: 0 0 16px; color: var(--paper); font: 700 clamp(34px, 4.6vw, 64px)/.9 var(--grotesk); letter-spacing: -.05em; text-transform: uppercase; }
.bf-offer .price strong { font: 700 clamp(64px, 8vw, 108px)/.86 var(--grotesk); letter-spacing: -.06em; }
.bf-offer .price span { font-size: 18px; color: var(--paper-soft); }
.bf-price-note { margin: 16px 0 0; max-width: 28em; font-size: 17.5px; line-height: 1.45; text-wrap: pretty; }
.bf-price-note b { font-weight: 600; }
.bf-price-ends { margin: 8px 0 0; font-size: 17.5px; line-height: 1.45; font-weight: 600; }
.bf-offer .actions { margin-top: 24px; }
.bf-offer .note { margin: 16px 0 0; color: var(--paper-soft); }
.bf-offer .note a { color: var(--paper); }
.bf-offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 17px; line-height: 1.4; }
.bf-offer-list li { display: flex; align-items: flex-start; gap: 12px; }
.bf-offer-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: rgba(255, 253, 247, .2) var(--tick) center / 13px no-repeat; }

/* What the page says once the sale has ended. */
.bf-ended { padding-block: clamp(64px, 10vw, 150px); background: var(--ground); color: var(--paper); text-align: center; }
.bf-ended h1 { margin: 0 auto 18px; max-width: 14em; color: var(--paper); font: 700 clamp(38px, 5.4vw, 76px)/.92 var(--grotesk); letter-spacing: -.05em; text-transform: uppercase; }
.bf-ended p { margin: 0 auto; max-width: 30em; font: 400 clamp(19px, 1.8vw, 23px)/1.42 var(--serif); }
.bf-ended .actions { justify-content: center; margin-top: 28px; }

/* The cart, dressed like the ad the buyer came from (cart.html?from=bf-001). */
.cart-ad { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: center; max-width: 500px; margin: 0 auto 28px; text-align: left; }
.cart-ad[hidden] { display: none; }
.cart-ad img { display: block; width: 92px; height: 92px; object-fit: cover; border-radius: 16px; }
.cart-ad-words { display: block; }
.cart-ad .bf-tag { font-size: clamp(18px, 2.4vw, 22px); }
.cart-ad-head span { display: block; }
.cart-ad-head { display: block; margin: 10px 0 0; font: 700 clamp(20px, 3vw, 27px)/.95 var(--grotesk); letter-spacing: -.045em; text-transform: uppercase; }
.cart-ad-head.plain { text-transform: none; line-height: 1; }
body[data-bf] .cart-panel { background: var(--ground); color: var(--paper); }
body[data-bf] .cart-panel h1 { font-family: var(--grotesk); font-weight: 700; letter-spacing: -.05em; line-height: .92; text-transform: uppercase; }
body[data-bf] .cart-panel h1 em { font: inherit; color: var(--tag); }
body[data-bf] .cart-panel .lede, body[data-bf] .cart-buy .works { color: var(--paper-soft); }
body[data-bf] .cart-buy .works li.name { color: var(--paper); background: rgba(255, 253, 247, .1); box-shadow: inset 0 0 0 1px rgba(255, 253, 247, .24); }
body[data-bf] .plan .button.primary { background: var(--ground); color: var(--paper); }
body[data-bf] .plan .button.primary:hover { background: #0e0e10; }
body[data-bf] .cart-panel :focus-visible { outline-color: var(--paper); }
body[data-bf] .plan :focus-visible { outline-color: var(--ink); }

@media (max-width: 760px) {
  /* phones show pages at 85%: 52px here is 44px on the screen */
  .bf .masthead nav a.nav-buy { min-height: 52px; }
}

@media (max-width: 860px) {
  .bf-hero-in { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "photo" "bottom"; grid-template-rows: none; padding-block: 26px 40px; }
  .bf-photo { margin: 6px calc(-1 * var(--gutter)) 0; aspect-ratio: 1 / .88; }
  .bf-photo::after { background: linear-gradient(to bottom, var(--ground), transparent 22%, transparent 74%, var(--ground)); }
  .bf-kit { margin-top: 8px; }
  .bf-ends, .sale-note { font-size: 17px; }
  .bf-tag-first { margin-bottom: 14px; }
  .bf-hero .actions .button.primary { width: 100%; }
  .bf-offer { grid-template-columns: minmax(0, 1fr); }
  .bf-offer .actions .button.primary { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
  .bf-top, .bf-photo, .bf-bottom { animation: bf-in .7s cubic-bezier(.2, .7, .2, 1) both; }
  .bf-photo { animation-delay: .08s; }
  .bf-bottom { animation-delay: .16s; }
  @keyframes bf-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
