:root {
  --bg: #0e0d0b;
  --ink: #f4efe6;
  --muted: #b7ad9e;
  --line: rgba(244, 239, 230, 0.14);
  --gold: #e6b15a;
  --terracotta: #d4654a;
  --teal: #3f8f86;
  --cream: #efe6d6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(230, 177, 90, 0.18), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(63, 143, 134, 0.14), transparent 55%),
    var(--bg);
  font-family: Manrope, sans-serif;
}

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-family: Unbounded, sans-serif;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.mark {
  width: 22px;
  height: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.mark i { display: block; border-radius: 2px; }
.mark i:nth-child(1) { background: var(--gold); }
.mark i:nth-child(2) { background: var(--terracotta); }
.mark i:nth-child(3) { background: var(--teal); }
.mark i:nth-child(4) { background: var(--cream); }

.store-link {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
}

.store-link:hover,
.store-link:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.intro { padding: 36px 0 22px; }

h1 {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  font-size: clamp(56px, 8vw, 96px);
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 72px;
}

.card {
  position: relative;
  display: flex;
  min-height: 340px;
  border-radius: 24px;
  overflow: hidden;
  color: white;
  text-decoration: none;
  background: #221f1a;
  isolation: isolate;
}

.card.featured {
  grid-column: span 2;
  min-height: 480px;
}

.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}

.card:hover .cover,
.card:focus-visible .cover { transform: scale(1.07); }

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(8, 7, 6, 0.05) 15%, rgba(8, 7, 6, 0.82) 100%);
}

.card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.card-body {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: end;
  width: 100%;
  padding: 18px;
}

.icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.featured .icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}

h2 {
  margin: 0;
  font-family: Unbounded, sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.featured h2 { font-size: 28px; }

.summary {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured .summary {
  -webkit-line-clamp: 3;
  font-size: 16px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pill {
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 12px;
  letter-spacing: 0.01em;
}

.empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

footer strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

footer a { color: var(--ink); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.policy {
  max-width: 760px;
  padding: 28px 0 72px;
}

.policy h1 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 8px;
}

.policy h2 {
  margin: 42px 0 14px;
  font-family: Unbounded, sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.policy h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.policy p,
.policy li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.policy p { margin: 0 0 12px; }

.policy ul {
  margin: 0 0 16px;
  padding-left: 18px;
}

.policy a { color: var(--ink); }

@media (max-width: 900px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .grid { grid-template-columns: 1fr; }
  .card,
  .card.featured {
    grid-column: auto;
    min-height: 380px;
  }
  .featured h2 { font-size: 22px; }
  footer { flex-direction: column; }
}
