:root {
  color: #24312d;
  background: #e9f0ea;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  min-height: 100vh;
  margin: 0;
  padding: 2rem 1rem;
  place-items: center;
}

.card {
  width: min(100%, 42rem);
  padding: 2.5rem;
  border: 1px solid #d3e0d5;
  border-radius: 1.25rem;
  background: #fffdf8;
  box-shadow: 0 1.5rem 3rem rgb(38 70 50 / 12%);
}

h1 {
  margin: 0;
  color: #193b2b;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.intro {
  margin: 0.5rem 0 2rem;
  color: #607069;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #40584b;
  font-size: 0.9rem;
  font-weight: 700;
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 2px solid #c5d9c9;
  border-radius: 0.75rem;
  color: #6a8c73;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.input-wrap:focus-within {
  border-color: #3b8c5a;
  box-shadow: 0 0 0 4px rgb(59 140 90 / 14%);
}

input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #193b2b;
  background: transparent;
  font: inherit;
  font-size: 1.25rem;
}

.message {
  min-height: 1.5rem;
  margin: 0.5rem 0 1.5rem;
  color: #b0443e;
  font-size: 0.9rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

caption {
  margin-bottom: 0.75rem;
  color: #193b2b;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
}

th,
td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid #e1e9e2;
}

th {
  color: #607069;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

th:first-child,
td:first-child {
  text-align: left;
}

td {
  font-variant-numeric: tabular-nums;
}

.increase {
  color: #c44942;
  font-weight: 700;
}

.decrease {
  color: #21834b;
  font-weight: 700;
}

@media (max-width: 599px) {
  body {
    padding: 1rem 0.65rem;
  }

  .card {
    padding: 1.35rem 1rem;
    border-radius: 1rem;
  }

  .intro {
    margin-bottom: 1.5rem;
  }

  th,
  td {
    padding: 0.6rem 0.35rem;
    font-size: 0.8rem;
  }

  th {
    font-size: 0.68rem;
  }
}
