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

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(42, 103, 89, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(185, 92, 64, 0.16), transparent 45%),
    #f4f0e8;
}

.app {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(760px, 100%);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(23, 32, 27, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 24px 80px rgba(36, 29, 20, 0.14);
}

.eyebrow {
  margin: 0 0 10px;
  color: #2d6f61;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 650px;
  margin: 0 0 28px;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lookup-form {
  display: grid;
  gap: 10px;
}

label,
.label {
  color: #59635d;
  font-size: 0.88rem;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
button,
.maps-link,
.copy-link {
  min-height: 48px;
  border-radius: 6px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid #c9c0b4;
  padding: 0 14px;
  background: #fffdfa;
  color: #17201b;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  text-transform: uppercase;
}

input:focus {
  border-color: #2d6f61;
  outline: 3px solid rgba(45, 111, 97, 0.18);
}

button,
.maps-link,
.copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0 18px;
  background: #2d6f61;
  color: white;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status {
  min-height: 28px;
  margin-top: 16px;
  color: #8b3524;
  font-weight: 700;
}

.result {
  display: grid;
  gap: 18px;
  margin-top: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(23, 32, 27, 0.12);
}

.result[hidden] {
  display: none;
}

.result p {
  margin: 6px 0 0;
  font-size: 1.05rem;
  font-weight: 750;
}

.maps-link {
  width: fit-content;
}

.copy-link.is-copied {
  background: #7d8580;
}

@media (max-width: 640px) {
  .input-row {
    grid-template-columns: 1fr;
  }

  .maps-link,
  .copy-link {
    width: 100%;
  }
}
