/* Mirasoles: Base document styles */

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

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-body);
}

main {
  flex: 1 0 auto;
  background: var(--color-white);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--ease), opacity var(--ease);
}

a:hover {
  color: var(--color-primary-strong);
}

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

button {
  cursor: pointer;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

body:not(.is-authed) [data-auth='authed'],
body.is-authed [data-auth='guest'] {
  display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-black);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.01em;
}

h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-heading);
}

h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-heading);
}

h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-heading);
}

h4,
h5,
h6 {
  line-height: var(--line-heading);
}

p {
  color: var(--color-text-muted);
}
