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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

header {
  margin-bottom: 32px;
}

h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 720;
  letter-spacing: 0;
  color: #14342d;
}

p {
  max-width: 620px;
  margin: 8px 0 0;
  color: #51453a;
  line-height: 1.6;
}

label {
  display: grid;
  gap: 8px;
  color: #4a392d;
  font-size: 14px;
  font-weight: 650;
}

select,
textarea {
  width: 100%;
  border: 1px solid #cdbd9f;
  border-radius: 6px;
  background: #fffaf1;
  color: #241d18;
}

select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 132px;
  padding: 14px;
  resize: vertical;
  line-height: 1.5;
}

button {
  min-height: 40px;
  border: 1px solid #c3aa7c;
  border-radius: 6px;
  background: #fffaf1;
  color: #241d18;
  cursor: pointer;
}

button:hover {
  background: #eadfc8;
}

button:disabled {
  cursor: progress;
  opacity: 0.58;
}

.controls {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.examples button {
  padding: 0 12px;
}

.inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 24px;
}

#compare {
  min-width: 112px;
  border-color: #14342d;
  background: #14342d;
  color: #fffaf1;
}

#compare:hover {
  background: #245348;
}

#status {
  color: #8c3527;
  font-size: 14px;
}

.results {
  display: grid;
  border-top: 1px solid #d5c6aa;
}

.results div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto);
  gap: 24px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid #d5c6aa;
}

.results span {
  color: #3f3026;
  font-weight: 650;
}

output {
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 760;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, 960px);
    padding: 28px 0;
  }

  h1 {
    font-size: 34px;
  }

  .controls,
  .inputs {
    grid-template-columns: 1fr;
  }
}
