:root {
  color-scheme: light;
  --bf-ink: #18151d;
  --bf-paper: #fff8eb;
  --bf-lavender: #b8a4f8;
  --bf-lime: #deff30;
  --bf-display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  --bf-body: 'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bf-paper);
  color: var(--bf-ink);
  font: 400 1rem/1.5 var(--bf-body);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #5a27bb;
  outline-offset: 4px;
}

.bf-shell {
  width: min(75rem, calc(100% - 4rem));
  margin-inline: auto;
}

.bf-masthead, .bf-hero {
  background: var(--bf-lavender);
  border-bottom: 2px solid var(--bf-ink);
}

.bf-masthead-inner {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bf-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.05em;
  text-decoration: none;
}

.bf-edition {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bf-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  padding-block: 2.5rem 3.25rem;
}

.bf-title {
  margin: 0;
  font: 900 clamp(3.35rem, 9.1vw, 8rem)/.83 var(--bf-display);
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.bf-title-line {
  display: block;
}

.bf-title-highlight {
  display: inline-block;
  margin-top: .14em;
  padding: .02em .16em .11em;
  transform: rotate(-4deg);
  background: var(--bf-lime);
  border: 2px solid var(--bf-ink);
  box-shadow: 5px 5px 0 var(--bf-ink);
}

.bf-hero-copy p {
  max-width: 32rem;
  margin: 1.65rem 0 1.5rem;
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 600;
}

.bf-hero-art {
  display: block;
  width: 100%;
  max-width: 31rem;
  height: auto;
  justify-self: end;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
    linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}

.bf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 2.75rem;
  padding: .55rem .9rem;
  border: 2px solid var(--bf-ink);
  background: var(--bf-ink);
  color: white;
  font-size: .875rem;
  font-weight: 800;
  text-decoration: none;
}

.bf-button span {
  font: 700 1.1em/1 system-ui, sans-serif;
}

.bf-button:hover {
  background: var(--bf-lime);
  color: var(--bf-ink);
}

.bf-hero-button {
  min-height: 3.25rem;
  padding-inline: 1.15rem;
  font-size: 1rem;
  box-shadow: 4px 4px 0 var(--bf-paper);
}

.bf-catalog {
  padding-block: 3rem 4.5rem;
  scroll-margin-top: 1rem;
}

.bf-catalog-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bf-ink);
}

.bf-catalog-heading h2 {
  margin: 0;
  font: 900 clamp(2.8rem, 7vw, 4.5rem)/.95 var(--bf-display);
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.bf-catalog-heading p {
  margin: 0;
  font-weight: 700;
}

.bf-controls {
  display: flex;
  align-items: end;
  gap: 1rem;
  margin-top: 1.25rem;
}

.bf-controls label {
  display: grid;
  gap: .3rem;
  min-width: 0;
  font-size: .85rem;
  font-weight: 800;
}

.bf-search-label {
  flex: 1;
}

.bf-controls input, .bf-controls select {
  width: 100%;
  min-height: 3rem;
  border: 2px solid var(--bf-ink);
  border-radius: 0;
  padding: .55rem .75rem;
  background: white;
  color: var(--bf-ink);
  font: 600 1rem/1.25 var(--bf-body);
}

.bf-controls select {
  min-width: 12rem;
}

.bf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 1.6rem;
}

.bf-deal {
  --bf-offer-background: #efffa9;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--bf-ink);
  background: white;
  box-shadow: 4px 4px 0 var(--bf-ink);
  overflow-wrap: anywhere;
}

.bf-deal:nth-child(3n + 2 of :not([hidden])) {
  --bf-offer-background: #e5daff;
}

.bf-deal:nth-child(3n of :not([hidden])) {
  --bf-offer-background: #ffdcd0;
}

.bf-deal-details {
  padding: 1.05rem 1.15rem;
}

.bf-deal h3 {
  margin: 0 0 .35rem;
  font: 800 2rem/1 var(--bf-display);
}

.bf-deal-details p {
  margin: 0;
  font-size: .95rem;
}

.bf-offer {
  margin: auto 1.15rem .95rem;
  padding: .65rem .75rem;
  background: var(--bf-offer-background);
  border-left: 3px solid var(--bf-ink);
  font-weight: 800;
  line-height: 1.35;
}

.bf-deal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  padding: .75rem 1.15rem;
  border-top: 1px solid var(--bf-ink);
  font-size: .85rem;
}

.bf-deal-footer time {
  font-weight: 800;
}

.bf-empty {
  margin: 1.6rem 0 0;
  padding: 1rem;
  border: 2px dashed var(--bf-ink);
  font-weight: 600;
}

@media (max-width: 62rem) {
  .bf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 46rem) {
  .bf-shell {
    width: calc(100% - 2rem);
  }

  .bf-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 2.5rem .5rem;
  }

  .bf-title {
    font-size: clamp(2.8rem, 12.5vw, 5.5rem);
  }

  .bf-hero-art {
    width: min(85%, 20rem);
    justify-self: center;
  }
}

@media (max-width: 34rem) {
  .bf-grid {
    grid-template-columns: 1fr;
  }

  .bf-controls {
    display: grid;
    gap: .75rem;
  }
}

[hidden] {
  display: none;
}
