:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18221c;
  background: #eef3ec;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(215, 170, 75, 0.2), transparent 28rem),
    #eef3ec;
}

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

.page-header {
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: #52695b;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(2.25rem, 8vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-header > p:last-child {
  max-width: 36rem;
  margin-bottom: 0;
  color: #526158;
  font-size: 1.05rem;
  line-height: 1.6;
}

.panel {
  margin-top: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid #d5ddd6;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1rem 2.5rem rgba(41, 62, 49, 0.08);
}

h2 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

form {
  display: grid;
  gap: 0.65rem;
}

label {
  color: #2d3e33;
  font-size: 0.9rem;
  font-weight: 700;
}

label span {
  color: #718078;
  font-weight: 500;
}

input,
button {
  min-height: 3rem;
  border-radius: 0.65rem;
  font: inherit;
}

input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #bdc8c0;
  color: inherit;
  background: #fff;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(39, 103, 67, 0.28);
  outline-offset: 2px;
}

.slug-field {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
  border: 1px solid #bdc8c0;
  border-radius: 0.65rem;
  background: #f4f7f3;
}

.slug-field span {
  padding-left: 0.9rem;
  color: #647369;
  font-weight: 700;
}

.slug-field input {
  border: 0;
  background: transparent;
}

button {
  padding: 0.7rem 1.15rem;
  border: 0;
  color: #fff;
  background: #276743;
  font-weight: 750;
  cursor: pointer;
}

button:hover {
  background: #1f5637;
}

.lookup-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.lookup-form > div {
  display: grid;
  gap: 0.65rem;
}

.result {
  margin-top: 1.25rem;
  padding: 1rem;
  overflow-wrap: anywhere;
  border-radius: 0.65rem;
  color: #1e4f34;
  background: #e8f3eb;
}

.result.error {
  color: #7b2929;
  background: #f9e9e8;
}

.result a {
  color: inherit;
  font-weight: 750;
}

.result dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.55rem 1rem;
  margin: 0;
}

.result dt {
  font-weight: 750;
}

.result dd {
  margin: 0;
}

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

  .lookup-form {
    grid-template-columns: 1fr;
  }

  .result dl {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .result dd + dt {
    margin-top: 0.65rem;
  }
}
