* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #101a22;
  color: #eaf1f3;
  font:
    16px/1.55 "Segoe UI",
    Arial,
    sans-serif;
}
a {
  color: #a2e5d1;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 3px solid #ffce79;
  outline-offset: 3px;
}
header,
footer {
  background: #0c141b;
  border-block: 1px solid #2c414b;
}
header > div,
main,
footer > div {
  max-width: 1120px;
  margin: auto;
  padding: 18px 24px;
}
header a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  font-weight: 700;
}
header img {
  border-radius: 9px;
}
main {
  padding-block: 28px 64px;
}
nav {
  margin-bottom: 24px;
  color: #bed0d5;
}
h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.04em;
  margin: 10px 0 16px;
}
h2 {
  margin-top: 36px;
}
p {
  max-width: 72ch;
}
.intro {
  background: linear-gradient(105deg, #233946, #14232e);
  border: 1px solid #38515c;
  padding: clamp(20px, 4vw, 44px);
  border-radius: 18px;
}
.item {
  display: flex;
  align-items: center;
  gap: 22px;
}
.item img,
.thumb {
  object-fit: contain;
  background: #172630;
  border-radius: 9px;
}
.search {
  margin: 24px 0 0;
  display: flex;
  gap: 8px;
  max-width: 600px;
}
input,
button {
  font: inherit;
  border-radius: 8px;
  padding: 10px 12px;
}
input {
  min-width: 0;
  flex: 1;
  background: #101b23;
  color: white;
  border: 1px solid #657d88;
}
button {
  border: 0;
  background: #9fe5cc;
  color: #10291f;
  font-weight: 650;
  cursor: pointer;
}
.chips,
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips a,
.links a {
  padding: 5px 12px;
  border: 1px solid #46616a;
  border-radius: 8px;
}
.cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 9px;
  padding: 0;
}
.cards a {
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #1b2a34;
  border-radius: 8px;
  height: 100%;
}
.cards small,
footer {
  color: #adc1c8;
}
.cards small {
  display: block;
}
.thumb {
  flex: none;
  width: 42px;
  height: 42px;
}
.facts {
  padding: 18px 20px;
  border-left: 3px solid #709c92;
  background: #192731;
  margin-block: 12px;
}
.facts p {
  white-space: pre-line;
}
.facts p:first-child {
  margin-top: 0;
}
.facts p:last-child {
  margin-bottom: 0;
}
footer {
  font-size: 0.875rem;
}
@media (max-width: 550px) {
  .item {
    align-items: flex-start;
    flex-direction: column;
  }
  main,
  header > div,
  footer > div {
    padding-inline: 16px;
  }
}
