@font-face {
  font-family: Baloo;
  src: url("/fonts/body.ttf");
}
@font-face {
  font-family: Baloo;
  src: url("/fonts/bold.ttf");
  font-weight: 700;
}
@font-face {
  font-family: Marhey;
  src: url("/fonts/title.ttf");
  font-weight: 700;
}
:root {
  --bg: #ffe14d;
  --ink: #1d1d1d;
  --mint: #7cf2c9;
  --peach: #ffb199;
  --line: 3px solid var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    1.125rem/1.6 Baloo,
    sans-serif;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Marhey, sans-serif;
  line-height: 1.6;
}
h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
}
h2 {
  font-size: 1.4rem;
}
h3 {
  font-size: 1.35rem;
}
button,
a {
  touch-action: manipulation;
}
button,
.button {
  font:
    700 1.125rem/1.5 Baloo,
    sans-serif;
  min-height: 48px;
  padding: 10px 18px;
  border: var(--line);
  border-radius: 16px;
  background: var(--mint);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
button:active,
.button:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 5px;
}
a {
  color: inherit;
}
small,
.subtle {
  font-size: 1rem;
}
.brand,
main,
footer {
  max-width: 1100px;
  margin: auto;
  padding: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.brand p {
  font-size: 1rem;
}
.stamp {
  font: bold 2.4rem Marhey;
  background: white;
  border: var(--line);
  border-radius: 50%;
  width: 72px;
  height: 72px;
  flex: none;
  display: grid;
  place-items: center;
  box-shadow: 4px 4px var(--ink);
  transform: rotate(-6deg);
}
.browser-label {
  margin-inline-start: auto;
  border: var(--line);
  padding: 4px 12px;
  border-radius: 999px;
  background: white;
  font-size: 1rem;
}
main {
  padding-top: 0;
}
.paper {
  background: white;
  border: var(--line);
  border-radius: 22px;
  box-shadow: 5px 5px var(--ink);
  padding: 24px;
}
.summary {
  background: var(--mint);
}
.layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.side {
  display: grid;
  gap: 24px;
}
.amount {
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1.5;
  display: block;
  overflow-wrap: anywhere;
}
.currency {
  font-size: 1.125rem;
  font-weight: 400;
}
.numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: var(--line);
  padding-top: 16px;
  margin-top: 16px;
}
.numbers > div {
  flex: 1;
  min-width: 100px;
}
.numbers strong {
  display: block;
  font-size: 1.6rem;
}
.person-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.person {
  width: 100%;
  text-align: start;
  justify-content: space-between;
  background: white;
  padding: 16px;
  gap: 12px;
  border-radius: 18px;
}
.person .name {
  display: block;
  font-size: 1.4rem;
  overflow-wrap: anywhere;
}
.person .money {
  font-size: 1.6rem;
  white-space: nowrap;
}
.person .state {
  font-size: 1rem;
  font-weight: 400;
}
.person .arrow {
  font-size: 1.7rem;
}
.person-main {
  min-width: 0;
  flex: 1;
}
.badge {
  display: inline-block;
  background: var(--peach);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 1px 8px;
  margin-top: 4px;
  font-size: 0.95rem;
}
.settled {
  background: var(--mint);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.back {
  background: var(--bg);
  margin-bottom: 20px;
}
.items {
  padding: 0;
  margin: 16px 0;
  list-style: none;
}
.items li {
  padding: 16px 0;
  border-bottom: 2px dashed var(--ink);
}
.item-line,
.bill-line {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
}
.item-line strong {
  overflow-wrap: anywhere;
}
.item-line b,
.bill-line b {
  white-space: nowrap;
}
.note {
  overflow-wrap: anywhere;
}
.bill-line {
  padding: 6px 0;
}
.bill-total {
  border-top: var(--line);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 1.35rem;
}
.recipient {
  margin-top: 24px;
  background: #fff6cc;
}
.recipient p {
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.recipient button {
  width: 100%;
  margin-top: 8px;
}
bdi {
  unicode-bidi: isolate;
}
.notice:empty {
  display: none;
}
.notice {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 550px;
  margin: auto;
  background: var(--ink);
  color: white;
  border-radius: 16px;
  padding: 12px 20px;
  z-index: 3;
}
footer {
  padding-top: 36px;
  padding-bottom: 40px;
  text-align: center;
}
footer p {
  margin: 8px 0 16px;
}
footer small {
  display: block;
  margin-top: 24px;
}
.skip {
  position: absolute;
  top: -200px;
}
.skip:focus {
  top: 8px;
  right: 8px;
  padding: 12px;
  background: white;
  z-index: 4;
}
[hidden] {
  display: none !important;
}
.loading {
  padding: 12px 0;
}
.hint {
  margin-top: 16px;
  font-size: 1rem;
}
.error {
  background: var(--peach);
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .brand,
  main,
  footer {
    padding-inline: 16px;
  }
  .brand {
    gap: 12px;
    padding-block: 24px;
  }
  .stamp {
    height: 52px;
    width: 52px;
    font-size: 1.8rem;
  }
  .browser-label {
    display: none;
  }
  .paper {
    padding: 18px;
  }
  .amount {
    font-size: 2.4rem;
  }
  .side {
    gap: 16px;
  }
  .layout {
    gap: 20px;
  }
  .person {
    padding: 12px;
  }
  .person .name {
    font-size: 1.2rem;
  }
  .person .money {
    font-size: 1.35rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@font-face {
  font-family: Baloo;
  src: url("/fonts/money.ttf");
  font-weight: 800;
}
.paper,
.layout > *,
.bill-line > *,
.item-line > * {
  min-width: 0;
}
h2,
h3,
.recipient bdi,
.bill-line span,
.item-line,
.numbers {
  overflow-wrap: anywhere;
}
.recipient bdi {
  display: block;
}
.amount,
.money,
.numbers strong,
.bill-line bdi,
.item-line bdi {
  font-weight: 800;
}
.person .money {
  white-space: normal;
  max-width: 50%;
  overflow-wrap: anywhere;
}
.person .arrow {
  width: 24px;
  height: 24px;
  flex: none;
}
.extras {
  margin-top: 24px;
}
.bill-line,
.item-line {
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .summary .amount {
    font-size: 2rem;
  }
  .summary .hint {
    margin-top: 8px;
  }
  .summary .numbers {
    padding-top: 8px;
    margin-top: 8px;
  }
  .brand {
    padding-block: 16px;
  }
}

.numbers > div {
  min-width: max-content;
}
.numbers strong {
  font-size: 1.35rem;
  white-space: nowrap;
}
.person {
  flex-wrap: wrap;
}
.person .money {
  max-width: 100%;
  white-space: nowrap;
}
.person-main {
  flex-basis: 45%;
}
