:root {
  --bg-dark: #14212b;
  --bg-light: #f6f3ec;
  --surface: #ffffff;
  --text-dark: #1b242c;
  --text-dark-muted: #55616b;
  --text-light: #f6f3ec;
  --accent: #f9e14c;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.5;
}

a { color: inherit; }

.site-header {
  background: var(--bg-dark);
  padding: 18px 20px;
}

.logo {
  color: var(--text-light);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.logo span { color: var(--accent); }

.hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 36px 20px 56px;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 12px;
  max-width: 20ch;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 800;
}

.hero p {
  margin: 0 auto;
  max-width: 44ch;
  opacity: 0.85;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: -28px auto 0;
  padding: 0 20px 56px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(20, 33, 43, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 33, 43, 0.18);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #d9d3c5;
}

/* Out of flow, so a portrait cover cannot stretch the card. */
.card__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body { padding: 16px 18px 18px; }

.card__title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 700;
}

.card__cities {
  margin: 0 0 10px;
  color: var(--text-dark-muted);
  font-size: 0.95rem;
}

.card__count {
  display: inline-block;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.legal {
  max-width: 50rem;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.legal h1 {
  margin: 0 0 28px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.legal h3 {
  margin: 32px 0 14px;
  font-size: 1.35rem;
}

.legal p,
.legal li {
  color: var(--text-dark-muted);
  line-height: 1.7;
}

.legal p,
.legal ul { margin: 0 0 18px; }

.legal ul { padding-left: 1.4rem; }

.legal li { margin-bottom: 8px; }

.legal strong { color: var(--text-dark); }

.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 28px 20px 36px;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 14px;
}

.site-footer__seller {
  margin: 0;
  opacity: 0.7;
}
