/* Available before React so the logo and colours match the initial splash. */
:root {
  --brand-green: #087044;
  --brand-pine: #102a24;
  --brand-paper: #f7f5ef;
}

body {
  margin: 0;
}

.brand-logo {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.brand-logo img {
  display: block;
}

/* Shared by the initial HTML and React loading states. */
.brand-loader {
  display: grid;
  min-height: 260px;
  place-items: center;
}

.brand-loader-full {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--brand-paper);
}

.brand-loader-logo {
  width: min(70vw, 216px);
}

.brand-loader-logo img {
  width: 100%;
  height: auto;
}

.brand-loader-full .brand-loader-logo {
  width: min(80vw, 320px);
}

.brand-loader-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .brand-loader-logo {
    animation: brand-reveal 540ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  }

  @keyframes brand-reveal {
    from {
      /* Start with the road mark visible, then reveal the wordmark. */
      clip-path: inset(0 81% 0 0);
      opacity: 0.75;
      transform: translateY(4px);
    }
    to {
      clip-path: inset(0);
      opacity: 1;
      transform: translateY(0);
    }
  }
}
