:root {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: #243c33;
  background: #f7f8f4;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #8eab53;
  outline-offset: 5px;
}
.brand {
  position: absolute;
  top: 32px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.3px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #e6ecd9;
  font-size: 19px;
}
.entry-main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 130px 24px;
}
.entry-content {
  width: min(100%, 430px);
  text-align: center;
}
.eyebrow {
  color: #64775f;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -1.8px;
  font-size: clamp(34px, 5vw, 44px);
  margin: 0;
}
.subtitle {
  color: #737d76;
  font-size: 14px;
  line-height: 1.7;
  margin: 14px 0 36px;
}
form {
  text-align: left;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 10px 2px;
}
.amount-field {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #d6ddd0;
  border-radius: 16px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 4px 20px #233a2c04;
}
.amount-field:focus-within {
  border-color: #69865b;
  box-shadow: 0 0 0 3px #69865b18;
}
.amount-field > span:first-child {
  color: #81907d;
  font-size: 28px;
}
input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-size: 38px;
  font-weight: 400;
  color: #243c33;
  font-variant-numeric: tabular-nums;
}
input::placeholder {
  color: #b4bdb0;
}
.currency {
  color: #879280;
  font-size: 11px;
  letter-spacing: 1px;
}
.primary {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 17px 22px;
  margin-top: 14px;
  color: #fff;
  background: #2d4b3c;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}
.primary:hover {
  background: #203d2e;
}
.primary:disabled {
  opacity: .65;
  cursor: wait;
}
.status {
  color: #426747;
  font-size: 13px;
  line-height: 1.6;
  min-height: 22px;
  margin: 14px 0 0;
}
.status.error {
  color: #a13929;
}
.footnote {
  font-size: 11px;
  color: #7c8578;
  margin-top: 20px;
}
.history-link {
  position: fixed;
  right: 34px;
  bottom: max(30px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid #d6ddcf;
  border-radius: 100px;
  padding: 15px 22px;
  background: #f7f8f4;
  font-size: 13px;
  box-shadow: 0 3px 12px #243c3305;
}
.history-link:hover,
.secondary:hover {
  background: #e9eee1;
}
.history-main {
  width: min(100%, 850px);
  margin: 0 auto;
  padding: 125px 28px 70px;
}
.back-link {
  display: inline-block;
  font-size: 13px;
  margin-bottom: 45px;
  color: #62735e;
}
.history-heading {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
}
.currency-tag {
  font-size: 11px;
  color: #71816b;
  white-space: nowrap;
  padding-bottom: 7px;
}
.month {
  background: white;
  border: 1px solid #e0e5da;
  border-radius: 16px;
  margin-top: 24px;
  overflow: hidden;
}
.month-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 25px;
  background: #eef2e7;
}
.month h2 {
  font-size: 17px;
  font-weight: 550;
  margin: 0;
}
.month-total {
  font-size: 19px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.expense-list {
  list-style: none;
  padding: 0 25px;
  margin: 0;
}
.expense-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eff1eb;
}
.expense-row:last-child {
  border-bottom: 0;
}
.expense-date {
  display: block;
  font-size: 14px;
}
.expense-time {
  display: block;
  font-size: 11px;
  color: #7a8674;
  margin-top: 5px;
}
.expense-amount {
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  white-space: nowrap;
}
.secondary {
  border: 1px solid #cdd7c3;
  border-radius: 9px;
  padding: 10px 20px;
  background: white;
  color: inherit;
  margin-top: 14px;
}
@media (max-width: 520px) {
  .brand {
    top: 24px;
    left: 24px;
  }
  .history-link {
    right: 22px;
    bottom: max(22px, env(safe-area-inset-bottom));
  }
  .history-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .history-main {
    padding-inline: 20px;
  }
  .month-header {
    padding: 20px;
  }
  .expense-list {
    padding: 0 20px;
  }
}
