@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-page);
}

h1,
h2,
h3,
h4 {
  color: var(--text-strong);
  margin: 0 0 var(--space-2);
  font-weight: 600;
}

h1 {
  font-size: 32px;
  line-height: 40px;
}
h2 {
  font-size: 20px;
  line-height: 28px;
}
h3 {
  font-size: 16px;
  line-height: 24px;
}

p {
  margin: 0 0 var(--space-3);
}

a {
  color: var(--blue-600);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--blue-600);
}

p a:not(.btn) {
  text-decoration: underline;
}

small {
  font-size: 12px;
}

/* A link that stands on its own line (not inside a sentence) is as tall as a button, so it is easy to press. */
.touch-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* On a phone or tablet everything that is pressed is at least 44 px. Desktop keeps the 40 px buttons of the design. */
@media (max-width: 1023px), (pointer: coarse) {
  .icon-button,
  #publicNavToggle,
  #sidebarToggle {
    min-width: 44px;
    min-height: 44px;
  }

  .public-footer a,
  .app-footer a {
    display: inline-block;
    padding: 12px 4px;
  }

  input[type='checkbox'],
  input[type='radio'] {
    width: 22px;
    height: 22px;
  }

  label:has(> input[type='checkbox']),
  label:has(> input[type='radio']) {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;
  }
}

/* Text that exists only on paper, such as the company name above an invoice. */
.print-only {
  display: none;
}
