:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f5f2;
  color: #15251f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgb(193 216 202 / 55%), transparent 34rem),
    #f3f5f2;
}

.page-shell {
  width: min(56rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
}

.page-header,
.query-panel,
.result-panel {
  margin-bottom: 1.25rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #346b55;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.13em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 6vw, 4.25rem);
  font-weight: 500;
  line-height: 0.98;
}

.intro,
.help,
.status,
.result-count {
  color: #52635c;
}

.query-panel,
.result-panel {
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid #d5ddd8;
  border-radius: 1rem;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 1rem 3rem rgb(32 58 47 / 8%);
}

.query-row {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

label {
  font-weight: 700;
}

input,
textarea,
button {
  min-height: 2.9rem;
  border-radius: 0.6rem;
  font: inherit;
}

input {
  min-width: 0;
  flex: 1;
  border: 1px solid #9baca4;
  padding: 0.65rem 0.8rem;
  text-transform: uppercase;
}

textarea {
  display: block;
  width: 100%;
  min-height: 7rem;
  margin: 0.5rem 0 0.75rem;
  border: 1px solid #9baca4;
  padding: 0.65rem 0.8rem;
  resize: vertical;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #efb84c;
  outline-offset: 2px;
}

button {
  border: 0;
  padding: 0.65rem 1.35rem;
  background: #173e30;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.help {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
}

.result-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.result-count {
  font-size: 0.88rem;
}

.market-item {
  padding: 1.2rem 0;
  border-top: 1px solid #dce3df;
}

.market-item h3 {
  margin-bottom: 0.75rem;
}

.market-item p {
  margin-bottom: 0.35rem;
}

.market-item a {
  color: #185d45;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.15em;
}

.item-label {
  color: #52635c;
  font-weight: 650;
}

@media (max-width: 34rem) {
  .page-shell {
    padding: 2rem 0;
  }

  .query-row,
  .result-heading {
    align-items: stretch;
    flex-direction: column;
  }
}
