:root {
  color-scheme: dark;
  --background: #0b1715;
  --surface: #10221e;
  --border: #30483e;
  --muted: #b6c8be;
  --text: #f1f1e9;
  --accent: #e6c791;
  --columns: minmax(190px, 1fr) minmax(210px, 1.45fr) 60px 142px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
.wrap { max-width: 1180px; margin-inline: auto; padding: 26px 24px 22px; }
.showcase-heading {
  display: flex;
  min-height: 147px;
  align-items: center;
  margin-bottom: 20px;
  padding: 23px 32px;
  border: 1px solid #3d584b;
  border-radius: 16px;
  background:
    linear-gradient(90deg, #142722 8%, #142722ef 37%, #1427229e 65%, #15272017),
    url("img/og-image.jpeg") center 52% / cover no-repeat #142722;
}
.showcase-heading h1 {
  margin: 0;
  color: #f4d8a9;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.45rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
}

.showcase-labels, .offer-row {
  display: grid;
  grid-template-columns: var(--columns);
  align-items: center;
  gap: 18px;
  padding-inline: 17px;
}
.showcase-labels {
  padding-block: 7px 10px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.showcase-labels span:nth-child(n+3) { text-align: center; }
.offers { display: grid; gap: 8px; }
.offer-row {
  min-height: 77px;
  padding-block: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.offer-row-featured {
  border-color: #917c53;
  background: linear-gradient(110deg, #223b2f, #142720 66%);
}
.offer-row:focus-within, .offer-row:hover { border-color: #a9956e; }
.offer-brand { display: flex; min-width: 0; align-items: center; gap: 12px; }
.offer-brand h2 { margin: 0; font-size: 1.06rem; line-height: 1.23; letter-spacing: -.028em; }
.offer-rank { color: #adccba; font-size: .78rem; font-weight: 600; }
.offer-top { display: block; margin-bottom: 3px; color: #efd7a9; font-size: .74rem; font-weight: 800; }
.offer-logo {
  display: grid;
  width: 71px;
  height: 47px;
  flex: 0 0 71px;
  place-items: center;
  overflow: hidden;
  padding: 6px;
  border: 1px solid #3b5549;
  border-radius: 8px;
  background: #192d25;
  color: #eff4e9;
  font-weight: 800;
}
.offer-logo[data-plate="light"] { background: #eeeee4; }
.offer-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.offer-bonus { margin: 0 0 5px; color: #f0d8aa; font-size: 1rem; font-weight: 800; }
.offer-features {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: .82rem;
  list-style: none;
}
.offer-features li + li::before { content: "·"; margin-right: 8px; color: #90bba5; }
.offer-score { color: var(--muted); text-align: center; white-space: nowrap; }
.offer-score strong { color: #f2f5eb; font-size: 1.25rem; letter-spacing: -.045em; }
.offer-score span { font-size: .75rem; }
.offer-action {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--accent);
  color: #22271d;
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.offer-action:hover { background: #f7ddb1; }
.offer-action:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.showcase-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px 16px;
  margin-top: 15px;
  padding: 10px 1px;
  color: var(--muted);
  font-size: .79rem;
}
.showcase-footer p { margin: 0; }

@media (max-width: 870px) {
  :root { --columns: minmax(145px, .9fr) minmax(175px, 1.3fr) 49px 119px; }
  .showcase-labels, .offer-row { gap: 12px; padding-inline: 13px; }
  .offer-logo { width: 54px; height: 42px; flex-basis: 54px; }
}

@media (max-width: 680px) {
  .wrap { padding: 13px 14px 18px; }
  .showcase-heading { min-height: 109px; margin-bottom: 11px; padding: 16px; }
  .showcase-heading h1 { max-width: 11ch; }
  .showcase-labels { display: none; }
  .offer-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand score" "details details" "action action";
    gap: 10px;
    padding: 12px;
  }
  .offer-brand { grid-area: brand; }
  .offer-score { grid-area: score; }
  .offer-details { grid-area: details; }
  .offer-action { grid-area: action; }
}
