* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f4f1ec;
  color: #1f1f1f;
}

main {
  width: min(1100px, calc(100% - 32px));
  margin: 48px auto;
}

header {
  margin-bottom: 32px;
}

h1 {
  margin: 4px 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin-bottom: 20px;
}

.controls label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
select {
  padding: 14px;
  border: 1px solid #c7c0b7;
  border-radius: 8px;
  background: white;
  font: inherit;
}

.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.perfume-card {
  padding: 20px;
  border: 1px solid #ded8cf;
  border-radius: 12px;
  background: white;
}

.perfume-card h2 {
  margin-top: 0;
}

.inspired-by {
  font-weight: 600;
}

.metadata {
  text-transform: capitalize;
  color: #666;
}

.notes {
  line-height: 1.5;
}

a {
  color: inherit;
  font-weight: 700;
}

@media (max-width: 700px) {
  .controls {
    grid-template-columns: 1fr;
  }
}

button {
  padding: 12px 16px;
  border: 1px solid #c7c0b7;
  border-radius: 8px;
  background: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #eee9e2;
}