:root {
  color-scheme: dark;
  background: #152521;
  color: #f0f1e5;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  --muted: #bdc9ba;
  --accent: #d8e5aa;
  --line: #486056;
  --display: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
.catalog { max-width: 1280px; margin-inline: auto; padding: clamp(36px, 7vw, 98px) clamp(18px, 6vw, 80px); }
.catalog-header { margin-bottom: clamp(24px, 4vw, 48px); }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.045em; }
h1 { font-size: clamp(52px, 8vw, 104px); line-height: .95; }
.catalog-header p { margin: 16px 0 0; color: var(--muted); font-size: 16px; }
.worlds { display: grid; grid-template-columns: minmax(0, 1fr); }
.city-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  background: #20342b;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.city-card:hover { border-color: var(--accent); }
.city-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.city-card img { display: block; width: 100%; height: 100%; min-height: 220px; aspect-ratio: 3 / 1; object-fit: cover; object-position: center 47%; }
.city-caption { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: clamp(18px, 3vw, 30px); }
.city-location { margin: 0 0 8px; color: var(--accent); font-size: 13px; }
.city-caption h2 { font-size: clamp(42px, 5vw, 64px); line-height: 1; }
.city-description { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.city-action { display: inline-flex; gap: 9px; align-items: center; flex: none; padding: 9px 12px; border: 1px solid #789068; border-radius: 7px; color: var(--accent); font-size: 13px; font-weight: 600; }
.city-card:hover .city-action { background: var(--accent); color: #152521; }
.world-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.world-card { display: flex; min-width: 0; flex-direction: column; color: inherit; text-decoration: none; background: #20342b; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.world-card:hover { border-color: var(--accent); }
.world-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.world-card img { display: block; width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; }
.world-card-text { position: relative; padding: 18px 35px 19px 17px; }
.world-card h2 { font-size: clamp(28px, 3.7vw, 43px); line-height: 1; }
.world-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.world-card span { position: absolute; top: 19px; right: 17px; color: var(--accent); }
@media (max-width: 740px) {
  .world-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 470px) {
  .city-caption { flex-wrap: wrap; }
  .world-grid { grid-template-columns: minmax(0, 1fr); }
}
