:root {
  color-scheme: dark;
  --bg: #0b0b0f;
  --panel: #15151c;
  --red: #ff3657;
  --text: #f8f8fc;
  --muted: #a3a3b2;
  --border: #2c2c38;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 6%;
  border-bottom: 1px solid var(--border);
  background: #0b0b0f;
}

.logo {
  color: white;
  text-decoration: none;
  font-size: 21px;
  font-weight: 900;
}

.logo span,
.hero h1 span {
  color: var(--red);
}

.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: white;
  border-radius: 9px;
  padding: 10px 14px;
}

.hero {
  padding: 65px 6% 55px;
  background: radial-gradient(ellipse at top right, #40121f, var(--bg) 68%);
}

.badge {
  display: inline-block;
  border: 1px solid #6d2637;
  background: #251019;
  color: #ff8297;
  padding: 8px 12px;
  border-radius: 30px;
  font-size: 11px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(48px, 11vw, 76px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 25px 0 15px;
}

.hero p {
  color: var(--muted);
  max-width: 470px;
  line-height: 1.7;
}

.searchbox {
  display: flex;
  gap: 9px;
  max-width: 500px;
  margin-top: 25px;
}

input {
  width: 100%;
  min-width: 0;
  background: #15151c;
  border: 1px solid var(--border);
  color: white;
  padding: 13px;
  border-radius: 9px;
}

input:focus {
  outline: 1px solid var(--red);
}

.primary,
#searchButton {
  border: 0;
  border-radius: 9px;
  padding: 13px 18px;
  color: white;
  background: var(--red);
  font-weight: bold;
}

.store {
  padding: 30px 6% 60px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 23px;
}

.section-heading span,
.message {
  color: var(--muted);
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
}

.card-art {
  display: grid;
  place-items: center;
  min-height: 125px;
  background: linear-gradient(135deg, #391421, #171720);
  font-size: 42px;
}

.card-content {
  padding: 14px;
}

.tag {
  color: #ff8297;
  font-size: 10px;
  text-transform: uppercase;
}

.card h3 {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 15px;
}

.price {
  font-weight: bold;
  font-size: 13px;
}

.card-bottom button {
  background: #32131e;
  border: 1px solid #6d2637;
  color: #ff8297;
  padding: 8px 10px;
  border-radius: 7px;
}

.message {
  grid-column: 1 / -1;
  line-height: 1.7;
}

footer {
  text-align: center;
  border-top: 1px solid var(--border);
  padding: 25px 10px;
  color: var(--muted);
  font-size: 12px;
}

footer strong {
  color: white;
}

dialog {
  width: calc(100% - 36px);
  max-width: 390px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #111117;
  color: white;
  padding: 22px;
}

dialog::backdrop {
  background: #000b;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.dialog-head h2 {
  margin: 0;
}

.close {
  background: transparent;
  color: white;
  border: 0;
  font-size: 18px;
}

#authForm label {
  display: block;
  font-size: 13px;
  margin: 14px 0 7px;
}

#authForm .primary {
  width: 100%;
  margin-top: 20px;
}

.text-button {
  width: 100%;
  padding: 13px 0 0;
  border: 0;
  background: transparent;
  color: #ff8297;
}

@media (min-width: 700px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .card-art {
    min-height: 170px;
  }
}