:root {
  color-scheme: dark;
  --lime: #c6ff6a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #090e16;
  color: #f5f3ed;
  font:
    16px/1.6 system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--lime);
}
.wrap {
  max-width: 1100px;
  margin: auto;
  padding: 0 24px;
}
.head {
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #334047;
}
.head strong {
  font-size: 20px;
  letter-spacing: 0.08em;
}
.head a:last-child {
  color: var(--lime);
}
.hero {
  padding: 80px 0 35px;
}
.eyebrow {
  font: 700 12px monospace;
  letter-spacing: 0.2em;
  color: var(--lime);
}
h1 {
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.05;
  letter-spacing: -0.065em;
  margin: 17px 0 25px;
}
.hero p {
  color: #b8c9c4;
  max-width: 650px;
  font-size: 19px;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}
.controls button {
  padding: 11px 18px;
  border: 1px solid #5c8b72;
  border-radius: 25px;
  background: #132529;
  color: #e6f6e5;
  font: 700 13px system-ui;
  cursor: pointer;
}
.controls button[aria-pressed="true"] {
  background: var(--lime);
  color: #0d2119;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 80px;
}
.item {
  border: 1px solid #354f4c;
  border-radius: 14px;
  background: linear-gradient(140deg, #162a31, #111a25);
  padding: 28px;
  display: flex;
  flex-direction: column;
  min-height: 270px;
}
.item[hidden] {
  display: none;
}
.item h2 {
  font-size: 27px;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.item p {
  color: #b5c6c1;
}
.item a {
  color: var(--lime);
  font-weight: 700;
  margin-top: auto;
}
.search {
  padding: 13px;
  border: 1px solid #5b766d;
  border-radius: 8px;
  background: #101e27;
  color: #f1fff0;
  width: min(440px, 100%);
}
footer {
  border-top: 1px solid #314542;
  color: #9ab2aa;
  padding: 30px 0;
  font-size: 13px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}
@media (max-width: 690px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 50px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
