/* The front page; header and settings come from about.css and the base stylesheets. The card
   has the 10 px corners of the city seeker's quartet card: a large surface to tap. */
.home-shell {
  min-height: 100vh;
  background: radial-gradient(circle at 70% 20%, #14405a 0, #081c31 46%, #06172a 100%);
}

.home-intro {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 4.5vw 34px;
}

.home-eyebrow {
  margin: 0;
  color: #8eafb8;
  font: 500 10px var(--font-mono);
  letter-spacing: 1.2px;
}

.home-intro h1 {
  margin: 10px 0 12px;
  color: #eff9f8;
  font: 500 clamp(28px, 4vw, 44px)/1.15 var(--font-text);
  letter-spacing: .3px;
}

.home-lead {
  max-width: 62ch;
  margin: 0;
  color: #a7c1c6;
  font-size: 16px;
  line-height: 1.55;
}

.home-next {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  margin-top: 18px;
  padding: 8px 12px;
  border: 1px solid #efbe3d;
  border-radius: 3px;
  background: rgba(255, 207, 82, .1);
  color: #ffda63;
  font: 500 11px var(--font-mono);
  letter-spacing: .8px;
  text-decoration: none;
}

.home-next b {
  color: #fff;
  font-weight: 500;
}

.home-next:hover,
.home-next:focus-visible {
  background: rgba(255, 207, 82, .22);
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 4.5vw 56px;
}

.home-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #000;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s;
}

.home-card:hover,
.home-card:focus-visible {
  border-color: #ffcf52;
  outline: 0;
}

.home-card:focus-visible {
  box-shadow: 0 0 0 3px #ffcf52;
}

.home-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #06172a;
  direction: ltr;
}

.home-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-art--shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 23, 42, .85));
  pointer-events: none;
}

.home-art--viewer img {
  object-position: 40% 50%;
}

.home-art--cities img {
  object-position: 0 0;
}

.home-art--historical img {
  object-position: 50% 45%;
}

.home-art--drawing {
  background: #000;
}

.home-art--drawing img {
  object-fit: contain;
  padding: 4% 3% 14%;
}

.home-chip,
.home-years > span {
  border: 1px solid rgba(205, 233, 237, .35);
  border-radius: 3px;
  background: rgba(0, 0, 0, .72);
  color: #b9d7db;
  font: 500 10px var(--font-mono);
  letter-spacing: .8px;
}

.home-chip {
  position: absolute;
  z-index: 1;
  left: 14px;
  bottom: 12px;
  padding: 6px 9px;
  border-color: #efbe3d;
  color: #ffda63;
}

.home-kinds {
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 6%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1%;
  text-align: center;
}

.home-kinds span {
  color: #ffda63;
  font: 500 10px var(--font-mono);
  letter-spacing: 1.2px;
}

.home-years {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.home-years > span {
  padding: 4px 7px;
}

.home-years .home-years__now {
  border-color: #efbe3d;
  color: #ffda63;
}

.home-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.home-card__tag {
  margin-bottom: 6px;
  color: var(--aqua);
  font: 500 13px var(--font-text);
  letter-spacing: .3px;
}

.home-card h2 {
  margin: 0 0 8px;
  color: #ffda63;
  font: 500 22px/1.25 var(--font-text);
  letter-spacing: .2px;
}

.home-card p {
  margin: 0 0 10px;
  color: #c9dfe2;
  font-size: 14px;
  line-height: 1.55;
}

.home-card ul {
  display: grid;
  gap: 6px;
  margin: 4px 0 14px;
  padding: 0;
  list-style: none;
}

.home-card li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #b9d7db;
  font-size: 13px;
  line-height: 1.4;
}

.home-card li svg {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--aqua);
}

.home-action {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid #efbe3d;
  border-radius: 3px;
  background: rgba(255, 207, 82, .1);
  color: #ffda63;
  font: 600 11px var(--font-mono);
  letter-spacing: 1px;
  white-space: nowrap;
}

.home-action::after {
  content: " →";
}

[dir="rtl"] .home-action::after {
  content: " ←";
}

@media (max-width: 900px) {
  .home-intro {
    padding-top: 36px;
  }

  .home-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* On a phone the countries always get a line of their own, so the bar keeps its height
     when src/home.js translates them. */
  .home-next__countries {
    flex-basis: 100%;
  }

  .home-card__body {
    padding: 18px 18px 20px;
  }

  .home-card h2 {
    font-size: 20px;
  }
}

.home-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.home-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 4.5vw 40px;
}

.home-footer .page-nav {
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.home-footer .page-nav a {
  color: #b9d7db;
}
