@font-face {
  font-family: Alata;
  src: url("./Alata-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  font-family: Alata, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

:root.desktop-portal {
  /* Keep rem-based layout dimensions stable while increasing text sizes. */
  font-size: 16px;
  --text-size-increase: 1px;
}

:root.desktop-portal body { font-size: 17px; }

:root h1 {
  font-size: calc(1.733rem + var(--text-size-increase, 0px));
  font-weight: 700;
  letter-spacing: -.025em;
}

:root.desktop-portal h1 { font-size: calc(2rem + var(--text-size-increase, 0px)); }

:root h2,
:root .panel h2,
:root .card h2,
:root .manage h2,
:root .day-panel h2 {
  font-size: calc(1.267rem + var(--text-size-increase, 0px));
  font-weight: 700;
}

:root h3 { font-weight: 700; }

:root :is(button, input, select, textarea) { font-family: inherit; }
:root :is(button, th, summary) { font-weight: 600; }
:root button { font-size: calc(1rem + var(--text-size-increase, 0px)); }
:root:not(.desktop-portal) :is(input, select, textarea) { font-size: 16px; }

:root :is(table, .ledger) {
  font-size: calc(.933rem + var(--text-size-increase, 0px));
  font-variant-numeric: tabular-nums;
}

:root :is(small, .panel .muted, .history-column-headings, .bill-summary-columns dt) {
  font-size: calc(.867rem + var(--text-size-increase, 0px));
}

/* Keep the brand lockup compact on desktop and mobile. */
:root .brand small.brand-tagline {
  font-size: .48rem;
  letter-spacing: .04em;
  white-space: nowrap;
}

:root.desktop-portal .brand small.brand-tagline {
  font-size: .53rem;
}

.brand strong { white-space: nowrap; }

.brand .brand-tagline {
  contain: inline-size;
  letter-spacing: normal;
}

.brand-tagline-letters {
  display: flex;
  justify-content: space-between;
}

.brand-tagline-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
