// Copyright (C) 2018 The Trustees of Indiana University
// SPDX-License-Identifier: BSD-3-Clause

@use '../core' as *;

html {
  font-size: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion) {
  html {
    scroll-behavior: auto;
  }
}

html * {
  box-sizing: border-box;
  font: inherit;
}

body {
  color: $color-black-500;
  font-family: $font-base;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: $line-height-base;
}

/**
 * Normalize Heading sizes since we're dealing with applications not
 * Editorial/article-like content. We'll make them slightly bigger than the
 * base font size.
 */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 1.125rem;
  font-weight: $font-weight-regular;
  margin: 0;
}

hr {
  height: 1px;
  border: none;
  background-color: $color-black-100;
}

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

figure {
  margin: 0;
}

figcaption {
  padding-top: $spacing-sm;
  padding-left: $spacing-sm;
  font-size: $ts-14;
}

em {
  font-style: italic;
}

strong {
  font-weight: $font-weight-bold;
}

sub,
sup {
  font-size: smaller;
}